v2.73, resolveSingleConstraintRowGenericSIMD() bug?

IGDbonbon
Posts: 5
Joined: Sun Aug 03, 2008 7:31 am

v2.73, resolveSingleConstraintRowGenericSIMD() bug?

Post by IGDbonbon »

Seems
btSequentialImpulseConstraintSolver::resolveSingleConstraintRowLowerLimitSIMD()
and
btSequentialImpulseConstraintSolver::resolveSingleConstraintRowGenericSIMD()

ignored body.m_angularFactor when applying Angular force..

I used a capsule shape to be the character object, and set the angularFactor to 0 to make it always stand...
and it works fine with the non SIMD solver method, but it rolls when the solver use the SIMD methods to handle it...

I guess the next two line of code need to take body.m_angularFactor in.

body1.m_deltaAngularVelocity.mVec128 = _mm_add_ps(body1.m_deltaAngularVelocity.mVec128 ,_mm_mul_ps(c.m_angularComponentA.mVec128,impulseMagnitude));

body2.m_deltaAngularVelocity.mVec128 = _mm_add_ps(body2.m_deltaAngularVelocity.mVec128 ,_mm_mul_ps(c.m_angularComponentB.mVec128,impulseMagnitude));

Thanks a lot.