/// Destroy proxies in the broad-phase. internal void DestroyProxies(IBroadPhase broadPhase) { for (int i = 0; i < ProxyCount; ++i) { broadPhase.RemoveProxy(Proxies[i].ProxyId); Proxies[i].ProxyId = -1; } ProxyCount = 0; }
internal void DestroyProxies(IBroadPhase broadPhase) { for (int i = 0; i < this.ProxyCount; i++) { broadPhase.RemoveProxy(this.Proxies[i].ProxyId); this.Proxies[i].ProxyId = -1; } this.ProxyCount = 0; }
internal void DestroyProxies(IBroadPhase broadPhase) { // Destroy proxies in the broad-phase. for (int i = 0; i < this.ProxyCount; ++i) { broadPhase.RemoveProxy(this.Proxies[i].ProxyId); this.Proxies[i].ProxyId = -1; } this.ProxyCount = 0; }
/// <summary> /// Removes a physBody from the manager /// </summary> /// <param name="physBody"></param> public void RemoveBody(IPhysBody physBody) { if (_bodies.Contains(physBody)) { _bodies.Remove(physBody); _broadphase.RemoveProxy(physBody.ProxyId); } else { Logger.WarningS("phys", $"Trying to remove unregistered PhysicsBody! {physBody.Owner}"); } }
internal void DestroyProxies(IBroadPhase broadPhase) { // Destroy proxies in the broad-phase. for (int i = 0; i < ProxyCount; ++i) { broadPhase.RemoveProxy(Proxies[i].ProxyId); Proxies[i].ProxyId = -1; } ProxyCount = 0; }