Question about array path-finding

Started by
10 comments, last by fonix 22 years, 3 months ago
Try this:

Each unit in the formation has a prefered target position relative to the lead unit... e.g. "back 5 over 3" For each unit in a formation, you calculate a pathfinding routine to move toward that relative position. If the leader has to squeeze through an opening only wide enough for one, the followers will follow the wall to the door and file through one at a time in their quest to re-establish formation. Once on the other side of the opening, they would then move (hopefully unobstructed) toward their positions.

It''s all about telling the units where they need to be... which just happens to be a moving point behind the leader.

Dave Mark
Intrinsic Algorithm Development

Dave Mark - President and Lead Designer of Intrinsic Algorithm LLC
Professional consultant on game AI, mathematical modeling, simulation modeling
Co-founder and 10 year advisor of the GDC AI Summit
Author of the book, Behavioral Mathematics for Game AI
Blogs I write:
IA News - What's happening at IA | IA on AI - AI news and notes | Post-Play'em - Observations on AI of games I play

"Reducing the world to mathematical equations!"

Advertisement
Thank all of you for your suggestions.
I now have some idea about this question.
Thanks!
God create us-We create game

This topic is closed to new replies.

Advertisement