Universe.Physics.BulletSPlugin.BSTerrainManager.ReleaseGroundPlaneAndTerrain C# (CSharp) Method

ReleaseGroundPlaneAndTerrain() public method

public ReleaseGroundPlaneAndTerrain ( ) : void
return void
        public void ReleaseGroundPlaneAndTerrain()
        {
            DetailLog("{0},BSTerrainManager.ReleaseGroundPlaneAndTerrain,region={1}", BSScene.DetailLogZero,
                PhysicsScene.RegionName);
            if (m_groundPlane.HasPhysicalBody)
            {
                if (PhysicsScene.PE.RemoveObjectFromWorld(PhysicsScene.World, m_groundPlane))
                {
                    PhysicsScene.PE.DestroyObject(PhysicsScene.World, m_groundPlane);
                }
                m_groundPlane.Clear();
            }

            ReleaseTerrain();
        }