#include <FCDPhysicsRigidBodyParameters.h>
Inheritance diagram for FCDPhysicsRigidBodyParameters:
Public Member Functions | |
FCDPhysicsRigidBodyParameters (FCDocument *document, FCDPhysicsRigidBody *owner) | |
Constructor. | |
FCDPhysicsRigidBodyParameters (FCDocument *document, FCDPhysicsRigidBodyInstance *owner) | |
See above. | |
virtual | ~FCDPhysicsRigidBodyParameters () |
Destructor. | |
FCDParameterAnimatableFloat & | GetDynamic () |
Retrieves whether the owner is dynamic. | |
const FCDParameterAnimatableFloat & | GetDynamic () const |
See above. | |
bool | IsDynamic () |
See above. | |
void | SetDynamic (bool dynamic) |
Sets whether the owner is dynamic. | |
bool | IsDensityMoreAccurate () |
Retrieves whether density is more accurate. | |
void | SetDensityMoreAccurate (bool value) |
[INTERNAL] Set 'DensityMoreAccurate'. | |
FUParameterFloat & | GetDensity () |
Retrieves the density of the owner. | |
const FUParameterFloat & | GetDensity () const |
See above. | |
void | SetDensity (float dens) |
[INTERNAL] Set the densisty. | |
FCDParameterAnimatableFloat & | GetMass () |
Retrieves the mass of the owner. | |
const FCDParameterAnimatableFloat & | GetMass () const |
See above. | |
void | SetMass (float _mass) |
Sets the mass of the owner. | |
FCDParameterAnimatableVector3 & | GetInertia () |
Retrieves the inertia of the owner. | |
const FCDParameterAnimatableVector3 & | GetInertia () const |
See above. | |
bool | IsInertiaAccurate () |
Inertia is accurate only if it comes directly from the COLLADA file. | |
void | SetInertiaAccurate (bool value) |
[INTERNAL] Sets the inertia accuracy flag. | |
void | SetInertia (const FMVector3 &_inertia) |
Sets the inertia of the owner. | |
FCDParameterAnimatableVector3 & | GetMassFrameTranslate () |
Retrieves the center of mass of the owner. | |
const FCDParameterAnimatableVector3 & | GetMassFrameTranslate () const |
See above. | |
void | SetMassFrameTranslate (const FMVector3 &position) |
Sets the center of mass of the owner. | |
FCDParameterAnimatableAngleAxis & | GetMassFrameOrientation () |
Retrieves the orientation of mass of the owner. | |
const FCDParameterAnimatableAngleAxis & | GetMassFrameOrientation () const |
See above. | |
void | SetMassFrameOrientation (const FMAngleAxis &angleAxis) |
Sets the orientation of mass of the owner. | |
FMVector3 & | GetMassFrameRotateAxis () |
Retrieves the axis of orientation of mass of the owner. | |
const FMVector3 & | GetMassFrameRotateAxis () const |
See above. | |
void | SetMassFrameRotateAxis (const FMVector3 &axis) |
Sets the axis of orientation of mass of the owner. | |
float & | GetMassFrameRotateAngle () |
Retrieves the angle of orientation of mass of the owner along the axis retrieved from GetMassFrameRotateAxis. | |
const float & | GetMassFrameRotateAngle () const |
See above. | |
void | SetMassFrameRotateAngle (float angle) |
Sets the angle of orientation of mass of the owner along the axis retrieved from GetMassFrameRotateAxis. | |
FCDPhysicsMaterial * | GetPhysicsMaterial () |
Retrives the physics material of the owner. | |
const FCDPhysicsMaterial * | GetPhysicsMaterial () const |
See above. | |
void | SetPhysicsMaterial (FCDPhysicsMaterial *physicsMaterial) |
Sets the physics material of the owner. | |
FCDPhysicsMaterial * | AddOwnPhysicsMaterial () |
Adds a physics material for the owner. | |
DEPRECATED (3.05A, GetPhysicsShapeCount and GetPhysicsShape(index)) void GetPhysicsShapeList() const | |
Retrieves the physics shapes of the owner. | |
size_t | GetPhysicsShapeCount () const |
Retrieves the number of physics shapes of the owner. | |
FCDPhysicsShape * | GetPhysicsShape (size_t index) |
Retrieves a speficied physics shape of the owner by index. | |
const FCDPhysicsShape * | GetPhysicsShape (size_t index) const |
See above. | |
FCDPhysicsShape * | AddPhysicsShape () |
Adds a physics shape to the owner. | |
virtual void | CopyFrom (const FCDPhysicsRigidBodyParameters &original) |
Copies the rigid body parameters into this parameters structure. | |
DEPRECATED (3.05A, GetParent) FCDObject *GetOwner() | |
[INTERNAL] Retrieves the owner of the parameters. | |
FCDObject * | GetParent () |
See above. | |
const FCDObject * | GetParent () const |
See above. | |
FCDPhysicsRigidBody * | GetEntityOwner () |
[INTERNAL] Retrieve the entity owner. | |
FCDPhysicsRigidBodyInstance * | GetInstanceOwner () |
[INTERNAL] Retrieve the instance owner. | |
bool | OwnsPhysicsMaterial () |
[INTERNAL] Determine if the model owns the maaterial. | |
void | SetInstanceMaterial (FCDEntityInstance *instance) |
[INTERNAL] Set the material instance. | |
FCDEntityInstance * | GetInstanceMaterial () |
[INTERNAL] Retrieve the material instance. |
Because many of the parameters found in the rigid body can be overwritten by the rigid body instance, it is useful to keep it in one single place. This class is responsible for loading, storing, and writing these parameters.
|
Constructor.
|
|
Adds a physics material for the owner. This parameter structuer is responsible for releasing the physics material.
|
|
Adds a physics shape to the owner.
|
|
Copies the rigid body parameters into this parameters structure.
|
|
[INTERNAL] Retrieves the owner of the parameters.
|
|
Retrieves the physics shapes of the owner.
|
|
Retrieves the density of the owner. The client should call IsDensityMoreAccurate to make sure this is what we want instead of mass.
|
|
Retrieves whether the owner is dynamic. If it is dynamic, forces like gravity affect it.
|
|
[INTERNAL] Retrieve the entity owner.
|
|
Retrieves the inertia of the owner.
|
|
[INTERNAL] Retrieve the material instance.
|
|
[INTERNAL] Retrieve the instance owner.
|
|
Retrieves the mass of the owner.
|
|
Retrieves the orientation of mass of the owner.
|
|
Retrieves the angle of orientation of mass of the owner along the axis retrieved from GetMassFrameRotateAxis.
|
|
Retrieves the axis of orientation of mass of the owner.
|
|
Retrieves the center of mass of the owner.
|
|
Retrives the physics material of the owner.
|
|
Retrieves a speficied physics shape of the owner by index.
|
|
Retrieves the number of physics shapes of the owner.
|
|
Retrieves whether density is more accurate. Because we are using an approximating algorithm for volume, density will be more accurate when dealing with non-analytical shapes. Density is calculated as the average density of the shapes. Shapes defining a mass will have density of 0.0f. A rigid body containing both shapes with only density and shapes with only mass will have both GetMass and GetDensity approximated.
|
|
Inertia is accurate only if it comes directly from the COLLADA file. We are using a simple sphere approximation for the inertia if there is none specified.
|
|
[INTERNAL] Determine if the model owns the maaterial.
|
|
[INTERNAL] Set the densisty.
|
|
[INTERNAL] Set 'DensityMoreAccurate'. value Value to be set. |
|
Sets whether the owner is dynamic. If it is dynamic, forces like gravity affect it.
|
|
Sets the inertia of the owner.
|
|
[INTERNAL] Sets the inertia accuracy flag.
|
|
[INTERNAL] Set the material instance. The new material instance. |
|
Sets the mass of the owner.
|
|
Sets the orientation of mass of the owner.
|
|
Sets the angle of orientation of mass of the owner along the axis retrieved from GetMassFrameRotateAxis.
|
|
Sets the axis of orientation of mass of the owner.
|
|
Sets the center of mass of the owner.
|
|
Sets the physics material of the owner.
|