Every object with mass attracts every other object. In our case, the orbiting body is attracted toward a central mass (like a planet or star).
Equation: F = G Γ M Γ m / rΒ²
This results in acceleration:
a = F / m = G Γ M / rΒ²
In vector form:
πβ = β (G Γ M) / |π«β|Β³ Γ π«β
Simulations use step-by-step calculations to update motion using integration methods.
v(t+Ξt) = v(t) + a(t) Γ Ξt
r(t+Ξt) = r(t) + v(t) Γ Ξt
β Fast but error-prone over time
More accurate: takes 4 slope samples per step.
β Ideal for curved paths like orbits
50001001/60 sec100 pxv = β(G Γ M / r)