mattrdowney / planetaria

A Unity framework for Euclidean 2-sphere games (e.g. 2D virtual reality games) [quasi-MIT license]
Other
10 stars 2 forks source link

Perfect velocity integration #39

Closed mattrdowney closed 6 years ago

mattrdowney commented 6 years ago

As per Wikipedia (https://en.wikipedia.org/wiki/Leapfrog_integration): "This is especially useful when computing orbital dynamics, as many other integration schemes, such as the (order-4) Runge-Kutta method, do not conserve energy and allow the system to drift substantially over time."

mattrdowney commented 6 years ago

Additionally, integration will not utilize knowledge of the angle phi (which is primarily to allow the engine to work with every genre of game).

mattrdowney commented 6 years ago

Missed this, but it was done as of issue #26: c724c2956d863d767f1b90c5b3438dd3ae1715ad