xSROMap code example
Example: xSROMap
// 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