Blender V2.61 - r43446
Public Member Functions

WrapperVehicle Class Reference

Inheritance diagram for WrapperVehicle:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 WrapperVehicle (btRaycastVehicle *vehicle, PHY_IPhysicsController *chassis)
btRaycastVehicleGetVehicle ()
PHY_IPhysicsControllerGetChassis ()
virtual void AddWheel (PHY_IMotionState *motionState, PHY__Vector3 connectionPoint, PHY__Vector3 downDirection, PHY__Vector3 axleDirection, float suspensionRestLength, float wheelRadius, bool hasSteering)
void SyncWheels ()
virtual int GetNumWheels () const
virtual void GetWheelPosition (int wheelIndex, float &posX, float &posY, float &posZ) const
virtual void GetWheelOrientationQuaternion (int wheelIndex, float &quatX, float &quatY, float &quatZ, float &quatW) const
virtual float GetWheelRotation (int wheelIndex) const
virtual int GetUserConstraintId () const
virtual int GetUserConstraintType () const
virtual void SetSteeringValue (float steering, int wheelIndex)
virtual void ApplyEngineForce (float force, int wheelIndex)
virtual void ApplyBraking (float braking, int wheelIndex)
virtual void SetWheelFriction (float friction, int wheelIndex)
virtual void SetSuspensionStiffness (float suspensionStiffness, int wheelIndex)
virtual void SetSuspensionDamping (float suspensionDamping, int wheelIndex)
virtual void SetSuspensionCompression (float suspensionCompression, int wheelIndex)
virtual void SetRollInfluence (float rollInfluence, int wheelIndex)
virtual void SetCoordinateSystem (int rightIndex, int upIndex, int forwardIndex)

Detailed Description

Definition at line 73 of file CcdPhysicsEnvironment.cpp.


Constructor & Destructor Documentation

WrapperVehicle::WrapperVehicle ( btRaycastVehicle vehicle,
PHY_IPhysicsController chassis 
) [inline]

Definition at line 81 of file CcdPhysicsEnvironment.cpp.


Member Function Documentation

virtual void WrapperVehicle::AddWheel ( PHY_IMotionState motionState,
PHY__Vector3  connectionPoint,
PHY__Vector3  downDirection,
PHY__Vector3  axleDirection,
float  suspensionRestLength,
float  wheelRadius,
bool  hasSteering 
) [inline, virtual]

Implements PHY_IVehicle.

Definition at line 97 of file CcdPhysicsEnvironment.cpp.

References btRaycastVehicle::addWheel(), and btWheelInfo::m_clientInfo.

virtual void WrapperVehicle::ApplyBraking ( float  braking,
int  wheelIndex 
) [inline, virtual]

Implements PHY_IVehicle.

Definition at line 201 of file CcdPhysicsEnvironment.cpp.

References btRaycastVehicle::getWheelInfo(), and btWheelInfo::m_brake.

virtual void WrapperVehicle::ApplyEngineForce ( float  force,
int  wheelIndex 
) [inline, virtual]

Implements PHY_IVehicle.

Definition at line 196 of file CcdPhysicsEnvironment.cpp.

References btRaycastVehicle::applyEngineForce().

PHY_IPhysicsController* WrapperVehicle::GetChassis ( ) [inline]

Definition at line 92 of file CcdPhysicsEnvironment.cpp.

virtual int WrapperVehicle::GetNumWheels ( ) const [inline, virtual]

Implements PHY_IVehicle.

Definition at line 137 of file CcdPhysicsEnvironment.cpp.

References btRaycastVehicle::getNumWheels().

Referenced by SyncWheels().

virtual int WrapperVehicle::GetUserConstraintId ( ) const [inline, virtual]

Implements PHY_IVehicle.

Definition at line 181 of file CcdPhysicsEnvironment.cpp.

References btRaycastVehicle::getUserConstraintId().

virtual int WrapperVehicle::GetUserConstraintType ( ) const [inline, virtual]

Implements PHY_IVehicle.

Definition at line 186 of file CcdPhysicsEnvironment.cpp.

References btRaycastVehicle::getUserConstraintType().

btRaycastVehicle* WrapperVehicle::GetVehicle ( ) [inline]
virtual void WrapperVehicle::GetWheelOrientationQuaternion ( int  wheelIndex,
float &  quatX,
float &  quatY,
float &  quatZ,
float &  quatW 
) const [inline, virtual]
virtual void WrapperVehicle::GetWheelPosition ( int  wheelIndex,
float &  posX,
float &  posY,
float &  posZ 
) const [inline, virtual]
virtual float WrapperVehicle::GetWheelRotation ( int  wheelIndex) const [inline, virtual]
virtual void WrapperVehicle::SetCoordinateSystem ( int  rightIndex,
int  upIndex,
int  forwardIndex 
) [inline, virtual]

Implements PHY_IVehicle.

Definition at line 259 of file CcdPhysicsEnvironment.cpp.

References btRaycastVehicle::setCoordinateSystem().

virtual void WrapperVehicle::SetRollInfluence ( float  rollInfluence,
int  wheelIndex 
) [inline, virtual]
virtual void WrapperVehicle::SetSteeringValue ( float  steering,
int  wheelIndex 
) [inline, virtual]

Implements PHY_IVehicle.

Definition at line 191 of file CcdPhysicsEnvironment.cpp.

References btRaycastVehicle::setSteeringValue().

virtual void WrapperVehicle::SetSuspensionCompression ( float  suspensionCompression,
int  wheelIndex 
) [inline, virtual]
virtual void WrapperVehicle::SetSuspensionDamping ( float  suspensionDamping,
int  wheelIndex 
) [inline, virtual]
virtual void WrapperVehicle::SetSuspensionStiffness ( float  suspensionStiffness,
int  wheelIndex 
) [inline, virtual]
virtual void WrapperVehicle::SetWheelFriction ( float  friction,
int  wheelIndex 
) [inline, virtual]
void WrapperVehicle::SyncWheels ( ) [inline]

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