copy_bullet_files 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. LOCATION=$1
  2. cp $LOCATION/AUTHORS .
  3. cp $LOCATION/BulletLicense.txt .
  4. cp $LOCATION/ChangeLog .
  5. cp $LOCATION/LICENSE .
  6. cp $LOCATION/README .
  7. cp $LOCATION/VERSION .
  8. cp $LOCATION/src/*.h src
  9. cp $LOCATION/src/LinearMath/*.h src/LinearMath/
  10. cp $LOCATION/src/LinearMath/*.cpp src/LinearMath/
  11. cp $LOCATION/src/BulletCollision/BroadphaseCollision/*.h src/BulletCollision/BroadphaseCollision
  12. cp $LOCATION/src/BulletCollision/BroadphaseCollision/*.cpp src/BulletCollision/BroadphaseCollision
  13. cp $LOCATION/src/BulletCollision/CollisionDispatch/*.h src/BulletCollision/CollisionDispatch
  14. cp $LOCATION/src/BulletCollision/CollisionDispatch/*.cpp src/BulletCollision/CollisionDispatch
  15. cp $LOCATION/src/BulletCollision/CollisionShapes/*.h src/BulletCollision/CollisionShapes
  16. cp $LOCATION/src/BulletCollision/CollisionShapes/*.cpp src/BulletCollision/CollisionShapes
  17. cp $LOCATION/src/BulletCollision/NarrowPhaseCollision/*.h src/BulletCollision/NarrowPhaseCollision
  18. cp $LOCATION/src/BulletCollision/NarrowPhaseCollision/*.cpp src/BulletCollision/NarrowPhaseCollision
  19. cp $LOCATION/src/BulletDynamics/ConstraintSolver/*.h src/BulletDynamics/ConstraintSolver
  20. cp $LOCATION/src/BulletDynamics/ConstraintSolver/*.cpp src/BulletDynamics/ConstraintSolver
  21. cp $LOCATION/src/BulletDynamics/Dynamics/*.h src/BulletDynamics/Dynamics
  22. cp $LOCATION/src/BulletDynamics/Dynamics/*.cpp src/BulletDynamics/Dynamics
  23. cp $LOCATION/src/BulletDynamics/Vehicle/*.h src/BulletDynamics/Vehicle
  24. cp $LOCATION/src/BulletDynamics/Vehicle/*.cpp src/BulletDynamics/Vehicle
  25. cp $LOCATION/Demos/OpenGL/*.h Demos/OpenGL
  26. cp $LOCATION/Demos/OpenGL/*.cpp Demos/OpenGL
  27. echo "REMEMBER to patch this new bullet version:"
  28. echo "1) btDiscreteDynamicsWorld.cpp:
  29. --- BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp (revision 4812)
  30. +++ BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp (working copy)
  31. @@ -262,7 +262,12 @@
  32. for (int v=0;v<m_vehicles[i]->getNumWheels();v++)
  33. {
  34. //synchronize the wheels with the (interpolated) chassis worldtransform
  35. + // updateWheelTransform resets m_isInContact to false. Since
  36. + // this field is needed in STK, we save it here and restore
  37. + // its value after the call to updateWheelTransform.
  38. + bool contact = m_vehicles[i]->getWheelInfo(v).m_raycastInfo.m_isInContact;
  39. m_vehicles[i]->updateWheelTransform(v,true);
  40. + m_vehicles[i]->getWheelInfo(v).m_raycastInfo.m_isInContact = contact;
  41. }
  42. }
  43. }
  44. "