docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FromTangent

    FromTangent(float3, float3, float3, float3)

    Create a BezierCurve from a start and end point plus tangent directions.

    Declaration
    public static BezierCurve FromTangent(float3 pointA, float3 tangentOutA, float3 pointB, float3 tangentInB)
    Parameters
    Type Name Description
    float3 pointA

    Starting position of the curve.

    float3 tangentOutA

    The direction and magnitude to the second control point.

    float3 pointB

    Ending position of the curve.

    float3 tangentInB

    The direction and magnitude to the third control point.

    Returns
    Type Description
    BezierCurve

    A new BezierCurve from the derived control points.

    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)