five-on-it / packages/ai/src/pathfinding / smoothLayeredPath
Function: smoothLayeredPath()
smoothLayeredPath(
layers,nodes):object[]
Defined in: packages/ai/src/pathfinding.ts:408
Pulls the string of a path over a layered navigation: on flat ground as smoothGridPath does, the floors' nodes and the slopes' (stairs, ramps) kept as they are (a straight line over the ground says nothing of a floor's edges, nor of the side of a flight of stairs), so a walk goes to the foot of the stairs, up their length and along the deck they reach.
Parameters
layers
nodes
readonly number[]
Returns
object[]