1
Vote

Collision filter change doesn't create new contacts

description

Hi,
 
I discovered this bug when swapping the collision filter of some fixtures between timesteps. Contacts which are supposed to be filtered out are removed immediately, however new contacts are not formed with the changed collision group. I fixed this by adding two lines to SetFilterData in the Fixture.cs class (patch included). Basically it marks the next time step as having new fixtures (so it will check contacts at the start of the frame) and buffer's the fixture as "moved" so it gets looked at by the broadphase.
 
Dan

file attachments

comments