AutoMovie API
    Preparing search index...

    Function carriedAcceleration

    • What an acceleration at a cut adds to a path that starts without one, so the sum leaves the cut with that acceleration.

      The companion of carriedRate one derivative up: the quintic Hermite basis of a unit initial acceleration over duration seconds, D^2 u^2 (1 - u)^3 / 2 with u = elapsed / D, the one quintic with zero value and slope and unit acceleration at the start and zero value, slope and acceleration at the end. A minimum-jerk path, carriedRate and this term together are the quintic through any value, rate and acceleration at one end and rest at the other, so two motions joined with all three matched meet without a step in acceleration. Read backwards in time, with duration - elapsed, the term sets the acceleration a path arrives with; an acceleration keeps its sign under that mirror, where a rate changes it. The term rises to PEAK times the squared duration at two fifths of it and returns without crossing zero.

      Parameters

      • duration: number

        Seconds over which the acceleration is carried; positive.

      • elapsed: number

        Seconds since the cut; clamped into the duration.

      Returns number

      Seconds squared: the displacement per unit acceleration.

      When the duration is not positive and finite, or the elapsed time is not finite.