Hi,
I've got some troubles with Box2D, I would like to drag and drop items in my game, so I've made an editor, when object is selected, I put it to "sensor mode", my object become a sensor. When user release his mouse, I put him back to an non-sensor element.
The problem is, my sensor didn't detect contacts:
- With Box2D 2.3.0 : no contacts
- With Box2D 2.2.1 : Only BeginContact was ok, I should "touch" another body in my scene to have an "EndContact" and a "BeginContact".
Is this a bug or it's a problem with the "sensor" mode I use?
Thanks!
I've got some troubles with Box2D, I would like to drag and drop items in my game, so I've made an editor, when object is selected, I put it to "sensor mode", my object become a sensor. When user release his mouse, I put him back to an non-sensor element.
The problem is, my sensor didn't detect contacts:
- With Box2D 2.3.0 : no contacts
- With Box2D 2.2.1 : Only BeginContact was ok, I should "touch" another body in my scene to have an "EndContact" and a "BeginContact".
Is this a bug or it's a problem with the "sensor" mode I use?
Thanks!