Command
translate
(
,
xIncrement
,
yIncrement
,
zIncrement
)
relativeTo
translate
(
direction
,
)
Vector
relativeTo
translate(
,
,
,
x
y
z
)
relativeTo
rotate(
,
,
,
x
y
z
)
relativeTo
rotate (
,
position
,
,
axis
angle
)
relativeTo
pointAt(
world
,
)
Position
worldUp
getWorld
Transform()
Description
Moves the camera forward by
yIncrement
along the y-axis, and
axis.
relativeTo
The
parameter is optional. It determines how
arguments are interpreted. The possible values are as follows:
#self
: the default. Increments are applied relative to the
camera's local coordinate system.
#parent
: increments are relative to the camera's parent's
coordinate system.
#world
: increments are relative to the world coordinate
#parent
system. Equivalent to
node
(model, light, camera, or group): increments are relative to
the coordinate system of the argument.
directionVector.length()
Moves the camera
direction of the directionVector.
The relativeTo argument is optional and defaults to
Moves the camera distance x along the x-axis, distance y along
the y-axis, and distance z along the z-axis.
relativeTo
The
argument is optional and defaults to
This command can also be written as
translate(vector(x,y,z) relativeTo)
Rotates the camera by x degrees around the x-axis, y degrees
around the y-axis, and z degrees around the z-axis.
relativeTo
The
argument is optional and defaults to
If included, it defines the coordinate space of the axes.
This command can also be written as
(vector(x,y,z) relativeTo)
rotate
Rotates the camera around the axis vector in the specified
position the specified number of degrees. The
argument is optional and defaults to
Rotates the camera until it points at the world-relative position
worldPosition
. The optional
the position of the camera's Up axis.
Both the object-relative axes are defined by the
pointAtOrientation
object-relative forward direction of
and an object-relative up direction of
Calculates and returns a transform that converts object-relative
positions for this camera into world-relative positions.
xIncrement
along the x-axis,
zIncrement
along the z-
if parent is the world.
#self
.
relativeTo
#self
.
worldUp
argument indicates
property. Default values are an
vector (0,0,-1)
vector (0,1,0)
Working with Models and Model Resources 519
Returns
Nothing
in the
Nothing
.
Nothing
#self
.
Nothing
#self
.
Nothing
Nothing
.
A transform object
Need help?
Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?
Questions and answers