in my app the user is able to move or rotate a box2d fixture. The collision detection works fine. But if I set the fixture as a sensor, with the SetSensor(true) method, the collision detection reacts
This qu开发者_StackOverflow社区estion already has answers here: JavaScript OR (||) variable assignment explanation
i am using cocos2d and i have a for loop to create a bunch of sprites, and i am running an action on every sprite in the forloop, however when i run the simulator i cant see the action ..some1 please
I\'m using cocos2d and box2d.(iPhone SDK) If I want to import box2d I add this to the top of the file #import \"Box2D.h\" and then I rename my class to \".mm\". Now I have just a class without a \".m\
I have a b2_dynamicBody which I move by _body->ApplyForce across the screen. How do I find out, if it\'s moving forward or backwards?
I have a body (player) in my box2d world. Whenever I try to set its x velo开发者_运维问答city (every 2 seconds or whatever) and it is falling due to gravity, it jitters up and down.
I am trying to use both b2PrismaticJoint and b2MouseJoint. I need to move my projectile along x-axis to position it for target and want to only swipe vertically without moving the projectile to throw
I\'m very new to Cocos2d and Box2d, I have been following tutorials and generally hacking. However, I have one
I have a Box2D world which works great. I\'m using it in a simple iOS game where the user tilts the device to push bodies around the screen racking up points when a certain body collides with another.
I have a b2PolygonShape body and apply a force to it. 开发者_如何学C _recbody->ApplyForce( b2Vec2(6.0, -6.0), _recbody->GetWorldCenter() );