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

For information on how to create, access and delete a spring, see “Joints and springs” on page 330. To experiment with<br />

the way a spring will link two rigid objects together, download the Springs <strong>Basics</strong>.dir.<br />

The Springs <strong>Basics</strong>.dir movie shows how a spring can be controlled<br />

The Springs <strong>Basics</strong>.dir movie has seven screens where you can test the effect of modifying all eight parameters for a<br />

spring.<br />

restLength defines the distance between the models at which neither a compression nor an expansion force will<br />

act between the two models.<br />

objectA and objectB define the rigidBody objects connected to each end of the constraint.<br />

pointA and pointB are the vector positions in the frame of reference objectA and objectB to which the constraint<br />

is to be attached.<br />

stiffness is a non-negative floating point number to define the strength of the spring.<br />

damping is a non-negative floating point number to define how much the spring must oscillate before reaching a<br />

rest position.<br />

flags is a symbol which defines whether the spring must exert a force only when it is compressed<br />

(#kDuringCompression), only when it is extended (#kDuringExpansion), or in both directions (#kBoth).<br />

Additional example<br />

The movie Net using Joints.dir demonstrates how to create a net out of a grid of rigidBody objects held together by<br />

springs.<br />

Last updated 8/26/2011<br />

337

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

Saved successfully!

Ooh no, something went wrong!