Class
EulerRotationCurve
Represents a 3D rotation curve through a group of three
FloatCurves.
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.
Properties 1#
RotationOrderRotationOrder | Euler angles rotation order.ReadSafe |
RotationOrder: RotationOrder#
ReadSafe
Euler angles rotation order
Methods 5#
| GetAnglesAtTime | Samples the three FloatCurves (X, Y, Z) at the
passed time argument and returns the result as three Euler angles. |
| GetRotationAtTime | Samples the EulerRotationCurve at a given time and returns the
corresponding rotation. |
| X | Returns the FloatCurve controlling the X Euler angle channel. |
| Y | Returns the FloatCurve controlling the Y Euler angle channel. |
| Z | Returns the FloatCurve controlling the Z Euler angle channel. |
GetAnglesAtTime(time: float): Array#
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.
| Name | Type | Default | Description |
|---|---|---|---|
time | float | The time, in seconds, at which to sample the three channel curves. |
Returns
Array— An array of three values holding the sampledX,Y, andZEuler angles; any channel whose curve is missing or has no key attimeis returned asnil.
GetRotationAtTime(time: float): CFrame#
Samples the EulerRotationCurve at a given time and returns the
corresponding rotation. Empty Euler angles channels are interpreted as
zero.
| Name | Type | Default | Description |
|---|---|---|---|
time | float | The time, in seconds, at which to sample the curve. |
Returns
CFrame— ACFramewhose rotation is composed from theX,Y, andZEuler angles sampled attime, applied in the order given byEulerRotationCurve.RotationOrder; empty channels are treated 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.
Returns
FloatCurve— TheFloatCurvecontrolling theXEuler angle channel.
Y(): FloatCurve#
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
FloatCurve— TheFloatCurvecontrolling theYEuler angle channel.
Z(): FloatCurve#
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.
Returns
FloatCurve— TheFloatCurvecontrolling theZEuler angle channel.
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild