This reference page is linked to from the following overview topics: List of Python FBX classes.
An aim constraint governs an object's orientation so that the object points to other objects.
For example, you can use the aim constraint to point a light at an object or group of objects.
Definition at line 57 of file kfbxconstraintaim.h.
#include <kfbxconstraintaim.h>
Public Types |
|
enum |
EAimConstraintWorldUpType { eAimAtSceneUp, eAimAtObjectUp, eAimAtObjectRotationUp, eAimAtVector, eAimAtNone, eAimAtCount } |
Constraint world up type, which has the same meaning with Maya
|
|
Public Member Functions |
|
void | SetLock (bool pLock) |
Set the constraint lock state. |
|
bool | GetLock () |
Retrieve the constraint lock state. |
|
void | SetWeight (double pWeight) |
Set the weight of the constraint. |
|
virtual void | SetOffset (KFbxVector4 pRotation) |
Set the rotation offset. |
|
KFbxVector4 | GetOffset () const |
Retrieve the constraint rotation offset.
|
|
void | AddConstraintSource (KFbxObject *pObject, double pWeight=100) |
Add a source to the constraint. |
|
int | GetConstraintSourceCount () const |
Retrieve the constraint source count.
|
|
KFbxObject * | GetConstraintSource (int pIndex) const |
Retrieve a constraint source object.
|
|
void | SetConstrainedObject (KFbxObject *pObject) |
Set the constrained object. |
|
KFbxObject * | GetConstrainedObject () const |
Retrieve the constrained object. |
|
void | SetWorldUpType (EAimConstraintWorldUpType pType) |
Set the world up type. |
|
EAimConstraintWorldUpType | GetWorldUpType () const |
Retrieve the world up type. |
|
void | SetWorldUpObject (KFbxObject *pObject) |
Set the world up object. |
|
KFbxObject * | GetWorldUpObject () const |
Retrieve the world up object. |
|
Protected Member Functions |
|
KFbxConstraintAim (KFbxSdkManager &pManager, char const *pName) | |
virtual bool | ConstructProperties (bool pForceSet) |
virtual EConstraintType | GetConstraintType () const |
Access the type of the constraint. |
|
Properties |
|
KFbxTypedProperty< fbxDouble3 > | RotationOffset |
This property handles the rotation offset
value. |
|
KFbxTypedProperty< fbxReference > | AimAtObjects |
This property provides access to the object
or objects which are the targets. |
|
KFbxTypedProperty< fbxReference > | ConstrainedObject |
This property provides access to the object
being aimed. |
|
KFbxTypedProperty< fbxEnum > | WorldUpType |
This property handles world up type.
|
|
KFbxTypedProperty< fbxReference > | WorldUpObject |
This property handles world up object.
|
|
KFbxTypedProperty< fbxDouble3 > | WorldUpVector |
This property handles world up vector.
|
|
KFbxTypedProperty< fbxDouble3 > | UpVector |
This property handles up vector. |
|
KFbxTypedProperty< fbxDouble3 > | AimVector |
This property enables you set a specific
axis for the constrained object to orient towards. |
|
KFbxTypedProperty< fbxBool1 > | AffectX |
This property handles whether to affect the
rotation around X axis. |
|
KFbxTypedProperty< fbxBool1 > | AffectY |
This property handles whether to affect the
rotation around Y axis. |
|
KFbxTypedProperty< fbxBool1 > | AffectZ |
This property handles whether to affect the
rotation around Z axis. |
Constraint world up type, which has the same meaning with Maya
Definition at line 135 of file kfbxconstraintaim.h.
KFbxConstraintAim | ( | KFbxSdkManager & | pManager, |
char const * | pName | ||
) | [protected] |
void SetLock | ( | bool | pLock | ) | [inline] |
Set the constraint lock state.
pLock | The new state of the lock flag. |
Definition at line 148 of file kfbxconstraintaim.h.
bool GetLock | ( | ) | [inline] |
Retrieve the constraint lock state.
Definition at line 153 of file kfbxconstraintaim.h.
void SetWeight | ( | double | pWeight | ) |
Set the weight of the constraint.
pWeight | The new weight value. |
virtual void SetOffset | ( | KFbxVector4 | pRotation | ) | [virtual] |
Set the rotation offset.
pRotation | The new rotation offset vector. |
Reimplemented from KFbxConstraint.
KFbxVector4 GetOffset | ( | ) | const |
Retrieve the constraint rotation offset.
void AddConstraintSource | ( | KFbxObject * | pObject, |
double | pWeight =
100 |
||
) |
Add a source to the constraint.
pObject | New source object. |
pWeight | Weight of the source object. |
int GetConstraintSourceCount | ( | ) | const [virtual] |
Retrieve the constraint source count.
Reimplemented from KFbxConstraint.
KFbxObject* GetConstraintSource | ( | int | pIndex | ) | const [virtual] |
Retrieve a constraint source object.
pIndex | The specified index. |
Reimplemented from KFbxConstraint.
void SetConstrainedObject | ( | KFbxObject * | pObject | ) |
KFbxObject* GetConstrainedObject | ( | ) | const [virtual] |
Retrieve the constrained object.
Reimplemented from KFbxConstraint.
void SetWorldUpType | ( | EAimConstraintWorldUpType | pType | ) |
EAimConstraintWorldUpType GetWorldUpType | ( | ) | const |
void SetWorldUpObject | ( | KFbxObject * | pObject | ) |
KFbxObject* GetWorldUpObject | ( | ) | const |
virtual bool ConstructProperties | ( | bool | pForceSet | ) | [protected, virtual] |
Reimplemented from KFbxConstraint.
virtual EConstraintType GetConstraintType | ( | ) | const [protected, virtual] |
Access the type of the constraint.
Reimplemented from KFbxConstraint.
This property handles the rotation offset value.
Default value is (0, 0, 0).
Definition at line 70 of file kfbxconstraintaim.h.
This property provides access to the object or objects which are the targets.
Definition at line 74 of file kfbxconstraintaim.h.
This property provides access to the object being aimed.
Definition at line 78 of file kfbxconstraintaim.h.
This property handles world up type.
Definition at line 82 of file kfbxconstraintaim.h.
This property handles world up object.
Definition at line 86 of file kfbxconstraintaim.h.
This property handles world up vector.
Default value is (0, 1, 0).
Definition at line 92 of file kfbxconstraintaim.h.
This property handles up vector.
Default value is (0, 1, 0).
Definition at line 98 of file kfbxconstraintaim.h.
This property enables you set a specific axis for the constrained object to orient towards.
Default value is (1, 0, 0).
Definition at line 104 of file kfbxconstraintaim.h.
This property handles whether to affect the rotation around X axis.
Default value is true.
Definition at line 110 of file kfbxconstraintaim.h.
This property handles whether to affect the rotation around Y axis.
Default value is true.
Definition at line 116 of file kfbxconstraintaim.h.
This property handles whether to affect the rotation around Z axis.
Default value is true.
Definition at line 122 of file kfbxconstraintaim.h.