예제 #1
0
 /// 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;
 }
예제 #2
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;
 }
예제 #3
0
파일: Fixture.cs 프로젝트: pyneer/case
        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;
        }
예제 #4
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}");
     }
 }
예제 #5
0
        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;
        }