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

Definition at line 26 of file BuggyFunCar.h.
| random_racer::BuggyFunCar::BuggyFunCar | ( | VRS::SO< VRS::SceneThing > | ) |
Definition at line 23 of file BuggyFunCar.cpp.
References vrsode::CS_None, enableAllBodies(), random_racer::ResourceManager::get(), m_axisFL, m_axisFR, m_axisRL, m_axisRR, m_bodyMass, m_carMaxSpeed, m_carPower, m_chassis, m_chassisOffset, m_debugNodes, m_hook, m_hookJoint, 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.
Here is the call graph for this function:

| random_racer::BuggyFunCar::~BuggyFunCar | ( | ) |
Definition at line 460 of file BuggyFunCar.cpp.
| void random_racer::BuggyFunCar::enableAllBodies | ( | ) | [private] |
Definition at line 546 of file BuggyFunCar.cpp.
References m_chassis, m_hook, m_steerFL, m_steerFR, m_suspensionFL, m_suspensionFR, m_suspensionRL, m_suspensionRR, m_wheelFL, m_wheelFR, m_wheelRL, and m_wheelRR.
Referenced by accelerate(), BuggyFunCar(), handBreak(), nitro(), and steer().
Here is the caller graph for this function:

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

| void random_racer::BuggyFunCar::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 487 of file BuggyFunCar.cpp.
References enableAllBodies(), m_steerControlFL, and m_steerControlFR.
Here is the call graph for this function:

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

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

| VRS::SO< VRS::SceneThing > random_racer::BuggyFunCar::sceneThing | ( | ) |
| void random_racer::BuggyFunCar::attachCamera | ( | VRS::SO< VRS::Camera > | ) |
Definition at line 540 of file BuggyFunCar.cpp.
| void random_racer::BuggyFunCar::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 567 of file BuggyFunCar.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::BuggyFunCar::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 612 of file BuggyFunCar.cpp.
References setPosition().
Here is the call graph for this function:

| VRS::Vector random_racer::BuggyFunCar::position | ( | ) | [virtual] |
returns the position of the car.
Implements random_racer::Car.
Definition at line 618 of file BuggyFunCar.cpp.
References m_chassis.
| VRS::SO<vrsode::CollisionBody> random_racer::BuggyFunCar::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 136 of file BuggyFunCar.h.
References m_hook.
| VRS::SO<vrsode::CollisionBody> random_racer::BuggyFunCar::chassis | ( | ) | [inline, virtual] |
return the cars chassis for e.g.
car_reset command
Implements random_racer::Car.
Definition at line 141 of file BuggyFunCar.h.
References m_chassis.
bool random_racer::BuggyFunCar::m_debugNodes [private] |
double random_racer::BuggyFunCar::m_springLengthFront [private] |
double random_racer::BuggyFunCar::m_springLengthRear [private] |
double random_racer::BuggyFunCar::m_springPowerFront [private] |
double random_racer::BuggyFunCar::m_springPowerRear [private] |
double random_racer::BuggyFunCar::m_springSpeedFront [private] |
double random_racer::BuggyFunCar::m_springSpeedRear [private] |
double random_racer::BuggyFunCar::m_wheelSizeFront [private] |
double random_racer::BuggyFunCar::m_wheelSizeRear [private] |
double random_racer::BuggyFunCar::m_wheelMass [private] |
double random_racer::BuggyFunCar::m_bodyMass [private] |
double random_racer::BuggyFunCar::m_wheelMu [private] |
double random_racer::BuggyFunCar::m_carMaxSpeed [private] |
double random_racer::BuggyFunCar::m_carPower [private] |
VRS::Vector random_racer::BuggyFunCar::m_wheelOffsetFL [private] |
VRS::Vector random_racer::BuggyFunCar::m_wheelOffsetFR [private] |
VRS::Vector random_racer::BuggyFunCar::m_wheelOffsetRL [private] |
VRS::Vector random_racer::BuggyFunCar::m_wheelOffsetRR [private] |
VRS::Vector random_racer::BuggyFunCar::m_chassisOffset [private] |
VRS::Vector random_racer::BuggyFunCar::m_suspensionOffsetFL [private] |
VRS::Vector random_racer::BuggyFunCar::m_suspensionOffsetFR [private] |
VRS::Vector random_racer::BuggyFunCar::m_suspensionOffsetRL [private] |
VRS::Vector random_racer::BuggyFunCar::m_suspensionOffsetRR [private] |
VRS::Vector random_racer::BuggyFunCar::m_steerOffsetFL [private] |
VRS::Vector random_racer::BuggyFunCar::m_steerOffsetFR [private] |
VRS::SO<VRS::SceneThing> random_racer::BuggyFunCar::m_rootNode [private] |
VRS::SO<vrsode::CollisionSpace> random_racer::BuggyFunCar::m_space [private] |
Definition at line 61 of file BuggyFunCar.h.
VRS::SO<vrsode::PhysicsBody> random_racer::BuggyFunCar::m_chassis [private] |
Definition at line 62 of file BuggyFunCar.h.
Referenced by BuggyFunCar(), chassis(), enableAllBodies(), nitro(), position(), sceneThing(), and setPosition().
VRS::SO<vrsode::PhysicsBody> random_racer::BuggyFunCar::m_wheelFL [private] |
Definition at line 64 of file BuggyFunCar.h.
Referenced by BuggyFunCar(), enableAllBodies(), and setPosition().
VRS::SO<vrsode::PhysicsBody> random_racer::BuggyFunCar::m_wheelFR [private] |
Definition at line 65 of file BuggyFunCar.h.
Referenced by BuggyFunCar(), enableAllBodies(), and setPosition().
VRS::SO<vrsode::PhysicsBody> random_racer::BuggyFunCar::m_wheelRL [private] |
Definition at line 66 of file BuggyFunCar.h.
Referenced by BuggyFunCar(), enableAllBodies(), and setPosition().
VRS::SO<vrsode::PhysicsBody> random_racer::BuggyFunCar::m_wheelRR [private] |
Definition at line 67 of file BuggyFunCar.h.
Referenced by BuggyFunCar(), enableAllBodies(), and setPosition().
VRS::SO<vrsode::PhysicsBody> random_racer::BuggyFunCar::m_suspensionFL [private] |
Definition at line 69 of file BuggyFunCar.h.
Referenced by BuggyFunCar(), enableAllBodies(), and setPosition().
VRS::SO<vrsode::PhysicsBody> random_racer::BuggyFunCar::m_suspensionFR [private] |
Definition at line 70 of file BuggyFunCar.h.
Referenced by BuggyFunCar(), enableAllBodies(), and setPosition().
VRS::SO<vrsode::PhysicsBody> random_racer::BuggyFunCar::m_suspensionRL [private] |
Definition at line 71 of file BuggyFunCar.h.
Referenced by BuggyFunCar(), enableAllBodies(), and setPosition().
VRS::SO<vrsode::PhysicsBody> random_racer::BuggyFunCar::m_suspensionRR [private] |
Definition at line 72 of file BuggyFunCar.h.
Referenced by BuggyFunCar(), enableAllBodies(), and setPosition().
VRS::SO<vrsode::PhysicsBody> random_racer::BuggyFunCar::m_steerFL [private] |
Definition at line 74 of file BuggyFunCar.h.
Referenced by BuggyFunCar(), enableAllBodies(), and setPosition().
VRS::SO<vrsode::PhysicsBody> random_racer::BuggyFunCar::m_steerFR [private] |
Definition at line 75 of file BuggyFunCar.h.
Referenced by BuggyFunCar(), enableAllBodies(), and setPosition().
VRS::SO<vrsode::PhysicsJointHinge> random_racer::BuggyFunCar::m_axisFL [private] |
VRS::SO<vrsode::PhysicsJointHinge> random_racer::BuggyFunCar::m_axisFR [private] |
VRS::SO<vrsode::PhysicsJointHinge> random_racer::BuggyFunCar::m_axisRL [private] |
Definition at line 79 of file BuggyFunCar.h.
Referenced by accelerate(), BuggyFunCar(), and handBreak().
VRS::SO<vrsode::PhysicsJointHinge> random_racer::BuggyFunCar::m_axisRR [private] |
Definition at line 80 of file BuggyFunCar.h.
Referenced by accelerate(), BuggyFunCar(), and handBreak().
VRS::SO<vrsode::PhysicsJointHinge> random_racer::BuggyFunCar::m_steerControlFL [private] |
VRS::SO<vrsode::PhysicsJointHinge> random_racer::BuggyFunCar::m_steerControlFR [private] |
VRS::SO<vrsode::PhysicsJointSlider> random_racer::BuggyFunCar::m_springFL [private] |
VRS::SO<vrsode::PhysicsJointSlider> random_racer::BuggyFunCar::m_springFR [private] |
VRS::SO<vrsode::PhysicsJointSlider> random_racer::BuggyFunCar::m_springRL [private] |
VRS::SO<vrsode::PhysicsJointSlider> random_racer::BuggyFunCar::m_springRR [private] |
VRS::SO<vrsode::PhysicsBody> random_racer::BuggyFunCar::m_hook [private] |
Definition at line 90 of file BuggyFunCar.h.
Referenced by BuggyFunCar(), cameraHook(), and enableAllBodies().
VRS::SO<vrsode::PhysicsJointSlider> random_racer::BuggyFunCar::m_hookJoint [private] |
1.5.1