Delta Time and Acceleration

Miscellaneous Forums/General Discussion/Delta Time and Acceleration

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.

quick one this as my brain has stopped working due to the heat.

Assume I'm using delta time so that my sprite movement must be multiplied by delta each logic frame e.g. y=y+yspeed*Delta

OK, Let's say that yspeed is affected by gravity. Should I do yspeed=yspeed+GRAVITY*Delta each logic frame or should I miss off the *Delta bit. I'm pretty sure I have to use *Delta on the yspeed increase. (It looks OK on-screen)

Also take it a level further, let's say gravity was called ACCELERATION and it was a vehicle of some kind, and I wanted to increase the acceleration each frame, should I also change the rate of acceleration by delta each frame too? Probably...