Constraint manager.
Public Member Functions | |
K_DEPRECATED_2014 | __init__ () |
Constructor. | |
str | TypeGetName (int pTypeIndex) |
Get the name of a registered type of constraint. | |
int | TypeGetCount () |
Get the number of registered constraint types. | |
FBConstraint | TypeCreateConstraint (int pTypeIndex) |
Create a constraint by index. | |
FBConstraint | TypeCreateConstraint (str pName) |
Create a constraint by name. | |
FBConstraintManager | TheOne () |
Get the global FBConstraintManager object. |
K_DEPRECATED_2014 __init__ | ( | ) |
Constructor.
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 | ( | ) |
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 | ( | str | 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. |
FBConstraintManager TheOne | ( | ) |