// These support body activation/deactivation. internal void CreateProxies(BroadPhase broadPhase, Transform xf) //broadPhase was pointer { Utilities.Assert(m_proxies.Count() == 0); // Create proxies in the broad-phase. int m_proxyCount = m_shape.GetChildCount(); for (int i = 0; i < m_proxyCount; ++i) { FixtureProxy proxy = new FixtureProxy(); m_shape.ComputeAABB(out proxy.aabb, xf, i); proxy.proxyId = broadPhase.CreateProxy(proxy.aabb, proxy); proxy.fixture = this; proxy.childIndex = i; m_proxies.Add(proxy); } }
// These support body activation/deactivation. internal void CreateProxies(BroadPhase broadPhase, ref Transform xf) { //Debug.Assert(_proxyCount == 0); // Create proxies in the broad-phase. _proxyCount = _shape.GetChildCount(); for (int i = 0; i < _proxyCount; ++i) { FixtureProxy proxy = _proxies[i]; _shape.ComputeAABB(out proxy.aabb, ref xf, i); proxy.fixture = this; proxy.childIndex = i; proxy.proxyId = broadPhase.CreateProxy(ref proxy.aabb, proxy); _proxies[i] = proxy; } }