refilter method

void refilter()

Call this if you want to establish collision that was previously disabled by ContactFilter.shouldCollide.

Implementation

void refilter() {
  // Flag associated contacts for filtering.
  for (final contact in body.contacts) {
    final fixtureA = contact.fixtureA;
    final fixtureB = contact.fixtureB;
    if (fixtureA == this || fixtureB == this) {
      contact.flagForFiltering();
    }
  }

  // Touch each proxy so that new pairs may be created
  final broadPhase = body.world.contactManager.broadPhase;
  for (var i = 0; i < _proxyCount; ++i) {
    broadPhase.touchProxy(proxies[i].proxyId);
  }
}