MCPcopy Create free account
hub / github.com/esengine/esengine / heuristic

Method heuristic

packages/pathfinding/src/navmesh/NavMesh.ts:322–324  ·  view source on GitHub ↗
(a: IPoint, b: IPoint)

Source from the content-addressed store, hash-verified

320 }
321
322 heuristic(a: IPoint, b: IPoint): number {
323 return euclideanDistance(a, b);
324 }
325
326 getMovementCost(from: IPathNode, to: IPathNode): number {
327 return euclideanDistance(from.position, to.position);

Callers

nothing calls this directly

Calls 1

euclideanDistanceFunction · 0.90

Tested by

no test coverage detected