Fly
double Fly (object obj, frame frm, double distance )
Return Value: 1.0 for success, 0.0 for failure
Arguments:
obj |
object in question |
frm | frame to use as a reference for the direction to move |
distance | distance along the local Z to move the object |
This function causes obj to be moved along it's local Z axis in the direction that it is facing at frame frm. Typically frm is set to NOW and the object will appear to fly in the direction it's facing. The actual amount that it moves per frame is controlled by distance.
Note: This function is time sensitive. That means that the items transformation at any given frame is dependant on it's transformation at every frame that came before it. That is, it can't know where it is now unless it also knows where it was a second ago; likewise it can't know where it was a second ago unless it knows where it was before that, and so on. For that reason the transformation of the item controlled by this function should not be referenced in another expression and will not render correctly over a network. To resolve this issue you must first freeze the motion of this item and then disable the expression that produced the frozen motion before rendering. See General Info->Compose for more information on freezing motions.
Converted from CHM to HTML with chm2web Pro 2.82 (unicode) |