MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / getCost

Method getCost

Source/ThirdParty/recastnavigation/DetourNavMeshQuery.cpp:79–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79float dtQueryFilter::getCost(const float* pa, const float* pb,
80 const dtPolyRef /*prevRef*/, const dtMeshTile* /*prevTile*/, const dtPoly* /*prevPoly*/,
81 const dtPolyRef /*curRef*/, const dtMeshTile* /*curTile*/, const dtPoly* curPoly,
82 const dtPolyRef /*nextRef*/, const dtMeshTile* /*nextTile*/, const dtPoly* /*nextPoly*/) const
83{
84 return dtVdist(pa, pb) * m_areaCost[curPoly->getArea()];
85}
86#else
87inline bool dtQueryFilter::passFilter(const dtPolyRef /*ref*/,
88 const dtMeshTile* /*tile*/,

Callers 5

findPathMethod · 0.80
updateSlicedFindPathMethod · 0.80
raycastMethod · 0.80
findPolysAroundCircleMethod · 0.80
findPolysAroundShapeMethod · 0.80

Calls 2

dtVdistFunction · 0.85
getAreaMethod · 0.80

Tested by

no test coverage detected