What it does
pathfinding.followPath follows Path on a pathfinding object. It takes meshId, path, speed and dt, and answers reachedEnd.
Signature
pathfinding.followPath(meshId, path, speed, dt) → reachedEndArguments
meshIdpathspeeddt
Example · generated
function start() { const reachedEnd = pathfinding.followPath('main', '/assets/file.png', 1, 0.016);}pathfinding.followPath is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.