| Bullet Collision Detection & Physics Library
    | 
rayCast vehicle, very special constraint that turn a rigidbody into a vehicle. More...
#include <btRaycastVehicle.h>


| Classes | |
| class | btVehicleTuning | 
| Public Member Functions | |
| btRaycastVehicle (const btVehicleTuning &tuning, btRigidBody *chassis, btVehicleRaycaster *raycaster) | |
| virtual | ~btRaycastVehicle () | 
| virtual void | updateAction (btCollisionWorld *collisionWorld, btScalar step) | 
| btActionInterface interface  More... | |
| void | debugDraw (btIDebugDraw *debugDrawer) | 
| btActionInterface interface  More... | |
| const btTransform & | getChassisWorldTransform () const | 
| btScalar | rayCast (btWheelInfo &wheel) | 
| virtual void | updateVehicle (btScalar step) | 
| void | resetSuspension () | 
| btScalar | getSteeringValue (int wheel) const | 
| void | setSteeringValue (btScalar steering, int wheel) | 
| void | applyEngineForce (btScalar force, int wheel) | 
| const btTransform & | getWheelTransformWS (int wheelIndex) const | 
| void | updateWheelTransform (int wheelIndex, bool interpolatedTransform=true) | 
| btWheelInfo & | addWheel (const btVector3 &connectionPointCS0, const btVector3 &wheelDirectionCS0, const btVector3 &wheelAxleCS, btScalar suspensionRestLength, btScalar wheelRadius, const btVehicleTuning &tuning, bool isFrontWheel) | 
| int | getNumWheels () const | 
| const btWheelInfo & | getWheelInfo (int index) const | 
| btWheelInfo & | getWheelInfo (int index) | 
| void | updateWheelTransformsWS (btWheelInfo &wheel, bool interpolatedTransform=true) | 
| void | setBrake (btScalar brake, int wheelIndex) | 
| void | setPitchControl (btScalar pitch) | 
| void | updateSuspension (btScalar deltaTime) | 
| virtual void | updateFriction (btScalar timeStep) | 
| btRigidBody * | getRigidBody () | 
| const btRigidBody * | getRigidBody () const | 
| int | getRightAxis () const | 
| int | getUpAxis () const | 
| int | getForwardAxis () const | 
| btVector3 | getForwardVector () const | 
| Worldspace forward vector.  More... | |
| btScalar | getCurrentSpeedKmHour () const | 
| Velocity of vehicle (positive if velocity vector has same direction as foward vector)  More... | |
| virtual void | setCoordinateSystem (int rightIndex, int upIndex, int forwardIndex) | 
| int | getUserConstraintType () const | 
| backwards compatibility  More... | |
| void | setUserConstraintType (int userConstraintType) | 
| void | setUserConstraintId (int uid) | 
| int | getUserConstraintId () const | 
|  Public Member Functions inherited from btActionInterface | |
| virtual | ~btActionInterface () | 
| Public Attributes | |
| btAlignedObjectArray< btWheelInfo > | m_wheelInfo | 
| Private Member Functions | |
| void | defaultInit (const btVehicleTuning &tuning) | 
| Private Attributes | |
| btAlignedObjectArray< btVector3 > | m_forwardWS | 
| btAlignedObjectArray< btVector3 > | m_axle | 
| btAlignedObjectArray< btScalar > | m_forwardImpulse | 
| btAlignedObjectArray< btScalar > | m_sideImpulse | 
| int | m_userConstraintType | 
| backwards compatibility  More... | |
| int | m_userConstraintId | 
| btVehicleRaycaster * | m_vehicleRaycaster | 
| btScalar | m_pitchControl | 
| btScalar | m_steeringValue | 
| btScalar | m_currentVehicleSpeedKmHour | 
| btRigidBody * | m_chassisBody | 
| int | m_indexRightAxis | 
| int | m_indexUpAxis | 
| int | m_indexForwardAxis | 
| Additional Inherited Members | |
|  Static Protected Member Functions inherited from btActionInterface | |
| static btRigidBody & | getFixedBody () | 
rayCast vehicle, very special constraint that turn a rigidbody into a vehicle.
Definition at line 25 of file btRaycastVehicle.h.
| btRaycastVehicle::btRaycastVehicle | ( | const btVehicleTuning & | tuning, | 
| btRigidBody * | chassis, | ||
| btVehicleRaycaster * | raycaster | ||
| ) | 
Definition at line 34 of file btRaycastVehicle.cpp.
| 
 | virtual | 
Definition at line 52 of file btRaycastVehicle.cpp.
| btWheelInfo & btRaycastVehicle::addWheel | ( | const btVector3 & | connectionPointCS0, | 
| const btVector3 & | wheelDirectionCS0, | ||
| const btVector3 & | wheelAxleCS, | ||
| btScalar | suspensionRestLength, | ||
| btScalar | wheelRadius, | ||
| const btVehicleTuning & | tuning, | ||
| bool | isFrontWheel | ||
| ) | 
Definition at line 59 of file btRaycastVehicle.cpp.
| void btRaycastVehicle::applyEngineForce | ( | btScalar | force, | 
| int | wheel | ||
| ) | 
Definition at line 357 of file btRaycastVehicle.cpp.
| 
 | virtual | 
btActionInterface interface
Implements btActionInterface.
Definition at line 660 of file btRaycastVehicle.cpp.
| 
 | private | 
Definition at line 45 of file btRaycastVehicle.cpp.
| const btTransform & btRaycastVehicle::getChassisWorldTransform | ( | ) | const | 
Definition at line 243 of file btRaycastVehicle.cpp.
| 
 | inline | 
Velocity of vehicle (positive if velocity vector has same direction as foward vector)
Definition at line 171 of file btRaycastVehicle.h.
| 
 | inline | 
Definition at line 152 of file btRaycastVehicle.h.
| 
 | inline | 
Worldspace forward vector.
Definition at line 158 of file btRaycastVehicle.h.
| 
 | inline | 
Definition at line 109 of file btRaycastVehicle.h.
| 
 | inline | 
Definition at line 143 of file btRaycastVehicle.h.
| 
 | inline | 
Definition at line 133 of file btRaycastVehicle.h.
| 
 | inline | 
Definition at line 138 of file btRaycastVehicle.h.
| btScalar btRaycastVehicle::getSteeringValue | ( | int | wheel | ) | const | 
Definition at line 352 of file btRaycastVehicle.cpp.
| 
 | inline | 
Definition at line 147 of file btRaycastVehicle.h.
| 
 | inline | 
Definition at line 199 of file btRaycastVehicle.h.
| 
 | inline | 
backwards compatibility
Definition at line 184 of file btRaycastVehicle.h.
| btWheelInfo & btRaycastVehicle::getWheelInfo | ( | int | index | ) | 
Definition at line 371 of file btRaycastVehicle.cpp.
| const btWheelInfo & btRaycastVehicle::getWheelInfo | ( | int | index | ) | const | 
Definition at line 364 of file btRaycastVehicle.cpp.
| const btTransform & btRaycastVehicle::getWheelTransformWS | ( | int | wheelIndex | ) | const | 
Definition at line 85 of file btRaycastVehicle.cpp.
| btScalar btRaycastVehicle::rayCast | ( | btWheelInfo & | wheel | ) | 
Definition at line 160 of file btRaycastVehicle.cpp.
| void btRaycastVehicle::resetSuspension | ( | ) | 
Definition at line 130 of file btRaycastVehicle.cpp.
| void btRaycastVehicle::setBrake | ( | btScalar | brake, | 
| int | wheelIndex | ||
| ) | 
Definition at line 378 of file btRaycastVehicle.cpp.
| 
 | inlinevirtual | 
Definition at line 176 of file btRaycastVehicle.h.
| 
 | inline | 
Definition at line 124 of file btRaycastVehicle.h.
| void btRaycastVehicle::setSteeringValue | ( | btScalar | steering, | 
| int | wheel | ||
| ) | 
Definition at line 344 of file btRaycastVehicle.cpp.
| 
 | inline | 
Definition at line 194 of file btRaycastVehicle.h.
| 
 | inline | 
Definition at line 189 of file btRaycastVehicle.h.
| 
 | inlinevirtual | 
btActionInterface interface
Implements btActionInterface.
Definition at line 78 of file btRaycastVehicle.h.
| 
 | virtual | 
Definition at line 488 of file btRaycastVehicle.cpp.
| void btRaycastVehicle::updateSuspension | ( | btScalar | deltaTime | ) | 
Definition at line 384 of file btRaycastVehicle.cpp.
| 
 | virtual | 
Definition at line 256 of file btRaycastVehicle.cpp.
| void btRaycastVehicle::updateWheelTransform | ( | int | wheelIndex, | 
| bool | interpolatedTransform = true | ||
| ) | 
Definition at line 92 of file btRaycastVehicle.cpp.
| void btRaycastVehicle::updateWheelTransformsWS | ( | btWheelInfo & | wheel, | 
| bool | interpolatedTransform = true | ||
| ) | 
Definition at line 145 of file btRaycastVehicle.cpp.
| 
 | private | 
Definition at line 28 of file btRaycastVehicle.h.
| 
 | private | 
Definition at line 63 of file btRaycastVehicle.h.
| 
 | private | 
Definition at line 61 of file btRaycastVehicle.h.
| 
 | private | 
Definition at line 29 of file btRaycastVehicle.h.
| 
 | private | 
Definition at line 27 of file btRaycastVehicle.h.
| 
 | private | 
Definition at line 67 of file btRaycastVehicle.h.
| 
 | private | 
Definition at line 65 of file btRaycastVehicle.h.
| 
 | private | 
Definition at line 66 of file btRaycastVehicle.h.
| 
 | private | 
Definition at line 59 of file btRaycastVehicle.h.
| 
 | private | 
Definition at line 30 of file btRaycastVehicle.h.
| 
 | private | 
Definition at line 60 of file btRaycastVehicle.h.
| 
 | private | 
Definition at line 34 of file btRaycastVehicle.h.
| 
 | private | 
backwards compatibility
Definition at line 33 of file btRaycastVehicle.h.
| 
 | private | 
Definition at line 58 of file btRaycastVehicle.h.
| btAlignedObjectArray<btWheelInfo> btRaycastVehicle::m_wheelInfo | 
Definition at line 114 of file btRaycastVehicle.h.
 1.8.16
 1.8.16