What does clamping the fall speed model?
velocity.y = Mathf.Max(velocity.y, -maxFall);
- Terminal velocity
- A double jump
- Air friction off
- Zero gravity
Capping downward speed stops endless acceleration, as real drag limits a falling body.
Play Game Dev ▸