vrsode::CarSimple Class Reference

#include <CarSimple.h>

Inheritance diagram for vrsode::CarSimple:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CarSimple (VRS::SO< VRS::SceneThing >)
 ~CarSimple ()
void accelerate (double)
 accelerate the car.
void steerLeft (double)
void steerRight (double)
void handBreak (bool)
void nos (double)
VRS::SO< VRS::SceneThing > sceneThing ()
void attachCamera (VRS::SO< VRS::Camera >)
void setPosition (VRS::Vector)
 set the position of the car.
void setPosition (double, double, double)
 set the position of the car.
VRS::Vector position ()
 returns the position of the car.
VRS::SO< CollisionBodycameraHook ()
 Returns a CollisionBody SO to which the car wants the 3rd person camera get attached to.

Private Member Functions

void enableAllBodies ()

Private Attributes

bool m_debugNodes
double m_springLengthFront
double m_springLengthRear
double m_springPowerFront
double m_springPowerRear
double m_springSpeedFront
double m_springSpeedRear
double m_wheelSizeFront
double m_wheelSizeRear
double m_wheelMass
double m_bodyMass
double m_wheelMu
double m_carMaxSpeed
double m_carPower
VRS::Vector m_wheelOffsetFL
VRS::Vector m_wheelOffsetFR
VRS::Vector m_wheelOffsetRL
VRS::Vector m_wheelOffsetRR
VRS::Vector m_chassisOffset
VRS::Vector m_suspensionOffsetFL
VRS::Vector m_suspensionOffsetFR
VRS::Vector m_suspensionOffsetRL
VRS::Vector m_suspensionOffsetRR
VRS::Vector m_steerOffsetFL
VRS::Vector m_steerOffsetFR
VRS::SO< VRS::SceneThing > m_rootNode
VRS::SO< CollisionSpacem_space
VRS::SO< PhysicsBodym_chassis
VRS::SO< PhysicsBodym_wheelFL
VRS::SO< PhysicsBodym_wheelFR
VRS::SO< PhysicsBodym_wheelRL
VRS::SO< PhysicsBodym_wheelRR
VRS::SO< PhysicsBodym_suspensionFL
VRS::SO< PhysicsBodym_suspensionFR
VRS::SO< PhysicsBodym_suspensionRL
VRS::SO< PhysicsBodym_suspensionRR
VRS::SO< PhysicsBodym_steerFL
VRS::SO< PhysicsBodym_steerFR
VRS::SO< PhysicsJointHingem_axisFL
VRS::SO< PhysicsJointHingem_axisFR
VRS::SO< PhysicsJointHingem_axisRL
VRS::SO< PhysicsJointHingem_axisRR
VRS::SO< PhysicsJointHingem_steerControlFL
VRS::SO< PhysicsJointHingem_steerControlFR
VRS::SO< PhysicsJointSliderm_springFL
VRS::SO< PhysicsJointSliderm_springFR
VRS::SO< PhysicsJointSliderm_springRL
VRS::SO< PhysicsJointSliderm_springRR

Detailed Description

Definition at line 25 of file CarSimple.h.


Constructor & Destructor Documentation

vrsode::CarSimple::CarSimple ( VRS::SO< VRS::SceneThing >   ) 

Definition at line 18 of file CarSimple.cpp.

References vrsode::CS_Box, vrsode::CS_None, m_axisFL, m_axisFR, m_axisRL, m_axisRR, m_bodyMass, m_carMaxSpeed, m_carPower, m_chassis, m_chassisOffset, m_debugNodes, m_rootNode, m_springFL, m_springFR, m_springLengthFront, m_springLengthRear, m_springPowerFront, m_springPowerRear, m_springRL, m_springRR, m_springSpeedFront, m_springSpeedRear, m_steerControlFL, m_steerControlFR, m_steerFL, m_steerFR, m_steerOffsetFL, m_steerOffsetFR, m_suspensionFL, m_suspensionFR, m_suspensionOffsetFL, m_suspensionOffsetFR, m_suspensionOffsetRL, m_suspensionOffsetRR, m_suspensionRL, m_suspensionRR, m_wheelFL, m_wheelFR, m_wheelMass, m_wheelMu, m_wheelOffsetFL, m_wheelOffsetFR, m_wheelOffsetRL, m_wheelOffsetRR, m_wheelRL, m_wheelRR, m_wheelSizeFront, and m_wheelSizeRear.

vrsode::CarSimple::~CarSimple (  ) 

Definition at line 280 of file CarSimple.cpp.


Member Function Documentation

void vrsode::CarSimple::enableAllBodies (  )  [private]

Definition at line 376 of file CarSimple.cpp.

References m_chassis, m_steerFL, m_steerFR, m_suspensionFL, m_suspensionFR, m_suspensionRL, m_suspensionRR, m_wheelFL, m_wheelFR, m_wheelRL, and m_wheelRR.

Referenced by accelerate(), handBreak(), nos(), setPosition(), steerLeft(), and steerRight().

Here is the caller graph for this function:

void vrsode::CarSimple::accelerate ( double   ) 

accelerate the car.

0 for no acceleration. 1 for maximum acceleration.

Definition at line 286 of file CarSimple.cpp.

References enableAllBodies(), m_axisRL, m_axisRR, m_carMaxSpeed, and m_carPower.

Here is the call graph for this function:

void vrsode::CarSimple::steerLeft ( double   ) 

Definition at line 307 of file CarSimple.cpp.

References enableAllBodies(), m_steerControlFL, and m_steerControlFR.

Here is the call graph for this function:

void vrsode::CarSimple::steerRight ( double   ) 

Definition at line 317 of file CarSimple.cpp.

References enableAllBodies(), m_steerControlFL, and m_steerControlFR.

Here is the call graph for this function:

void vrsode::CarSimple::handBreak ( bool   ) 

Definition at line 336 of file CarSimple.cpp.

References enableAllBodies(), m_axisFL, m_axisFR, m_axisRL, and m_axisRR.

Here is the call graph for this function:

void vrsode::CarSimple::nos ( double   ) 

Definition at line 327 of file CarSimple.cpp.

References enableAllBodies(), and m_chassis.

Here is the call graph for this function:

VRS::SO< VRS::SceneThing > vrsode::CarSimple::sceneThing (  ) 

Definition at line 364 of file CarSimple.cpp.

References m_chassis.

void vrsode::CarSimple::attachCamera ( VRS::SO< VRS::Camera >   ) 

Definition at line 370 of file CarSimple.cpp.

void vrsode::CarSimple::setPosition ( VRS::Vector   ) 

set the position of the car.

may influence the simulation badly, so be careful.

Definition at line 395 of file CarSimple.cpp.

References enableAllBodies(), m_chassis, m_chassisOffset, m_steerFL, m_steerFR, m_steerOffsetFL, m_steerOffsetFR, m_suspensionFL, m_suspensionFR, m_suspensionOffsetFL, m_suspensionOffsetFR, m_suspensionOffsetRL, m_suspensionOffsetRR, m_suspensionRL, m_suspensionRR, m_wheelFL, m_wheelFR, m_wheelOffsetFL, m_wheelOffsetFR, m_wheelOffsetRL, m_wheelOffsetRR, m_wheelRL, and m_wheelRR.

Referenced by setPosition().

Here is the call graph for this function:

Here is the caller graph for this function:

void vrsode::CarSimple::setPosition ( double  ,
double  ,
double   
)

set the position of the car.

may influence the simulation badly, so be careful.

Definition at line 442 of file CarSimple.cpp.

References setPosition().

Here is the call graph for this function:

VRS::Vector vrsode::CarSimple::position (  ) 

returns the position of the car.

Definition at line 448 of file CarSimple.cpp.

References m_chassis.

VRS::SO<CollisionBody> vrsode::CarSimple::cameraHook (  )  [inline]

Returns a CollisionBody SO to which the car wants the 3rd person camera get attached to.

Definition at line 133 of file CarSimple.h.

References m_chassis.


Member Data Documentation

bool vrsode::CarSimple::m_debugNodes [private]

Definition at line 27 of file CarSimple.h.

Referenced by CarSimple().

double vrsode::CarSimple::m_springLengthFront [private]

Definition at line 29 of file CarSimple.h.

Referenced by CarSimple().

double vrsode::CarSimple::m_springLengthRear [private]

Definition at line 30 of file CarSimple.h.

Referenced by CarSimple().

double vrsode::CarSimple::m_springPowerFront [private]

Definition at line 31 of file CarSimple.h.

Referenced by CarSimple().

double vrsode::CarSimple::m_springPowerRear [private]

Definition at line 32 of file CarSimple.h.

Referenced by CarSimple().

double vrsode::CarSimple::m_springSpeedFront [private]

Definition at line 33 of file CarSimple.h.

Referenced by CarSimple().

double vrsode::CarSimple::m_springSpeedRear [private]

Definition at line 34 of file CarSimple.h.

Referenced by CarSimple().

double vrsode::CarSimple::m_wheelSizeFront [private]

Definition at line 36 of file CarSimple.h.

Referenced by CarSimple().

double vrsode::CarSimple::m_wheelSizeRear [private]

Definition at line 37 of file CarSimple.h.

Referenced by CarSimple().

double vrsode::CarSimple::m_wheelMass [private]

Definition at line 39 of file CarSimple.h.

Referenced by CarSimple().

double vrsode::CarSimple::m_bodyMass [private]

Definition at line 40 of file CarSimple.h.

Referenced by CarSimple().

double vrsode::CarSimple::m_wheelMu [private]

Definition at line 42 of file CarSimple.h.

Referenced by CarSimple().

double vrsode::CarSimple::m_carMaxSpeed [private]

Definition at line 44 of file CarSimple.h.

Referenced by accelerate(), and CarSimple().

double vrsode::CarSimple::m_carPower [private]

Definition at line 45 of file CarSimple.h.

Referenced by accelerate(), and CarSimple().

VRS::Vector vrsode::CarSimple::m_wheelOffsetFL [private]

Definition at line 47 of file CarSimple.h.

Referenced by CarSimple(), and setPosition().

VRS::Vector vrsode::CarSimple::m_wheelOffsetFR [private]

Definition at line 48 of file CarSimple.h.

Referenced by CarSimple(), and setPosition().

VRS::Vector vrsode::CarSimple::m_wheelOffsetRL [private]

Definition at line 49 of file CarSimple.h.

Referenced by CarSimple(), and setPosition().

VRS::Vector vrsode::CarSimple::m_wheelOffsetRR [private]

Definition at line 50 of file CarSimple.h.

Referenced by CarSimple(), and setPosition().

VRS::Vector vrsode::CarSimple::m_chassisOffset [private]

Definition at line 51 of file CarSimple.h.

Referenced by CarSimple(), and setPosition().

VRS::Vector vrsode::CarSimple::m_suspensionOffsetFL [private]

Definition at line 52 of file CarSimple.h.

Referenced by CarSimple(), and setPosition().

VRS::Vector vrsode::CarSimple::m_suspensionOffsetFR [private]

Definition at line 53 of file CarSimple.h.

Referenced by CarSimple(), and setPosition().

VRS::Vector vrsode::CarSimple::m_suspensionOffsetRL [private]

Definition at line 54 of file CarSimple.h.

Referenced by CarSimple(), and setPosition().

VRS::Vector vrsode::CarSimple::m_suspensionOffsetRR [private]

Definition at line 55 of file CarSimple.h.

Referenced by CarSimple(), and setPosition().

VRS::Vector vrsode::CarSimple::m_steerOffsetFL [private]

Definition at line 56 of file CarSimple.h.

Referenced by CarSimple(), and setPosition().

VRS::Vector vrsode::CarSimple::m_steerOffsetFR [private]

Definition at line 57 of file CarSimple.h.

Referenced by CarSimple(), and setPosition().

VRS::SO<VRS::SceneThing> vrsode::CarSimple::m_rootNode [private]

Definition at line 59 of file CarSimple.h.

Referenced by CarSimple().

VRS::SO<CollisionSpace> vrsode::CarSimple::m_space [private]

Definition at line 60 of file CarSimple.h.

VRS::SO<PhysicsBody> vrsode::CarSimple::m_chassis [private]

Definition at line 61 of file CarSimple.h.

Referenced by cameraHook(), CarSimple(), enableAllBodies(), nos(), position(), sceneThing(), and setPosition().

VRS::SO<PhysicsBody> vrsode::CarSimple::m_wheelFL [private]

Definition at line 63 of file CarSimple.h.

Referenced by CarSimple(), enableAllBodies(), and setPosition().

VRS::SO<PhysicsBody> vrsode::CarSimple::m_wheelFR [private]

Definition at line 64 of file CarSimple.h.

Referenced by CarSimple(), enableAllBodies(), and setPosition().

VRS::SO<PhysicsBody> vrsode::CarSimple::m_wheelRL [private]

Definition at line 65 of file CarSimple.h.

Referenced by CarSimple(), enableAllBodies(), and setPosition().

VRS::SO<PhysicsBody> vrsode::CarSimple::m_wheelRR [private]

Definition at line 66 of file CarSimple.h.

Referenced by CarSimple(), enableAllBodies(), and setPosition().

VRS::SO<PhysicsBody> vrsode::CarSimple::m_suspensionFL [private]

Definition at line 68 of file CarSimple.h.

Referenced by CarSimple(), enableAllBodies(), and setPosition().

VRS::SO<PhysicsBody> vrsode::CarSimple::m_suspensionFR [private]

Definition at line 69 of file CarSimple.h.

Referenced by CarSimple(), enableAllBodies(), and setPosition().

VRS::SO<PhysicsBody> vrsode::CarSimple::m_suspensionRL [private]

Definition at line 70 of file CarSimple.h.

Referenced by CarSimple(), enableAllBodies(), and setPosition().

VRS::SO<PhysicsBody> vrsode::CarSimple::m_suspensionRR [private]

Definition at line 71 of file CarSimple.h.

Referenced by CarSimple(), enableAllBodies(), and setPosition().

VRS::SO<PhysicsBody> vrsode::CarSimple::m_steerFL [private]

Definition at line 73 of file CarSimple.h.

Referenced by CarSimple(), enableAllBodies(), and setPosition().

VRS::SO<PhysicsBody> vrsode::CarSimple::m_steerFR [private]

Definition at line 74 of file CarSimple.h.

Referenced by CarSimple(), enableAllBodies(), and setPosition().

VRS::SO<PhysicsJointHinge> vrsode::CarSimple::m_axisFL [private]

Definition at line 76 of file CarSimple.h.

Referenced by CarSimple(), and handBreak().

VRS::SO<PhysicsJointHinge> vrsode::CarSimple::m_axisFR [private]

Definition at line 77 of file CarSimple.h.

Referenced by CarSimple(), and handBreak().

VRS::SO<PhysicsJointHinge> vrsode::CarSimple::m_axisRL [private]

Definition at line 78 of file CarSimple.h.

Referenced by accelerate(), CarSimple(), and handBreak().

VRS::SO<PhysicsJointHinge> vrsode::CarSimple::m_axisRR [private]

Definition at line 79 of file CarSimple.h.

Referenced by accelerate(), CarSimple(), and handBreak().

VRS::SO<PhysicsJointHinge> vrsode::CarSimple::m_steerControlFL [private]

Definition at line 81 of file CarSimple.h.

Referenced by CarSimple(), steerLeft(), and steerRight().

VRS::SO<PhysicsJointHinge> vrsode::CarSimple::m_steerControlFR [private]

Definition at line 82 of file CarSimple.h.

Referenced by CarSimple(), steerLeft(), and steerRight().

VRS::SO<PhysicsJointSlider> vrsode::CarSimple::m_springFL [private]

Definition at line 84 of file CarSimple.h.

Referenced by CarSimple().

VRS::SO<PhysicsJointSlider> vrsode::CarSimple::m_springFR [private]

Definition at line 85 of file CarSimple.h.

Referenced by CarSimple().

VRS::SO<PhysicsJointSlider> vrsode::CarSimple::m_springRL [private]

Definition at line 86 of file CarSimple.h.

Referenced by CarSimple().

VRS::SO<PhysicsJointSlider> vrsode::CarSimple::m_springRR [private]

Definition at line 87 of file CarSimple.h.

Referenced by CarSimple().


The documentation for this class was generated from the following files:
Generated on Fri May 11 21:02:16 2007 for Random Racer by  doxygen 1.5.1