![]() |
Kochol Game Engine
0.1.0
|
#include <actorDynamic.h>
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::SceneNode * | getKgeObj (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 Material * | getMaterial (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) |
![]() | |
Actor () | |
virtual | ~Actor () |
Protected Attributes | |
sn::SceneNode * | localKgeObj |
Material * | m_pMaterial |
Definition at line 13 of file actorDynamic.h.
|
inline |
Constructor.
Definition at line 17 of file actorDynamic.h.
|
inlinevirtual |
Destructor.
Definition at line 20 of file actorDynamic.h.
|
pure virtual |
AddForceAtLocalPos.
|
pure virtual |
Add another Shape.
|
pure virtual |
Add another Shape.
|
pure virtual |
Caculate Kinematic ( rotational and translational ) Energy of Actor.
|
pure virtual |
Get Actor Number.
|
pure virtual |
Retrieves the angular damping coefficient.
|
pure virtual |
Retrieves the angular momentum of an actor.
|
pure virtual |
Retrieves the angular velocity of the actor.
|
pure virtual |
Get Kge Object.
|
pure virtual |
Retrieves the linear damping coefficient.
|
pure virtual |
Retrieves the linear momentum of an actor.
|
pure virtual |
Retrieves the linear velocity of an actor.
|
pure virtual |
Get Mass.
|
pure virtual |
Get Matrix.
|
pure virtual |
Retrieves the maximum angular velocity permitted for this actor.
|
pure virtual |
Get Actor Name.
|
pure virtual |
Get Position.
|
inlinevirtual |
Implements kge::ph::Actor.
Definition at line 134 of file actorDynamic.h.
References kge::ph::EATP_DYNAMIC.
|
pure virtual |
|
pure virtual |
The moveGlobal* calls serve to move kinematically controlled dynamic actors through the game world.
|
pure virtual |
The moveGlobal* calls serve to move kinematically controlled dynamic actors through the game world.
|
pure virtual |
Forces the actor to sleep.
|
pure virtual |
Set Actor Number.
|
pure virtual |
Set Angular Damping.
|
pure virtual |
Sets the angular momentum of the actor.
|
pure virtual |
Sets the angular velocity of the actor.
|
pure virtual |
Set the pose of the center of mass relative to the actor.
|
pure virtual |
Sets a dynamic actor's orientation in the world.
|
pure virtual |
Set linear Damping.
|
pure virtual |
Sets the linear momentum of the actor.
|
pure virtual |
Sets the linear velocity of the actor.
|
pure virtual |
Set Mass.
|
pure virtual |
Lets you set the maximum angular velocity permitted for this actor.
|
pure virtual |
Set Actor Name.
|
pure virtual |
Set Position.
|
pure virtual |
Recomputes a dynamic actor's mass properties from its shapes.
|
protected |
Definition at line 137 of file actorDynamic.h.
|
protected |
Definition at line 138 of file actorDynamic.h.