Separating Axis Test for Axis-Aligned Bounding Box and Triangle produces incorrect results (3D)

后端 未结 2 1092
没有蜡笔的小新
没有蜡笔的小新 2021-01-21 04:29

I\'m doing triangle to AABB intersection tests, and I\'m taking this sample code from Real-Time Collision Detection by Christer Ericson. What the author says in the boo

2条回答
  •  不知归路
    2021-01-21 04:55

    You can check my c# (almost identical to java in this case...) implantation in a game i made a little while ago. http://code.google.com/p/gotcha/source/browse/trunk/Gotcha/trunk/Gotcha/Gotcha/GameEnteties/GameEntity.cs#171

    Look for the method : IsSATCollision

    Think about the parameter it accepts as just something that has vertices for simplicity.

提交回复
热议问题