Adjust camera yaw and pitch upon reaching a boundary in third-person navigation

This commit is contained in:
2026-04-25 17:39:30 +02:00
parent 5c7d0a5e14
commit ae92a8fd26

View File

@@ -598,6 +598,12 @@ export class ThirdPersonNavigationController implements NavigationController {
if (boundaryReached) {
this.context?.handleRuntimeTargetLookBoundaryReached?.();
this.cameraYawRadians += this.targetLookOffsetYawRadians;
this.pitchRadians = clampPitch(
this.pitchRadians + this.targetLookOffsetPitchRadians
);
this.targetLookOffsetYawRadians = 0;
this.targetLookOffsetPitchRadians = 0;
}
}