createProxies method

void createProxies(
  1. BroadPhase broadPhase,
  2. Transform xf
)

Implementation

void createProxies(BroadPhase broadPhase, Transform xf) {
  assert(_proxyCount == 0);

  // Create proxies in the broad-phase.
  _proxyCount = shape.childCount;

  for (var i = 0; i < _proxyCount; ++i) {
    final proxy = proxies[i];
    shape.computeAABB(proxy.aabb, xf, i);
    proxy.proxyId = broadPhase.createProxy(proxy.aabb, proxy);
    proxy.childIndex = i;
  }
}