AutoMovie API
    Preparing search index...

    Function walkStation

    • A stepping plan walked to keep station on a moving point: a formation's slot, a steered course, or a person followed. While the point moves, the walker's speed along its own way follows the point's, and once the point has stopped it walks the rest of its way at its own pace.

      Followers match a leader's speed: the follower's acceleration is proportional to the difference of the two speeds, a = c (v_point - v_walker) with c = GAIN (Rio, Rhea and Warren 2014, J Vis 14(2):4, Table 1; fitted between 1 and 4 m of gap). Formations are kept the same way, each member steering to its own place relative to a reference (Balch and Arkin 1998; Reynolds 1999's offset pursuit), so a slot is followed as a leader is. A walker sets off as the point does, slows where it slows and stands while it stands, and after a change of the point's speed by dv the gap has changed by dv / c. The law holds the gap, it does not close it: what is left of the way when the point has stopped, or from the place where the plan's own stop begins, is walked on the plan's own clock, whose rate comes to 1 by the same first-order law, so the walker stops as its own gait stops.

      The point's speed is the length it travels between readings STEP apart, and no more than FASTEST times the gait's own cruising speed is matched: a walker that cannot keep up falls behind and arrives after it. The plan's way is the length its root travels, read at SAMPLES instants; its cruising speed is the median of the speeds between them. A point that does not move leaves the plan as it is. The plan's clock slows with the speed, so a slower walker steps as long and less often, and one whose point pauses holds its stride where it is.

      Parameters

      • plan: walkStation.IPlan

        The walker's stepping plan at its own pace, laid along the point's way.

      • where: (seconds: number) => IAutoMovieVector3

        Where the point is at a film second.

      • from: number

        The film second the walker's plan begins.

      • rests: number

        The film second the point comes to rest.

      Returns walkStation.IPlan

      The plan at the point's speed.

      When the clock would need more than TICKS entries, a station kept past the longest walk timed.