# colliding a moving AABB against a triangle

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

## 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 on other sites
Quote:
 Original post by gcard28Hi,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.

1. 1
Rutin
70
2. 2
3. 3
4. 4
5. 5

• 21
• 10
• 33
• 20
• 9
• ### Forum Statistics

• Total Topics
633422
• Total Posts
3011800
• ### Who's Online (See full list)

There are no registered users currently online

×