docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateHelix

    CreateHelix(float, float, int)

    Creates a Spline in the shape of a helix with a single revolution.

    Declaration
    public static Spline CreateHelix(float radius, float height, int revolutions)
    Parameters
    Type Name Description
    float radius

    The distance from the center to the helix's curve.

    float height

    The height of the helix shape.

    int revolutions

    The number of revolutions the helix should have.

    Returns
    Type Description
    Spline

    A new Spline.

    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)