This question is about a platform game in box2D but I assume that it would be applicable to any platform game.
At the moment my character jumps by setting his vertical velocity, but I'm at a point where I want to tweak the gravity of the game but not affect the actual distance the player will jump, so I can adjust the feel of the gravity without constantly have to alter the player jump strength.
Gravity force vector in box2D is currently +22 on y.
I want the player body to be pushed upward exactly 3 metres.
The player can double jump, and I want this to happen regardless of what the current velocity of the player is. If the player is falling very quickly, hitting jump will cause them to stop and pop up 3 metres.
Thanks