Closed lechszym closed 11 years ago
I might try work on the settings GUI elements so we can change settings such as the tpf * N value while in game to speed things up or increase G.
Sounds like a very useful functionality for developers. How about creating a new issue for it (a feature?).
This was due to having a fixed change in time, dt, in the simGrav code whereas the time per frame (where the simulation updates are carried out) varies on the frame rate.
Fixed this by deriving dt from tpf (time per frame) and passing it to the simGrav function.
This changed the dynamics of the simulation a bit, so had to manipulate the initial speed of the planets and the mass of the sun to keep everything stable and not moving too fast.
A very easy way to speed the whole simulation without changing anything about the gravity parameters is to call simGrav(p,n*tpf);