clik-engine API
    Preparing search index...

    Class PathSteering<T>

    Combines A* pathfinding with steering behaviors for smooth path following. Uses seek for intermediate waypoints and arrive for the final waypoint.

    Usage:

    const ps = new PathSteering(grid, isWalkable, { maxSpeed: 200 });
    ps.setPath(entity, target);
    // Each frame:
    const force = ps.calculate(entity, delta);
    entity.x += force.x * dt; entity.y += force.y * dt;

    Type Parameters

    • T = number
    Index

    Constructors

    Methods