Better block models !
This commit is contained in:
@@ -127,7 +127,7 @@ export abstract class Entity {
|
||||
|
||||
// falls and moves by its velocity for one tick (see move_body), then slows down from drag and friction
|
||||
move() {
|
||||
const is_solid = (x: number, y: number, z: number) => this.level.has_collision(x, y, z);
|
||||
const is_solid = (x: number, y: number, z: number) => this.level.collision_shape(x, y, z);
|
||||
const can_step = this.#air_ticks <= this.step_grace_ticks && this.vy <= 0;
|
||||
const friction = this.horizontal_friction();
|
||||
const collisions = move_body(this, this.gravity, is_solid, this.step_height, can_step);
|
||||
|
||||
Reference in New Issue
Block a user