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

Separate Axis Theorem - Collision detection and response

Loading...

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

Uploaded by on Aug 23, 2011

My buggy but acceptable implementation of using the Separate Axis Theorem for convex rigid bodies.

The implementation works for any convex shape with rotation, as well as realistic impulses including angular impulse.

It only supports resolving a single collision point per collision so it doesn't work too well with Edge to Edge collision but that isn't that important for what I need it for.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • @mbh95 My implementation was a little dodgy in how it got the details of the collision as it could only resolve one vertex for each collision. I basically did a loop through each vertex and the global position of the axis that gave the minimum translation vector and the vertex with the smallest distance to that axis would be the collision point, MOST of the time. It's not perfect but it works pretty well. If you have any luck with a better way of doing it I would be interested to hear from you!

  • I've also implemented the Separating Axis Theorem (in java), but I don't even know where to begin for rotational collision response. If you (or someone else reading this) could point me to a book, online resource etc. that deals with rotational physics, or supply your source code, it would be much appreciated.

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