SO3Engine
|
#include <SO3VehicleContraint.h>
Public Member Functions | |
SVehicleContraint (SScene *scene, SBody *son) | |
~SVehicleContraint () | |
virtual void | SetParentBody (SBody *body) |
virtual void | SetSonBody (SBody *body) |
Ogre::Real | GetSpeed () |
void | AddTire (SNode *node, Ogre::Real mass, Ogre::Real radius, Ogre::Real width, Ogre::Real friction, Ogre::Real susLength, Ogre::Real susSpring, Ogre::Real susShock, bool steer, bool driving) |
void | SetSteerAngle (Ogre::Radian angle) |
void | SetDrivingTorque (Ogre::Radian torque) |
void | SetBrake (Ogre::Real brake) |
bool | GetVehicleOnAir () |
bool | GetTireOnAir (SNode *node) |
Ogre::Real | GetTireAngularVelocity (SNode *node) |
Public Member Functions inherited from SO3::SPhysicContraint | |
SPhysicContraint (SScene *scene, SBody *son, SBody *parent=0, PhysicContraintType type=SO3_NULL_CONTRAINT) | |
virtual | ~SPhysicContraint () |
SBody * | GetParentBody () |
SBody * | GetSonBody () |
SScene * | GetParentScene () |
PhysicContraintType | GetType () |
void | SetCollisionState (bool state) |
bool | GetCollisionState () |
Ogre::Real | GetStiffness () |
void | SetStiffness (Ogre::Real value) |
Additional Inherited Members | |
Public Types inherited from SO3::SPhysicContraint | |
enum | PhysicContraintType { SO3_NULL_CONTRAINT , SO3_BALL_AND_SOCKET_CONTRAINT , SO3_HINGE_CONTRAINT , SO3_SLIDER_CONTRAINT , SO3_VEHICLE_CONTRAINT , SO3_KINEMATIC_CONTROLLER_CONTRAINT } |
Protected Attributes inherited from SO3::SPhysicContraint | |
SBody * | mParentBody |
SBody * | mSonBody |
SScene * | mScene |
OgreNewt::Joint * | mJoint |
PhysicContraintType | mType |
Definition at line 42 of file SO3VehicleContraint.h.
Definition at line 21 of file SO3VehicleContraint.cpp.
SVehicleContraint::~SVehicleContraint | ( | ) |
Definition at line 26 of file SO3VehicleContraint.cpp.
void SVehicleContraint::AddTire | ( | SNode * | node, |
Ogre::Real | mass, | ||
Ogre::Real | radius, | ||
Ogre::Real | width, | ||
Ogre::Real | friction, | ||
Ogre::Real | susLength, | ||
Ogre::Real | susSpring, | ||
Ogre::Real | susShock, | ||
bool | steer, | ||
bool | driving | ||
) |
Definition at line 60 of file SO3VehicleContraint.cpp.
Ogre::Real SVehicleContraint::GetSpeed | ( | ) |
Definition at line 52 of file SO3VehicleContraint.cpp.
Ogre::Real SVehicleContraint::GetTireAngularVelocity | ( | SNode * | node | ) |
Definition at line 113 of file SO3VehicleContraint.cpp.
bool SVehicleContraint::GetTireOnAir | ( | SNode * | node | ) |
Definition at line 108 of file SO3VehicleContraint.cpp.
bool SVehicleContraint::GetVehicleOnAir | ( | ) |
Definition at line 100 of file SO3VehicleContraint.cpp.
void SVehicleContraint::SetBrake | ( | Ogre::Real | brake | ) |
Definition at line 92 of file SO3VehicleContraint.cpp.
void SVehicleContraint::SetDrivingTorque | ( | Ogre::Radian | torque | ) |
Definition at line 84 of file SO3VehicleContraint.cpp.
|
virtual |
Implements SO3::SPhysicContraint.
Definition at line 31 of file SO3VehicleContraint.cpp.
|
virtual |
Implements SO3::SPhysicContraint.
Definition at line 35 of file SO3VehicleContraint.cpp.
void SVehicleContraint::SetSteerAngle | ( | Ogre::Radian | angle | ) |
Definition at line 76 of file SO3VehicleContraint.cpp.