Skip to content

Rigidbody2D Reduce Jump Speed

Reduce a Rigidbody2D's vertical speed if the jump button is released early. This tweak allows higher jumps if the player holds the jump button down.

Parameter Description
Rigidbody The Rigidbody to control.
Is Jumping Set to true while the jump button is pressed. Generally set by an input action like InputGetButton.
Multiplier The amount of speed to lose when releasing the jump button while the rigidbody is still going up. This is a multiplier, so 0.5 loses 50% of the speed.

Usages

One way to implement "jump higher while holding button" in a platformer.