
400
Chapter 17: Controlling the 3D World
rotation
Get and set
Script vector object describing the
xRotation
,
yRotation
, and
zRotation
components of the transform with the
value
vector(
xRotation
,
yRotation
,
zRotation
)
, with the rotation values
defined in degrees.
This value can vary because of the
permissible types of transform
operation. For example,
translate
followed by
rotate
gives a different
value than
rotate
followed by
translate
, and the results can’t be
differentiated after the fact from the
rotational information alone.
The
rotate()
and
preRotate()
methods
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.
vector
(0,0,0)
axisAngle
Get and set
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.
[vector
(1.0000,
0.0000,
0.0000)
A]
x axis
Get and set
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.
vector
(1,0,0)
y axis
Get and set
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)
vector
(0,1,0)
z axis
Get and set
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)
vector
(0,0,1)
Property
Access
Description
Default
Summary of Contents for DIRECTOR MX 2004-USING DIRECTOR
Page 1: ...DIRECTOR MX 2004 Using Director...
Page 16: ...16 Chapter 1 Introduction...
Page 82: ...82 Chapter 3 Sprites...
Page 98: ...98 Chapter 4 Animation...
Page 134: ...134 Chapter 5 Bitmaps...
Page 242: ...242 Chapter 10 Sound and Synchronization...
Page 274: ...274 Chapter 11 Using Digital Video...
Page 290: ...290 Chapter 12 Behaviors...
Page 302: ...302 Chapter 13 Navigation and User Interaction...
Page 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Page 392: ...392 Chapter 16 Working with Models and Model Resources...
Page 418: ...418 Chapter 18 Movies in a Window...
Page 446: ...446 Chapter 22 Managing and Testing Director Projects...