Skip to content

Class · inherits Instance

Vector3Curve

Official docs ↗

Represents a 3D vector curve, grouping three FloatCurve instances.

About Vector3Curve

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(time: float) → ArrayReturns the three FloatCurves (X, Y, Z) at the passed time argument.

    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.

  • X() → FloatCurveReturns the FloatCurve controlling the X channel (the first child instance of type FloatCurve named X).

    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.

  • Y() → FloatCurveReturns the FloatCurve controlling the Y channel (the first child instance of type FloatCurve named Y).

    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.

  • Z() → FloatCurveReturns the FloatCurve controlling the Z channel (the first child instance of type FloatCurve named Z).

    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.

Vector3Curve also has every member of Instance. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.