RotationCurveKey

Show Deprecated

A time-value pair used with RotationCurve instances.

The Interpolation property dictates the interpolation mode for the segment started by this key and ended by the next key on the curve. Each segment may use a different interpolation mode.

The LeftTangent and RightTangent properties apply to the cubic interpolation mode and define the desired tangent (slope) at the key. Different left and right values can be used to encode discontinuities in slope at the key. Attempting to set a RightTangent value on a key that doesn't use the cubic interpolation mode will result in a runtime error. It is possible to set the LeftTangent property on any key, as it will be used should the preceding segment use cubic interpolation.

Summary

Constructors

Properties

Constructors

new

Parameters

time: number
cframe: CFrame

Properties

Defines the key interpolation mode for the segment started by this RotationCurveKey.

Time

The time position of this RotationCurveKey.

Value

The CFrame value of this RotationCurveKey.

RightTangent

The tangent to the right of this RotationCurveKey.

LeftTangent

The tangent to the left of this RotationCurveKey.