docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetAutoSmoothTangent

    GetAutoSmoothTangent(float3, float3, float)

    Calculates a tangent from the previous and next knot positions.

    Declaration
    public static float3 GetAutoSmoothTangent(float3 previous, float3 next, float tension = 0.33333334)
    Parameters
    Type Name Description
    float3 previous

    The position of the previous BezierKnot.

    float3 next

    The position of the next BezierKnot.

    float tension

    Set the length of the tangent vectors.

    Returns
    Type Description
    float3

    Returns a tangent calculated from the previous and next knot positions.

    GetAutoSmoothTangent(float3, float3, float3, float)

    Gets a tangent from the previous, current, and next knot positions.

    Declaration
    public static float3 GetAutoSmoothTangent(float3 previous, float3 current, float3 next, float tension = 0.33333334)
    Parameters
    Type Name Description
    float3 previous

    The position of the previous BezierKnot.

    float3 current

    The position of the current BezierKnot.

    float3 next

    The position of the next BezierKnot.

    float tension

    The length of the tangent vectors.

    Returns
    Type Description
    float3

    Returns a tangent calculated from the previous, current, and next knot positions.

    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)