예제 #1
0
        protected override void Dispose(bool disposing)
        {
            if (!Disposed && disposing)
            {
                DestroyGeoms();

                if (!data.IsStatic)
                {
                    // This is a dynamic solid, so it has an ODE body that needs
                    // to be destroyed.
                    bodyID.Destroy();
                }
            }
        }