onsdag 23 mars 2016

Group formations prototype #1

Today we have experimented with some group formations. We have implemented an abstract base class for making the agents align in a specific formation. To use this class one has to inherit it and implement the method CreateTemplate(). In this method there needs to be specified how the relative positions to the leader of the group are placed. Also, the nr of agents has to be stated in the inspector and which of the agents is the leader.

Here is a demo of a group formation for walking on a line:


Here is a demo of a group walking in a triangle formation:



Inga kommentarer:

Skicka en kommentar