Added reminder echo to fix some bugs in bullet.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4977 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
aae13b3768
commit
3541e0a305
@ -25,3 +25,28 @@ cp $LOCATION/src/BulletDynamics/Vehicle/*.cpp src/BulletDynamics/Vehicl
|
||||
cp $LOCATION/Demos/OpenGL/*.h Demos/OpenGL
|
||||
cp $LOCATION/Demos/OpenGL/*.cpp Demos/OpenGL
|
||||
|
||||
echo "REMEMBER to patch this new bullet version:"
|
||||
echo "1) btDiscreteDynamicsWorld.cpp:
|
||||
--- BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp (revision 4812)
|
||||
+++ BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp (working copy)
|
||||
@@ -262,7 +262,12 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
"
|
||||
|
||||
echo "2) btRaycastVehicle.cpp
|
||||
From:
|
||||
rel_pos[2] *= wheelInfo.m_rollInfluence;
|
||||
to
|
||||
rel_pos[m_indexUpAxis] *= wheelInfo.m_rollInfluence;
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user