User Guide
514 Chapter 12: Methods
Parameters
None.
Example
This statement displays the root menu:
-- Lingo syntax
member(1).rootMenu()
// JavaScript syntax
member(1).rootMenu();
See also
DVD
rotate
Usage
member(whichCastmember).node(whichNode).rotate(xAngle, yAngle, \
zAngle {, relativeTo})
member(whichCastmember).node(whichNode).rotate(rotationVector \
{, relativeTo})
member(whichCastmember).node(whichNode).rotate(position, axis, \
angle {, relativeTo})
transform.rotate(xAngle, yAngle, zAngle {, relativeTo})
transform.rotate(rotationVector {, relativeTo})
transform.rotate(position, axis, angle {, relativeTo})
Description
3D command; applies a rotation after the current positional, rotational, and scale offsets held by
the node’s transform object or the directly referenced transform object. The rotation must be
specified as a set of three angles, each of which specify an angle of rotation about the three
corresponding axes. These angles may be specified explicitly in the form of
xAngle, yAngle, and
zAngle, or by a rotationVector, where the x component of the vector corresponds to the
rotation about the X axis,
y about Y axis, and z about Z axis. Alternatively, the rotation may also
be specified as a rotation about an arbitrary axis passing through a point in space.
Parameters
xAngle Required if applying a rotation using x-, y-, and z-axes. Specifies the angle of rotation
about the
x-axis.
yAngle Required if applying a rotation using x-, y-, and z-axes. Specifies the angle of rotation
about the
y-axis.
zAngle Required if applying a rotation using x-, y-, and z-axes. Specifies the angle of rotation
about the
z-axis.
rotationVector Required if applying a rotation using a vector. Specifies the vector that contains
the angles to apply.
position Required if applying a rotation about an arbitrary axis passing through a point in space.
Specifies position in space.
axis Required if applying a rotation about an arbitrary axis passing through a point in space.
Specifies the axis passing through the specified position
position.