Function set for Drag Fields.
Function set for creation, edit, and query of Drag Fields.
A drag field exerts a friction, or braking force, proportional to the speed of a moving object.
#include <MFnDragField.h>
Public Member Functions |
|
virtual MFn::Type | type () const |
Function set type. |
|
virtual | ~MFnDragField () |
Destructor. |
|
MFnDragField () | |
Default constructor. |
|
MFnDragField (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. |
|
MFnDragField (const MDagPath &object, MStatus *ret=NULL) | |
Constructor. |
|
MVector | direction (MStatus *ReturnStatus=NULL) const |
Returns the direction of the drag force's
influence along the x, y, and z axes. |
|
MStatus | setDirection (const MVector &dragDirection) |
Sets the direction of the drag force's
influence along the x, y, and z axes. |
|
bool | useDirection (MStatus *ReturnStatus=NULL) const |
Returns true if the braking force is exerted
only against the component of the object's velocity that lies along
the direction of the drag force. |
|
MStatus | setUseDirection (bool enable) |
Enables the braking force to be exerted only
against the component of the object's velocity that lies along the
direction setting of the drag force. |
|
MFnDragField (const MObject &object, MStatus *ret=NULL) | |
Constructor. |
|
Protected Member Functions |
|
virtual const char * | className () const |
Class name. |
~MFnDragField | ( | ) | [virtual] |
Destructor.
Class destructor.
MFnDragField | ( | MObject & | object, |
MStatus * | ReturnStatus =
NULL |
||
) |
Constructor.
Class constructor that initializes the function set to the given MObject.
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
MFnDragField | ( | const MDagPath & | object, |
MStatus * | ReturnStatus =
NULL |
||
) |
Constructor.
Class constructor that initializes the function set to the given constant MDagPath object.
[in] | object | The const MDagPath to attach the function set to |
[out] | ReturnStatus | The return status |
MFnDragField | ( | const MObject & | object, |
MStatus * | ReturnStatus =
NULL |
||
) |
Constructor.
Class constructor that initializes the function set to the given MObject.
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
MFn::Type type | ( | ) | const [virtual] |
Returns the direction of the drag force's influence along the x, y, and z axes.
You must have the Use Direction setting turned on for this attribute to take effect.
[out] | ReturnStatus | Status code |
Sets the direction of the drag force's influence along the x, y, and z axes.
You must have the Use Direction setting turned on for this attribute to take effect.
[in] | dragDirection | A vector representing direction. |
bool useDirection | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Returns true if the braking force is exerted only against the component of the object's velocity that lies along the direction of the drag force.
[out] | ReturnStatus | Status code |
MStatus setUseDirection | ( | bool | enable | ) |
Enables the braking force to be exerted only against the component of the object's velocity that lies along the direction setting of the drag force.
[in] | enable | Flag to enable or disable direction setting. |