Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::ph::ActorDynamic Class Reference

#include <actorDynamic.h>

Inheritance diagram for kge::ph::ActorDynamic:
kge::ph::Actor

Public Member Functions

 ActorDynamic ()
 Constructor.
virtual ~ActorDynamic ()
 Destructor.
virtual void setPosition (kge::math::Vector *pos)=0
 Set Position.
virtual void setActorNumber (unsigned int i)=0
 Set Actor Number.
virtual unsigned int getActorNumber (void)=0
 Get Actor Number.
virtual kge::math::Vector getPosition (void)=0
 Get Position.
virtual kge::math::Matrix getMatrix (void)=0
 Get Matrix.
virtual void setMass (float mass)=0
 Set Mass.
virtual float getMass (void)=0
 Get Mass.
virtual bool updateMassFromShapes (float density, float totalMass)=0
 Recomputes a dynamic actor's mass properties from its shapes.
virtual void setAngularDamping (float angularDamping)=0
 Set Angular Damping.
virtual float getAngularDamping (void)=0
 Retrieves the angular damping coefficient.
virtual void setLinearDamping (float linearDamping)=0
 Set linear Damping.
virtual float getLinearDamping (void)=0
 Retrieves the linear damping coefficient.
virtual void setLinearVelocity (const kge::math::Vector *linVel)=0
 Sets the linear velocity of the actor.
virtual void setAngularVelocity (const kge::math::Vector *angVel)=0
 Sets the angular velocity of the actor.
virtual kge::math::Vector getLinearVelocity (void)=0
 Retrieves the linear velocity of an actor.
virtual kge::math::Vector getAngularVelocity (void)=0
 Retrieves the angular velocity of the actor.
virtual void setMaxAngularVelocity (float maxAngVel)=0
 Lets you set the maximum angular velocity permitted for this actor.
virtual float getMaxAngularVelocity (void)=0
 Retrieves the maximum angular velocity permitted for this actor.
virtual void setLinearMomentum (const kge::math::Vector *linMoment)=0
 Sets the linear momentum of the actor.
virtual void setAngularMomentum (const kge::math::Vector *angMoment)=0
 Sets the angular momentum of the actor.
virtual kge::math::Vector getLinearMomentum (void)=0
 Retrieves the linear momentum of an actor.
virtual kge::math::Vector getAngularMomentum (void)=0
 Retrieves the angular momentum of an actor.
virtual kge::sn::SceneNodegetKgeObj (void)=0
 Get Kge Object.
virtual void addForce (kge::math::Vector *pos)=0
 AddForceAtLocalPos.
virtual void setName (const char *Name)=0
 Set Actor Name.
virtual const char * getName (void)=0
 Get Actor Name.
virtual bool isDynamic (void)=0
 Actor that have Body is Dynamic Actor.
virtual float computeKineticEnergy (void)=0
 Caculate Kinematic ( rotational and translational ) Energy of Actor.
virtual void setGlobalOrientation (const kge::math::Matrix *mat)=0
 Sets a dynamic actor's orientation in the world.
virtual void moveGlobalPose (const kge::math::Matrix *mat)=0
 The moveGlobal* calls serve to move kinematically controlled dynamic actors through the game world.
virtual void moveGlobalPosition (const kge::math::Vector *vec)=0
 The moveGlobal* calls serve to move kinematically controlled dynamic actors through the game world.
virtual void setCenterOfMass (const kge::math::Vector *vec)=0
 Set the pose of the center of mass relative to the actor.
virtual void putToSleep (void)=0
 Forces the actor to sleep.
virtual void setMaterial (Material *mat)=0
 Set Material.
virtual MaterialgetMaterial (void)=0
 Get Material.
virtual void addShape (math::Shape *shape, CollitionType ct=ECTP_TRIGGER_DISABLE, const kge::math::Vector &vec=kge::math::Vector(0.0f, 0.0f, 0.0f))=0
 Add another Shape.
virtual void addShape (math::KGE_SHAPES shape, CollitionType ct=ECTP_TRIGGER_DISABLE, const kge::math::Vector &vec=kge::math::Vector(0.0f, 0.0f, 0.0f))=0
 Add another Shape.
ActorType getType (void)
- Public Member Functions inherited from kge::ph::Actor
 Actor ()
virtual ~Actor ()

Protected Attributes

sn::SceneNodelocalKgeObj
Materialm_pMaterial

Detailed Description

Definition at line 13 of file actorDynamic.h.

Constructor & Destructor Documentation

kge::ph::ActorDynamic::ActorDynamic ( )
inline

Constructor.

Definition at line 17 of file actorDynamic.h.

virtual kge::ph::ActorDynamic::~ActorDynamic ( )
inlinevirtual

Destructor.

Definition at line 20 of file actorDynamic.h.

Member Function Documentation

virtual void kge::ph::ActorDynamic::addForce ( kge::math::Vector pos)
pure virtual

AddForceAtLocalPos.

virtual void kge::ph::ActorDynamic::addShape ( math::Shape shape,
CollitionType  ct = ECTP_TRIGGER_DISABLE,
const kge::math::Vector vec = kge::math::Vector(0.0f, 0.0f, 0.0f) 
)
pure virtual

Add another Shape.

virtual void kge::ph::ActorDynamic::addShape ( math::KGE_SHAPES  shape,
CollitionType  ct = ECTP_TRIGGER_DISABLE,
const kge::math::Vector vec = kge::math::Vector(0.0f, 0.0f, 0.0f) 
)
pure virtual

Add another Shape.

virtual float kge::ph::ActorDynamic::computeKineticEnergy ( void  )
pure virtual

Caculate Kinematic ( rotational and translational ) Energy of Actor.

virtual unsigned int kge::ph::ActorDynamic::getActorNumber ( void  )
pure virtual

Get Actor Number.

virtual float kge::ph::ActorDynamic::getAngularDamping ( void  )
pure virtual

Retrieves the angular damping coefficient.

virtual kge::math::Vector kge::ph::ActorDynamic::getAngularMomentum ( void  )
pure virtual

Retrieves the angular momentum of an actor.

virtual kge::math::Vector kge::ph::ActorDynamic::getAngularVelocity ( void  )
pure virtual

Retrieves the angular velocity of the actor.

virtual kge::sn::SceneNode* kge::ph::ActorDynamic::getKgeObj ( void  )
pure virtual

Get Kge Object.

virtual float kge::ph::ActorDynamic::getLinearDamping ( void  )
pure virtual

Retrieves the linear damping coefficient.

virtual kge::math::Vector kge::ph::ActorDynamic::getLinearMomentum ( void  )
pure virtual

Retrieves the linear momentum of an actor.

virtual kge::math::Vector kge::ph::ActorDynamic::getLinearVelocity ( void  )
pure virtual

Retrieves the linear velocity of an actor.

virtual float kge::ph::ActorDynamic::getMass ( void  )
pure virtual

Get Mass.

virtual Material* kge::ph::ActorDynamic::getMaterial ( void  )
pure virtual

Get Material.

virtual kge::math::Matrix kge::ph::ActorDynamic::getMatrix ( void  )
pure virtual

Get Matrix.

virtual float kge::ph::ActorDynamic::getMaxAngularVelocity ( void  )
pure virtual

Retrieves the maximum angular velocity permitted for this actor.

virtual const char* kge::ph::ActorDynamic::getName ( void  )
pure virtual

Get Actor Name.

virtual kge::math::Vector kge::ph::ActorDynamic::getPosition ( void  )
pure virtual

Get Position.

ActorType kge::ph::ActorDynamic::getType ( void  )
inlinevirtual

Implements kge::ph::Actor.

Definition at line 134 of file actorDynamic.h.

References kge::ph::EATP_DYNAMIC.

virtual bool kge::ph::ActorDynamic::isDynamic ( void  )
pure virtual

Actor that have Body is Dynamic Actor.

virtual void kge::ph::ActorDynamic::moveGlobalPose ( const kge::math::Matrix mat)
pure virtual

The moveGlobal* calls serve to move kinematically controlled dynamic actors through the game world.

virtual void kge::ph::ActorDynamic::moveGlobalPosition ( const kge::math::Vector vec)
pure virtual

The moveGlobal* calls serve to move kinematically controlled dynamic actors through the game world.

virtual void kge::ph::ActorDynamic::putToSleep ( void  )
pure virtual

Forces the actor to sleep.

virtual void kge::ph::ActorDynamic::setActorNumber ( unsigned int  i)
pure virtual

Set Actor Number.

virtual void kge::ph::ActorDynamic::setAngularDamping ( float  angularDamping)
pure virtual

Set Angular Damping.

virtual void kge::ph::ActorDynamic::setAngularMomentum ( const kge::math::Vector angMoment)
pure virtual

Sets the angular momentum of the actor.

virtual void kge::ph::ActorDynamic::setAngularVelocity ( const kge::math::Vector angVel)
pure virtual

Sets the angular velocity of the actor.

virtual void kge::ph::ActorDynamic::setCenterOfMass ( const kge::math::Vector vec)
pure virtual

Set the pose of the center of mass relative to the actor.

virtual void kge::ph::ActorDynamic::setGlobalOrientation ( const kge::math::Matrix mat)
pure virtual

Sets a dynamic actor's orientation in the world.

virtual void kge::ph::ActorDynamic::setLinearDamping ( float  linearDamping)
pure virtual

Set linear Damping.

virtual void kge::ph::ActorDynamic::setLinearMomentum ( const kge::math::Vector linMoment)
pure virtual

Sets the linear momentum of the actor.

virtual void kge::ph::ActorDynamic::setLinearVelocity ( const kge::math::Vector linVel)
pure virtual

Sets the linear velocity of the actor.

virtual void kge::ph::ActorDynamic::setMass ( float  mass)
pure virtual

Set Mass.

virtual void kge::ph::ActorDynamic::setMaterial ( Material mat)
pure virtual

Set Material.

virtual void kge::ph::ActorDynamic::setMaxAngularVelocity ( float  maxAngVel)
pure virtual

Lets you set the maximum angular velocity permitted for this actor.

virtual void kge::ph::ActorDynamic::setName ( const char *  Name)
pure virtual

Set Actor Name.

virtual void kge::ph::ActorDynamic::setPosition ( kge::math::Vector pos)
pure virtual

Set Position.

virtual bool kge::ph::ActorDynamic::updateMassFromShapes ( float  density,
float  totalMass 
)
pure virtual

Recomputes a dynamic actor's mass properties from its shapes.

Member Data Documentation

sn::SceneNode* kge::ph::ActorDynamic::localKgeObj
protected

Definition at line 137 of file actorDynamic.h.

Material* kge::ph::ActorDynamic::m_pMaterial
protected

Definition at line 138 of file actorDynamic.h.


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