Project

General

Profile

SO3Engine
SO3::SVehicleContraint Class Reference

#include <SO3VehicleContraint.h>

Inheritance diagram for SO3::SVehicleContraint:
SO3::SPhysicContraint

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 ()
 
SBodyGetParentBody ()
 
SBodyGetSonBody ()
 
SSceneGetParentScene ()
 
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
SBodymParentBody
 
SBodymSonBody
 
SScenemScene
 
OgreNewt::JointmJoint
 
PhysicContraintType mType
 

Detailed Description

Definition at line 42 of file SO3VehicleContraint.h.

Constructor & Destructor Documentation

◆ SVehicleContraint()

SVehicleContraint::SVehicleContraint ( SScene scene,
SBody son 
)

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()

void SVehicleContraint::SetParentBody ( SBody body)
virtual

Implements SO3::SPhysicContraint.

Definition at line 31 of file SO3VehicleContraint.cpp.

◆ SetSonBody()

void SVehicleContraint::SetSonBody ( SBody body)
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: