Ejemplo n.º 1
0
 public static Bounds GetTileBoundsInGraphSpace(this NavmeshBase navmeshBase, IntRect rect)
 {
     return(navmeshBase.GetTileBoundsInGraphSpace(rect.xmin, rect.ymin, rect.Width, rect.Height));
 }
Ejemplo n.º 2
0
 /** 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)));
 }