docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor BezierCurve

    BezierCurve(float3, float3)

    Construct a cubic Bezier curve from a linear curve. A linear curve is a straight line.

    Declaration
    public BezierCurve(float3 p0, float3 p1)
    Parameters
    Type Name Description
    float3 p0

    The first control point. This is the start point of the curve.

    float3 p1

    The second control point. This is the end point of the curve.

    BezierCurve(float3, float3, float3)

    Construct a cubic Bezier curve by elevating a quadratic curve.

    Declaration
    public BezierCurve(float3 p0, float3 p1, float3 p2)
    Parameters
    Type Name Description
    float3 p0

    The first control point. This is the start point of the curve.

    float3 p1

    The second control point.

    float3 p2

    The third control point. This is the end point of the curve.

    BezierCurve(float3, float3, float3, float3)

    Construct a cubic Bezier curve from a series of control points.

    Declaration
    public BezierCurve(float3 p0, float3 p1, float3 p2, float3 p3)
    Parameters
    Type Name Description
    float3 p0

    The first control point. This is the start point of the curve.

    float3 p1

    The second control point.

    float3 p2

    The third control point.

    float3 p3

    The fourth control point. This is the end point of the curve.

    BezierCurve(BezierKnot, BezierKnot)

    Construct a cubic Bezier curve from a start and end BezierKnot.

    Declaration
    public BezierCurve(BezierKnot a, BezierKnot b)
    Parameters
    Type Name Description
    BezierKnot a

    The knot to use as the first and second control points. The first control point is equal to Position, and the second control point is equal to (Position + TangentOut that's rotated by Rotation).

    BezierKnot b

    The knot to use as the third and fourth control points. The third control point is equal to (Position + TangentIn that's rotated by Rotation), and the fourth control point is equal to Position.

    In This Article
    Back to top
    Copyright © 2024 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)