Sensors in ofxBox2D


I would like to create a sensor in ofxBox2D so I can detect when a Shape enter in an area ( a poly) without having a physical collision. I find out that I should use the sensor property to do it.

I am using this line of code :


But the other shape are still physically bouncing into it.

Any thoughts ?

Look for “Collision filtering” in the Box2d manual

Thanks for the link, I find that “isSensor” is what I should use.