I've been working on this problem for awhile but couln't get right result. So I hope anybody help me.
Lets say there's a man at height H. And he jumps stright upward and reaches maxH and fall back to ground(zero height) in given time(t).
What would be initial velocity(jump power) and gravity?
The man must reach to maxH(not over it) and fall back to ground in GIVEN TIME!
If he jumps from ground, it's solved by assuming that v=0 at half of given time.
But I can't solve if that man jumps from specific height.
Below is what I want to do.
void jump( float current_height, float max_height, float desired_time )
g = ...?
v0 = ...?
Thanks in advance.