获取碰撞检测 OpenGL 的顶点位置

发布于 2024-12-18 10:03:54 字数 118 浏览 5 评论 0原文

我试图弄清楚如何在使用 glRotate3f() 旋转立方体后获取其顶点

我使用球体边界框来缩小可能的碰撞范围,但我需要知道确切的顶点以获得准确的碰撞。谁能帮我解决这个问题。谢谢。

I am trying to figure out how to get the vertices of my cube after it has been rotates with glRotate3f()

Im using a sphere bounding box to narrow dow the possible collisions but I need to know the exact vertices to get an accurate collision. Can anyone help me figure this out. Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

千纸鹤带着心事 2024-12-25 10:03:54

也许不是您正在寻找的答案,但您正在从错误的角度解决问题。 OpenGL 应该用于绘制场景,仅此而已。场景管理以及与之相关的任何事情(变换、变形……仅举几例)应该由您(或适当的框架)处理。

Perhaps not the answer you're looking for, but you're approaching your problem from the wrong angle. OpenGL should be used to draw your scene and only that. Scene management and anything that goes along with it (transformations, deformations...to name just a few) should be handled by you (or an appropriate framework).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文