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

Method getMovementCost

packages/pathfinding/src/navmesh/NavMesh.ts:326–328  ·  view source on GitHub ↗
(from: IPathNode, to: IPathNode)

Source from the content-addressed store, hash-verified

324 }
325
326 getMovementCost(from: IPathNode, to: IPathNode): number {
327 return euclideanDistance(from.position, to.position);
328 }
329
330 isWalkable(x: number, y: number): boolean {
331 return this.findPolygonAt(x, y) !== null;

Callers

nothing calls this directly

Calls 1

euclideanDistanceFunction · 0.90

Tested by

no test coverage detected