@Erin: "Refilter()" gone...

Erin,

It would seem that refiltering has gone ("branches\refactor_2.0.2") which I'm happy about but now it would seem that this is handled by calling "SetFilterData()" on the b2Fixture exclusively? If so then this is much better, particularly as (if I understand it correctly), the contact "refilter" happens during the next cycle therefore allowing you to make multiple modifications without incurring the refiltering cost immediately and during every change.

It may be worth flagging that the fixture itself has asked for a refilter so save reiteration of the contacts if someone is dumb enough to call it many times before a step? That could be reset during the step.

Anyway, is the case of calling "SetFilterData()" now only when changing whether a b2Fixture is a "Sensor" or not? I don't see any other change that would require an explicit call. Oh yes, you may want to modify the comment on "b2Fixture::SetSensor" to not reference the old "b2World::Refilter" call.

Granted I may not fully understand how the new contact refiltering works and I'm way off-base here.

Melv.
Correct, calling b2World::Refilter is no longer necessary. The new broad-phase has made this unnecessary. It will likely be a performance hit to flag the fixture for refiltering because I will have to clear that flag for every fixture.

I will look at SetSensor. Thanks.
You're most welcome.

The refactor is looking good so far.

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