#include <FCDPhysicsModel.h>
Inheritance diagram for FCDPhysicsModel:
Public Member Functions | |
FCDPhysicsModel (FCDocument *document) | |
Constructor: do not use directly. | |
virtual | ~FCDPhysicsModel () |
Destructor. | |
virtual Type | GetType () const |
Retrieves the entity type for this class. | |
FCDPhysicsModelInstanceContainer & | GetInstances () |
Retrieves the instantiated physics models that are part of this physics model. | |
const FCDPhysicsModelInstanceContainer & | GetInstances () const |
See above. | |
size_t | GetInstanceCount () const |
Retrieves the number of instantiated physics models that are part of this physics model. | |
FCDPhysicsModelInstance * | GetInstance (size_t index) |
Retrieves a specific instantiated physics model that is a part of this physics model. | |
const FCDPhysicsModelInstance * | GetInstance (size_t index) const |
See above. | |
FCDPhysicsModelInstance * | AddPhysicsModelInstance (FCDPhysicsModel *model=NULL) |
Adds a instantiated physics model to this physics model. | |
FCDPhysicsRigidBodyContainer & | GetRigidBodies () |
Retrieves the rigid bodies that are a part of this physics model. | |
const FCDPhysicsRigidBodyContainer & | GetRigidBodies () const |
See above. | |
size_t | GetRigidBodyCount () const |
Retrieves the number of rigid bodies that are a part of this physics model. | |
FCDPhysicsRigidBody * | GetRigidBody (size_t index) |
Retrieves a specific rigid body that is a part of this physics model by its index. | |
const FCDPhysicsRigidBody * | GetRigidBody (size_t index) const |
See above. | |
FCDPhysicsRigidBody * | FindRigidBodyFromSid (const fm::string &sid) |
Retrieves a specific rigid body that is a part of this physics model by its sid. | |
const FCDPhysicsRigidBody * | FindRigidBodyFromSid (const fm::string &sid) const |
See above. | |
FCDPhysicsRigidBody * | AddRigidBody () |
Adds a rigid body to this physics model. | |
FCDPhysicsRigidConstraintContainer & | GetRigidConstraints () |
Retrieves the rigid constraints that are a part of this physics model. | |
const FCDPhysicsRigidConstraintContainer & | GetRigidConstraints () const |
See above. | |
size_t | GetRigidConstraintCount () const |
Retrieves the number of rigid constraints that are a part of this physics model. | |
FCDPhysicsRigidConstraint * | GetRigidConstraint (size_t index) |
Retrieves a specific rigid constraint that is a part of tihs physics model by its index. | |
const FCDPhysicsRigidConstraint * | GetRigidConstraint (size_t index) const |
See above. | |
FCDPhysicsRigidConstraint * | FindRigidConstraintFromSid (const fm::string &sid) |
Retrieves a specific rigid constraint that is a part of tihs physics model by its sid. | |
const FCDPhysicsRigidConstraint * | FindRigidConstraintFromSid (const fm::string &sid) const |
See above. | |
FCDPhysicsRigidConstraint * | AddRigidConstraint () |
Adds a rigid constraint to this physics model. | |
virtual FCDEntity * | Clone (FCDEntity *clone=NULL, bool cloneChildren=false) const |
Copies the physics model into a clone. | |
bool | AttachModelInstances () |
[INTERNAL] Attaches the model instances. | |
virtual void | CleanSubId () |
[INTERNAL] Cleans up the sub identifiers. |
A physics model can contain rigid bodies, rigid constraints, or instances of previously defined physics models. For example, a house physics model could contain a number of instantiated physics models such as walls.
|
Constructor: do not use directly. Create new physics models using the FCDLibrary::AddEntity function.
|
|
Adds a instantiated physics model to this physics model.
|
|
Adds a rigid body to this physics model.
|
|
Adds a rigid constraint to this physics model.
|
|
[INTERNAL] Attaches the model instances. Because model instances can instance other models, the ordering is unknown so this cannot be done in the LoadFromXML call. This method should be called after LoadFromXML is applied to all physics models. |
|
[INTERNAL] Cleans up the sub identifiers. The sub identifiers must be unique with respect to its parent. This method corrects the sub ids if there are conflicts. |
|
Copies the physics model into a clone.
Reimplemented from FCDEntity. |
|
Retrieves a specific rigid body that is a part of this physics model by its sid.
|
|
Retrieves a specific rigid constraint that is a part of tihs physics model by its sid.
|
|
Retrieves a specific instantiated physics model that is a part of this physics model.
|
|
Retrieves the number of instantiated physics models that are part of this physics model.
|
|
Retrieves the instantiated physics models that are part of this physics model.
|
|
Retrieves the rigid bodies that are a part of this physics model.
|
|
Retrieves a specific rigid body that is a part of this physics model by its index.
|
|
Retrieves the number of rigid bodies that are a part of this physics model.
|
|
Retrieves a specific rigid constraint that is a part of tihs physics model by its index.
|
|
Retrieves the number of rigid constraints that are a part of this physics model.
|
|
Retrieves the rigid constraints that are a part of this physics model.
|
|
Retrieves the entity type for this class. This function is part of the FCDEntity interface.
Reimplemented from FCDEntity. |