Collision detection in Box2D
Hi, Collision can be detected simply using the following lines of code with box2D. Here aimFixture & tarFixture are two custom fixtures whose collision you want to find out. 🙂
Hi, Collision can be detected simply using the following lines of code with box2D. Here aimFixture & tarFixture are two custom fixtures whose collision you want to find out. 🙂
For an interactive game building using Box2D, collision detection of Box2D bodies is necessary. There is an easy way to implement collision detection in Box2D. For checking whether two bodies have collided with each other in Box2D while using it with cocos2D, then use the following lines of code where ever you want to check… Read More »