Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我应该检查两个金字塔之间的 AABB 碰撞。我查了AABB,简单到可以查。我得到了两个金字塔的顶点,以及 4 个世界位置。我应该计算我已经完成的 AABB 碰撞框,然后看看它们的金字塔是否碰撞。我感到困惑的部分是世界坐标是什么?每个金字塔有 4 个,所以它们不是顶点。我可以根据顶点判断它们是否发生碰撞,那么世界位置有什么用?
世界位置肯定会代表指示金字塔中心在世界上的位置的矢量变换吗?
你应该写一个AABB扫描测试吗?这需要你知道两个金字塔是如何移动的(因此你需要额外的信息)。