07.12.2012 Views

Adobe Director Basics

Adobe Director Basics

Adobe Director Basics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ADOBE DIRECTOR BASICS<br />

3D: Controlling action<br />

stiffness<br />

When a driveType of #position is used, the value of stiffness determines how responsive the joint is to the<br />

request to move to the desired position. Be careful not to set stiffness too low.<br />

damping<br />

When a driveType of #position is used, the value of damping determines how much passive resistance there is to a<br />

change in position or orientation. If stiffness is low and damping is low, the joint will oscillate around the target<br />

position after a sudden change in position. If stiffness is low and damping is high, then the joint may fail to move<br />

at all.<br />

Drive target properties<br />

In addition to setting the drive characteristics, you will need to set a target velocity or position. The time it takes to<br />

reach these targets will depend on the drive properties, as described above.<br />

d6joint.driveLinearVelocity: vector used with axisDrive, normalDrive and binormalDrive to define a target<br />

speed and direction.<br />

d6joint.drivePosition: vector used with axisDrive, normalDrive and binormalDrive to define a target position.<br />

d6joint.driveAngularVelocity: vector used with twistDrive and swingDrive to define a target rotation velocity<br />

d6joint.driveOrientation: axisAngle list used with twistDrive and swingDrive to define a target orientation.<br />

Axis properties<br />

d6joint.localAxisA<br />

d6joint.localAxisB<br />

d6joint.localNormalA<br />

d6joint.localNormalB<br />

The movie Hanging Chains using 6DOF.dir contains code which alters the values of these properties. However when<br />

this code is commented out (as it is now) the movie still behaves in exactly the same way.<br />

Cloth<br />

What if you want to place an animated flag or a banner in your game with a realistic cloth effect? You can easily<br />

simulate a cloth effect on low density meshes and bitmap images using <strong>Director</strong>. <strong>Director</strong> supports enhanced physics<br />

including a complex cloth physics simulation using the AGEIA physics engine.<br />

Your bitmap images can easily be transformed into a cloth in the scene using a few lines of code.<br />

Last updated 8/26/2011<br />

348

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

Saved successfully!

Ooh no, something went wrong!