07.12.2012 Views

Adobe Director Basics

Adobe Director Basics

Adobe Director Basics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ADOBE DIRECTOR BASICS<br />

3D: Controlling action<br />

The RotationDemo.dir movie demonstrates rotation around three different axes, using a group to help<br />

A group is attached to the rear right corner of the box. To tip the box backwards, it is rotated around the group's<br />

transform.zAxis. Because the group is a child of the box, its position relative to the box remains constant as the box<br />

rotates. The group's transform.xAxis is used next, as the axis for a new rotation. Finally, the box is spun around a<br />

vertical axis passing through the group's worldPosition.<br />

Using pointAt() to rotate a node<br />

To make a node rotate to face at a given point in space, you can use the pointAt command. Define a target using any<br />

of the following techniques:<br />

node.pointAt(anotherNode)<br />

node.pointAt(worldPositionVector)<br />

node.pointAt(x, y, z)<br />

To see a demonstration of all three techniques, download and launch the movie pointAt.dir.<br />

Last updated 8/26/2011<br />

212

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!