Initialize smoothed camera collision distance tracking

This commit is contained in:
2026-04-25 18:54:53 +02:00
parent e6c509b610
commit 25b6b0cf5e

View File

@@ -559,6 +559,7 @@ export class ThirdPersonNavigationController implements NavigationController {
this.grounded = false;
this.jumpPressed = false;
this.smoothedFeetY = this.feetPosition.y;
this.smoothedCameraCollisionDistance = null;
this.activePlayerShape = cloneFirstPersonPlayerShape(
this.context?.getRuntimeScene().playerCollider ?? FIRST_PERSON_PLAYER_SHAPE
);