the component of the up axis needs to be scaled, to reduce roll.
This commit is contained in:
@@ -689,7 +689,7 @@ void btRaycastVehicle::updateFriction(btScalar timeStep)
|
|||||||
|
|
||||||
btVector3 sideImp = m_axle[wheel] * m_sideImpulse[wheel];
|
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);
|
m_chassisBody->applyImpulse(sideImp,rel_pos);
|
||||||
|
|
||||||
//apply friction impulse on the ground
|
//apply friction impulse on the ground
|
||||||
|
|||||||
Reference in New Issue
Block a user