Demo of Simple 2D Gravitational Physics

Blitz3D Forums/Blitz3D Beginners Area/Demo of Simple 2D Gravitational Physics

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.

When I say pseudo realtime what I mean is the functions which calculate the position of the satelite do so "incrementaly" meaning that they take the last position and increment it based on the x and y velocities proportional to the time that has passed in the last program loop (the period). Its pseudo realtime because I forced the period to be 10 milliseconds. See if you can calculate the time that passed in the last loop each time. Then the code will be proper realtime.

This is the first program I have ever coded that worked as intended first time with no compile errors and I been programming for over 10 years, It does happen sometimes, just not very often :D