Improve moviment !

This commit is contained in:
2026-09-27 15:37:09 -03:00
parent 5298ff7cf3
commit 9f47c709f1
10 changed files with 285 additions and 37 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ export class Camera {
setup(entity: Entity, partial_tick: number) {
const { x, y, z } = entity.render_position(partial_tick);
this.x = x;
this.y = y + entity.eye_height;
this.y = y + entity.render_eye_height(partial_tick);
this.z = z;
this.yaw = entity.yaw;
this.pitch = entity.pitch;