DotRecastNetSim/src/DotRecast.Detour/DtFindPathOption.cs

26 lines
1.0 KiB
C#
Raw Normal View History

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