public void Dispose()
        {
            _callback.Dispose();
            _indexVertexArrays.IndexedMeshArray[0].Dispose();
            _indexVertexArrays.Dispose();
            _groundMesh.Dispose();
            if (_vertexWriter != null)
            {
                _vertexWriter.Dispose();
                _vertexWriter = null;
            }
            _convexcastBatch.Dispose();

            this.StandardCleanup();
        }
Esempio n. 2
0
        public void Dispose()
        {
            if (_groundVertexArray != null)
            {
                _groundVertexArray.Dispose();
            }
            if (_groundMesh != null)
            {
                _groundMesh.Dispose();
            }

            if (_terrainData != IntPtr.Zero)
            {
                Marshal.FreeHGlobal(_terrainData);
            }

            _vehicle.Dispose();

            this.StandardCleanup();
        }
Esempio n. 3
0
 public void TearDown()
 {
     _impactMesh.Dispose();
     _indexedMesh.Dispose();
     _meshInterface.Dispose();
 }