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 |
Detailed Description
Definition at line 42 of file SO3VehicleContraint.h.
Constructor & Destructor Documentation
◆ SVehicleContraint()
Definition at line 21 of file SO3VehicleContraint.cpp.
◆ ~SVehicleContraint()
SVehicleContraint::~SVehicleContraint | ( | ) |
Definition at line 26 of file SO3VehicleContraint.cpp.
Member Function Documentation
◆ AddTire()
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.
◆ GetSpeed()
Ogre::Real SVehicleContraint::GetSpeed | ( | ) |
Definition at line 52 of file SO3VehicleContraint.cpp.
◆ GetTireAngularVelocity()
Ogre::Real SVehicleContraint::GetTireAngularVelocity | ( | SNode * | node | ) |
Definition at line 113 of file SO3VehicleContraint.cpp.
◆ GetTireOnAir()
bool SVehicleContraint::GetTireOnAir | ( | SNode * | node | ) |
Definition at line 108 of file SO3VehicleContraint.cpp.
◆ GetVehicleOnAir()
bool SVehicleContraint::GetVehicleOnAir | ( | ) |
Definition at line 100 of file SO3VehicleContraint.cpp.
◆ SetBrake()
void SVehicleContraint::SetBrake | ( | Ogre::Real | brake | ) |
Definition at line 92 of file SO3VehicleContraint.cpp.
◆ SetDrivingTorque()
void SVehicleContraint::SetDrivingTorque | ( | Ogre::Radian | torque | ) |
Definition at line 84 of file SO3VehicleContraint.cpp.
◆ SetParentBody()
|
virtual |
Implements SO3::SPhysicContraint.
Definition at line 31 of file SO3VehicleContraint.cpp.
◆ SetSonBody()
|
virtual |
Implements SO3::SPhysicContraint.
Definition at line 35 of file SO3VehicleContraint.cpp.
◆ SetSteerAngle()
void SVehicleContraint::SetSteerAngle | ( | Ogre::Radian | angle | ) |
Definition at line 76 of file SO3VehicleContraint.cpp.
The documentation for this class was generated from the following files:
- include/SO3PhysicGraph/SO3VehicleContraint.h
- src/SO3PhysicGraph/SO3VehicleContraint.cpp
Generated by 1.9.8