auto-git:

[change] src/runtime-three/first-person-navigation-controller.ts
This commit is contained in:
2026-04-22 17:03:52 +02:00
parent 743d692e96
commit 454c767d2b

View File

@@ -306,7 +306,10 @@ export class FirstPersonNavigationController implements NavigationController {
runtimeScene.playerInputBindings
);
if (lookInput.horizontal !== 0 || lookInput.vertical !== 0) {
if (
this.context.isCameraDrivenExternally() !== true &&
(lookInput.horizontal !== 0 || lookInput.vertical !== 0)
) {
this.yawRadians -= lookInput.horizontal * GAMEPAD_LOOK_SPEED * dt;
this.pitchRadians = clampPitch(
this.pitchRadians + lookInput.vertical * GAMEPAD_LOOK_SPEED * dt
@@ -527,7 +530,8 @@ export class FirstPersonNavigationController implements NavigationController {
private handleMouseMove = (event: MouseEvent) => {
if (
!this.pointerLocked ||
this.context?.isInputSuspended() === true
this.context?.isInputSuspended() === true ||
this.context?.isCameraDrivenExternally() === true
) {
return;
}