I need to move the box2d body according to position received form game center server. After receiving position I just update the body position using: ...
I need to move the box2d body according to position received form game center server. After receiving position I just update the body position using: ...
I am writing a iOS game using Cocos2d. There are a lot of balls(about 7000 objects) in a screen. When touch the screen, the balls should be exploded ...
I just started doing Box2d programming. I'm trying to create a platform game. When the player (dynamic body) jump and landed on the moving platform (k ...
I'm on stage a lot of static objects - obstacles. I add them as follows: And it turns out that such objects around 2000 and eventually begins to sl ...
I tried to set up a prismatic joint, but I get this error upon run time: Assertion failed: (IsLocked() == false), function CreateBody, file /Users/Aet ...
I am in the process of making a game and I need an object to move only when the buttons are pressed. I have a method that begins the movement, and so ...
I'm trying to create this trampoline/rubber band using box2d and cocos2d. I got to a point where in my head it should all just work except I don't get ...
I took Box2d folder from Cocos2d 2.0 and added it to Cocos2d 3.0. Initialization of Box2d worked and got green bounding box also. Game crashed as soon ...
I am using the following code to get the distance between two circular bodies of different radius: I have realized that variable distance is storin ...
Using box2d cocos2d, I need to play a hit sound when a b2body touches another one. I know how to detect the collision. The problem is that after they ...
Using box2d (+cocos2d iPhone) , i have to create a simple rect , that will be hollow- that means having a square , that i can put bodies into it (like ...
I need to remove a certain vector from my world bounds, for example only the left one. (box2d+cocos2d iphone) This is how I set the bounds: How ca ...
Using box2d and cocos2d, i need to create some b2body model , where the that body will be a line or a whole ( made of vectors with coding) that can be ...
Using cocos2d and box2d , i have a few bodies that i need them to be attracted to each other, and a few others to reject one another. This means that ...
I have a CCScene that has many CCLayers on it . 1. I would like to add a specific layer that has a b2world in it (box2d) . I need it to be a complete ...
There are two questions here. First if I need to create b2BlockAllocator before Clone and then delete(where?) after clone? Xcode profiling instrument ...
I use the following code to flip the shape. When I flip along x or y, it appears that shape is flipped. But if I flip x and y together I get an as ...
I have a problem with the way SpriteKit resolves collisions between two bodies. I am developing a game in which sprite nodes are dynamically added to ...
I am developing a casino roulette game in box2d. As you know in this game a ball/dice will be in a circular spinning wheel. First I tried with b2cir ...
I have some insects walking on path i have added sensor as well. when it collide with body it destroys the body and thats working fine. But when ball ...