Blender V2.61 - r43446
Public Member Functions | Protected Attributes

KX_IPhysicsController Class Reference

#include <KX_IPhysicsController.h>

Inheritance diagram for KX_IPhysicsController:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 KX_IPhysicsController (bool dyna, bool sensor, bool compound, void *userdata)
virtual ~KX_IPhysicsController ()
virtual void applyImpulse (const MT_Point3 &attach, const MT_Vector3 &impulse)=0
virtual void SetObject (SG_IObject *object)=0
virtual void setMargin (float collisionMargin)=0
virtual void RelativeTranslate (const MT_Vector3 &dloc, bool local)=0
virtual void RelativeRotate (const MT_Matrix3x3 &drot, bool local)=0
virtual void ApplyTorque (const MT_Vector3 &torque, bool local)=0
virtual void ApplyForce (const MT_Vector3 &force, bool local)=0
virtual MT_Vector3 GetLinearVelocity ()=0
virtual MT_Vector3 GetAngularVelocity ()=0
virtual MT_Vector3 GetVelocity (const MT_Point3 &pos)=0
virtual void SetAngularVelocity (const MT_Vector3 &ang_vel, bool local)=0
virtual void SetLinearVelocity (const MT_Vector3 &lin_vel, bool local)=0
virtual void resolveCombinedVelocities (float linvelX, float linvelY, float linvelZ, float angVelX, float angVelY, float angVelZ)=0
virtual void getOrientation (MT_Quaternion &orn)=0
virtual void setOrientation (const MT_Matrix3x3 &orn)=0
virtual void SetTransform ()=0
virtual void setPosition (const MT_Point3 &pos)=0
virtual void setScaling (const MT_Vector3 &scaling)=0
virtual MT_Scalar GetMass ()=0
virtual void SetMass (MT_Scalar newmass)=0
virtual float GetLinVelocityMin ()=0
virtual void SetLinVelocityMin (float newmass)=0
virtual float GetLinVelocityMax ()=0
virtual void SetLinVelocityMax (float newmass)=0
virtual MT_Vector3 GetLocalInertia ()=0
virtual MT_Vector3 getReactionForce ()=0
virtual void setRigidBody (bool rigid)=0
virtual void AddCompoundChild (KX_IPhysicsController *child)=0
virtual void RemoveCompoundChild (KX_IPhysicsController *child)=0
virtual void SuspendDynamics (bool ghost=false)=0
virtual void RestoreDynamics ()=0
virtual SG_ControllerGetReplica (class SG_Node *destnode)=0
void SetDyna (bool isDynamic)
void SetSensor (bool isSensor)
bool IsDyna (void)
bool IsSensor (void)
bool IsCompound (void)
virtual MT_Scalar GetRadius ()=0
virtual void SetSumoTransform (bool nondynaonly)=0
virtual void SetSimulatedTime (double time)=0
virtual bool Update (double time)=0
void * GetUserData ()

Protected Attributes

bool m_bDyna
bool m_bSensor
bool m_bCompound
bool m_suspendDynamics
void * m_userdata

Detailed Description

Physics Controller, a special kind of Scene Graph Transformation Controller. It get's callbacks from Physics in case a transformation change took place. Each time the scene graph get's updated, the controller get's a chance in the 'Update' method to reflect changed.

Definition at line 50 of file KX_IPhysicsController.h.


Constructor & Destructor Documentation

KX_IPhysicsController::KX_IPhysicsController ( bool  dyna,
bool  sensor,
bool  compound,
void *  userdata 
)

Definition at line 38 of file KX_IPhysicsController.cpp.

KX_IPhysicsController::~KX_IPhysicsController ( ) [virtual]

Definition at line 48 of file KX_IPhysicsController.cpp.


Member Function Documentation

virtual void KX_IPhysicsController::AddCompoundChild ( KX_IPhysicsController child) [pure virtual]
virtual void KX_IPhysicsController::ApplyForce ( const MT_Vector3 force,
bool  local 
) [pure virtual]
virtual void KX_IPhysicsController::applyImpulse ( const MT_Point3 attach,
const MT_Vector3 impulse 
) [pure virtual]

Implemented in KX_BulletPhysicsController.

virtual void KX_IPhysicsController::ApplyTorque ( const MT_Vector3 torque,
bool  local 
) [pure virtual]
virtual MT_Vector3 KX_IPhysicsController::GetAngularVelocity ( ) [pure virtual]
virtual MT_Vector3 KX_IPhysicsController::GetLinearVelocity ( ) [pure virtual]
virtual float KX_IPhysicsController::GetLinVelocityMax ( ) [pure virtual]

Implemented in KX_BulletPhysicsController.

virtual float KX_IPhysicsController::GetLinVelocityMin ( ) [pure virtual]

Implemented in KX_BulletPhysicsController.

virtual MT_Vector3 KX_IPhysicsController::GetLocalInertia ( ) [pure virtual]
virtual MT_Scalar KX_IPhysicsController::GetMass ( ) [pure virtual]

Implemented in KX_BulletPhysicsController.

Referenced by KX_GameObject::GetMass().

virtual void KX_IPhysicsController::getOrientation ( MT_Quaternion orn) [pure virtual]

Implemented in KX_BulletPhysicsController.

virtual MT_Scalar KX_IPhysicsController::GetRadius ( ) [pure virtual]
virtual MT_Vector3 KX_IPhysicsController::getReactionForce ( ) [pure virtual]

Implemented in KX_BulletPhysicsController.

virtual SG_Controller* KX_IPhysicsController::GetReplica ( class SG_Node destnode) [pure virtual]

Implements SG_Controller.

Implemented in KX_BulletPhysicsController.

void* KX_IPhysicsController::GetUserData ( ) [inline]

Reimplemented in KX_BulletPhysicsController.

Definition at line 131 of file KX_IPhysicsController.h.

References m_userdata.

Referenced by BL_ConvertBlenderObjects().

virtual MT_Vector3 KX_IPhysicsController::GetVelocity ( const MT_Point3 pos) [pure virtual]
bool KX_IPhysicsController::IsCompound ( void  ) [inline]

Definition at line 120 of file KX_IPhysicsController.h.

References m_bCompound.

Referenced by KX_GameObject::RemoveParent(), and KX_GameObject::SetParent().

bool KX_IPhysicsController::IsDyna ( void  ) [inline]
bool KX_IPhysicsController::IsSensor ( void  ) [inline]

Definition at line 116 of file KX_IPhysicsController.h.

References m_bSensor.

virtual void KX_IPhysicsController::RelativeRotate ( const MT_Matrix3x3 drot,
bool  local 
) [pure virtual]
virtual void KX_IPhysicsController::RelativeTranslate ( const MT_Vector3 dloc,
bool  local 
) [pure virtual]
virtual void KX_IPhysicsController::RemoveCompoundChild ( KX_IPhysicsController child) [pure virtual]
virtual void KX_IPhysicsController::resolveCombinedVelocities ( float  linvelX,
float  linvelY,
float  linvelZ,
float  angVelX,
float  angVelY,
float  angVelZ 
) [pure virtual]
virtual void KX_IPhysicsController::RestoreDynamics ( ) [pure virtual]
virtual void KX_IPhysicsController::SetAngularVelocity ( const MT_Vector3 ang_vel,
bool  local 
) [pure virtual]
void KX_IPhysicsController::SetDyna ( bool  isDynamic) [inline]

Definition at line 104 of file KX_IPhysicsController.h.

References m_bDyna.

virtual void KX_IPhysicsController::SetLinearVelocity ( const MT_Vector3 lin_vel,
bool  local 
) [pure virtual]
virtual void KX_IPhysicsController::SetLinVelocityMax ( float  newmass) [pure virtual]

Implemented in KX_BulletPhysicsController.

virtual void KX_IPhysicsController::SetLinVelocityMin ( float  newmass) [pure virtual]

Implemented in KX_BulletPhysicsController.

virtual void KX_IPhysicsController::setMargin ( float  collisionMargin) [pure virtual]

Implemented in KX_BulletPhysicsController.

virtual void KX_IPhysicsController::SetMass ( MT_Scalar  newmass) [pure virtual]
virtual void KX_IPhysicsController::SetObject ( SG_IObject object) [pure virtual]

Reimplemented from SG_Controller.

Implemented in KX_BulletPhysicsController.

virtual void KX_IPhysicsController::setOrientation ( const MT_Matrix3x3 orn) [pure virtual]
virtual void KX_IPhysicsController::setPosition ( const MT_Point3 pos) [pure virtual]
virtual void KX_IPhysicsController::setRigidBody ( bool  rigid) [pure virtual]
virtual void KX_IPhysicsController::setScaling ( const MT_Vector3 scaling) [pure virtual]
void KX_IPhysicsController::SetSensor ( bool  isSensor) [inline]

Definition at line 108 of file KX_IPhysicsController.h.

References m_bSensor.

virtual void KX_IPhysicsController::SetSimulatedTime ( double  time) [pure virtual]

Implements SG_Controller.

Implemented in KX_BulletPhysicsController.

virtual void KX_IPhysicsController::SetSumoTransform ( bool  nondynaonly) [pure virtual]
virtual void KX_IPhysicsController::SetTransform ( ) [pure virtual]
virtual void KX_IPhysicsController::SuspendDynamics ( bool  ghost = false) [pure virtual]
virtual bool KX_IPhysicsController::Update ( double  time) [pure virtual]

Implements SG_Controller.

Implemented in KX_BulletPhysicsController.


Member Data Documentation

Definition at line 56 of file KX_IPhysicsController.h.

Referenced by IsCompound().

Definition at line 54 of file KX_IPhysicsController.h.

Referenced by IsDyna(), and SetDyna().

Definition at line 55 of file KX_IPhysicsController.h.

Referenced by IsSensor(), and SetSensor().

Definition at line 57 of file KX_IPhysicsController.h.

Definition at line 58 of file KX_IPhysicsController.h.

Referenced by KX_BulletPhysicsController::GetUserData(), and GetUserData().


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