- Home /
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
Answer by Ricardo · Mar 21, 2010 at 09:48 AM
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.
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
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.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Unity 3D Audio Clip Disabled 1 Answer
Switch Case for Basic AI.... 1 Answer
Setting Scroll View Width GUILayout 1 Answer
AI Raycast movement and direction 1 Answer