<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-946587890062083577.post9203318767927043672..comments</id><updated>2010-06-02T19:29:55.266+10:00</updated><title type='text'>Comments on Never Read Passively: Dropping a Dimension: Cocos2D and Box2D on iPhone</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.neverreadpassively.com/feeds/9203318767927043672/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default'/><link rel='alternate' type='text/html' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html'/><author><name>Jason</name><uri>http://www.blogger.com/profile/11283603094324243247</uri><email>jason.brownlee05@gmail.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-946587890062083577.post-7367023134283413482</id><published>2010-06-02T19:29:55.216+10:00</published><updated>2010-06-02T19:29:55.216+10:00</updated><title type='text'>I'm making a list of game-ready model shops, if yo...</title><content type='html'>I&amp;#39;m making a list of game-ready model shops, if you know another ones please tell me ^^ here&amp;#39;s what I&amp;#39;ve found so far:&lt;br /&gt;(alphabetically sorted)&lt;br /&gt;&lt;br /&gt;[b]3dbud.com[/b]&lt;br /&gt;[img]http://img118.imageshack.us/img118/8018/83767809.jpg[/img]&lt;br /&gt;(fantasy characters - animals - monters) - &lt;br /&gt;http://3dbud.com&lt;br /&gt;&lt;br /&gt;[b]3drt.com[/b]&lt;br /&gt;[img]http://3drt.com/3dm/characters/real-zombies/characters-real-zombies-3d_01.jpg[/img]&lt;br /&gt;(fantasy - scifi characters - animals - monters) &lt;br /&gt;http://3drt.com</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/7367023134283413482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/7367023134283413482'/><link rel='alternate' type='text/html' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html?showComment=1275470995216#c7367023134283413482' title=''/><author><name>su</name><uri>http://www.blogger.com/profile/10544435418980879844</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html' ref='tag:blogger.com,1999:blog-946587890062083577.post-9203318767927043672' source='http://www.blogger.com/feeds/946587890062083577/posts/default/9203318767927043672' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-946587890062083577.post-5533081403043595946</id><published>2009-05-10T07:58:00.000+10:00</published><updated>2009-05-10T07:58:00.000+10:00</updated><title type='text'>Thanks for your post it really helped me. I'm curr...</title><content type='html'>Thanks for your post it really helped me. I'm currently playing with cocos2d and box2d. I found a problem with calling the world step, the box2d step advices to use a fixed timestamp but when using the schedule functionality of cocos2d with a fixed timestamp the simulation is not drawn at the same speed for different fps. So I use the fps as a timestamp, but when the fps is low you will sometimes see object react differently then normal(such as a bounce). So my question is, where do you put your world step call?&lt;br /&gt;&lt;br /&gt;(sorry for my bad english btw, I hope you can understand it)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/5533081403043595946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/5533081403043595946'/><link rel='alternate' type='text/html' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html?showComment=1241906280000#c5533081403043595946' title=''/><author><name>Hans Pinckaers</name><uri>http://www.blogger.com/profile/06806391880809420995</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html' ref='tag:blogger.com,1999:blog-946587890062083577.post-9203318767927043672' source='http://www.blogger.com/feeds/946587890062083577/posts/default/9203318767927043672' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-946587890062083577.post-2793171554856213760</id><published>2009-04-30T16:28:00.000+10:00</published><updated>2009-04-30T16:28:00.000+10:00</updated><title type='text'>Yeah i saw that - I was referring more to how you ...</title><content type='html'>Yeah i saw that - I was referring more to how you did the drawing through Cocos2D. I'll have a look at that HandCircus code now.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/2793171554856213760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/2793171554856213760'/><link rel='alternate' type='text/html' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html?showComment=1241072880000#c2793171554856213760' title=''/><author><name>Sam</name><uri>http://www.blogger.com/profile/00799152256218709991</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html' ref='tag:blogger.com,1999:blog-946587890062083577.post-9203318767927043672' source='http://www.blogger.com/feeds/946587890062083577/posts/default/9203318767927043672' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-946587890062083577.post-5559748442775221450</id><published>2009-04-30T16:22:00.000+10:00</published><updated>2009-04-30T16:22:00.000+10:00</updated><title type='text'>@Sam I didn't (as mentioned in the post and in an ...</title><content type='html'>@Sam I didn't (as mentioned in the post and in an above comment). I did custom drawing stuff inspired by the debug draw code.&lt;br /&gt;&lt;br /&gt;For an example of Box2d debug drawing on the iPhone please see the most excellent post and code (n the box2d SVN) by HandCircus: &lt;A HREF="http://www.handcircus.com/2009/01/15/iphone-port-of-box2d-testbed-now-available/" REL="nofollow"&gt;iPhone port of Box2D Testbed now available&lt;/A&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/5559748442775221450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/5559748442775221450'/><link rel='alternate' type='text/html' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html?showComment=1241072520000#c5559748442775221450' title=''/><author><name>Jason</name><uri>http://www.blogger.com/profile/11283603094324243247</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11867812671395170949'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html' ref='tag:blogger.com,1999:blog-946587890062083577.post-9203318767927043672' source='http://www.blogger.com/feeds/946587890062083577/posts/default/9203318767927043672' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-946587890062083577.post-1599118902595004415</id><published>2009-04-30T15:50:00.000+10:00</published><updated>2009-04-30T15:50:00.000+10:00</updated><title type='text'>Do you think you could upload the source? I'm comi...</title><content type='html'>Do you think you could upload the source? I'm coming from a Flash background (using Box2D too :D) so any help getting in to the rhythm of iPhone development is greatly appreciated. Specifically, I'm curious to see exactly how you did the Box2D debug drawing stuff.&lt;br /&gt;&lt;br /&gt;Cheers.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/1599118902595004415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/1599118902595004415'/><link rel='alternate' type='text/html' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html?showComment=1241070600000#c1599118902595004415' title=''/><author><name>Sam</name><uri>http://www.blogger.com/profile/00799152256218709991</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html' ref='tag:blogger.com,1999:blog-946587890062083577.post-9203318767927043672' source='http://www.blogger.com/feeds/946587890062083577/posts/default/9203318767927043672' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-946587890062083577.post-3130639678265331491</id><published>2009-04-22T08:35:00.000+10:00</published><updated>2009-04-22T08:35:00.000+10:00</updated><title type='text'>@Bauerpauer yeah I had the same problems and liste...</title><content type='html'>@Bauerpauer yeah I had the same problems and listed the solution in my blog post (step 9 and the referenced link).&lt;br /&gt;&lt;br /&gt;Make sure you only include box2d.h where you actually use types (implementation or public interface) and make sure anything that does import the header is an objective-C++ file (.mm)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/3130639678265331491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/3130639678265331491'/><link rel='alternate' type='text/html' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html?showComment=1240353300000#c3130639678265331491' title=''/><author><name>Jason</name><uri>http://www.blogger.com/profile/11283603094324243247</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11867812671395170949'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html' ref='tag:blogger.com,1999:blog-946587890062083577.post-9203318767927043672' source='http://www.blogger.com/feeds/946587890062083577/posts/default/9203318767927043672' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-946587890062083577.post-3809208758434558541</id><published>2009-04-22T01:09:00.000+10:00</published><updated>2009-04-22T01:09:00.000+10:00</updated><title type='text'>@Jason

Thanks for the tips.  Now I've got some mo...</title><content type='html'>@Jason&lt;br /&gt;&lt;br /&gt;Thanks for the tips.  Now I've got some more problems...  I basically just started over, using the Box2D iPhone Testbed as a starting point.  I ripped out all of the demo code, dropped in the cocos2d project, and started to build a blank-slate app.  Everything cocos2d-related compiles properly, but as soon as I add&lt;br /&gt;&lt;br /&gt;#import "Box2D.h"&lt;br /&gt;&lt;br /&gt;to GameLayer.h (GameLayer is going to be a Cocos2d Layer that manages the b2World instance, etc...), I get build errors on all of the float32 const's in b2Settings.h:&lt;br /&gt;&lt;br /&gt;error: initializer element is not a constant&lt;br /&gt;&lt;br /&gt;Any ideas?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/3809208758434558541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/3809208758434558541'/><link rel='alternate' type='text/html' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html?showComment=1240326540000#c3809208758434558541' title=''/><author><name>Bauerpauer</name><uri>http://openid.aol.com/scott92rs</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html' ref='tag:blogger.com,1999:blog-946587890062083577.post-9203318767927043672' source='http://www.blogger.com/feeds/946587890062083577/posts/default/9203318767927043672' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-946587890062083577.post-1632190291714067541</id><published>2009-04-21T09:09:00.000+10:00</published><updated>2009-04-21T09:09:00.000+10:00</updated><title type='text'>@Bauerpauer I didn't use Box2d's debug drawing fac...</title><content type='html'>@Bauerpauer I didn't use Box2d's debug drawing facility directly. I wrote custom cocosnodes that rendered themselves based on the logic from debug drawing. &lt;br /&gt;&lt;br /&gt;For example, I have a block class that extends cocosnode and that manages a box2d body and shape. The draw method for the block class uses similar logic (copy-paste) as is used to render body-shapes in the box2d debug draw logic (specifically enumeration from b2world and opengl from the iphone port of box2d). If you do this, you will needed to ensure you setup the gl drawing state yourself in each draw function.&lt;br /&gt;&lt;br /&gt;Regarding scale - I started out using the 1:1 scale for the iphone screen. This worked fine, but is not so good for the default box2d configuration that prefers bodies between 0.1 and 10 unit lengths. Scaling is built into cocosnodes, simply determine an appropriate scale factor and use that to translate between the box2d and cocos2d worlds (touching, drawing, etc).</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/1632190291714067541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/1632190291714067541'/><link rel='alternate' type='text/html' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html?showComment=1240268940000#c1632190291714067541' title=''/><author><name>Jason</name><uri>http://www.blogger.com/profile/11283603094324243247</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11867812671395170949'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html' ref='tag:blogger.com,1999:blog-946587890062083577.post-9203318767927043672' source='http://www.blogger.com/feeds/946587890062083577/posts/default/9203318767927043672' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-946587890062083577.post-20020618491288126</id><published>2009-04-21T01:47:00.000+10:00</published><updated>2009-04-21T01:47:00.000+10:00</updated><title type='text'>Jason,

  Did you have to do anything special to g...</title><content type='html'>Jason,&lt;br /&gt;&lt;br /&gt;  Did you have to do anything special to get Box2D's debug shape drawing to work?  I'm close, but it looks like cocos2d is tweaking the OpenGL ES settings enough to really skew the scale of the entire world.  For example, I'm trying to get Box2D's "Chain" demo running alongside cocos2d, and the chain renders about 50-pixels tall starting at the left side of the screen.  If the answer is obvious, go easy please, I'm a complete no0b at the game programming stuff ;)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/20020618491288126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/20020618491288126'/><link rel='alternate' type='text/html' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html?showComment=1240242420000#c20020618491288126' title=''/><author><name>Bauerpauer</name><uri>http://openid.aol.com/scott92rs</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html' ref='tag:blogger.com,1999:blog-946587890062083577.post-9203318767927043672' source='http://www.blogger.com/feeds/946587890062083577/posts/default/9203318767927043672' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-946587890062083577.post-1013144280606466246</id><published>2009-04-20T21:17:00.000+10:00</published><updated>2009-04-20T21:17:00.000+10:00</updated><title type='text'>@Dougal Thanks mate.

For anyone else out there de...</title><content type='html'>@Dougal Thanks mate.&lt;br /&gt;&lt;br /&gt;For anyone else out there developing iPhone apps on PPC hadware, I solved my codesign problem with a handly little script by "Tiku" (search the page) on &lt;A HREF="http://discussions.apple.com/message.jspa?messageID=7750868" REL="nofollow"&gt;iPhone SDK CodeSign Error&lt;/A&gt;.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/1013144280606466246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/1013144280606466246'/><link rel='alternate' type='text/html' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html?showComment=1240226220000#c1013144280606466246' title=''/><author><name>Jason</name><uri>http://www.blogger.com/profile/11283603094324243247</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11867812671395170949'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html' ref='tag:blogger.com,1999:blog-946587890062083577.post-9203318767927043672' source='http://www.blogger.com/feeds/946587890062083577/posts/default/9203318767927043672' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-946587890062083577.post-8805696774133435244</id><published>2009-04-19T23:06:00.000+10:00</published><updated>2009-04-19T23:06:00.000+10:00</updated><title type='text'>Jason, most of this goes over my head technically ...</title><content type='html'>Jason, most of this goes over my head technically but what's really interesting is the thought processes behind your development process plus the fact you go to such trouble putting I down on paper. It would take ages (especially after oftentimes disenheartening coding). It's very generous of you and I'm sure you've made many a would-be app developer's day. Keep it up. 2D or bust. Dougal</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/8805696774133435244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/946587890062083577/9203318767927043672/comments/default/8805696774133435244'/><link rel='alternate' type='text/html' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html?showComment=1240146360000#c8805696774133435244' title=''/><author><name>Dougal</name><uri>http://www.blogger.com/profile/03777433465512860470</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.neverreadpassively.com/2009/04/dropping-dimension-cocos2d-and-box2d-on.html' ref='tag:blogger.com,1999:blog-946587890062083577.post-9203318767927043672' source='http://www.blogger.com/feeds/946587890062083577/posts/default/9203318767927043672' type='text/html'/></entry></feed>