M_Curve:PointOnSegment(segID, percent, forDrawing)

Version added: before 9.5
Returns the location of a point on a segment

Arguments:

Name Type Description Default Ver
segID int32 A segment of the curve (starting with 0) < 9.5
percent real Where on the segment to locate the point (from 0 to 1) < 9.5
forDrawing bool false < 9.5

Return value:

Vector2 a point located on the segment
Returns the location of a point on a segment.

Search results

Usage of 'PointOnSegment' is found in the following scripts:

<< Back to M_Curve