box2d
JavaScript reference error can't find variable plus closure blues
Just in general I\'m getting some errors with this. The major one is in safari and the android browser get the error[详细]
2023-03-17 06:59 分类:问答Bodies do not collide
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.[详细]
2023-03-17 02:27 分类:问答Box2D dynamic body getting stuck (iPhone)
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[详细]
2023-03-17 01:42 分类:问答Render texture using Cocos 2d and Box 2d
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.[详细]
2023-03-16 17:55 分类:问答Animation and Collision detection using Cocos2D/Box2d - iPhone
I am developing an iphone game using cocos2d and box2d. I use cococ2d to animate a sprite (using series of png).[详细]
2023-03-15 06:00 分类:问答sprite hit a wall or another sprite
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[详细]
2023-03-15 01:15 分类:问答Game crashes when I try to destroy a b2Body, what should I do?
\"Assertion failed: (m_bodyCount < m_bodyCapacity), function Add, file libs/Box2D/Dynamics/b2Island.h, line 65.\"[详细]
2023-03-14 22:03 分类:问答simply apply gravity again and again
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.[详细]
2023-03-14 18:04 分类:问答Animating a sprite in cocos2d , box2d and Xcode
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[详细]
2023-03-14 17:33 分类:问答Calculate the distance between two CGPoints
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:[详细]
2023-03-14 01:00 分类:问答