Jump to content
  • Advertisement
aganm

AI formation movement

Recommended Posts

I found a video showing formation movement at around 10 seconds in. When he gives a move order, the formation moves in a narrow column facing forwards, and when it reaches destination, the formation stands still, but each soldier changes direction so that it's now a wide formation facing the enemy. What algorithms are behind this kind of movement?

 

Edited by aganm
simplified

Share this post


Link to post
Share on other sites
Advertisement

It looks like the troops are moving in a certain X by Y shape facing the movement direction, and then when they reach the destination each soldier just rotates individually towards the destination.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!