This commit is contained in:
+1
-1
@@ -228,7 +228,7 @@ class Hero{
|
|||||||
let cameraPosition = new Vector3().copy(this.camera.position)
|
let cameraPosition = new Vector3().copy(this.camera.position)
|
||||||
let cameraDesiredPosition = new Vector3(
|
let cameraDesiredPosition = new Vector3(
|
||||||
this.model.position.x + this.#cameraZ* Math.sin(this.model.rotation.y + Math.PI + this.cameraDelta + this.cameraIdleDelta),
|
this.model.position.x + this.#cameraZ* Math.sin(this.model.rotation.y + Math.PI + this.cameraDelta + this.cameraIdleDelta),
|
||||||
pc.controls.isLocked? this.size.y*0.9 : (this.cameraY + this.model.position.y),
|
this.model.position.y + (pc.controls.isLocked? this.size.y*0.9 : this.cameraY),
|
||||||
this.model.position.z + this.#cameraZ* Math.cos(this.model.rotation.y + Math.PI + this.cameraDelta + this.cameraIdleDelta)
|
this.model.position.z + this.#cameraZ* Math.cos(this.model.rotation.y + Math.PI + this.cameraDelta + this.cameraIdleDelta)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user