RotationCurve¶
Not yet Class
Represents a sequence of rotations and the interpolation curve between them.
Not implemented yet
This class exists in the current Roblox API but is not implemented in Nova yet. Scripts that reference it will fail at runtime.
0 Nova members · 14 modern Roblox members not implemented yet
Description¶
This class holds a sorted list of RotationCurveKeys that represent a sequence of rotations. The shape of the interpolation curve between two keys is determined by the RotationCurveKey.Interpolation type.
Inheritance¶
Object → Instance → RotationCurve
Properties¶
| Member | Signature | Summary |
|---|---|---|
Length |
Length: int |
Number of rotation keys in this curve. |
ValuesAndTimes |
ValuesAndTimes: BinaryString |
— |
Methods¶
| Member | Signature | Summary |
|---|---|---|
GetKeyAtIndex |
RotationCurve:GetKeyAtIndex(index: int): RotationCurveKey |
Returns a copy of a key at a given index. |
GetKeyIndicesAtTime |
RotationCurve:GetKeyIndicesAtTime(time: float): Array |
Returns the index of the last and first key of a period of time. |
GetKeys |
RotationCurve:GetKeys(): Array |
Returns a copy of all the keys in the rotation curve as a Luau array of RotationCurveKeys. |
GetValueAtTime |
RotationCurve:GetValueAtTime(time: float): CoordinateFrame? |
Samples the rotation curve at a given time and returns the corresponding rotation as a CFrame. |
InsertKey |
RotationCurve:InsertKey(key: RotationCurveKey): Array |
Adds the key passed as an argument to this curve. If a key at the same time is found, it will be replaced. |
RemoveKeyAtIndex |
RotationCurve:RemoveKeyAtIndex(startingIndex: int, count: int = 1): int |
Removes a given number of keys starting from a given index. |
SetKeys |
RotationCurve:SetKeys(keys: Array): int |
Resets this curve's keys using the RotationCurveKey array passed as an argument. |
Roblox reference: RotationCurve
Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.