So i have some bodies(which i can create more and more at runtime), and i need them to be magnetized to the screen center. Let it be a (480/2 / WORLD_SCALE, 320/2 / WORLD_SCALE) in the world space. I
My project originated 开发者_如何学Goas the cocos2d Box2D template and I\'m having issues as soon as I tried to create a world:
I\'m having some problems with JBox2D. I\'ve created a ball and world and everything as far as I can tell correctly, but when I call the world.step() method it dosen\'t make the ball fall from gravity
I\'m new to using Box2d and really can\'t find a consistent answer to my question so please excuse me.
I have made a biped using box2d. The soldier has a gun, which is a b2Body and is attached to the soldier\'s arm using a b2Joint. I want to rotate the gun to point in the direction the soldier shoots w
For posting reasons here\'s a simple version of what I\'m trying to do. On the screen I have a simple circle object that is static and doesn\'t move. The user can then drag and drop a straight line.
For a Cocos2d based project, I\'d like to use a physics toolkit for collision detection only.What are th开发者_如何学Pythone pros/cons of using Chipmunk or Box2d?According to this answer Chipmunk does
I am making a box2d app for the iphone using cocos2d. I am trying to switch my CCLayer going from my HelloWorldLayer to my HomeScene and I get an error \"Thread 1: Program received signal: \"EXC_BAD_A
I\'m building a game with Cocos2d + Box2d I want my hero\'s jump direction to be orthogonal to the ground he is standing on.
In my app, I have a bunch of CCSprites and I want to have a collision detection feature that will work only when the non-transparent pixels in the CCSprites collide. I don\'t want to be restricted to