Table of Contents

Method Dispose

Namespace
Box3D
Assembly
Box3D.NET.dll

Dispose()

Destroys the world and everything in it.

public void Dispose()

Remarks

Every body, shape and joint handle from this world becomes invalid. Calling this twice is harmless, and disposing two different worlds from two threads at once is safe. Disposing a world while another thread is inside Box3D.PhysicsWorld.Step(System.Single,System.Int32) on that same world is not, and no lock here can make it so.