SO3Engine
|
SO3VehicleContraint.cpp
Go to the documentation of this file.
16SVehicleContraint::SVehicleContraint() : SPhysicContraint(0, 0, 0, SPhysicContraint::SO3_VEHICLE_CONTRAINT)
21SVehicleContraint::SVehicleContraint(SScene* scene, SBody* son) : SPhysicContraint(scene, son, 0, SPhysicContraint::SO3_VEHICLE_CONTRAINT)
48 mJoint = static_cast<OgreNewt::Joint*>(new OgreNewt::Vehicle(mSonBody->getOgreNewtBodyPointer()));
60void 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)
73 static_cast<OgreNewt::Vehicle*>(mJoint)->AddSingleSuspensionTire(node->GetOgreSceneNodePointer(), mass, radius, width, friction, susLength, susSpring, susShock, steer, driving);
115 return static_cast<OgreNewt::Vehicle*>(mJoint)->getTireAngularVelocity(node->GetOgreSceneNodePointer());
void waitForUpdateToFinish() const
Definition OgreNewt_World.h:361
Definition SO3Body.h:43
OgreNewt::Body * getOgreNewtBodyPointer()
Definition SO3Body.cpp:340
Definition SO3NodeScol.h:43
Ogre::SceneNode * GetOgreSceneNodePointer()
Definition SO3NodeScol.cpp:163
Definition SO3PhysicContraint.h:42
Definition SO3Scene.h:125
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)
Definition SO3VehicleContraint.cpp:60
Ogre::Real GetTireAngularVelocity(SNode *node)
Definition SO3VehicleContraint.cpp:113
virtual void SetParentBody(SBody *body)
Definition SO3VehicleContraint.cpp:31
void SetSteerAngle(Ogre::Radian angle)
Definition SO3VehicleContraint.cpp:76
void SetDrivingTorque(Ogre::Radian torque)
Definition SO3VehicleContraint.cpp:84
bool GetTireOnAir(SNode *node)
Definition SO3VehicleContraint.cpp:108
virtual void SetSonBody(SBody *body)
Definition SO3VehicleContraint.cpp:35
void SetBrake(Ogre::Real brake)
Definition SO3VehicleContraint.cpp:92
Manage Physics Contraint. .
Definition SO3DataScol.h:38
Generated by 1.9.8