x


making formations

hi

how do I make formations. I want 5 characters following my main character and I want them to follow me and do different formation like circle, all at front, all behind me. and attack at my command.

Can someone make a example pf this using cubes.

all help would be great

more ▼

asked Mar 21 '10 at 03:12 AM

zero gravatar image

zero
49 13 15 21

(comments are locked)
10|3000 characters needed characters left

1 answer: sort newest

Initially making a formation like this is straightforward - distribute the circle in segments for each follower, then steer the follower so that he remains at an expected distance and angle from his leader.

Holding such a formation through varying terrain is a non-trivial task. Judging from how general your question is, it sounds like you have little experience in AI. Is that correct? For starters, you may want to read articles on AIGameDev on the topic. This are very different if you want to hold said formation in land, for instance, than if you want to do it in space.

more ▼

answered Mar 21 '10 at 09:48 AM

Ricardo gravatar image

Ricardo
5.2k 20 32 96

thanks for your reply,

i am a begginer to unity, only about 2 weeks of experience. i am attemepting to make a new type of rts game. so the formation system will work like this, i click a button on my gui like circle formation and all my soldiers form a cicrle around me and where ever i move they move with me keeping the formation. the problem is that i dont know how to script this, can you help me get started or give me an expample script

thanks again

Mar 22 '10 at 04:09 AM zero

It doesn't matter as much if you're a beginner to Unity or not, but if you've ever done AI before. If you haven't, I recommend that you first get a basic version of your game working, and then start worrying about things like formations.

Mar 22 '10 at 07:36 AM Ricardo
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5089
x960
x48

asked: Mar 21 '10 at 03:12 AM

Seen: 1505 times

Last Updated: Mar 21 '10 at 09:48 AM