re-enable the fix for broken friction in Clang (got accidently undone in a recent commit)

fix OSX build
This commit is contained in:
Erwin Coumans
2014-05-03 10:11:49 -07:00
parent 0e1a77047c
commit e279aed08f
2 changed files with 7 additions and 4 deletions

View File

@@ -606,8 +606,8 @@ void btSequentialImpulseConstraintSolver::setupFrictionConstraint(btSolverConstr
// btScalar positionalError = 0.f;
btSimdScalar velocityError = desiredVelocity - rel_vel;
btSimdScalar velocityImpulse = velocityError * btSimdScalar(solverConstraint.m_jacDiagABInv);
btScalar velocityError = desiredVelocity - rel_vel;
btScalar velocityImpulse = velocityError * solverConstraint.m_jacDiagABInv;
solverConstraint.m_rhs = velocityImpulse;
solverConstraint.m_rhsPenetration = 0.f;
solverConstraint.m_cfm = cfmSlip;