AutoMovie API
    Preparing search index...

    Interface IAutoMovieSweepTransport

    A spine compiled into buffers that can be rewritten and recompiled in place, from transportAutoMovieSweepSpine.

    The caller writes the points, the starting direction and any end tangents into the arrays, calls update, then queries. Queries write into a caller array at an offset and allocate nothing, so a sweep riding a skeleton is re-transported every frame into the same memory. frameAutoMovieSweepSpine wraps one of these in the object-returning IAutoMovieSweepPath.

    interface IAutoMovieSweepTransport {
        count: number;
        end: Float64Array;
        normal: Float64Array;
        points: Float64Array;
        start: Float64Array;
        frame(u: number, out: Float64Array, at: number): void;
        length(): number;
        point(u: number, out: Float64Array, at: number): void;
        tangent(u: number, out: Float64Array, at: number): void;
        update(): void;
    }
    Index
    count: number

    Number of spine points.

    end: Float64Array

    Direction the path reaches its last point along, three numbers; all zero, the spline's own.

    normal: Float64Array

    Direction of the section plane's first axis at the start, three numbers.

    points: Float64Array

    Packed points [x, y, z, ...], metres, 3 * count numbers, written by the caller.

    start: Float64Array

    Direction the path leaves its first point along, three numbers; all zero, the spline's own.

    • Write the rotation-minimizing frame at u: origin, first axis, second axis and normal, twelve numbers.

      Parameters

      • u: number

        Chord-length parameter

      • out: Float64Array

        Receives twelve numbers

      • at: number

        Offset into out

      Returns void

      Error when the transport was created without frames