Collisions


If you had added a Gravity field to any of your particle objects, the particles would have fallen out of view because there was nothing in the scene to stop them. You can use the Make Collide command to tell Maya to make the particles collide with certain geometry.

For example, for a scene in which you want fog to roll along the ground, you can create a particle object, attach Air and Gravity fields, and have the particles collide with the ground. The particles then will fall to the ground and be pushed along by the Air field.

To create a particle collision:

1.

Create a particle object and attach an Air field, following the steps in the task "To attach a field to a particle object."

2.

Select the particle, and, from the Fields menu, select Gravity.

3.

From the Create menu, select the box beside NURBS Primitives > Plane.

4.

In the Options dialog box that opens, give the plane 10 patches in U and V.

5.

Click Create.

6.

Scale the plane so that it's large enough to represent the ground. Select a few CVs around the center of the plane, and translate them in the positive y direction to create a hill (Figure 18.45).

Figure 18.45. Create a small hill for the particles to collide with.


7.

In object mode, translate the plane in the negative y direction so that the plane is below the particles.

8.

Select the particle object and the ground plane (Figure 18.46).

Figure 18.46. Select the ground plane and the particle object to make them collide.


9.

From the Particles menu, select Make Collide.

10.

Rewind the animation by clicking the Rewind button , and then click Play to see the effect.

The particles now fall to the ground and are pushed along the surface by the Air field (Figure 18.47).

Figure 18.47. Particles collide with the ground geometry and flow over the hill.


Tip

  • So you can more easily see and select the particles, select the particle, open the Attribute Editor by pressing and change the render type to Cloud.





Maya 7 for Windows and Macintosh(c) Visual Quickstart Guide
Maya 7 for Windows & Macintosh
ISBN: 0321348990
EAN: 2147483647
Year: 2006
Pages: 185

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