#include <MFnGravityField.h>
Function set for creation, edit, and query of Gravity Fields.
A gravity field simulates the Earth's gravitational force. It pulls objects in a fixed direction entirely independent of their position or mass.
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnGravityField () |
Destructor. | |
MFnGravityField () | |
Default constructor. | |
MFnGravityField (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
MFnGravityField (const MDagPath &object, MStatus *ret=NULL) | |
Constructor. | |
MVector | direction (MStatus *ReturnStatus=NULL) const |
MStatus | setDirection (const MVector &gravityDirection) |
MFnGravityField (const MObject &object, MStatus *ret=NULL) | |
Constructor. | |
Protected Member Functions | |
virtual const char * | className () const |
Class name. |
MFnGravityField::~MFnGravityField | ( | ) | [virtual] |
Destructor.
Class destructor.
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 |
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 |
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 MFnGravityField::type | ( | ) | const [virtual] |
Returns the direction of the gravitational force.
[out] | ReturnStatus | Status code |
Sets the direction vector of the gravitational force.
[in] | gravityDirection | A vector representing direction. |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |