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

    Class AnimationUtility

    Helper class for dealing with animations, animation clips and curves.

    Index
    • Parameters

      • OptionalisInternalConstructor: boolean

      Returns AnimationUtility

    • Converts a curve in euler angles (in degrees) into a curve using quaternions by sampling the euler curve in order to mimic the euler tangents.

      Parameters

      • eulerCurve: CompoundVector3Curve

        The curve to be converted.

      • Optionalfactor: number

        A quality factor in the range of (1, inf) (technically, it can get to infinity, but in practice smaller values up to 5 are the norm) where 1 means perfect curve matching (although it is not a valid number, it must be higher than 1) but many keyframes will be generated, while increasing this value will reduce the quality for a reduction in keyframe counts. The good general range is between [1.25 - 1.75].

      • Optionalorder: EnumValue<EulerAngleOrder>

        The order in which the euler angles are provided.

      Returns CompoundQuaternionCurve

      The converted quaternion curve with the extra intermediary keyframes added.

    • Converts a curve in euler angles (in degrees) into a curve using quaternions by sampling the euler curve in order to mimic the euler tangents.

      Parameters

      • eulerCurve: Vector3Curve

        The curve to be converted.

      • Optionalfactor: number

        A quality factor in the range of (1, inf) (technically, it can get to infinity, but in practice smaller values up to 5 are the norm) where 1 means perfect curve matching (although it is not a valid number, it must be higher than 1) but many keyframes will be generated, while increasing this value will reduce the quality for a reduction in keyframe counts. The good general range is between [1.25 - 1.75].

      • Optionalorder: EnumValue<EulerAngleOrder>

        The order in which the euler angles are provided.

      Returns QuaternionCurve

      The converted quaternion curve with the extra intermediary keyframes added.