Archive for October 8, 2010
Steering Behaviors: Flocking
Oct 8th
Flocking, click to watch
The next post steering behaviors series is unaligned collision avoidance. We will be using the Vector2D.as and Vehicle.as classes for this. You will need these classes for the this post. This post is based on Craig Reynold’s article Steering Behaviors For Autonomous Characters.
Flocking is created by combining several steering behaviors: Separation, Cohesion and Alignment.
Separation
Separation is similar to Unaligned Collision Avoidance. This behavior keeps the vehicles a certain distance away from others. This keeps the vehicles from colliding and crowding to close together.
To calculate separation, check each vehicle against the other More >


