Beispiel #1
0
        public void Close()
        {
            QuixConsole.WriteLine("Closing Simulator");



            collidableMaterials.Dispose();

            objects.Clear();
            objectsHandlers.Clear();
            staticObjectsHandlers.Clear();

            //Simulation.Bodies.Dispose();
            // Simulation.Statics.Dispose();

            Simulation.Dispose();
            bufferPool.Clear();
            ThreadDispatcher.Dispose();

            //OnContactListeners.Clear();
            // OnStaticContactListeners.Clear();
            connectionState.Dispose();
            //server.isRunning = false;

            Disposed = true;
            gameLoop.Stop();

            //Dispose();
        }
Beispiel #2
0
 public void Dispose()
 {
     Properties.Dispose();
 }
Beispiel #3
0
 public void Dispose()
 {
     CollisionFilters.Dispose();
 }