FBConstraintManager Class Reference


Detailed Description

Constraint manager.

Examples
BasicOperations/FBConstraintManager.py
Inheritance diagram for FBConstraintManager:

List of all members.

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.

Member Function Documentation

K_DEPRECATED_2014 __init__ ( )

Constructor.

Deprecated:
This public constructor to be protected in the future. Use TheOne() function instead.
Examples
BasicOperations/FBConstraintManager.py
str TypeGetName ( int  pTypeIndex)

Get the name of a registered type of constraint.

This will search in the registry for a constraint at the index pTypeIndex.

Parameters:
pTypeIndexIndex of a constraint type.
Returns:
Name of constraint type.
int TypeGetCount ( )

Get the number of registered constraint types.

Returns:
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.

Parameters:
pTypeIndexIndex of constraint type, must in range [0, TypeGetCount() ).
Returns:
The newly created constraint, or NULL if pIndex is out of range.
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.

Parameters:
pNamethe name of the constraint to be created.
Returns:
The newly created constraint, or NULL if pName doesn't match any registered constraints.
FBConstraintManager TheOne ( )

Get the global FBConstraintManager object.

Returns:
the global object.

FBConstraintManager FBConstraintManager FBConstraintManager FBConstraintManager FBConstraintManager FBConstraintManager FBConstraintManager FBConstraintManager FBConstraintManager FBConstraintManager
FBConstraintManager FBConstraintManager FBConstraintManager FBConstraintManager FBConstraintManager FBConstraintManager FBConstraintManager FBConstraintManager FBConstraintManager FBConstraintManager