Hello.
I am writing the game in Cocos2D + Box2D.
I have a rectangular object b2Body. I need when it interacts with other bodies on the left, right and top, he disappeared. And when it interacts with other bodies on the bottom he remained.
How is it possible to determine b2Body's side, between which the collision occurred in ContactListener?
I am writing the game in Cocos2D + Box2D.
I have a rectangular object b2Body. I need when it interacts with other bodies on the left, right and top, he disappeared. And when it interacts with other bodies on the bottom he remained.
How is it possible to determine b2Body's side, between which the collision occurred in ContactListener?