// These support body activation/deactivation. internal void CreateProxies(IBroadPhase broadPhase, ref Transform xf) { if (ProxyCount != 0) { throw new InvalidOperationException("Proxies allready created for this Fixture."); } // Create proxies in the broad-phase. ProxyCount = Shape.ChildCount; for (int i = 0; i < ProxyCount; ++i) { FixtureProxy proxy = new FixtureProxy(); proxy.Fixture = this; proxy.ChildIndex = i; Shape.ComputeAABB(out proxy.AABB, ref xf, i); proxy.ProxyId = broadPhase.AddProxy(ref proxy.AABB); broadPhase.SetProxy(proxy.ProxyId, ref proxy); Proxies[i] = proxy; } }