• <i id='DCSC2'><tr id='DCSC2'><dt id='DCSC2'><q id='DCSC2'><span id='DCSC2'><b id='DCSC2'><form id='DCSC2'><ins id='DCSC2'></ins><ul id='DCSC2'></ul><sub id='DCSC2'></sub></form><legend id='DCSC2'></legend><bdo id='DCSC2'><pre id='DCSC2'><center id='DCSC2'></center></pre></bdo></b><th id='DCSC2'></th></span></q></dt></tr></i><div id='DCSC2'><tfoot id='DCSC2'></tfoot><dl id='DCSC2'><fieldset id='DCSC2'></fieldset></dl></div>
      <bdo id='DCSC2'></bdo><ul id='DCSC2'></ul>
    <tfoot id='DCSC2'></tfoot>

    1. <legend id='DCSC2'><style id='DCSC2'><dir id='DCSC2'><q id='DCSC2'></q></dir></style></legend>

      1. <small id='DCSC2'></small><noframes id='DCSC2'>

      2. 什么是花栗鼠?(除了是一个物理引擎)

        What is Chipmunk? (Apart from being a Physics Engine)(什么是花栗鼠?(除了是一个物理引擎))
          <tbody id='3R8jh'></tbody>
        <i id='3R8jh'><tr id='3R8jh'><dt id='3R8jh'><q id='3R8jh'><span id='3R8jh'><b id='3R8jh'><form id='3R8jh'><ins id='3R8jh'></ins><ul id='3R8jh'></ul><sub id='3R8jh'></sub></form><legend id='3R8jh'></legend><bdo id='3R8jh'><pre id='3R8jh'><center id='3R8jh'></center></pre></bdo></b><th id='3R8jh'></th></span></q></dt></tr></i><div id='3R8jh'><tfoot id='3R8jh'></tfoot><dl id='3R8jh'><fieldset id='3R8jh'></fieldset></dl></div>
        • <tfoot id='3R8jh'></tfoot>

            <legend id='3R8jh'><style id='3R8jh'><dir id='3R8jh'><q id='3R8jh'></q></dir></style></legend>

            <small id='3R8jh'></small><noframes id='3R8jh'>

            • <bdo id='3R8jh'></bdo><ul id='3R8jh'></ul>

                  本文介绍了什么是花栗鼠?(除了是一个物理引擎)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  希望这个问题不像我担心的那样愚蠢,但它可能仍然很愚蠢.

                  Hopefully, this question isn't a dumb as I fear it sounds, but it may still be pretty dumb.

                  我是 Objective-C 和 Cocoa 的新手.事实上,总的来说,我对 C 完全陌生.我正在尝试使用 Cocos2d-iPhone 实现 iPhone 游戏.这是我以前用 Flash 制作的游戏,所以我认为这将是一个很好的方法来学习 Objective C、cocoa 和 cocos2d.

                  I'm new to Objective-C, and Cocoa. In fact, I'm completely new to C in general. I'm trying to implement an iPhone game using Cocos2d-iPhone. It's a game I've made before in Flash, so I thought it would be a nice way to lean Objective C, cocoa and cocos2d.

                  我有一个大问题是理解为什么所有 Chipmunk代码看起来与所有普通的 Objective-C 东西都不一样.例如,有这样的东西

                  One thing I am having a big problem with is understanding why all the Chipmunk code looks different to all the normal Objective-C stuff. For example, there's stuff like

                  chipmunkBody->position.x
                  

                  我以为是的

                  chipmunkBody.position.x 或者可能是 [[chipmunkBody position] x] (可能是不好的例子).

                  chipmunkBody.position.x or maybe [[chipmunkBody position] x] (bad example maybe).

                  这种一直在咬我的一种方法是使用 cpVect.cpVect 非常重要,但我一生都无法弄清楚如何传递它.CGPoint,没问题,我可以制作指针,在方法中传递它们等等,但第二次我使用 cpVect 代替,它是欢迎来到 Errorville,填充你".

                  One way this keeps on biting me in the ass is with cpVect. cpVect is pretty important, but I can't for the life of me figure out how to pass it around. CGPoint, no problem, I can make pointers, pass them around in methods and what not, but the second I use cpVect instead, it's "welcome to Errorville, population you".

                  这就是问题所在,Chipmunk 是什么,所以我可以开始了解有关使用它的更多信息.

                  So that's the question, what is Chipmunk, so I can start finding out more about working with it.

                  谢谢-t

                  推荐答案

                  我没用过Chipmunk,不过应该是C/C++写的.就是这个原因.

                  I haven't used Chipmunk, but it's probably written in C/C++. That's the reason.

                  是的,它是用 C 语言编写的.

                  Yup, it's written in C.

                  chipmunkBody 是一个指向结构体的指针,而箭头操作符(->)是通过指向结构体的指针访问结构体成员的方式C.

                  chipmunkBody is a pointer to a struct, and the arrow operator (->) is how you access the members of a struct through a pointer to the struct in C.

                  这篇关于什么是花栗鼠?(除了是一个物理引擎)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)
                  Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)
                  Resume game cocos2d(恢复游戏 cocos2d)
                  Highlight Read-Along Text (in a storybook type app for iPhone)(突出显示朗读文本(在 iPhone 的故事书类型应用程序中))
                  Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)
                  How to convert 32 bit PNG to RGB565?(如何将 32 位 PNG 转换为 RGB565?)

                    1. <small id='5RVFt'></small><noframes id='5RVFt'>

                      1. <legend id='5RVFt'><style id='5RVFt'><dir id='5RVFt'><q id='5RVFt'></q></dir></style></legend>
                          <tbody id='5RVFt'></tbody>

                      2. <i id='5RVFt'><tr id='5RVFt'><dt id='5RVFt'><q id='5RVFt'><span id='5RVFt'><b id='5RVFt'><form id='5RVFt'><ins id='5RVFt'></ins><ul id='5RVFt'></ul><sub id='5RVFt'></sub></form><legend id='5RVFt'></legend><bdo id='5RVFt'><pre id='5RVFt'><center id='5RVFt'></center></pre></bdo></b><th id='5RVFt'></th></span></q></dt></tr></i><div id='5RVFt'><tfoot id='5RVFt'></tfoot><dl id='5RVFt'><fieldset id='5RVFt'></fieldset></dl></div>
                        <tfoot id='5RVFt'></tfoot>

                            <bdo id='5RVFt'></bdo><ul id='5RVFt'></ul>