Exercise 11.3. Setting Up a Vector Field for Moths

In this exercise, you’ll set up a Vector Field Space Warp and use it with the Space Warp behavior, to push delegates around the object. Since the delegates already have a Seek behavior telling them to seek the object, and an Avoid behavior telling them to avoid one another, the result should be that they fly around and around the object without penetrating it.

This setup causes delegates to alternately approach the object and back off from it. Sounds like the way moths behave, doesn’t it? This trio of behaviors—Seek, Avoid, and Space Warp—is very handy for simulations of insects, birds, airplanes, spaceships, and other flying objects. Refinements for the delegates, such as speed, whether they ...

Get 3ds Max Animation with Biped now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.