Applying Behaviors to Particles


You've created particles and adjusted their parameters, including their color, in the Inspector. Let's see what happens when you apply behaviors.

You can apply behaviors to either the particle emitter or the particle cell. Behaviors applied to the emitter affect the emitteror where the particles are born. Behaviors applied to the particle cell are in turn applied to each individual particle. Let's apply the Edge Collision behavior to the particle cell so that the particles bounce off the edges of the frame.

1.

Press Cmd-4 to open the Layers tab.

2.

On the Layers tab, select the AquaBall particle cell.

3.

On the toolbar at the top of the Canvas, click the Add Behavior pop-up menu and choose Simulations > Edge Collision.

The particles bounce off the edges of the upper-right corner, but they don't get very far before they die.

Let's extend the Life parameter of the particles in the Particle Cell Dashboard to 10 seconds.

4.

Press D to change from the Edge Collision Dashboard to the Particle Cell Dashboard.

5.

On the Particle Cell Dashboard, drag the Life slider all the way to the right to extend the particles' lives for the full duration of the project (10 seconds).

6.

Press Cmd-S to save the finished AquaBall Particles project.

7.

Close the current project.

Congratulations! You've just created a particle system from scratch. Now let's create some particles with a little more personality.



    Apple Pro Training Series Getting Started with Motion
    Apple Pro Training Series: Getting Started With Motion
    ISBN: 0321305337
    EAN: 2147483647
    Year: 2005
    Pages: 283
    Authors: Mary Plummer

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net