ドキュメント

Unity Engine

Unity Engine

EvalNormal(BezierSegment, float)

Evalutes the normal on a curve segment.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.