Tag Archives: density
How to shoot a bullet in the direction of touch in Box2D iphone?
How to rotate a body manually in Box2D?
The below code helps you to rotate a body in Box2D manually. Here the body is named “rotating_body” which is going to rotate and a sprite named “rot_sprite” is it’s userData, please give your own image for it. Make sure that you have it in your resources otherwise your program will crash. Note: call this function in a… Read More »