哪里可以找到 Chipmunk 附带的函数参考?
我是 iPhone 开发新手。我用chipmunk安装了cocos2d,并尝试根据一些教程制作一个简单的项目。
当我遇到花栗鼠函数(例如cpSpaceAddShape
、cpSegmentShapeNew
等)时,我在哪里可以找到它们的文档?
Chipmunk API 文档似乎只包含类引用...所以我找不到 Chipmunk API 参考中记录的函数吗?那去哪儿呢?
I'm new to iPhone development. I installed cocos2d with chipmunk and try to make a simple project from some tutorial.
When I encounter chipmunk functions (like cpSpaceAddShape
, cpSegmentShapeNew
, etc.) where can I find them documented?
Chipmunk API documentation seems to contain only class reference... so can't I find the functions documented in Chipmunk API reference? Where then?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
既然您说“类参考”,您可能正在查看 Objective-Chipmunk API参考,这是 Chipmunk 的商业 Objective-C 移植。
Chipmunk 函数均记录在 doxygen 创建的 Chipmunk API 参考中。然而,我无法在网上找到它(Box2D API 参考也是如此),所以我开始托管这些 API 参考 我自己。
例如,以下是 cpSpaceAddShape 和 cpSegmentShapeNew(在底部)。
Since you said "class reference" you were probably looking at the Objective-Chipmunk API Reference which is for the commercial Objective-C port of Chipmunk.
The Chipmunk functions are all documented in the Chipmunk API Reference created by doxygen. I haven't been able to find it online however (same goes for Box2D API Reference) so I started hosting these API References myself.
For example, here's the documentation for cpSpaceAddShape and cpSegmentShapeNew (at the bottom).
花栗鼠官方文档:
Official Chipmunk documention:
http://chipmunk-physics.net/release/ChipmunkLatest-Docs/