Open ocket8888 opened 2 years ago
oh, actually, four places. It's up behind the pause button too.
Thanks for letting me know, appreciate it, I will see what's the issue
The non-conservation of energy is probably due to the fact that you're using Euler integration.
You can get rid of this behavior by using a symplectic integrator, such as the Verlet method (look specifically at the "Velocity Verlet" section). Symplectic integrators approximately conserve energy, and are generally more stable.
@gregreen oh okay, thanks, will check out
Sorry, one would think that a guy with degrees in both physics and compsci should be well-equipped to diagnose this, but it turns out that I don't remember anything they taught me in Intermediate Mechanics - a class where I literally had to build a double-pendulum simulation.
Update: actually it looks like the line was just a coincidence the first time. After reproducing, I found that the pendulum lines appeared in three separate places, two of which don't seem possible: