EulerRotationCurve

Show Deprecated

A EulerRotation Curve represents a 3D rotation curve, it groups 3 FloatCurves, stored as 3 FloatCurve child instances. The rotation is decomposed in 3 Euler angles channels that can be accessed via EulerRotationCurve:X(), EulerRotationCurve:Y(), EulerRotationCurve:Z() methods. The 3 axes can be sampled simultaneously via the method EulerRotationCurve:GetAnglesAtTime() returning the 3 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.

Events

Methods


Samples the 3 FloatCurves|FloatCurve (X, Y, Z) at the time passed as argument. Returns the result as 3 Euler angles. If a channel curve is missing or no key is found in the curve the channel is evaluated as nil.


Samples the EulerRotationCurve at a given time and returns the corresponding rotation. Empty Euler angles channels are interpreted as zero.

X(): FloatCurve  

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.

Y(): FloatCurve  

Returns the FloatCurve controlling the Y channel. It is the first child instance of type FloatCurve named 'Y'. If none is found an empty FloatCurve is created.

Z(): FloatCurve  

Returns the FloatCurve controlling the Z channel. It is the first child instance of type FloatCurve named Z. If none is found an empty FloatCurve is created.

Properties

RotationOrder

Euler angles rotation order

Events

Methods

GetAnglesAtTime

Samples the 3 FloatCurves|FloatCurve (X, Y, Z) at the time passed as argument. Returns the result as 3 Euler angles. If a channel curve is missing or no key is found in the curve the channel is evaluated as nil.

Parameters

time: number

Returns

GetRotationAtTime

Samples the EulerRotationCurve at a given time and returns the corresponding rotation. Empty Euler angles channels are interpreted as zero.

Parameters

time: number

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 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 channel. It is the first child instance of type FloatCurve named Z. If none is found an empty FloatCurve is created.


Returns