Jump to content
  • Advertisement
Sign in to follow this  
gcard28

colliding a moving AABB against a triangle

This topic is 3652 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I am having a devil of a time figuring out when a moving AABB collides with a triangle. I can't seem to figure this out. I think that this would be an extension of my ray triangle code but alas the way to relate a moving AABB to ray collision escapes me. Is there a kind soul that could point me in the right direction? either through relevant links (I was unable to find any) or pseudo code as to how one might go about this? Many thanks in advance to anyone who can help me. Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by gcard28

Hi,

I am having a devil of a time figuring out when a moving AABB collides with a triangle. I can't seem to figure this out. I think that this would be an extension of my ray triangle code but alas the way to relate a moving AABB to ray collision escapes me. Is there a kind soul that could point me in the right direction? either through relevant links (I was unable to find any) or pseudo code as to how one might go about this? Many thanks in advance to anyone who can help me. Thanks!
Note that this is actually more a 'math and physics' question than it is a 'graphics programming' question (the problem of intersecting two objects is generally independent of any graphical representation).

Anyway, the most straightforward way to accomplish this is probably by way of the SAT (separating axis test). This has been discussed a lot on these forums, so searching the archives will probably yield some good results.

The continuous AABB-triangle test is discussed a bit less than some other object pairs, so you may or may not find info on that specific test. However, once you understand how the SAT works, you should be able to contruct your own implementation.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!