コード例 #1
0
 /// <summary>
 /// Clears the simulation of every object and returns all pooled memory to the buffer pool. Leaves the simulation in an unusable state.
 /// </summary>
 public void Dispose()
 {
     Clear();
     Activator.Dispose();
     Deactivator.Dispose();
     Solver.Dispose();
     BroadPhase.Dispose();
     NarrowPhase.Dispose();
     Bodies.Dispose();
     Statics.Dispose();
     BodyLayoutOptimizer.Dispose(BufferPool);
     Shapes.Dispose();
 }