RSX Code Reference
    Preparing search index...
    • rsx
    • Vector3Curve

    Class Vector3Curve

    Animation spline represented by a set of keyframes, each representing an endpoint of a cubic hermite curve. The spline can be evaluated at any time, and uses caching to speed up multiple sequential evaluations.

    Curves are expected to be immutable for threading purposes

    Index
    • Returns Vector3Curve

    • Creates a new animation curve.

      Parameters

      • keyframes: readonly Immutable<KeyFrameVec3>[]

        Keyframes to initialize the curve with. They must be sorted by time.

      • OptionalisInternalConstructor: boolean

      Returns Vector3Curve

    • Evaluate the animation curve at the specified time. If evaluating multiple values in a sequential order consider using the cached version of evaluate() for better performance.

      Parameters

      • time: number

        %Time to evaluate the curve at.

      • Optionalloop: boolean

        If true the curve will loop when it goes past the end or beggining. Otherwise the curve value will be clamped.

      Returns Vector3

      Interpolated value from the curve at provided time.

    • Compares the current animation curve against another one.

      Parameters

      Returns boolean