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

Method getNodeAt

packages/pathfinding/src/navmesh/NavMesh.ts:303–306  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

301 // ==========================================================================
302
303 getNodeAt(x: number, y: number): IPathNode | null {
304 const polygon = this.findPolygonAt(x, y);
305 return polygon ? this.nodes.get(polygon.id) ?? null : null;
306 }
307
308 getNeighbors(node: IPathNode): IPathNode[] {
309 const navNode = node as NavMeshNode;

Callers

nothing calls this directly

Calls 2

findPolygonAtMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected