Fix minimum pitch angle calculation and add test for floor collision handling in third-person camera

This commit is contained in:
2026-04-25 19:15:19 +02:00
parent 05b8632b6b
commit 8c9ab0662c
2 changed files with 60 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ const DEFAULT_CAMERA_DISTANCE = 4.5;
const MIN_CAMERA_DISTANCE = 1.5;
const MAX_CAMERA_DISTANCE = 7;
const DEFAULT_PITCH_RADIANS = 0.35;
const MIN_PITCH_RADIANS = -0.2;
const MIN_PITCH_RADIANS = -Math.PI * 0.3;
const MAX_PITCH_RADIANS = Math.PI * 0.45;
export const THIRD_PERSON_CAMERA_COLLISION_RADIUS = 0.2;
const CAMERA_COLLISION_RECOVERY_SPEED = 6.5;