diff --git a/src/runtime-three/player-locomotion.ts b/src/runtime-three/player-locomotion.ts index 346a6eba..4f438cc4 100644 --- a/src/runtime-three/player-locomotion.ts +++ b/src/runtime-three/player-locomotion.ts @@ -501,7 +501,8 @@ export function stepPlayerLocomotion( options.verticalVelocity > VERTICAL_ASCENT_EPSILON; const canUseImmediateGrounding = options.previousLocomotionState === undefined || - options.previousLocomotionState.grounded; + options.previousLocomotionState.grounded || + options.verticalVelocity <= VERTICAL_ASCENT_EPSILON; const currentlyGrounded = currentGroundProbe.grounded && !ascendingFromPreviousFrame && @@ -826,4 +827,4 @@ export function stepPlayerLocomotion( z: resolvedMotion.feetPosition.z - options.feetPosition.z } }; -} \ No newline at end of file +}