Pathwise: Navigation and Crowd Agents Kit
README.md
placement
Pure maths for where each of the ten spawn patterns puts an enemy and how it enters. solve(pattern, ctx) returns the position, where the entrance starts, the entrance kind (grow, drop, rise, walkIn) and its duration, plus a route for the path pattern; entranceAt gives the position and scale part-way through an entrance. The path pattern's route is a smooth curve: smoothRoute(points, spacing) builds a Catmull-Rom spline through a path's points with the engine's spline module (@builtin::modules.spline) and samples it about every spacing metres, and the Spawner draws the same curve on the ground. The Spawner gathers the context on the host (spawn point records, players, the host's camera) and calls it for every spawn, and the Enemy component plays the entrance and walks the route. DEFAULT_EFFECT maps each pattern to the effect auto picks.