Just a quick question.
I am using physics to make a platformer game. However I am not sure how to accomplish variable height jumps with physics (as in a long press means you jump higher than a short tap).
Basically it should work like this.
As you press space you apply an 'impulse' and immediately start ascending and decelerating. However whenever space is released, the vertical velocity needs to completely stop (i.e. advancing the deceleration).