onsdag 23 mars 2016

UnitySteer Breaks

With the implementation of Unitysteer's path following and avoidance the following result were obtained.


As shown above, agents moving towards each other with the intention to avoid breaks, as the algorithm is random there are 2 possibilities. One, where they avoid each other by going the same direction respectively, and the other possibility is that they both go the same directions and ends up blocking each other for awhile.

One way to solve this scenario is to implement listeners, where the agents check at any incoming agents directions, if the incoming agents direction is towards the listener it can choose to change direction to avoid the incoming agent.