public NavMeshNativeInputBuilder(NavMeshTileBounds tileBounds)
 {
     Coord       = tileBounds.Coord;
     BoundingBox = tileBounds.Bounds;
     Vertices    = new NativeList <float3>(Allocator.TempJob);
     Indices     = new NativeList <int>(Allocator.TempJob);
     Areas       = new NativeList <byte>(Allocator.TempJob);
 }
 public NavMeshInputBuilder(NavMeshTileBounds tileBounds)
 {
     Coord       = tileBounds.Coord;
     BoundingBox = tileBounds.Bounds;
     Vertices    = new AiNativeList <float3>(2);
     Indices     = new AiNativeList <int>(2);
     Areas       = new AiNativeList <byte>(2);
 }
Exemple #3
0
 public void GetDirtyTileBounds(List <NavMeshTileBounds> dirty)
 {
     foreach (var tileCoord in TilesToBuild)
     {
         DtBoundingBox     bounds     = NavMeshBuildUtils.CalculateTileBoundingBox(BuildSettings, tileCoord);
         NavMeshTileBounds tileBounds = new NavMeshTileBounds(tileCoord, bounds);
         dirty.Add(tileBounds);
     }
 }