getInvInertiaTensorWorld() == 0 ??!!
Posted: Tue Nov 25, 2008 1:12 pm
Hello,
I'm using The invInertiaTensorWorld in order to control the rotation of an object this way:
But i've a problem cause getInvInertiaTensorWorld() return sometime zero matrix. Is it normal?
Is it mean that whatever the torque i apply there will no rotation for this time step??
Please help
I'm using The invInertiaTensorWorld in order to control the rotation of an object this way:
Code: Select all
btVector3 torq=(desiredangularvelocity-BulletBody->getAngularVelocity())/elapsedTime;
btMatrix3x3 m=BulletBody->getInvInertiaTensorWorld();
torq=torq*m.inverse();
BulletBody->applyTorque(torq);
Is it mean that whatever the torque i apply there will no rotation for this time step??
Please help