From d7330a4956d231e15d8806e36a6fb29ff740fa51 Mon Sep 17 00:00:00 2001 From: Mike Lester Date: Tue, 24 Dec 2024 08:53:38 -0700 Subject: [PATCH] Keep the noclip camera in sync with the demo cam so it isn't jarring when we pause --- src/ZeldaWindWaker/Main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ZeldaWindWaker/Main.ts b/src/ZeldaWindWaker/Main.ts index 68fd8a7b9..5ef34e9f1 100644 --- a/src/ZeldaWindWaker/Main.ts +++ b/src/ZeldaWindWaker/Main.ts @@ -275,6 +275,9 @@ export class dCamera_c extends Camera { mat4.targetTo(this.worldMatrix, this.cameraPos, targetPos, this.cameraUp); mat4.rotateZ(this.worldMatrix, this.worldMatrix, this.roll); + // Keep the noclip camera in sync with the demo cam so it isn't jarring when we pause + mat4.copy(viewerInput.camera.worldMatrix, this.worldMatrix); + this.cameraMode = CameraMode.Cinematic; globals.context.inputManager.isMouseEnabled = false; } else {