i am using cocos2d box2d in xcode, and i have 2 simple related issues that i am not sure about them. -first and easy, whats the best way to change a sprite angle according to touch?
开发者_开发问答so I have this dynamic body, that I just want to know when an object collides with it, but even if this object collides with it, the dynamic body will always move at the same time and w
Hey i\'m trying to integrate Box2D and SFML, and my class takes in a Body pointer, which i need to use to get all the points of a fixture so i can form a gr开发者_开发问答aphical representation of the
There is situation: object \"A\" falls down on static object \"B\", but when \"A\" lands on \"B\" there is spa开发者_Python百科n between \"A\" and \"B\". How to solve the issues?Box2d is using iterati
I have bullets in box2d/cocos2d-for-iphone. They are flying fine...but I want to destroy these bullets after they traveld a certain distance. for example after a bullet \"flew\" 480px it should be rem
i am using cocos2d and box2d, with contact listener, and lets say i have a body that can hit a number of other bodies, BUT each one of them is turn on the contact listener.
my contact listener should play a sound when it feels hit, but if i开发者_运维知识库 put this line on the detection part of the listener in my tick method like this:
Here is my problem. I\'m using a physics library called Box2D. I\'m able to hook up a listener that will tell me when 2 fixtures collide.
i have a world in cocos2d with box2d, that has a gravity. now in order to add a body for each sprite, i am calling a function and send her the sprite.
following physical properties of the balls is being used: golfball // Create circle shape b2Circl开发者_如何学运维eShape circle;