| SetMovementAttributes
Changes the settings for the movement of each selected instance
bSuccess = myObject.SetMovementAttributes( Flags )
Return value
TRUE if the attributes were changed successfully, otherwise FALSE.
Parameters
- Flags
One or more of the following:
- MODE_REVERSE
In this mode, the object will travel backwards along the path
- MODE_CONTINUE
In this mode, the object will travel forwards along the path (default)
- MODE_NONE
In this mode, the object will remain stationary
- PATH_LINEAR
In this mode, the object will travel between points in straight lines (default)
- PATH_POINT
In this mode, the object will jump between points instantly
- PATH_CUBIC
In this mode, the object will use cubic interpolation to smooth it's path between points
- PATH_COSINE
In this mode, the object will use cosine interpolation to smooth it's path between points
- PATH_HERMITE
In this mode, the object will use hermite interpolation to smooth it's path between points
Comments
MODEs are mutually exclusive, as are PATHs, but you can set a NODE and a PATH with one call to SetMovementAttributes.
Hermite interpolation with tension and bias both set to 0 equates to Cubic interpolation. Higher tension makes it more like linear and each point's bias changes how the corners are curved.
See also
Path:SetMovementAttributes [instance]
JAM © 2005 no one in particular Project started by David Evans in 2005 | |