public void CreateProxies(BroadPhase broadPhase, Transform xf)
{
Debug.Assert(ProxyCount == 0);
// Create proxies in the broad-phase.
ProxyCount = Shape.ChildCount;
for (int i = 0; i < ProxyCount; ++i)
{
FixtureProxy proxy = Proxies[i];
Shape.ComputeAABB(proxy.AABB, xf, i);
proxy.ProxyId = broadPhase.CreateProxy(proxy.AABB, proxy);
proxy.Fixture = this;
proxy.ChildIndex = i;
}
}