AutoMovie API
    Preparing search index...

    Interface IAutoMovieCrowdAgent

    One agent of a plan-time crowd steering pass (steerAutoMovieCrowd): a disc on the floor that heads for its goals at its own desired speed and avoids the others and the obstacles.

    Positions are world metres on the floor plan (y is not read), speeds metres per second, times film seconds. Nothing in it names a person: a walker, a horse or a cart is an agent with its own radius and speed. steerAutoMovieCrowd checks positive finite radius and speed, finite start and a nonempty goal list. Finite point coordinates, maximum >= speed and herding in [0, 1] are caller premises, not additional admission checks.

    interface IAutoMovieCrowdAgent {
        at: IAutoMovieVector3;
        goal: IAutoMovieVector3 | readonly IAutoMovieVector3[];
        herding?: number;
        maximum?: number;
        radius: number;
        speed: number;
        start: number;
    }
    Index

    Where it stands at the pass's first second, world metres.

    Where it heads: one point, or points passed in order, the last its destination; world metres.

    herding?: number

    Its herding share in [0, 1]: the weight of its neighbours' mean heading against its own (Helbing, Farkas and Vicsek 2000); 0 when absent.

    maximum?: number

    The fastest it may go, metres per second, at least speed; 1.3 times speed when absent (Helbing and Molnar 1995).

    radius: number

    Its disc's radius, metres, positive: half a walker's shoulder breadth.

    speed: number

    Its desired speed, metres per second, positive.

    start: number

    The film second it sets off; it stands still before.