Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Collision Detection Algorithm

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
920 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon
Ratings have been disabled for this video.

Uploaded by on Jul 9, 2011

This project was an experiment on optimizing collision detection and response. The video to the right shows the program (written in C# and WPF) running with 35,000 circular objects in a 30,000 square pixel environment running at 60 fps. My simulation is discrete, rather than continuous, and the well known caveat of a discrete system can be seen here: small, fast moving objects can ocassionally phase through other objects instead of being caught by the collision system.

My algorithm uses a variation of a two axis sweep and prune algorithm for broadphase collision detection. I only sweep on the x-axis (as y-axis collision is cheap enough to determine seperately once x-axis collision is assured). I also split the planes into a number of vertical and horizontal slices in hopes to lessen the number potential collisions found during the sweeping process.

The sweep and prune approach could also be easily extended to work for any number of dimensions, if needed.

Visit http:\\rtuckergameprogramming.com for more.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

All Comments

Adding comments has been disabled for this video.
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