Represents a single knot (control point) in a spline curve.

Each knot defines a point along the spline with its position, rotation, and tangent handles
that control the curve's shape entering and leaving the knot.

Properties:

  • position: The 3D position of this knot in local space
  • rotation: The orientation at this knot (useful for rotating objects along the spline)
  • tangentIn: The incoming tangent handle controlling the curve shape before this knot
  • tangentOut: The outgoing tangent handle controlling the curve shape after this knot

SplineContainer for the container that holds and manages multiple knots

Constructors

Properties

position: Vector3 = ...

The 3D position of this knot in local space relative to the SplineContainer.

rotation: Quaternion = ...

The orientation at this knot. Can be used to rotate objects following the spline.

tangentIn: Vector3 = ...

The incoming tangent handle controlling the curve shape as it approaches this knot. The magnitude and direction affect the smoothness and curvature of the spline.

tangentOut: Vector3 = ...

The outgoing tangent handle controlling the curve shape as it leaves this knot. The magnitude and direction affect the smoothness and curvature of the spline.