Archive for June 11, 2010
Steering Behaviors: Seeking
Jun 11th
Steering behaviors are used to create intelligent movements on a computer. These posts will be an AS3 version of the principles illustrated in Craig Reynolds’ article located at http://www.red3d.com/cwr/steer/gdc99/.
Before we can start using steering behaviors, we need a few classes. First we will be using, yet again, the Vector2D.as class. Steering behaviors rely on vector math, so you should be familiar with it.
If you need more information on vector mathematics, you can look here:
https://users.cs.jmu.edu/bernstdh/web/common/lectures/slides_vector-math-2d.php
http://en.wikipedia.org/wiki/Vector_%28mathematics%29
Next we will need a vehicle class to hold all the vehicle’s properties. The properties each vehicle will More >





