Skip to content

Commit

Permalink
Keep the noclip camera in sync with the demo cam so it isn't jarring…
Browse files Browse the repository at this point in the history
… when we pause
  • Loading branch information
themikelester committed Dec 24, 2024
1 parent 36ea3f8 commit d7330a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ZeldaWindWaker/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d7330a4

Please sign in to comment.