Class
Vector3Curve
Represents a 3D vector curve, grouping three FloatCurve instances.
Represents a 3D vector curve, grouping three FloatCurve instances.
Each child FloatCurve can be accessed via the
Vector3Curve:X(), Vector3Curve:Y(), and
Vector3Curve:Z() methods. The three axes can be sampled simultaneously
via the method Vector3Curve:GetValueAtTime().
Methods 4#
| GetValueAtTime | Returns the three FloatCurves (X, Y, Z) at the passed
time argument. |
| X | Returns the FloatCurve controlling the X channel (the first child
instance of type FloatCurve named X). |
| Y | Returns the FloatCurve controlling the Y channel (the first child
instance of type FloatCurve named Y). |
| Z | Returns the FloatCurve controlling the Z channel (the first child
instance of type FloatCurve named Z). |
GetValueAtTime(time: float): Array#
Returns the three FloatCurves (X, Y, Z) at the passed
time argument as an array of three numbers. 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 | Time at which to get the value. |
Returns
Array— The threeFloatCurves(X, Y, Z) at the passed time argument.
X(): FloatCurve#
Returns the FloatCurve controlling the X channel (the first child
instance of type FloatCurve named X). If none is found, an empty
FloatCurve is created.
Returns
FloatCurve— TheFloatCurvecontrolling the X channel, or a newly created emptyFloatCurveif none exists yet.
Y(): FloatCurve#
Returns the FloatCurve controlling the Y channel (the first child
instance of type FloatCurve named Y). If none is found, an empty
FloatCurve is created.
Returns
FloatCurve— TheFloatCurvecontrolling the Y channel, or a newly created emptyFloatCurveif none exists yet.
Z(): FloatCurve#
Returns the FloatCurve controlling the Z channel (the first child
instance of type FloatCurve named Z). If none is found, an empty
FloatCurve is created.
Returns
FloatCurve— TheFloatCurvecontrolling the Z channel, or a newly created emptyFloatCurveif none exists yet.
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