📜  xSROMap - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:37.628000             🧑  作者: Mango

代码示例1
// Is it a slippery situation?
            var xBlock = tileX / (int)(NavMeshPlane.Width / NavMeshTile.Width);
            var zBlock = tileY / (int)(NavMeshPlane.Length / NavMeshTile.Length);
            var plane = this.GetPlane(xBlock, zBlock);
            if ((plane.SurfaceType & NavMeshSurfaceType.Ice) != 0)
                vPos.Y = Math.Max(vPos.Y, plane.Height); // apply plane height if above ground level