box2d
Saving a subclass of NSObject in Box2d UserData and retrieve it back?
I have a game entity class as follows : @interface CPlanet : NSObject { b2Body *planetBody; } -(void)init;[详细]
2023-03-22 18:53 分类:问答Flash Box2D not detecting collisions?
EDIT: I figured out what was wrong, and this is no longer a question. The solution was a stupid error, and I had accidentally set iterations to 0. Sorry![详细]
2023-03-22 16:48 分类:问答Gravity problem (When registerUpdateHandler?)
i have problem with gravity. I make map of my game with add some elements like boxes, brick etc. using this开发者_如何学编程 code:[详细]
2023-03-21 21:10 分类:问答vertices smaller than sprite when rendered on iPhone screen
I am using vertex helper to get the edges of my sprites. I am using Cocos2d + Box2d on the iPhone. The problem I am getting is that the debug draw on the device I am testing on comes up but the vertic[详细]
2023-03-20 06:46 分类:问答Set contact enabled in box2d andengine
How to disable the contact between two bodies in box2d (Andengine). I have used contact.setEnabled(false) but this was not working for me. I have given code below for reference.[详细]
2023-03-20 06:38 分类:问答cocos2d, how to make b2World draw my own data?
I am working on a Box2d Edit开发者_运维技巧or for iOS, using cocos2d. I wrapped b2World into my own World class. I want to implement my own draw functionality. Since I will be drawing higher level cl[详细]
2023-03-19 09:45 分类:问答Box2d dynamic body stuck to static
Sometimes, when dynamic body moving and collide static body, dynamic stuck, and stopping. http://imageshack.us/photo/my-images/14/screenfgz.png/ (top and bottom lines are sensors, center shape is bod[详细]
2023-03-19 03:23 分类:问答Box2D colission between static/dynamic bodies causing an assert
I\'m using BOX2D for the first time on iPhone. On the whole it\'s been pretty good, but I keep repeatedly getting an assert on a line in ContactManager whenever I create a scene featuring both static[详细]
2023-03-19 02:54 分类:问答How to set centers of shapes/fixtures/bodies in Box2D
Hey i\'m trying to integrate SFML and Box2D, and SFML has made setting centers for sprites, shapes, etc. very easy. Box2D, on the other hand, I\'m having trouble with as i can\'t figure out how to set[详细]
2023-03-19 00:05 分类:问答Moving b2Body in given angle
I have b2Body of which i set angle using setTransform. But I want b2Body to move in particular angle. My CC开发者_如何学JAVASprite is moving in that angle using ccMoveBy. But my b2Body is not moving w[详细]
2023-03-18 21:04 分类:问答