Change how ticking works

This commit is contained in:
2026-09-25 16:13:38 -03:00
parent 213363d0be
commit 5fb23cf404
9 changed files with 169 additions and 92 deletions
+5 -4
View File
@@ -14,10 +14,11 @@ export class Camera {
near = 0.1;
far = 1000;
setup(entity: Entity) {
this.x = entity.x;
this.y = entity.y + entity.eye_height;
this.z = entity.z;
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.z = z;
this.yaw = entity.yaw;
this.pitch = entity.pitch;
}