DtCrowdNeighbour.cs 577 B

1234567891011121314151617181920
  1. namespace DotRecast.Detour.Crowd
  2. {
  3. /// Provides neighbor data for agents managed by the crowd.
  4. /// @ingroup crowd
  5. /// @see dtCrowdAgent::neis, dtCrowd
  6. public readonly struct DtCrowdNeighbour
  7. {
  8. public readonly DtCrowdAgent agent;
  9. /// < The index of the neighbor in the crowd.
  10. public readonly float dist;
  11. /// < The distance between the current agent and the neighbor.
  12. public DtCrowdNeighbour(DtCrowdAgent agent, float dist)
  13. {
  14. this.agent = agent;
  15. this.dist = dist;
  16. }
  17. };
  18. }