#include <TestCar.h>
Inheritance diagram for random_racer::TestCar:

Definition at line 26 of file TestCar.h.
| random_racer::TestCar::TestCar | ( | VRS::SO< VRS::SceneThing > | ) |
Definition at line 22 of file TestCar.cpp.
References 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.
| random_racer::TestCar::~TestCar | ( | ) |
Definition at line 307 of file TestCar.cpp.
| void random_racer::TestCar::enableAllBodies | ( | ) | [private] |
Definition at line 393 of file TestCar.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(), nitro(), and steer().
Here is the caller graph for this function:

| void random_racer::TestCar::accelerate | ( | double | ) | [virtual] |
accelerate the car.
0 for no acceleration. 1 for maximum acceleration.
Implements random_racer::Car.
Definition at line 313 of file TestCar.cpp.
References enableAllBodies(), m_axisRL, m_axisRR, m_carMaxSpeed, and m_carPower.
Here is the call graph for this function:

| void random_racer::TestCar::steer | ( | double | ) | [virtual] |
steering.
| p_amount | the amount of steering. (-1 for full left, 1 for full right) |
Implements random_racer::Car.
Definition at line 334 of file TestCar.cpp.
References enableAllBodies(), m_steerControlFL, and m_steerControlFR.
Here is the call graph for this function:

| void random_racer::TestCar::handBreak | ( | double | ) | [virtual] |
break.
| p_amount | the break strength. (from 0 to 1) |
Implements random_racer::Car.
Definition at line 353 of file TestCar.cpp.
References enableAllBodies(), m_axisFL, m_axisFR, m_axisRL, and m_axisRR.
Here is the call graph for this function:

| void random_racer::TestCar::nitro | ( | double | ) | [virtual] |
activate nitro.
acceleration boost.
Implements random_racer::Car.
Definition at line 344 of file TestCar.cpp.
References enableAllBodies(), and m_chassis.
Here is the call graph for this function:

| VRS::SO< VRS::SceneThing > random_racer::TestCar::sceneThing | ( | ) |
| void random_racer::TestCar::attachCamera | ( | VRS::SO< VRS::Camera > | ) |
Definition at line 387 of file TestCar.cpp.
| void random_racer::TestCar::setPosition | ( | VRS::Vector | ) | [virtual] |
set the position of the car.
may influence the simulation badly, so be careful.
Implements random_racer::Car.
Definition at line 412 of file TestCar.cpp.
References 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 caller graph for this function:

| void random_racer::TestCar::setPosition | ( | double | , | |
| double | , | |||
| double | ||||
| ) | [virtual] |
set the position of the car.
may influence the simulation badly, so be careful.
Implements random_racer::Car.
Definition at line 457 of file TestCar.cpp.
References setPosition().
Here is the call graph for this function:

| VRS::Vector random_racer::TestCar::position | ( | ) | [virtual] |
returns the position of the car.
Implements random_racer::Car.
Definition at line 463 of file TestCar.cpp.
References m_chassis.
| VRS::SO<vrsode::CollisionBody> random_racer::TestCar::cameraHook | ( | ) | [inline, virtual] |
Returns a CollisionBody SO to which the car wants the 3rd person camera get attached to.
Implements random_racer::Car.
Definition at line 133 of file TestCar.h.
References m_chassis.
| VRS::SO<vrsode::CollisionBody> random_racer::TestCar::chassis | ( | ) | [inline, virtual] |
return the cars chassis for e.g.
car_reset command
Implements random_racer::Car.
Definition at line 138 of file TestCar.h.
References m_chassis.
bool random_racer::TestCar::m_debugNodes [private] |
double random_racer::TestCar::m_springLengthFront [private] |
double random_racer::TestCar::m_springLengthRear [private] |
double random_racer::TestCar::m_springPowerFront [private] |
double random_racer::TestCar::m_springPowerRear [private] |
double random_racer::TestCar::m_springSpeedFront [private] |
double random_racer::TestCar::m_springSpeedRear [private] |
double random_racer::TestCar::m_wheelSizeFront [private] |
double random_racer::TestCar::m_wheelSizeRear [private] |
double random_racer::TestCar::m_wheelMass [private] |
double random_racer::TestCar::m_bodyMass [private] |
double random_racer::TestCar::m_wheelMu [private] |
double random_racer::TestCar::m_carMaxSpeed [private] |
double random_racer::TestCar::m_carPower [private] |
VRS::Vector random_racer::TestCar::m_wheelOffsetFL [private] |
VRS::Vector random_racer::TestCar::m_wheelOffsetFR [private] |
VRS::Vector random_racer::TestCar::m_wheelOffsetRL [private] |
VRS::Vector random_racer::TestCar::m_wheelOffsetRR [private] |
VRS::Vector random_racer::TestCar::m_chassisOffset [private] |
VRS::Vector random_racer::TestCar::m_suspensionOffsetFL [private] |
VRS::Vector random_racer::TestCar::m_suspensionOffsetFR [private] |
VRS::Vector random_racer::TestCar::m_suspensionOffsetRL [private] |
VRS::Vector random_racer::TestCar::m_suspensionOffsetRR [private] |
VRS::Vector random_racer::TestCar::m_steerOffsetFL [private] |
VRS::Vector random_racer::TestCar::m_steerOffsetFR [private] |
VRS::SO<VRS::SceneThing> random_racer::TestCar::m_rootNode [private] |
VRS::SO<vrsode::CollisionSpace> random_racer::TestCar::m_space [private] |
VRS::SO<vrsode::PhysicsBody> random_racer::TestCar::m_chassis [private] |
Definition at line 62 of file TestCar.h.
Referenced by cameraHook(), chassis(), enableAllBodies(), nitro(), position(), sceneThing(), setPosition(), and TestCar().
VRS::SO<vrsode::PhysicsBody> random_racer::TestCar::m_wheelFL [private] |
Definition at line 64 of file TestCar.h.
Referenced by enableAllBodies(), setPosition(), and TestCar().
VRS::SO<vrsode::PhysicsBody> random_racer::TestCar::m_wheelFR [private] |
Definition at line 65 of file TestCar.h.
Referenced by enableAllBodies(), setPosition(), and TestCar().
VRS::SO<vrsode::PhysicsBody> random_racer::TestCar::m_wheelRL [private] |
Definition at line 66 of file TestCar.h.
Referenced by enableAllBodies(), setPosition(), and TestCar().
VRS::SO<vrsode::PhysicsBody> random_racer::TestCar::m_wheelRR [private] |
Definition at line 67 of file TestCar.h.
Referenced by enableAllBodies(), setPosition(), and TestCar().
VRS::SO<vrsode::PhysicsBody> random_racer::TestCar::m_suspensionFL [private] |
Definition at line 69 of file TestCar.h.
Referenced by enableAllBodies(), setPosition(), and TestCar().
VRS::SO<vrsode::PhysicsBody> random_racer::TestCar::m_suspensionFR [private] |
Definition at line 70 of file TestCar.h.
Referenced by enableAllBodies(), setPosition(), and TestCar().
VRS::SO<vrsode::PhysicsBody> random_racer::TestCar::m_suspensionRL [private] |
Definition at line 71 of file TestCar.h.
Referenced by enableAllBodies(), setPosition(), and TestCar().
VRS::SO<vrsode::PhysicsBody> random_racer::TestCar::m_suspensionRR [private] |
Definition at line 72 of file TestCar.h.
Referenced by enableAllBodies(), setPosition(), and TestCar().
VRS::SO<vrsode::PhysicsBody> random_racer::TestCar::m_steerFL [private] |
Definition at line 74 of file TestCar.h.
Referenced by enableAllBodies(), setPosition(), and TestCar().
VRS::SO<vrsode::PhysicsBody> random_racer::TestCar::m_steerFR [private] |
Definition at line 75 of file TestCar.h.
Referenced by enableAllBodies(), setPosition(), and TestCar().
VRS::SO<vrsode::PhysicsJointHinge> random_racer::TestCar::m_axisFL [private] |
VRS::SO<vrsode::PhysicsJointHinge> random_racer::TestCar::m_axisFR [private] |
VRS::SO<vrsode::PhysicsJointHinge> random_racer::TestCar::m_axisRL [private] |
VRS::SO<vrsode::PhysicsJointHinge> random_racer::TestCar::m_axisRR [private] |
VRS::SO<vrsode::PhysicsJointHinge> random_racer::TestCar::m_steerControlFL [private] |
VRS::SO<vrsode::PhysicsJointHinge> random_racer::TestCar::m_steerControlFR [private] |
VRS::SO<vrsode::PhysicsJointSlider> random_racer::TestCar::m_springFL [private] |
VRS::SO<vrsode::PhysicsJointSlider> random_racer::TestCar::m_springFR [private] |
VRS::SO<vrsode::PhysicsJointSlider> random_racer::TestCar::m_springRL [private] |
VRS::SO<vrsode::PhysicsJointSlider> random_racer::TestCar::m_springRR [private] |
1.5.1