1
0
Fork 0

Missed changed file somehow, oops.

This commit is contained in:
andy 2007-01-10 19:04:59 +00:00
parent 5aa142ee5f
commit bb6010f39c

View file

@ -204,4 +204,14 @@ void RigidBody::getAngularAccel(float* accelOut)
Math::vmul33(_invI, v, v); // v = invI*(tau + (omega X I*omega)) Math::vmul33(_invI, v, v); // v = invI*(tau + (omega X I*omega))
} }
void RigidBody::getInertiaMatrix(float* inertiaOut)
{
// valid only after a call to RigidBody::recalc()
// See comment at top of RigidBody.hpp on units.
for(int i=0;i<9;i++)
{
inertiaOut[i] = _tI[i];
}
}
}; // namespace yasim }; // namespace yasim