Blender V2.61 - r43446
Classes | Public Member Functions | Public Attributes

btRaycastVehicle Class Reference

rayCast vehicle, very special constraint that turn a rigidbody into a vehicle. More...

#include <btRaycastVehicle.h>

Inheritance diagram for btRaycastVehicle:
Inheritance graph
[legend]

List of all members.

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
void debugDraw (btIDebugDraw *debugDrawer)
 btActionInterface interface
const btTransformgetChassisWorldTransform () 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 btTransformgetWheelTransformWS (int wheelIndex) const
void updateWheelTransform (int wheelIndex, bool interpolatedTransform=true)
btWheelInfoaddWheel (const btVector3 &connectionPointCS0, const btVector3 &wheelDirectionCS0, const btVector3 &wheelAxleCS, btScalar suspensionRestLength, btScalar wheelRadius, const btVehicleTuning &tuning, bool isFrontWheel)
int getNumWheels () const
const btWheelInfogetWheelInfo (int index) const
btWheelInfogetWheelInfo (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)
btRigidBodygetRigidBody ()
const btRigidBodygetRigidBody () const
int getRightAxis () const
int getUpAxis () const
int getForwardAxis () const
btVector3 getForwardVector () const
 Worldspace forward vector.
btScalar getCurrentSpeedKmHour () const
 Velocity of vehicle (positive if velocity vector has same direction as foward vector)
virtual void setCoordinateSystem (int rightIndex, int upIndex, int forwardIndex)
int getUserConstraintType () const
 backwards compatibility
void setUserConstraintType (int userConstraintType)
void setUserConstraintId (int uid)
int getUserConstraintId () const

Public Attributes

btAlignedObjectArray< btWheelInfom_wheelInfo

Detailed Description

rayCast vehicle, very special constraint that turn a rigidbody into a vehicle.

Definition at line 25 of file btRaycastVehicle.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

btWheelInfo & btRaycastVehicle::addWheel ( const btVector3 &  connectionPointCS0,
const btVector3 &  wheelDirectionCS0,
const btVector3 &  wheelAxleCS,
btScalar  suspensionRestLength,
btScalar  wheelRadius,
const btVehicleTuning tuning,
bool  isFrontWheel 
)
void btRaycastVehicle::applyEngineForce ( btScalar  force,
int  wheel 
)
void btRaycastVehicle::debugDraw ( btIDebugDraw debugDrawer) [virtual]
const btTransform & btRaycastVehicle::getChassisWorldTransform ( ) const
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.

References btTransform::getBasis(), and getChassisWorldTransform().

int btRaycastVehicle::getNumWheels ( ) const [inline]
int btRaycastVehicle::getRightAxis ( ) const [inline]

Definition at line 156 of file btRaycastVehicle.h.

Referenced by debugDraw().

btRigidBody* btRaycastVehicle::getRigidBody ( ) [inline]
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.

References getWheelInfo(), and btWheelInfo::m_steering.

int btRaycastVehicle::getUpAxis ( ) const [inline]

Definition at line 160 of file btRaycastVehicle.h.

int btRaycastVehicle::getUserConstraintId ( ) const [inline]
int btRaycastVehicle::getUserConstraintType ( ) const [inline]

backwards compatibility

Definition at line 199 of file btRaycastVehicle.h.

Referenced by WrapperVehicle::GetUserConstraintType().

const btWheelInfo & btRaycastVehicle::getWheelInfo ( int  index) const
btWheelInfo & btRaycastVehicle::getWheelInfo ( int  index)

Definition at line 397 of file btRaycastVehicle.cpp.

References btAssert, getNumWheels(), and m_wheelInfo.

const btTransform & btRaycastVehicle::getWheelTransformWS ( int  wheelIndex) const
btScalar btRaycastVehicle::rayCast ( btWheelInfo wheel)
void btRaycastVehicle::resetSuspension ( )
void btRaycastVehicle::setBrake ( btScalar  brake,
int  wheelIndex 
)

Definition at line 404 of file btRaycastVehicle.cpp.

References btAssert, getNumWheels(), getWheelInfo(), and btWheelInfo::m_brake.

virtual void btRaycastVehicle::setCoordinateSystem ( int  rightIndex,
int  upIndex,
int  forwardIndex 
) [inline, virtual]

Definition at line 190 of file btRaycastVehicle.h.

Referenced by WrapperVehicle::SetCoordinateSystem().

void btRaycastVehicle::setPitchControl ( btScalar  pitch) [inline]

Definition at line 135 of file btRaycastVehicle.h.

void btRaycastVehicle::setSteeringValue ( btScalar  steering,
int  wheel 
)
void btRaycastVehicle::setUserConstraintId ( int  uid) [inline]

Definition at line 209 of file btRaycastVehicle.h.

Referenced by CcdPhysicsEnvironment::createConstraint().

void btRaycastVehicle::setUserConstraintType ( int  userConstraintType) [inline]

Definition at line 204 of file btRaycastVehicle.h.

Referenced by CcdPhysicsEnvironment::createConstraint().

virtual void btRaycastVehicle::updateAction ( btCollisionWorld collisionWorld,
btScalar  step 
) [inline, virtual]

btActionInterface interface

Implements btActionInterface.

Definition at line 85 of file btRaycastVehicle.h.

References updateVehicle().

void btRaycastVehicle::updateFriction ( btScalar  timeStep) [virtual]
void btRaycastVehicle::updateSuspension ( btScalar  deltaTime)
void btRaycastVehicle::updateVehicle ( btScalar  step) [virtual]
void btRaycastVehicle::updateWheelTransform ( int  wheelIndex,
bool  interpolatedTransform = true 
)
void btRaycastVehicle::updateWheelTransformsWS ( btWheelInfo wheel,
bool  interpolatedTransform = true 
)

Member Data Documentation


The documentation for this class was generated from the following files: