Logo Search packages:      
Sourcecode: blender version File versions  Download package

SumoPhysicsController Class Reference

#include <SumoPhysicsController.h>

Inheritance diagram for SumoPhysicsController:

PHY_IPhysicsController KX_SumoPhysicsController

List of all members.


Detailed Description

Sumo Physics Controller, a special kind of a PhysicsController. A Physics Controller is a special kind of Scene Graph Transformation Controller. Each time the scene graph get's updated, the controller get's a chance in the 'Update' method to reflect changes.

Sumo uses the SOLID library for collision detection.

Definition at line 44 of file SumoPhysicsController.h.


Public Member Functions

virtual void calcXform ()
virtual void do_me ()
float getFriction ()
virtual void GetLinearVelocity (float &linvX, float &linvY, float &linvZ)
virtual float GetMargin () const
virtual float getMass ()
virtual void * getNewClientInfo ()
virtual float GetRadius () const
virtual void getReactionForce (float &forceX, float &forceY, float &forceZ)
virtual PHY_IPhysicsControllerGetReplica ()
float getRestitution ()
class SM_ObjectGetSumoObject ()
virtual void GetVelocity (const float posX, const float posY, const float posZ, float &linvX, float &linvY, float &linvZ)
void GetWorldOrientation (class MT_Matrix3x3 &mat)
PHY__Vector3 GetWorldPosition (PHY__Vector3 &localpos)
void GetWorldPosition (MT_Point3 &pos)
void GetWorldScaling (MT_Vector3 &scale)
virtual void PostProcessReplica (class PHY_IMotionState *motionstate, class PHY_IPhysicsController *parentctrl)
virtual void SetMargin (float margin)
virtual void setNewClientInfo (void *clientinfo)
virtual void setRigidBody (bool rigid)
virtual void SetSimulatedTime (float time)
void setSumoTransform (bool nondynaonly)
 SumoPhysicsController (class SM_Scene *sumoScene, class SM_Object *sumoObj, class PHY_IMotionState *motionstate, bool dyna)
virtual bool SynchronizeMotionStates (float time)
virtual void WriteDynamicsToMotionState ()
virtual void WriteMotionStateToDynamics (bool nondynaonly)
Physics Methods
virtual void ApplyForce (float forceX, float forceY, float forceZ, bool local)
virtual void applyImpulse (float attachX, float attachY, float attachZ, float impulseX, float impulseY, float impulseZ)
virtual void ApplyTorque (float torqueX, float torqueY, float torqueZ, bool local)
virtual void resolveCombinedVelocities (float linvelX, float linvelY, float linvelZ, float angVelX, float angVelY, float angVelZ)
virtual void RestoreDynamics ()
virtual void SetActive (bool active)
virtual void SetAngularVelocity (float ang_velX, float ang_velY, float ang_velZ, bool local)
virtual void SetLinearVelocity (float lin_velX, float lin_velY, float lin_velZ, bool local)
virtual void SuspendDynamics ()
Kinematic Methods.
virtual void getOrientation (float &quatImag0, float &quatImag1, float &quatImag2, float &quatReal)
virtual void getPosition (PHY__Vector3 &pos) const
virtual void RelativeRotate (const float drot[12], bool local)
virtual void RelativeTranslate (float dlocX, float dlocY, float dlocZ, bool local)
virtual void setOrientation (float quatImag0, float quatImag1, float quatImag2, float quatReal)
virtual void setPosition (float posX, float posY, float posZ)
virtual void setScaling (float scaleX, float scaleY, float scaleZ)

Private Attributes

bool m_bDyna
bool m_bFirstTime
bool m_bFullRigidBody
bool m_bKinematic
bool m_bPhantom
bool m_bPrevKinematic
bool m_firstTime
float m_friction
float m_lastTime
class PHY_IMotionStatem_MotionState
float m_restitution
class SM_Objectm_sumoObj
class SM_Scene * m_sumoScene
bool m_suspendDynamics

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index