rayCast vehicle, very special constraint that turn a rigidbody into a vehicle. More...
#include <btRaycastVehicle.h>
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 35 of file btRaycastVehicle.cpp.
btRaycastVehicle::~btRaycastVehicle | ( | ) | [virtual] |
Definition at line 57 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 65 of file btRaycastVehicle.cpp.
void btRaycastVehicle::applyEngineForce | ( | btScalar | force, | |
int | wheel | |||
) |
Definition at line 382 of file btRaycastVehicle.cpp.
void btRaycastVehicle::debugDraw | ( | btIDebugDraw * | debugDrawer | ) | [virtual] |
btActionInterface interface
Implements btActionInterface.
Definition at line 719 of file btRaycastVehicle.cpp.
void btRaycastVehicle::defaultInit | ( | const btVehicleTuning & | tuning | ) | [private] |
Definition at line 47 of file btRaycastVehicle.cpp.
const btTransform & btRaycastVehicle::getChassisWorldTransform | ( | ) | const |
Definition at line 253 of file btRaycastVehicle.cpp.
btScalar btRaycastVehicle::getCurrentSpeedKmHour | ( | ) | const [inline] |
Velocity of vehicle (positive if velocity vector has same direction as foward vector).
Definition at line 185 of file btRaycastVehicle.h.
int btRaycastVehicle::getForwardAxis | ( | ) | const [inline] |
Definition at line 165 of file btRaycastVehicle.h.
btVector3 btRaycastVehicle::getForwardVector | ( | ) | const [inline] |
Worldspace forward vector.
Definition at line 172 of file btRaycastVehicle.h.
int btRaycastVehicle::getNumWheels | ( | ) | const [inline] |
Definition at line 119 of file btRaycastVehicle.h.
int btRaycastVehicle::getRightAxis | ( | ) | const [inline] |
Definition at line 156 of file btRaycastVehicle.h.
btRigidBody* btRaycastVehicle::getRigidBody | ( | ) | [inline] |
Definition at line 146 of file btRaycastVehicle.h.
const btRigidBody* btRaycastVehicle::getRigidBody | ( | ) | const [inline] |
Definition at line 151 of file btRaycastVehicle.h.
btScalar btRaycastVehicle::getSteeringValue | ( | int | wheel | ) | const |
Definition at line 376 of file btRaycastVehicle.cpp.
int btRaycastVehicle::getUpAxis | ( | ) | const [inline] |
Definition at line 160 of file btRaycastVehicle.h.
int btRaycastVehicle::getUserConstraintId | ( | ) | const [inline] |
Definition at line 214 of file btRaycastVehicle.h.
int btRaycastVehicle::getUserConstraintType | ( | ) | const [inline] |
backwards compatibility
Definition at line 199 of file btRaycastVehicle.h.
btWheelInfo & btRaycastVehicle::getWheelInfo | ( | int | index | ) |
Definition at line 397 of file btRaycastVehicle.cpp.
const btWheelInfo & btRaycastVehicle::getWheelInfo | ( | int | index | ) | const |
Definition at line 390 of file btRaycastVehicle.cpp.
const btTransform & btRaycastVehicle::getWheelTransformWS | ( | int | wheelIndex | ) | const |
Definition at line 95 of file btRaycastVehicle.cpp.
btScalar btRaycastVehicle::rayCast | ( | btWheelInfo & | wheel | ) |
Definition at line 167 of file btRaycastVehicle.cpp.
void btRaycastVehicle::resetSuspension | ( | ) |
Definition at line 136 of file btRaycastVehicle.cpp.
void btRaycastVehicle::setBrake | ( | btScalar | brake, | |
int | wheelIndex | |||
) |
Definition at line 404 of file btRaycastVehicle.cpp.
virtual void btRaycastVehicle::setCoordinateSystem | ( | int | rightIndex, | |
int | upIndex, | |||
int | forwardIndex | |||
) | [inline, virtual] |
Definition at line 190 of file btRaycastVehicle.h.
void btRaycastVehicle::setPitchControl | ( | btScalar | pitch | ) | [inline] |
Definition at line 135 of file btRaycastVehicle.h.
void btRaycastVehicle::setSteeringValue | ( | btScalar | steering, | |
int | wheel | |||
) |
Definition at line 366 of file btRaycastVehicle.cpp.
void btRaycastVehicle::setUserConstraintId | ( | int | uid | ) | [inline] |
Definition at line 209 of file btRaycastVehicle.h.
void btRaycastVehicle::setUserConstraintType | ( | int | userConstraintType | ) | [inline] |
Definition at line 204 of file btRaycastVehicle.h.
virtual void btRaycastVehicle::updateAction | ( | btCollisionWorld * | collisionWorld, | |
btScalar | step | |||
) | [inline, virtual] |
btActionInterface interface
Implements btActionInterface.
Definition at line 85 of file btRaycastVehicle.h.
void btRaycastVehicle::updateFriction | ( | btScalar | timeStep | ) | [virtual] |
Definition at line 526 of file btRaycastVehicle.cpp.
void btRaycastVehicle::updateSuspension | ( | btScalar | deltaTime | ) |
Definition at line 411 of file btRaycastVehicle.cpp.
void btRaycastVehicle::updateVehicle | ( | btScalar | step | ) | [virtual] |
Definition at line 268 of file btRaycastVehicle.cpp.
void btRaycastVehicle::updateWheelTransform | ( | int | wheelIndex, | |
bool | interpolatedTransform = true | |||
) |
Definition at line 103 of file btRaycastVehicle.cpp.
void btRaycastVehicle::updateWheelTransformsWS | ( | btWheelInfo & | wheel, | |
bool | interpolatedTransform = true | |||
) |
Definition at line 152 of file btRaycastVehicle.cpp.
Definition at line 29 of file btRaycastVehicle.h.
btRigidBody* btRaycastVehicle::m_chassisBody [private] |
Definition at line 68 of file btRaycastVehicle.h.
Definition at line 66 of file btRaycastVehicle.h.
btScalar btRaycastVehicle::m_damping [private] |
Definition at line 62 of file btRaycastVehicle.h.
Definition at line 30 of file btRaycastVehicle.h.
Definition at line 28 of file btRaycastVehicle.h.
int btRaycastVehicle::m_indexForwardAxis [private] |
Definition at line 72 of file btRaycastVehicle.h.
int btRaycastVehicle::m_indexRightAxis [private] |
Definition at line 70 of file btRaycastVehicle.h.
int btRaycastVehicle::m_indexUpAxis [private] |
Definition at line 71 of file btRaycastVehicle.h.
btScalar btRaycastVehicle::m_pitchControl [private] |
Definition at line 64 of file btRaycastVehicle.h.
Definition at line 31 of file btRaycastVehicle.h.
btScalar btRaycastVehicle::m_steeringValue [private] |
Definition at line 65 of file btRaycastVehicle.h.
btScalar btRaycastVehicle::m_tau [private] |
Definition at line 61 of file btRaycastVehicle.h.
int btRaycastVehicle::m_userConstraintId [private] |
Definition at line 35 of file btRaycastVehicle.h.
int btRaycastVehicle::m_userConstraintType [private] |
backwards compatibility
Definition at line 34 of file btRaycastVehicle.h.
Definition at line 63 of file btRaycastVehicle.h.
Definition at line 123 of file btRaycastVehicle.h.