m_appliedImpulse info

sandeep_slash
Posts: 48
Joined: Thu Jul 10, 2008 6:36 pm

m_appliedImpulse info

Post by sandeep_slash »

Can someone tell me, what these variables (m_appliedImpulseLateral1 and m_appliedImpulseLateral2) are used for?....

Also, How to calculate Torque from the m_appliedImpulse... At the moment, I'm doing something like this...

Code: Select all

LinearImpulse = pContactPoint.m_appliedImpulse * pContactPoint.m_normalWorldOnB;

AngularImpulse = (pContactPoint.m_positionWorldOnB - CentreOfMass) x (LinearImpulse);

Torque = AngularImpulse/TimeStep
Am I doing it right?


Sandeep.