EulerRotationCurve
A EulerRotationCurve represents a 3D rotation curve through a group of three FloatCurves. The rotation is decomposed in three Euler angles channels that can be accessed via EulerRotationCurve:X(), EulerRotationCurve:Y(), and EulerRotationCurve:Z(). The three axes can be sampled simultaneously via EulerRotationCurve:GetAnglesAtTime(), returning the three Euler angles as a Vector3. Similarly, EulerRotationCurve:GetRotationAtTime() samples all channels simultaneously but returns a CFrame rotated by X, Y, and Z according to the specified rotation order.
Summary
Properties
Euler angles rotation order.
Methods
Samples the three FloatCurves (X, Y, Z) at the passed time argument and returns the result as three Euler angles.
Samples the EulerRotationCurve at a given time and returns the corresponding rotation.
Returns the FloatCurve controlling the X Euler angle channel.
Returns the FloatCurve controlling the Y Euler angle channel.
Returns the FloatCurve controlling the Z Euler angle channel.
Properties
Methods
GetAnglesAtTime
Samples the three FloatCurves (X, Y, Z) at the passed time argument and returns the result as three Euler angles. If a channel curve is missing or no key is found in the curve, the channel is evaluated as nil.
Parameters
Returns
GetRotationAtTime
Samples the EulerRotationCurve at a given time and returns the corresponding rotation. Empty Euler angles channels are interpreted as zero.
Parameters
Returns
Returns the FloatCurve controlling the X Euler angle channel. It is the first child instance of type FloatCurve named X. If none is found, an empty FloatCurve is created.
Returns
Returns the FloatCurve controlling the Y Euler angle channel. It is the first child instance of type FloatCurve named Y. If none is found, an empty FloatCurve is created.
Returns
Returns the FloatCurve controlling the Z Euler angle channel. It is the first child instance of type FloatCurve named Z. If none is found, an empty FloatCurve is created.