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 floor plan for the barrier models can be stored in a vectorShape member<br />

The barriers are designed with gently rounded interior corners. This makes it easy and natural to steer an avatar<br />

automatically out of a corner. See “Sliding along a wall” on page 237 for more details.<br />

You may prefer to use fewer points than that are used here. Fewer points in the corners lead to fewer polygons in the<br />

final mesh. More points leads to smoother turning in corners.<br />

You can find two handlers that take the vectorShape vertexList data and convert it to a list of 3D vectors in the Air<br />

Hockey behavior. They are called mGetVertexList() and mConvertTo3D().<br />

Building the barrier mesh<br />

The barrier mesh is built on the fly. Here is a CreateMesh() handler:<br />

Last updated 8/26/2011<br />

289

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

Saved successfully!

Ooh no, something went wrong!