Bugfix: bullet resets the isInContact value for wheels when a debug drawer
exists. Besides other potential side effects this disabled skidmarks. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4974 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
706984c1c8
commit
2d16e970b2
@ -262,7 +262,12 @@ void btDiscreteDynamicsWorld::synchronizeMotionStates()
|
||||
for (int v=0;v<m_vehicles[i]->getNumWheels();v++)
|
||||
{
|
||||
//synchronize the wheels with the (interpolated) chassis worldtransform
|
||||
// updateWheelTransform resets m_isInContact to false. Since
|
||||
// this field is needed in STK, we save it here and restore
|
||||
// its value after the call to updateWheelTransform.
|
||||
bool contact = m_vehicles[i]->getWheelInfo(v).m_raycastInfo.m_isInContact;
|
||||
m_vehicles[i]->updateWheelTransform(v,true);
|
||||
m_vehicles[i]->getWheelInfo(v).m_raycastInfo.m_isInContact = contact;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user