I'm running a very basic test of the toxiclibs physics library. I have two particles attached to each other by a spring. There are no other fields or forces. I expected them to oscillate infinitely at the same amplitude (effectively conservation of energy). However, their amplitudes decrease with time implying that energy is lost in the system.
Does anyone know if toxiclibs physics environment has default friction or dampening? Can this be removed? Could this instead be the effect of a differential equation solver that doesn't conserve energy?
Here's my code in case there's a mistake in it. It run completely fine other than the unknown source of dampening.