Game Development Reference
In-Depth Information
Creating a group of followers
In this example, we're going to build another AI type called a follower agent. This time, a
group of followers will stay together and move toward their leader. The leader, on the other
hand, is still the same seeking agent that will randomly move around the sandbox, com-
pletely oblivious to the group of followers behind it.
Group-based movement using separation, cohesion, and alignment
To create followers, we'll use multiple steering forces to combine, separate, and align our
agents to the leader agent they are following.
Search WWH ::




Custom Search