获取碰撞检测 OpenGL 的顶点位置
我试图弄清楚如何在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许不是您正在寻找的答案,但您正在从错误的角度解决问题。 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).