box2d
box2d jittering when a body is magnetized
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[详细]
2023-04-13 08:54 分类:问答Xcode: Cocos2d: Can't create world with Box2D
My project originated 开发者_如何学Goas the cocos2d Box2D template and I\'m having issues as soon as I tried to create a world:[详细]
2023-04-12 16:45 分类:问答making dynamic bodies fall JBox2D
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[详细]
2023-04-12 13:46 分类:问答How do I give a Box2d Kinematic body a predefined curved path
I\'m new to using Box2d and really can\'t find a consistent answer to my question so please excuse me.[详细]
2023-04-12 00:35 分类:问答Rotate b2Bodies in Box2d without messing up physics simulation
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[详细]
2023-04-11 17:46 分类:问答Corona/Box2D detect collision with non-moving static objects
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.[详细]
2023-04-11 11:12 分类:问答For collision detection only, is Chipmunk or Box2d the better tool?
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[详细]
2023-04-11 08:24 分类:问答How to deallocate a CCLayer
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[详细]
2023-04-11 01:28 分类:问答Finding Contact point - Box2d with Cocos2d
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.[详细]
2023-04-10 19:59 分类:问答Pixel collision detection?
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[详细]
2023-04-10 15:30 分类:问答