[cocos2d-x & box2d] i wonder collsion

[cocos2d-x & box2d] i wonder collsion
0.0 0


Cocos 2d-x box2d read the relevant documents.
Questions during the collision detection part.

This part of the questions, and attach a picture.

A dynamic body block.
Block B is a static body.

Collision block A and block B, when
I would like to know if any of the A block collides

Function within BeginContact (b2Contact contact)
Block A of the right side of this conflict
Know that?

blocks.png (5.0 KB)


This might help, it’s for cocos2d-x v1 but should compile for v2 with a few changes.



thank you