Roblox UtilitiesDevlHub Roblox Documentation

Class

Vector3Curve

Inherits
Instance › Object
Memory category
Instances

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#

GetValueAtTimeReturns the three FloatCurves (X, Y, Z) at the passed time argument.
XReturns the FloatCurve controlling the X channel (the first child instance of type FloatCurve named X).
YReturns the FloatCurve controlling the Y channel (the first child instance of type FloatCurve named Y).
ZReturns 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.

NameTypeDefaultDescription
timefloatTime at which to get the value.
Returns
  • Array — The three FloatCurves (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

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

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

Inherited members#

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed