Tag Archives: ccpNormalize

How to shoot a bullet in the direction of touch in Box2D iphone?

By | December 10, 2012

write the below code in “ccTouchesBegan” function and you are done. Here the ballBody represents the bullet body. You can increase the power variable to increase bullet speed.