Class BezierUtility
Utility functions for Bezier.
Inherited Members
Namespace: UnityEngine.U2D
Assembly: Unity.2D.SpriteShape.Runtime.dll
Syntax
public static class BezierUtility
Methods
BezierPoint(Vector3, Vector3, Vector3, Vector3, float)
Get the BezierPoint position between two control points.
Declaration
public static Vector3 BezierPoint(Vector3 startRightTangent, Vector3 startPosition, Vector3 endPosition, Vector3 endLeftTangent, float t)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | startRightTangent | Right tangent of the first control point. |
Vector3 | startPosition | Position of the first control point. |
Vector3 | endPosition | Position of the second control point |
Vector3 | endLeftTangent | Left tangent of the second control point. |
float | t | Interval in the range of (0, 1) |
Returns
Type | Description |
---|---|
Vector3 | Intermediate position |