/** * <summary>Computes the neighbors of this agent.</summary> */ internal void ComputeNeighbors() { AgentNeighbors.Clear(); if (MaxNeighbors > 0) { float rangeSq = RVOMath.Sqr(NeighborDist); Simulator.Instance.KdTree.ComputeAgentNeighbors(this, ref rangeSq); } }