User Guide
Groups 365
registerScript
(eventName,
handlerName,
scriptInstance)
Registers a handler named handlerName that is called
in the
scriptInstance when the member method
sendEvent() is called with eventName as an argument.
If
scriptInstance is 0, a movie script handler is called.
The user defines what
eventName is. The eventName
specified can be one of a default set of events or a user
defined custom event. The default events are
#collideAny, #collideWith, #animationStarted,
#animationEnded, #timeMS.
Nothing
translate
(xIncrement,
yIncrement,
zIncrement,
relativeTo)
Moves the group by xIncrement along the x-axis,
yIncrement along the y-axis, and zIncrement along the
z-axis.
The
relativeTo parameter is optional. It determines
how arguments are interpreted. The possible values
are as follows:
#self: the default. Increments are applied relative to
the group’s local coordinate system.
#parent: increments are relative to the group’s parent’s
coordinate system.
#world: increments are relative to the world coordinate
system. Equivalent to
#parent if parent is the world.
node (group, light, camera, or group): increments are
relative to the coordinate system of the argument
object.
Nothing
translate
(direction
Vector,
relativeTo)
Moves the group directionVector.length() in the
direction of the vector
directionVector. The
relativeTo argument is optional and defaults to #self.
Nothing
translate
(x,y,z,
relativeTo)
Moves the group distance x along the x-axis, distance
y along the y-axis, and distance z along the z-axis. The
relativeTo argument is optional and defaults to #self.
This method can also be written as
translate(vector(x,y,z) relativeTo).
Nothing
rotate(x,y,z,
relativeTo)
Rotates the group by x degrees around the x-axis, y
degrees around the y-axis, and z degrees around the
z-axis.
The
relativeTo argument is optional and defaults to
#self. If included, it defines the coordinate space of
the axes.
This method can also be written as
rotate(vector(x,y,z) relativeTo).
Nothing
rotate (position,
axis, angle,
relativeTo)
Rotates the group around the axis vector in the
specified position the specified number of degrees.
The
relativeTo argument is optional and defaults to
#self.
Nothing
Method Description Returns