Just in general I\'m getting some errors with this. The major one is in safari and the android browser get the error
i have set 2 bodies, a world with gravity,a tick method with step,and all the bodies are moving just fine,and i can apply forces on them, gravity is also working.
I have a ground object and a spear shaped object(dynamic). When a button is pressed, a linear velocity is applied to the spear. It works fine but sometimes, it gets stuck on the ground. This happens m
I have a Cocos2d and Box2D app开发者_开发技巧lication. I have a image bubble.png. I want to draw a chain of bubbles when the user swipes the screen.
I am developing an iphone game using cocos2d and box2d. I use cococ2d to animate a sprite (using series of png).
i am trying to understand how to implement the physics of sprite when it hit a wall. lets say i have a wall, and a sprite is is hitting the wall with velocity and gravity using box2d(cocos2d), what is
\"Assertion failed: (m_bodyCount < m_bodyCapacity), function Add, file libs/Box2D/Dynamics/b2Island.h, line 65.\"
my code applying gravity on any body in my world, and i have a ball , that after it falls down by gravity, i need it to come up again and fall by gravity again.
Please, I need help in making this code work. I intend to do an animation with a sprite I added using cocos2d and box2d in xcode. But for some odd reasons I cannot get the sprite to animate repeatedly
i need to calcula开发者_如何学Gote the distance between two CGPoints. I refered this and this, but I don\'t get it.Well, with stuff your refering too where is the full code: