diff --git a/src/runtime-three/third-person-navigation-controller.ts b/src/runtime-three/third-person-navigation-controller.ts index 3e59ae74..72932269 100644 --- a/src/runtime-three/third-person-navigation-controller.ts +++ b/src/runtime-three/third-person-navigation-controller.ts @@ -247,14 +247,14 @@ export class ThirdPersonNavigationController implements NavigationController { inFog: false }, probeGround: (feetPosition, shape, maxDistance) => - this.context?.probePlayerGround(feetPosition, shape, maxDistance) ?? { + this.context?.probePlayerGround?.(feetPosition, shape, maxDistance) ?? { grounded: false, distance: null, normal: null, slopeDegrees: null }, canOccupyShape: (feetPosition, shape) => - this.context?.canOccupyPlayerShape(feetPosition, shape) ?? true + this.context?.canOccupyPlayerShape?.(feetPosition, shape) ?? true } );