Open onceadrog opened 7 years ago
Grav calculations are returning valid values. But application of those values appears buggy.
Especially noticeable on "launch" where apparent rounding issues are resulting in unpredictable results.
Possibly due to rapid change of gravity gradient close to earth, but seems unlikely.
This is also probably why stuff isn't "settling" into elliptical orbits.
Need to populate some datasheets to show the actual numbers applied.
Hmm, had a thought. The gravitation force is being applied based on a single position, rather than as an aggregate since the last tick. Looks more valid now.
This might be worth a read. Nice introduction to numerical integration, with specific code examples to apply to physics in games.
https://gafferongames.com/post/integration_basics/
On Sun, Oct 1, 2017 at 1:50 PM, onceadrog notifications@github.com wrote:
Hmm, had a thought. The gravitation force is being applied based on a single position, rather than as an aggregate since the last tick. Looks more valid now.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/onceadrog/lagrange/issues/1#issuecomment-333345739, or mute the thread https://github.com/notifications/unsubscribe-auth/AONf4oaHRzmddUdYnBKYPX717iZPGpndks5snuHYgaJpZM4PhezA .
Code to put stuff into orbits needs fixing. Probably need to rebuild the way orbits are done in general.