docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetLocalPositionForCameraFromInput

    GetLocalPositionForCameraFromInput(float)

    Returns the local position of the camera along the spline used to connect the three camera rigs. Does not take into account the current heading of the camera (or its target)

    Declaration
    public Vector3 GetLocalPositionForCameraFromInput(float t)
    Parameters
    Type Name Description
    float t

    The t-value for the camera on its spline. Internally clamped to the value [0,1]

    Returns
    Type Description
    Vector3

    The local offset (back + up) of the camera WRT its target based on the supplied t-value

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