group formations 3D rts

A528d11e2590c45b74a53dadde386125
0
Xcrypt 101 Apr 27, 2012 at 13:06

I managed to get pathfinding work for a single unit, and I managed to avoid agent-agent collision, but now I need to be able to send a group of agents to some location.
This is my set-up so far:

  • waypoint pathfinding
  • the minimum distance between two nodes is a little bigger than the biggest bounding sphere radius allowed for an agent.
  • agent avoid collisions with other agents by doing some steering behaviour I based on clearpath (http://www.youtube.com/watch?v=Hc6kng5A8lQ)

So now I need to send my agents somewhere in group. I have read some posts saying that some way to do it is to create a group leader and give the other units offsets to his position.
But then the problem is, what if the group formation cannot be achieved? eg you want to form a rectangle, but at the target position there is a structure nearby which prevents you from creating a rectangle setup.

1 Reply

Please log in or register to post a reply.

8676d29610e6c98d6dd2d9c38528cd9c
0
alphadog 101 May 01, 2012 at 20:43