destroyProxies method

void destroyProxies(
  1. BroadPhase broadPhase
)

Internal method

Implementation

void destroyProxies(BroadPhase broadPhase) {
  // Destroy proxies in the broad-phase.
  for (var i = 0; i < _proxyCount; ++i) {
    final proxy = proxies[i];
    broadPhase.destroyProxy(proxy.proxyId);
    proxy.proxyId = BroadPhase.nullProxy;
  }

  _proxyCount = 0;
}