Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8496779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:56:45+00:00 2026-06-10T23:56:45+00:00

I’ve been reading a whole lot on the Separating Axis Test and from all

  • 0

I’ve been reading a whole lot on the “Separating Axis Test” and from all the posts and articles I get the idea that they are all for 2D collisions, and not 3D. I heard that it’s more of a “Separating plane Theorem” for 3D space, but where to find information about how this method differs from the 2D version is unclear to me.

Should I be using the SAT, because I’m trying to compute whether the triangle has intersected the Axis-Aligned Bounding Box (AABB). I don’t need to know where the intersection occured, just a boolean result if it did or did not occur.

My main attempt at implementing the SAT is located here: Implementation attempt.

If the SAT needs to be modified, then what needs to be changed for it to be succesfully implemented in 3D space? Since at the moment there are 13 axes to be tested according to Christer Ericson from his book Real-Time Collision Detection. If the SAT needs to be changed then I would think that there would be more axes to test, since there is a third axis involved.

  1. Three face normals from the AABB
  2. One face normal from the triangle
  3. Nine axes given by the cross products of combination of edges from both

I need to understand if the SAT needs to be modified, and a push in the direction of where to modify and why. If no modification is needed, where am I going wrong? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T23:56:46+00:00Added an answer on June 10, 2026 at 11:56 pm

    After reading many different posts, articles, and papers (of which the best resource was this article) I now know that no modification needs to be made to the SAT for 3D collision detection.

    Although I’m still having some problems with my implementation, I can say that for the AABB (cube), you have to test 3 surface normals, corresponding to the x, y, and z axis. For the triangle, it looks like there needs to be 4 normals, one for each edge and one for the surface (I am not completely sure on the triangle normals since I still have to test. I tried with one normal and had 80% working).

    For the AABB (cube), the normals are calculated by getting two perpendicular edges of a surface and getting the cross-product of those two edges.

    // Surface 1/3 (x, y, z - one surface for each)
    Vector3d edge1 = new Vector3d();
    Vector3d edge2 = new Vector3d();
    Vector3d normal1 = new Vector3d();
    // Get the edges, the two edges must be perpendicular to one another.
    edge1.sub( point0, point1 );
    edge2.sub( point0, point4 );
    normal1.cross( edge1, edge2 );
    normal1.normalize();
    

    The triangle surface normal is calculated in the same way.

    After that the SAT takes the projections of the AABB and the triangle and tests those on the AABB axes (normals) then this is repeated on the triangle axes (normals) and if any one of the tests detects a gap there is no collision.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I know there's a lot of other questions out there that deal with this
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.