public static Bounds GetTileBoundsInGraphSpace(this NavmeshBase navmeshBase, IntRect rect) { return(navmeshBase.GetTileBoundsInGraphSpace(rect.xmin, rect.ymin, rect.Width, rect.Height)); }
/** Returns a bounds object with the bounding box of a group of tiles. * The bounding box is defined in world space. */ public static Bounds GetTileBounds(this NavmeshBase navmeshBase, int x, int z, int width = 1, int depth = 1) { return(navmeshBase.transform.Transform(navmeshBase.GetTileBoundsInGraphSpace(x, z, width, depth))); }