SetSensor / QueryShape bug(Box2dWeb)

Hi there,
On iOS platform, mobile safari, I find that if a fixture is set to be a sensor(using body.GetFixtureList().SetSensor(true)), it won't dispatch the BeginContact event or it doesn't check collision at all, i don't know. And the world's QueryShape method doesn't work too. Anyone ever encounter the same problems? 😮
I got around it by doing this:

Code: Select all

body.m_fixtureList.m_isSensor = true;


The javascript port is really janky, you have to trudge through a lot of debugging/trial and error. I use chrome because of the nice console and speed and test my code and then test it on the other browsers before I get to mobile devices.

Tell me if that fix worked.

Original thread: https://box2d.org/forum/viewtopic.php?t=8363