work-around what appears to be a bug in Clang 3.4. Todo: create a small repro case for Clang/LLVM or see if they already fixed it.
This commit is contained in:
@@ -434,8 +434,8 @@ void btSequentialImpulseConstraintSolver::setupFrictionConstraint(btSolverConstr
|
|||||||
|
|
||||||
// btScalar positionalError = 0.f;
|
// btScalar positionalError = 0.f;
|
||||||
|
|
||||||
btSimdScalar velocityError = desiredVelocity - rel_vel;
|
btScalar velocityError = desiredVelocity - rel_vel;
|
||||||
btSimdScalar velocityImpulse = velocityError * btSimdScalar(solverConstraint.m_jacDiagABInv);
|
btScalar velocityImpulse = velocityError * solverConstraint.m_jacDiagABInv;
|
||||||
solverConstraint.m_rhs = velocityImpulse;
|
solverConstraint.m_rhs = velocityImpulse;
|
||||||
solverConstraint.m_rhsPenetration = 0.f;
|
solverConstraint.m_rhsPenetration = 0.f;
|
||||||
solverConstraint.m_cfm = cfmSlip;
|
solverConstraint.m_cfm = cfmSlip;
|
||||||
|
|||||||
Reference in New Issue
Block a user