diff --git a/src/client/Controllers/AssetsController.ts b/src/client/Controllers/AssetsController.ts index 8b4bae17..71616d5e 100644 --- a/src/client/Controllers/AssetsController.ts +++ b/src/client/Controllers/AssetsController.ts @@ -357,8 +357,6 @@ export class AssetsController { } else { m.receiveShadows = false; } - - console.log(m.name); }); // only render shadows once diff --git a/src/client/Entities/Player/PlayerCamera.ts b/src/client/Entities/Player/PlayerCamera.ts index 0cd48eef..ab775a10 100644 --- a/src/client/Entities/Player/PlayerCamera.ts +++ b/src/client/Entities/Player/PlayerCamera.ts @@ -57,8 +57,7 @@ export class PlayerCamera { } public update(): void { - - let preventVertical = false; + let preventVertical = true; // rotate camera around the Y position if right click is true if (!this._input.middle_click) { @@ -67,8 +66,9 @@ export class PlayerCamera { // only do vertical if allowed let rotationX = 0; - if(!preventVertical){ - rotationX = Math.abs(this._camRoot.rotation.x + this._input.movementY) < 0.5 ? this._camRoot.rotation.x + this._input.movementY : this._camRoot.rotation.x; + if (!preventVertical) { + rotationX = + Math.abs(this._camRoot.rotation.x + this._input.movementY) < 0.5 ? this._camRoot.rotation.x + this._input.movementY : this._camRoot.rotation.x; } // set horizontal rotation @@ -76,7 +76,6 @@ export class PlayerCamera { // apply canmera rotation this._camRoot.rotation = new Vector3(rotationX, rotationY, 0); - } public zoom(deltaY): void {