2023-10-16 17:55:34 +03:00
|
|
|
|
using DotRecast.Core.Numerics;
|
2023-06-08 15:38:02 +03:00
|
|
|
|
|
|
|
|
|
namespace DotRecast.Detour
|
|
|
|
|
{
|
|
|
|
|
public class DtQueryNoOpFilter : IDtQueryFilter
|
|
|
|
|
{
|
2023-08-16 17:49:43 +03:00
|
|
|
|
public static readonly DtQueryNoOpFilter Shared = new DtQueryNoOpFilter();
|
2023-08-18 08:04:56 +03:00
|
|
|
|
|
2023-08-16 17:49:43 +03:00
|
|
|
|
private DtQueryNoOpFilter()
|
|
|
|
|
{
|
|
|
|
|
}
|
2023-08-18 08:04:56 +03:00
|
|
|
|
|
2023-06-08 15:38:02 +03:00
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|