docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BezierUtility

    Utility functions for Bezier.

    Inheritance
    object
    BezierUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)