Inertia of pyramid

oddrose

12-08-2007 14:01:32

Hi there,

Why isn't there a Calc-function for the moment of inertia of a pyramid?

Is it because it's not symmetrical on the z and x-axises?

ciao

walaber

12-08-2007 17:55:16

you don't need those calc functions anymore, Newton can calculate it for you.


Ogre::Vector3 inertia, offset;
col->calculateInertialMatrix( inertia, offset );

body->setMassMatrix( mass, inertia * mass );
body->setCenterOfMass( offset );