Closed rmmh closed 6 years ago
Adding a constant factor to radius introduces error-- which is why the orbits under Circular Orbits don't trace ellipses.
const r = Math.max(dx * dx + dy * dy, 1) would avoid both degenerate zero-radius cases and introducing error.
const r = Math.max(dx * dx + dy * dy, 1)
I wish I had read this a few days ago. It took me a while to determine this fudge factor was the cause of the precession, but I figured it out a couple days ago. thanks!
Adding a constant factor to radius introduces error-- which is why the orbits under Circular Orbits don't trace ellipses.
const r = Math.max(dx * dx + dy * dy, 1)
would avoid both degenerate zero-radius cases and introducing error.