public NavigationMeshPolyFootpath(NavigationMeshPoly obj) { this.Index = obj.Index; this.PartId = obj.PartId; this.Position = obj.Position; this.Vertices = obj.Vertices; this.Id = obj.Id; this.AreaId = obj.AreaId; this.Neighbours = new List <int>(); }
public static bool isNeighbour(NavigationMeshPoly poly1, NavigationMeshPoly poly2) { foreach (WorldVector3 vec1 in poly1.Vertices) { foreach (WorldVector3 vec2 in poly2.Vertices) { if (WorldVector3.@equals(vec1, vec2)) { return(true); } } } return(false); }