VGDC 2025-2026 Club Game
Loading...
Searching...
No Matches
BezierCurve Class Reference

Public Member Functions

 BezierCurve ()
 BezierCurve (Vector3[] Points)
Vector3 GetSegment (float Time)
Vector3[] GetSegments (int Subdivisions)
 Samples Subdivisions evenly spaced points along the curve and returns them as an array.

Data Fields

Vector3[] Points

Properties

Vector3 StartPosition [get]
 Read‑only property for the first control point (P0).
Vector3 EndPosition [get]
 Read‑only property for the last control point (P3).

Constructor & Destructor Documentation

◆ BezierCurve() [1/2]

BezierCurve.BezierCurve ( )
inline

◆ BezierCurve() [2/2]

BezierCurve.BezierCurve ( Vector3[] Points)
inline

Member Function Documentation

◆ GetSegment()

Vector3 BezierCurve.GetSegment ( float Time)
inline
Here is the caller graph for this function:

◆ GetSegments()

Vector3[] BezierCurve.GetSegments ( int Subdivisions)
inline

Samples Subdivisions evenly spaced points along the curve and returns them as an array.

Used by the editor when drawing a poly‑line approximation or writing back into the LineRenderer.

Here is the call graph for this function:

Field Documentation

◆ Points

Vector3 [] BezierCurve.Points

Property Documentation

◆ EndPosition

Vector3 BezierCurve.EndPosition
get

Read‑only property for the last control point (P3).

◆ StartPosition

Vector3 BezierCurve.StartPosition
get

Read‑only property for the first control point (P0).


The documentation for this class was generated from the following file: