auto-git:

[change] src/runtime-three/third-person-navigation-controller.ts
This commit is contained in:
2026-04-25 03:33:49 +02:00
parent e3f36c7ddd
commit 73a4660424

View File

@@ -34,7 +34,7 @@ const MAX_CAMERA_DISTANCE = 7;
const DEFAULT_PITCH_RADIANS = 0.35; const DEFAULT_PITCH_RADIANS = 0.35;
const MIN_PITCH_RADIANS = -0.2; const MIN_PITCH_RADIANS = -0.2;
const MAX_PITCH_RADIANS = Math.PI * 0.45; const MAX_PITCH_RADIANS = Math.PI * 0.45;
const CAMERA_COLLISION_RADIUS = 0.2; export const THIRD_PERSON_CAMERA_COLLISION_RADIUS = 0.2;
const CAMERA_PIVOT_EYE_HEIGHT_FACTOR = 0.85; const CAMERA_PIVOT_EYE_HEIGHT_FACTOR = 0.85;
function clampPitch(pitchRadians: number): number { function clampPitch(pitchRadians: number): number {
@@ -434,7 +434,7 @@ export class ThirdPersonNavigationController implements NavigationController {
this.context.resolveThirdPersonCameraCollision( this.context.resolveThirdPersonCameraCollision(
pivot, pivot,
desiredCameraPosition, desiredCameraPosition,
CAMERA_COLLISION_RADIUS THIRD_PERSON_CAMERA_COLLISION_RADIUS
); );
this.context.camera.position.set( this.context.camera.position.set(