Programming large swarms

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
160 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 17, 2011

In this video, I show the principles behind a fairly simple way to program a large swarm of aggressive units/creatures. It can be made very efficient, making it suitable for real-time use in games. However, it could also work well if you are scripting for rendered animation.

I haven't gone into detail here on the maths involved in the steering and other movement calculations, so you'll need some knowledge of programming simple physics to make it work.

This technique was based on an article in "AI Game Programming Wisdom", edited by Steve Rabin. I highly recommend that series of books if you are interested in game development and/or artificiaI intelligence.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (ElusivePete)

  • Thanks for the video Pete :) I'm going to try to implement this in the shmup I'm working on in my spare time.

  • @RossKilgariff Glad you like it! And that sounds cool -- I'd love to see what you come up with.

    Just as a note, I think I got a bit in the video slightly wrong. In the patrol state, I said each unit steers by a constant amount. There is a steering constant (randomised for each unit), but it's applied as an inverse proportion of the unit's speed, within certain limits. That's not the only way to implement it, but it can give a nice simple swirling effect.

see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • Wow, nice video! I've just begun to program something swarm like and this gives me a lot ideas! Thanks!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more