New answers tagged

0

Shouldn't your adjacent function be like this: internal static bool Adjacent(this VNode a, VNode b, int tolerance = 3) { var distance = Math.Sqrt(Math.Pow(a.X - b.X, 2) + Math.Pow(a.Z - b.Z, 2)); return distance < tolerance; } EDIT: After reviewing your project a little, I would suggest some changes to make it more easy to spot any bugs. Leave ...



Top 50 recent answers are included