[cocos2d-x & box2d] i wonder collsion

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.

http://www.gmtdev.com/blog/2011/08/19/how-to-use-box2d-for-just-collision-detection-with-cocos2d-x/

thank you