I noticed some code in btRigidBody, which I can't understand. In applyImpulse() functions there is such code:
Code: Select all
if (m_angularFactor){...}
Code: Select all
if (m_angularFactor){...}
But m_angularFactor is btVector3 (in previous Bullet versions it was btSalar) and not pointer. If I properly understand angular factor purpose, maybe code should be something like:Jasonrun wrote:As far as I can tell is that this is simply checking to make sure that the angular factor is not a null pointer before continuing.
Code: Select all
if (m_angularFactor.len2() > 0)
{
do something with body angular vel
}