platformer - v1.0.0
    Preparing search index...

    Moves an entity along a predefined path.

    interface default {
        currentIndex: number;
        direction: -1 | 1;
        loop: boolean;
        points: Vector[];
        speed: number;
    }
    Index

    Properties

    currentIndex: number

    Current target point index.

    direction: -1 | 1

    Direction of traversal (1 forward, -1 backward).

    loop: boolean

    Whether the path repeats when reaching the end.

    points: Vector[]

    Ordered path points in world space.

    speed: number

    Movement speed in units per second.