fix issue, related to hard-coded rollaxis index, should use m_indexForwardAxis

Thanks Joerg, luding.org
This commit is contained in:
erwin.coumans
2008-11-06 07:07:56 +00:00
parent 3ca7d91fc6
commit e9df33a6c5

View File

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