Documentation
    Preparing search index...

    Interface Trajectory

    A position, velocity, and acceleration sampled from a path (§13).

    Implementations are pure: sampling never mutates the trajectory, and the same time always yields the same result (§33).

    interface Trajectory {
        duration: number;
        sampleAcceleration(time: number, out?: Vector3): Vector3;
        samplePosition(time: number, out?: Vector3): Vector3;
        sampleVelocity(time: number, out?: Vector3): Vector3;
    }

    Implemented by

    Index
    duration: number

    Natural extent of the path in seconds. See the module note on extrapolation.