DotRecastNetSim/src/DotRecast.Detour/DtFindPathOption.cs

26 lines
1022 B
C#
Raw Normal View History

2023-06-22 18:46:51 +03:00
namespace DotRecast.Detour
{
public readonly struct DtFindPathOption
{
2023-06-23 01:33:03 +03:00
public static readonly DtFindPathOption NoOption = new DtFindPathOption(DefaultQueryHeuristic.Default, 0, 0);
public static readonly DtFindPathOption AnyAngle = new DtFindPathOption(DefaultQueryHeuristic.Default, DtNavMeshQuery.DT_FINDPATH_ANY_ANGLE, float.MaxValue);
public static readonly DtFindPathOption ZeroScale = new DtFindPathOption(new DefaultQueryHeuristic(0.0f), 0, 0);
2023-06-22 18:46:51 +03:00
public readonly IQueryHeuristic heuristic;
public readonly int options;
public readonly float raycastLimit;
public DtFindPathOption(IQueryHeuristic heuristic, int options, float raycastLimit)
{
this.heuristic = heuristic;
this.options = options;
this.raycastLimit = raycastLimit;
}
public DtFindPathOption(int options, float raycastLimit)
: this(DefaultQueryHeuristic.Default, options, raycastLimit)
{
}
}
}