Simple math/trig problem with velocity+gravity

BlitzMax Forums/BlitzMax Beginners Area/Simple math/trig problem with velocity+gravity

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I need a way to calculate the gravity, which is being subtracted from yvel every frame. Basically just how much gravity I need for a certain yvel, e.g. 5, so y (y:-yvel) reaches 0 at a certain time, e.g. 100.