Advertisement

Team-mate Keepy-Up A.I.

Started by October 03, 2007 07:33 PM
8 comments, last by kirkd 17 years, 1 month ago
Short point in bold; In-Depth continues afterward Is there a method for keeping team mates or groups of 'units' to stay is some kind of formation, even after movement? What I'm trying to explain, say you have yourself and a group of teammates, you move, then after a while, your teammates follow up afterward, but not in just any position they stop at, but more of a formation. Better yet, another example. Say you have a hord of angry demon-things. About nine of them. How can you keep those (eight) demon-things following their (one) leader of demon-things, in a specific formation, after movement? This will probably have a really easy/dumb solution, but I can't think straight today. Anyway, thanks a bunch.
Holy crap, you can read!
Do a search for steering behaviors. Here's a link:

http://www.red3d.com/cwr/steer/

My guess is that you could impose some constraints that would ensure/encourage particular formations.

-Kirk
Advertisement
They should try to move to their spot in the formation, instead of just following the leader.
Vorpy hit the nail on the head.

The key here is to use a point in formation as the target for the pathfinder. For example in Warriors they use V formations when your gang members follow you... If a part of the V is occupied by an obstacle, then fallback positions are used.

Then you can use traditional pathfinding and steering behaviors.

I hope that helps.

Join us in Vienna for the nucl.ai Conference 2015, on July 20-22... Don't miss it!

Yes, alexjc, that's exactly what I was trying to get to. How do you propose to do that?
Holy crap, you can read!
The same way you'd do any formation, just in the new position.

Are you asking how to do formations, as well as how to maintain them after moving?
Advertisement
Well, the demon-like relative question was answered, but what if you were the leader and you need people to follow you? (ie, Knights of the Old Republic)
Holy crap, you can read!
Methinks you need to be clearer with your questions. You are all over the map with some rather vague stuff.

Also, much of this has been discussed many many times all over the net and even in this thread. Do a forum search for "formation" and you should have all sorts of answers in one place rather than piecemeal.

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!"

Yeah, I know it's everywhere. I'm horrible at explaining things.
There's a search option? [looks]
Oh... [slaps self]
Thanks.
Holy crap, you can read!
Quote: Original post by Vorpy
They should try to move to their spot in the formation, instead of just following the leader.


Quote: Original post by alexjc
The key here is to use a point in formation as the target for the pathfinder.


My point exactly. Rather than trying to do pathfinding for each individual targeting unique locations based on the expected formation, wouldn't steering behaviors combined with formation/positional constraints give a similar result? I would think it would be much less costly than pathfinding (A*, IDA*, etc.), and might give rise to somewhat unique behavior.

-Kirk

Edit: This paper discusses my original suggestion: http://citeseer.ist.psu.edu/cache/papers/cs/25950/http:zSzzSzobiwan.redstorm.comzSz~jimvvzSzPathfindingzSzVanVerth00Pathfind.pdf/vanverth00formationbased.pdf

And another: http://www.maia.ub.es/~maite/papers/formationsWISAS.pdf

And yet one more: http://www.cc.gatech.edu/ai/robot-lab/online-publications/formjour.pdf

[Edited by - kirkd on October 4, 2007 11:43:58 AM]

This topic is closed to new replies.

Advertisement