Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EvalNormal(BezierSegment, float)

Evalutes the normal on a curve segment.
Read time 1 minuteLast updated 5 days ago

Definition

public static Vector2 EvalNormal(BezierSegment segment, float t)

Parameters

The curve segment on which to evaluate the normal

The parametric location on the curve

Returns

Type

Description

Vector2The normal of the curve at parametric location "t"

Remarks

A positive normal at a point on the bezier curve is always on the right side of the forward direction (tangent) of the curve at that point.