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 />

Friction makes the Cube roll over and over, like a gaming dice, as it slows down<br />

Friction affects both linear movement and angular movement. Try the same experiment using the Spin Cube button.<br />

linearDamping<br />

Damping is similar to friction in some ways, and different in others. the following are the ‘damping’ properties:<br />

linearDamping only affects linear movement<br />

angularDamping only affects angular movement.<br />

The value of linearDamping determines how much energy is removed from an object moving through space, on every<br />

step. Like friction, a non-zero value for linearDamping will slow the object down. However, it is not dependent on<br />

any contact with another surface, and so it is not dependent on gravity. While friction can make an object roll on a<br />

surface, linearDamping will have no effect on its rotation.<br />

To test this, do the following:<br />

1 Restart the FirstWorld.dir movie.<br />

2 Set a fairly high value for linearDamping.<br />

3 Click on Lift Cube.<br />

4 Deselect the Reset Cube check box so that the Cube will remain suspended in mid air.<br />

5 Click the Push Cube button.<br />

In zero gravity, the Cube will float above the ground, and come to rest some distance away.<br />

Last updated 8/26/2011<br />

303

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

Saved successfully!

Ooh no, something went wrong!