Game Development Reference
In-Depth Information
can be rectangular, called Uniform or Circular . Select Uniform for the type and set
x and z widths to 75 . Then, set the angle to 45 and the magnitude to 100 . The white
arrow visualizes the angle for the vector field. Place the field over the initial positions
for the ships, as shown:
If you run the demo now, ships will all veer to the left before avoiding the cylinder.
For larger levels, you can set up multiple vector fields; they are a good way to control
the general movement of AI characters.
This Fame demo showed you the basics you'll need to create organized crowds for
most games: creating crowds, giving them directions to move, and adding obstacles
and vector fields. Next, we will look at another specialized AI plugin, ANT-Op. You
can see the ship group changing its direction because of the vector field. You can
also notice how our crowd uses the vector fields to direct ship movement to the left:
Search WWH ::




Custom Search