the component of the up axis needs to be scaled, to reduce roll.

This commit is contained in:
erwin.coumans
2009-03-09 03:53:16 +00:00
parent 700db838b1
commit 0cd0529c4a

View File

@@ -689,7 +689,7 @@ void btRaycastVehicle::updateFriction(btScalar timeStep)
btVector3 sideImp = m_axle[wheel] * m_sideImpulse[wheel];
rel_pos[m_indexForwardAxis] *= wheelInfo.m_rollInfluence;
rel_pos[m_indexUpAxis] *= wheelInfo.m_rollInfluence;
m_chassisBody->applyImpulse(sideImp,rel_pos);
//apply friction impulse on the ground