I needed to calculate the Inertial Matrix of a cylinder and wasn't easy to find the formula.
As I'm not aware of an automatic way of the engine to calculate, I thought that would be useful if I post it here to share with somebody else that may need it too.
- Code: Select all
Ixx = mass * (pow(radius,2)/4 + 1/12) * pow(height,2);
Iyy = Ixx;
Izz = mass * pow(radius,2)/2;
That's it, here seemed to work well.