public Vector3 GetBestLanding() { AveragedHotspots = new BoundsOctree <hotspot>(oneMeterMemoryDistance, _thisT.position, 1, 1); List <hotspot> allLanding = primeLanding.GetAllItems(); Bounds memoryLimit = primeLanding.GetMaxBounds(); Vector3 testSpot; float temoHeat; for (int i = (int)memoryLimit.min.y; i <= (int)memoryLimit.max.x; i++) { for (int j = (int)memoryLimit.min.y; j < (int)memoryLimit.max.y; j++) { for (int k = (int)memoryLimit.min.z; k < (int)memoryLimit.max.z; k++) { testSpot = new Vector3(i, j, k); temoHeat = hotspot.GetCombinedHeat(allLanding, testSpot); AveragedHotspots.Add(new hotspot(temoHeat, testSpot), new Bounds(testSpot, Vector3.one)); } } } return(Vector3.zero); }
public Bounds GetMaxBounds() { return(m_Octree.GetMaxBounds()); }