Documentation
    Preparing search index...

    Interface WanderStateOptions

    Construction options for WanderState.

    interface WanderStateOptions {
        angle?: number;
        distance: number;
        elevation?: number;
        jitter: number;
        radius: number;
    }
    Index
    angle?: number

    Initial angle on the circle in radians. Default 0 (straight ahead).

    distance: number

    How far ahead of the agent the circle's centre sits, in units; must be finite and >= 0. Keep it larger than radius for forward-biased wander.

    elevation?: number

    Initial elevation of the wander target, in radians. Used by wanderSpherical only; wander ignores it. Default 0 (on the heading-aligned equator).

    jitter: number

    Maximum angular jitter in radians per second; must be finite and >= 0. Each step displaces the angle by a uniform draw from [−jitter · dt, +jitter · dt).

    radius: number

    Radius of the wander circle in units; must be finite and > 0.