cocos3d 中的 iPhone 赛车游戏
我正在使用 cocos3d 进行 iPhone 赛车游戏开发。在这如何检测路线图中道路的边界。我已经完成了路线图的加载 pod 文件。我还想知道如何实现车祸物理学。我可以从中获得一些我可以遵循的信息或教程吗?
I am working on iPhone racing car game development using cocos3d.In this how can I get detection of boundaries of road in road-map.I have done with load pod file for road-map.I also want to know about how can I implement physics for car accident.Is their any sample code of game from which I get some information or tutorial which I can follow?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果我是你,我会使用 Unity。查看他们的汽车教程,这就是您所需要的。
祝你好运
If I were you, I use Unity. Check out their Car Tutorial that's what you need.
Good luck
目前 Cocos3D 的示例和教程非常少。绝对没有符合您要求的。
你的项目听起来需要做很多开拓性的工作。特别是物理将成为一个问题,因为 Box2D 和 Chipmunk 都是 2D 物理引擎。您需要找到一个与 iOS 兼容的开源 3D 物理引擎。我喜欢 ODE,并且我听说过有关 牛顿也是如此。我不知道它们是否与 iOS 兼容。
向 POD 文件添加碰撞形状也是一个手动过程,需要(自制)工具或大量的汗水。
There are very few examples and tutorials available for Cocos3D at the moment. Definitely nothing that fits your bill.
Your project sounds like a lot of pioneering you need to do. Particularly physics will be an issue, because both Box2D and Chipmunk are 2D physics engines. You'll need to find an iOS compatible, open source 3D physics engine. I like ODE, and I've heard good things about Newton too. I don't know if they're compatible with iOS though.
To add collision shapes to your POD files would also be a manual process requiring (self-made) tools or a lot of sweat.