#include <FCDPhysicsRigidBodyInstance.h>
Inheritance diagram for FCDPhysicsRigidBodyInstance:
Public Member Functions | |
FCDPhysicsRigidBodyInstance (FCDocument *document, FCDPhysicsModelInstance *_parent, FCDPhysicsRigidBody *body) | |
Constructor: do not use directly. | |
virtual | ~FCDPhysicsRigidBodyInstance () |
Destructor. | |
virtual Type | GetType () const |
Retrieves the entity type for this class. | |
FCDPhysicsModelInstance * | GetModelParentInstance () |
[INTERNAL] Retrieve it's parent model instance. | |
FCDPhysicsRigidBodyParameters * | GetParameters () |
Retrieves the parameters of tihs rigid body. | |
const FCDPhysicsRigidBodyParameters * | GetParameters () const |
See above. | |
FCDPhysicsRigidBody * | GetRigidBody () |
Retrieves the rigid body for this instance. | |
FCDParameterAnimatableVector3 & | GetAngularVelocity () |
Retrieves the angular velocity of this rigid body instance. | |
const FCDParameterAnimatableVector3 & | GetAngularVelocity () const |
See above. | |
void | SetAngularVelocity (const FMVector3 &_angularVelocity) |
Sets the angular velocity of this rigid body instance. | |
FCDParameterAnimatableVector3 & | GetVelocity () |
Retrives the linear velocity of this rigid body instance. | |
const FCDParameterAnimatableVector3 & | GetVelocity () const |
See above. | |
void | SetVelocity (const FMVector3 &_velocity) |
Sets the linear velocity of this rigid body instance. | |
FCDSceneNode * | GetTargetNode () |
Retrieves the target node influenced by this rigid body instance. | |
const FCDSceneNode * | GetTargetNode () const |
See above. | |
void | SetTargetNode (FCDSceneNode *target) |
Sets the target node influenced by this rigid body instance. | |
CollisionEvent & | GetCollisionEvent () |
Retrieves the collision event. | |
virtual FCDEntityInstance * | Clone (FCDEntityInstance *clone=NULL) const |
Clones the rigid body instance. | |
void | SetRigidBody (FCDPhysicsRigidBody *body) |
[INTERNAL] Sets the rigid body for this rigid body instance. |
Allows you to overwrite the material of a rigid body and attach the instance to a visual scene node.
|
Constructor: do not use directly. Create new rigid bodies using the FCDPhysicsModelInstance::AddRigidBodyInstance function.
|
|
Clones the rigid body instance.
Reimplemented from FCDEntityInstance. |
|
Retrieves the angular velocity of this rigid body instance.
|
|
Retrieves the collision event. This event may be used by a physics plugin to call an applications' callback when a collision occured on this rigid body. It should call it twice per collision, once for each object. The first parameter to the event is the rigid body instance that was collided with, and the second parameter is the world position of the collision.
|
|
[INTERNAL] Retrieve it's parent model instance.
|
|
Retrieves the parameters of tihs rigid body.
|
|
Retrieves the rigid body for this instance.
|
|
Retrieves the target node influenced by this rigid body instance.
|
|
Retrieves the entity type for this class. This function is part of the FCDEntity interface.
Reimplemented from FCDEntityInstance. |
|
Retrives the linear velocity of this rigid body instance.
|
|
Sets the angular velocity of this rigid body instance.
|
|
[INTERNAL] Sets the rigid body for this rigid body instance. Default values are taken from the rigid body.
|
|
Sets the target node influenced by this rigid body instance.
|
|
Sets the linear velocity of this rigid body instance.
|