Sensors in ofxBox2D

Hi,

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 :

Shape->body->GetFixtureList()->SetSensor(true);

But the other shape are still physically bouncing into it.

Any thoughts ?
Thanks

Look for “Collision filtering” in the Box2d manual http://www.box2d.org/manual.html

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