Correction to Rotational Kinetic Energy Calculation
Hi, I just fixed a small error in the calculation of rotational kinetic energy in non-spherical bodies. I noticed the problem while trying to measure energy conservation. I did this simulation that does not have any friction or damping. Thus, the energy should be conserved. But, when I plotted the energy I got this jiggly line:
Luckily, the fix was very easy. We were using the wrong reference frame transformation for the inertia tensor. After I changed that, I got a perfect energy-conserving simulation:
I know that there's another function that calculates the rotational kinetic energy in utils. Havent checked that one. I'll do it and make an update soon.
Best regards.