root/src/BRAINSFramework/Locomotion/LocomtionSteering.cs
| 24 | 25 | ||
|---|---|---|---|
297 | Vector2 SteeringForce=Vector2.Zero; | 297 | Vector2 SteeringForce=Vector2.Zero; |
298 | 298 | ||
299 | int NeighborCount = 0; | 299 | int NeighborCount = 0; |
300 | 300 | List<Agent> _agents = Owner.GetNearbyAgents(100); | |
301 | //iterate through the neighbors and sum up all the position vectors | 301 | //iterate through the neighbors and sum up all the position vectors |
302 | for (int a = 0; a < g.Agents.Count; ++a) | 302 | for (int a = 0; a < g.Agents.Count; ++a) |
303 | { | 303 | { |
Download diff