#include
<MFnNewtonField.h>
Function set for creation, edit, and query of Newton Fields.
A newton field pulls an object toward another with a force that is dependent on the mass of the object exerting the field. It follows Newton's Law of Universal Gravitation.
Public Member Functions |
|
virtual MFn::Type | type () const |
Function set type. |
|
virtual | ~MFnNewtonField () |
Destructor. |
|
MFnNewtonField () | |
Default constructor. |
|
MFnNewtonField (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. |
|
MFnNewtonField (const MDagPath &object, MStatus *ret=NULL) | |
Constructor. |
|
double | minDistance (MStatus *ReturnStatus=NULL) const |
MStatus | setMinDistance (double distance) |
MFnNewtonField (const MObject &object, MStatus *ret=NULL) | |
Constructor. |
|
Protected Member Functions |
|
virtual const char * | className () const |
Class name. |
MFnNewtonField::~MFnNewtonField | ( | ) | [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 MFnNewtonField::type | ( | ) | const [virtual] |
double MFnNewtonField::minDistance | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Returns the minimum distance from the newton field at which the force of the field is exerted.
[out] | ReturnStatus | Status code |
MStatus MFnNewtonField::setMinDistance | ( | double | distance | ) |
Sets the minimum distance from the newton field at which the force of the field is exerted.
[in] | distance | A value representing distance in internal linear units. |
Autodesk® Maya® 2011 © 1997-2010 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |