Battle Simulation

Loading...

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

Uploaded by on Jan 18, 2010

This is an experiment with some really basic physics I did to see how many units I could simulate having a good old battle. The hard part is writing a quick algorithm to select a target for each unit to attack. In the end I partitioned the units into a grid of buckets and used a circle-square intersection test to filter out the possible candidates to be attacked. The most units I've managed to run at a decent frame rate was around 10,000 not counting the dead ones :)

I've uploaded the app. Mac OS X only http://bit.ly/oCHlpg

Use Q,W,E,R to spawn red units and U,I,O,P to spawn blue units.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (davidrzepa)

  • Sorry I took so long to reply, I somehow missed your comments :S . I've uploaded the app and added a link in the video description.

  • At the beginning, why is the red team being dominated by the blue one? Is it a difference made by units composing each waves? Or is it a different style of thinking for each team?

  • @sXChimicXs There is no artificial intelligence for spawning units in this video. The unit spawning is completely controlled by the keyboard.

see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • do you think u can put the link on here please. thank you

  • do you think you can give me the download link to this battle sim. please and thank you

  • Awesome! I wish you could do it in human form though =)

  • DOWNLOAD LINK PLZ

  • Please download link!!

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