Change how ticking works
This commit is contained in:
+5
-4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user