| 1234567891011121314151617181920 |
- namespace DotRecast.Detour.Crowd
- {
- /// Provides neighbor data for agents managed by the crowd.
- /// @ingroup crowd
- /// @see dtCrowdAgent::neis, dtCrowd
- public readonly struct DtCrowdNeighbour
- {
- public readonly DtCrowdAgent agent;
- /// < The index of the neighbor in the crowd.
- public readonly float dist;
- /// < The distance between the current agent and the neighbor.
- public DtCrowdNeighbour(DtCrowdAgent agent, float dist)
- {
- this.agent = agent;
- this.dist = dist;
- }
- };
- }
|