Property
rotation
axisAngle
x axis
y axis
z axis
400
Chapter 17: Controlling the 3D World
Access
Get and set
Get and set
Get and set
Get and set
Get and set
Description
Script vector object describing the
,
, and
xRotation
yRotation
components of the transform with the
value
vector(xRotation, yRotation,
, with the rotation values
zRotation)
defined in degrees.
This value can vary because of the
permissible types of transform
operation. For example,
followed by
gives a different
rotate
value than
followed by
rotate
, and the results can't be
translate
differentiated after the fact from the
rotational information alone.
The
and
rotate()
preRotate()
are the preferred way to modify a
transform's orientation. Rotation is
generally relative to the object's original
orientation at the start of the movie.
A list including a vector and a floating-
point value that describes this
transform's rotation as an axis/angle
pair.
The vector represents the direction, and
the angle represents the rotation around
the vector.
A vector representing the transform's
canonical x axis in transform space.
Example:
transform.identity()
transform.rotate(0,90,0))
put transform.xaxis
--vector(0,0,-1)
Canonical means reduced to the
simplest possible mathematical
expression.
A vector representing the transform's
canonical y axis in transform space.
Example:
transform.identity()
transform.rotate(90,0,0)
put transform.yaxis
--vector(0,0,1)
A vector representing the transform's
canonical z axis in transform space.
Example:
transform.identity()
transform.rotate(0,90,0)
put transform.zaxis
--vector(1,0,0)
Default
vector
(0,0,0)
zRotation
translate
methods
[vector
(1.0000,
0.0000,
0.0000)
A]
vector
(1,0,0)
vector
(0,1,0)
vector
(0,0,1)
Need help?
Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?
Questions and answers