Ejemplo n.º 1
0
 public void SetAABBs(Vector3 min, Vector3 max)
 {
     AABBMin  = new Vector4(min, float.NaN);
     AABBMax  = new Vector4(max, float.NaN);
     CellAABB = new NavMeshAABB()
     {
         Min = min, Max = max
     };
 }
Ejemplo n.º 2
0
 private bool BoxOverlaps(NavMeshAABB a, NavMeshAABB b)
 {
     return((a.MaxX >= b.MinX) && (a.MinX <= b.MaxX) &&
            (a.MaxY >= b.MinY) && (a.MinY <= b.MaxY));
 }