T
Tirous
Guest
I'm making a game right now, and I'm just about finished building the physics engine.
All I need now is a way to find the velocity needed to accelerate an entity upwards by, so that, assuming gravity is non-zero and going against the entity, its vertical velocity will reach zero when it has gone exactly the amount of distance into the air that I want it to travel before peaking.
The problem is that I have next to no idea how to do the above. I've tried all manner of different things; all manner of maths; reading up on projectile motion, terminal velocity, etc. Yet I still have little to no idea how to solve this.
The main problem for me is that gravity is a constant acceleration, and doesn't grow linearly as time passes, instead compounding upon itself, maintaining all previous applications while still adding more. This aspect REALLY confuses me...
So ya, do any of ya'll know how to do the above?
All I need now is a way to find the velocity needed to accelerate an entity upwards by, so that, assuming gravity is non-zero and going against the entity, its vertical velocity will reach zero when it has gone exactly the amount of distance into the air that I want it to travel before peaking.
The problem is that I have next to no idea how to do the above. I've tried all manner of different things; all manner of maths; reading up on projectile motion, terminal velocity, etc. Yet I still have little to no idea how to solve this.
The main problem for me is that gravity is a constant acceleration, and doesn't grow linearly as time passes, instead compounding upon itself, maintaining all previous applications while still adding more. This aspect REALLY confuses me...
So ya, do any of ya'll know how to do the above?