This reference page is linked to from the following overview topics: MotionBuilder 2014.
Constraint manager.
Definition at line 705 of file fbconstraint.h.
#include <fbconstraint.h>
Public Member Functions | |
K_DEPRECATED_2014 | FBConstraintManager () |
Constructor. | |
const char * | TypeGetName (int pTypeIndex) const |
Get the name of a registered type of constraint. | |
int | TypeGetCount () const |
Get the number of registered constraint types. | |
FBConstraint * | TypeCreateConstraint (int pTypeIndex) |
Create a constraint by index. | |
FBConstraint * | TypeCreateConstraint (const char *pName) |
Create a constraint by name. | |
Static Public Member Functions | |
static FBConstraintManager & | TheOne () |
Get the global FBConstraintManager object. |
K_DEPRECATED_2014 FBConstraintManager | ( | ) |
Constructor.
static FBConstraintManager& TheOne | ( | ) | [static] |
const char* TypeGetName | ( | int | pTypeIndex | ) | const |
Get the name of a registered type of constraint.
This will search in the registry for a constraint at the index pTypeIndex.
pTypeIndex | Index of a constraint type. |
int TypeGetCount | ( | ) | const |
Get the number of registered constraint types.
FBConstraint* TypeCreateConstraint | ( | int | pTypeIndex | ) |
Create a constraint by index.
Given the index in the registry, this function create an instance of this constraint. The newly created constraint will be automatically added to the scene.
pTypeIndex | Index of constraint type, must in range [0, TypeGetCount() ). |
FBConstraint* TypeCreateConstraint | ( | const char * | pName | ) |
Create a constraint by name.
Given the constraint type name in the registry, this function create an instance of this constraint. The newly created constraint will be automatically added to the scene.
pName | the name of the constraint to be created. |