Changeset 8393 for code/trunk/src/external/bullet/BulletDynamics/Vehicle
- Timestamp:
- May 3, 2011, 5:07:42 AM (14 years ago)
- Location:
- code/trunk/src/external/bullet/BulletDynamics/Vehicle
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/external/bullet/BulletDynamics/Vehicle/btRaycastVehicle.cpp
r8351 r8393 22 22 #include "LinearMath/btIDebugDraw.h" 23 23 #include "BulletDynamics/ConstraintSolver/btContactConstraint.h" 24 25 #define ROLLING_INFLUENCE_FIX 26 24 27 25 28 btRigidBody& btActionInterface::getFixedBody() … … 695 698 btVector3 sideImp = m_axle[wheel] * m_sideImpulse[wheel]; 696 699 700 #if defined ROLLING_INFLUENCE_FIX // fix. It only worked if car's up was along Y - VT. 701 btVector3 vChassisWorldUp = getRigidBody()->getCenterOfMassTransform().getBasis().getColumn(m_indexUpAxis); 702 rel_pos -= vChassisWorldUp * (vChassisWorldUp.dot(rel_pos) * (1.f-wheelInfo.m_rollInfluence)); 703 #else 697 704 rel_pos[m_indexUpAxis] *= wheelInfo.m_rollInfluence; 705 #endif 698 706 m_chassisBody->applyImpulse(sideImp,rel_pos); 699 707 -
code/trunk/src/external/bullet/BulletDynamics/Vehicle/btRaycastVehicle.h
r8351 r8393 9 9 * It is provided "as is" without express or implied warranty. 10 10 */ 11 #ifndef RAYCASTVEHICLE_H12 #define RAYCASTVEHICLE_H11 #ifndef BT_RAYCASTVEHICLE_H 12 #define BT_RAYCASTVEHICLE_H 13 13 14 14 #include "BulletDynamics/Dynamics/btRigidBody.h" … … 113 113 void updateWheelTransform( int wheelIndex, bool interpolatedTransform = true ); 114 114 115 void setRaycastWheelInfo( int wheelIndex , bool isInContact, const btVector3& hitPoint, const btVector3& hitNormal,btScalar depth);115 // void setRaycastWheelInfo( int wheelIndex , bool isInContact, const btVector3& hitPoint, const btVector3& hitNormal,btScalar depth); 116 116 117 117 btWheelInfo& addWheel( const btVector3& connectionPointCS0, const btVector3& wheelDirectionCS0,const btVector3& wheelAxleCS,btScalar suspensionRestLength,btScalar wheelRadius,const btVehicleTuning& tuning, bool isFrontWheel); … … 233 233 234 234 235 #endif // RAYCASTVEHICLE_H236 235 #endif //BT_RAYCASTVEHICLE_H 236 -
code/trunk/src/external/bullet/BulletDynamics/Vehicle/btVehicleRaycaster.h
r5781 r8393 1 1 /* 2 * Copyright (c) 2005 Erwin Coumans http:// continuousphysics.com/Bullet/2 * Copyright (c) 2005 Erwin Coumans http://bulletphysics.org 3 3 * 4 4 * Permission to use, copy, modify, distribute and sell this software … … 9 9 * It is provided "as is" without express or implied warranty. 10 10 */ 11 #ifndef VEHICLE_RAYCASTER_H12 #define VEHICLE_RAYCASTER_H11 #ifndef BT_VEHICLE_RAYCASTER_H 12 #define BT_VEHICLE_RAYCASTER_H 13 13 14 14 #include "LinearMath/btVector3.h" … … 32 32 }; 33 33 34 #endif // VEHICLE_RAYCASTER_H34 #endif //BT_VEHICLE_RAYCASTER_H 35 35 -
code/trunk/src/external/bullet/BulletDynamics/Vehicle/btWheelInfo.h
r8351 r8393 9 9 * It is provided "as is" without express or implied warranty. 10 10 */ 11 #ifndef WHEEL_INFO_H12 #define WHEEL_INFO_H11 #ifndef BT_WHEEL_INFO_H 12 #define BT_WHEEL_INFO_H 13 13 14 14 #include "LinearMath/btVector3.h" … … 116 116 }; 117 117 118 #endif // WHEEL_INFO_H118 #endif //BT_WHEEL_INFO_H 119 119
Note: See TracChangeset
for help on using the changeset viewer.