Say I have an object that has a variable mass. Now I want to apply a vertical impulse (straight up into the air) onto the object, so it always flies up to the same height. How do I calculate this?
So the variables are:
m: mass
Y: height (constant)
If: Impulse force
G: Gravity
The origin is always from a floor, so no mid-air impulses or anything.
(I'm using the Box2D engine, but I think that a solution would be engine independent?)
