2023-05-07 12:10:20 +03:00
|
|
|
|
namespace DotRecast.Detour.Crowd
|
|
|
|
|
{
|
|
|
|
|
/// Provides neighbor data for agents managed by the crowd.
|
|
|
|
|
/// @ingroup crowd
|
|
|
|
|
/// @see dtCrowdAgent::neis, dtCrowd
|
2023-06-26 18:06:07 +03:00
|
|
|
|
public readonly struct DtCrowdNeighbour
|
2023-05-07 12:10:20 +03:00
|
|
|
|
{
|
2023-06-08 15:38:02 +03:00
|
|
|
|
public readonly DtCrowdAgent agent;
|
2023-05-07 12:10:20 +03:00
|
|
|
|
|
|
|
|
|
/// < The index of the neighbor in the crowd.
|
|
|
|
|
public readonly float dist;
|
|
|
|
|
|
|
|
|
|
/// < The distance between the current agent and the neighbor.
|
2023-06-08 15:38:02 +03:00
|
|
|
|
public DtCrowdNeighbour(DtCrowdAgent agent, float dist)
|
2023-05-07 12:10:20 +03:00
|
|
|
|
{
|
|
|
|
|
this.agent = agent;
|
|
|
|
|
this.dist = dist;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|