DotRecastNetSim/src/DotRecast.Detour/DtQueryNoOpFilter.cs

24 lines
639 B
C#
Raw Normal View History

using DotRecast.Core;
namespace DotRecast.Detour
{
public class DtQueryNoOpFilter : IDtQueryFilter
{
2023-08-16 17:49:43 +03:00
public static readonly DtQueryNoOpFilter Shared = new DtQueryNoOpFilter();
2023-08-16 17:49:43 +03:00
private DtQueryNoOpFilter()
{
}
public bool PassFilter(long refs, DtMeshTile tile, DtPoly poly)
{
return true;
}
public float GetCost(RcVec3f pa, RcVec3f pb, long prevRef, DtMeshTile prevTile, DtPoly prevPoly, long curRef,
DtMeshTile curTile, DtPoly curPoly, long nextRef, DtMeshTile nextTile, DtPoly nextPoly)
{
return 0;
}
}
}