Box2d strange loop (objective-c, cocos2d, box2d)?

Yes, be is overwritten. But be is just a pointer into a linked list of b2Body objects. The whole purpose of be is to point to each b2Body in the list, one at a time.

Up vote 0 down vote favorite share g+ share fb share tw.

I find this a bit strange and here's the code : for(b2Body *b = _world->GetBodyList(); b; b=b->GetNext()) { if (b->GetUserData()! = NULL) { CCSprite *ballData = (CCSprite *)b->GetUserData(); ballData. Position = ccp(b->GetPosition().

X * PTM_RATIO, b->GetPosition(). Y * PTM_RATIO); ballData. Rotation = -1 * CC_RADIANS_TO_DEGREES(b->GetAngle()); } } thanks objective-c for-loop cocos2d box2d link|improve this question asked Nov 4 '11 at 0:59Paul76617 96% accept rate.

Thanks rob, okay, if we compare this to for (var i=0; I – Paul Nov 5 '11 at 13:58.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send