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

Limited freedom<br />

You must set the limits of a freedom before setting the motion of that freedom to #limited. If you set give a particular<br />

motion limited freedom when the limits are all set to zero, you will see no change when you modify the value of the<br />

limits. If you set any of the limits to a non-zero value, then set the motion of a given freedom to #limited, any changes<br />

that you make to the limits will be respected. If you set all limits to zero, then the motion will become locked again,<br />

regardless of any new limit settings that you apply. You will need to reset the motion to #limited for any new changes<br />

to be taken into account.<br />

The limitValue for angular motions has to be expressed in radians. The interface shows it in degrees.<br />

You can double-click on any slider to reset it to its initial value.<br />

Note that the stiffness is value of 0, which means that the joint is completely rigid. A stiffness value of 0.00001 is<br />

extremely loose, whereas as value of 100000 gives similar behavior to a value of 0.0. If stiffness is zero and<br />

limitValue is zero, then no movement will occur.<br />

If stiffness is low, a motion may exceed its limitValue before easing back. If damping is also low, a freedom with<br />

#limited motion may behave almost as if it were free.<br />

Note: To simplify the interface, the display for #limitValue can vary between 0.0 and 180.0. This gives a good range<br />

for both linear and angular motion, if angular motion were considered in degrees. However, angular limits must be in<br />

the range 0.0 - 3.14159 (or pi). Angular limits need to be defined in radians, not degrees.<br />

Drive<br />

A D6Joint can be driven along each degree of freedom, which means you can provide both a linear and an angular<br />

motion along each of the three axes. For each driven motion there are two types of drives. So, there are twelve<br />

possibilities of which any six can be active at one time. The values for driveType are as follows:<br />

#position: attempts to move the joint to a given position or orientation. An example is a piston, which pushes in<br />

a given direction, or a door closer that rotates a door back to its closed position after it has been opened.<br />

#velocity: attempts to move the joint at a constant speed in a given direction. An example is a train wheel. For a<br />

wheel rigidBody, like the one in the 6DOF.dir movie, you can set the joint's axisDrive to slide the wheel along the<br />

track, or you can set its swingDrive to rotate it around its zAxis.<br />

These examples are illustrated below:<br />

Last updated 8/26/2011<br />

340

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

Saved successfully!

Ooh no, something went wrong!