DirectX 碰撞测试。 - 值得自己制造引擎吗?
我正在尝试使用 Visual C++\DirectX 学习游戏编程。目前我可以加载 XMeshes,移动它们,围绕它们转动相机,仅对盒子世界进行碰撞测试等。(我为这些东西做了一些简短的类)
现在,我为地形制作了一个 3D 模型,我想让我的角色在上面移动。 Flash AC3 上有一个 hittest 功能,可以检查物体是否相互接触。实际上,我并不期望在 DirectX 8D 上进行碰撞测试有那么简单的方法,但我什至不知道如何做到这一点...所以,如果您能给我一个关于该问题的想法或资源链接或任何与学习有关的事情:那太好了……
另外我想问。我必须选择哪条路?创建我自己的引擎还是使用另一个引擎?如果是这样,你能推荐我应该使用的引擎之一吗?(其实我只是想在斜坡上进行碰撞测试,而不是使用另一个引擎或Dark GDK。)
总之我想学习斜坡上的碰撞测试......
感谢您抽出时间...
I'm trying to learn game programming with Visual C++\DirectX. At the moment I can load XMeshes, move them around, turn the camera around them, make collision test for only a box world etc.(I made some short of classes for these things)
Now, I made a 3D model for terrain and I want to make my character move on it. There is an hittest function on Flash AC3 that checks if objects touching each other. Actualy I don't expect that much easy way to make collision test on DirectX 8D, but I don't even have any idea about how to do that... So, If you can give me an idea about that or link for resources or anything to being learning: that would be fantastic...
Plus I want to ask. Which way I have to choose? Creating my own engine or using another one? If so can you suggest one of the engines I should use?(Actualy I just want to make collision test on sloping land, not using whole another Engine or Dark GDK.)
In short I want to learn collision test on sloping land...
Thank for giving your time...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用:http://msdn.microsoft .com/en-us/library/bb172882(v=vs.85).aspx
在一些旧的 DX9 SDK 中有一个示例,但我似乎无法在网上找到它......
对于第二个问题:如果您正在学习,请先尝试自己做所有事情。这将使您可靠地了解 3D 引擎如何工作、如何使用它们、它们可以做什么、不能做什么等。然后切换到现有的解决方案,因为它们可能会做得更好:)
You can use this: http://msdn.microsoft.com/en-us/library/bb172882(v=vs.85).aspx
There was a sample on it in some old DX9 SDK, but I can't seem to find it over the net...
For the second question: if you're learning, try to do everything yourself first. That will give you reliable understanding of how 3D-engines work, how to use them, what they can do, what they can't, etc. Then switch to existing solutions, as they will likely be somewhat better crafted :)