docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetLookAtPointAndSetTrackedPoint

    GetLookAtPointAndSetTrackedPoint(Vector3, Vector3, float)

    Apply the target offsets to the target location. Also set the TrackedPoint property, taking lookahead into account.

    Declaration
    protected virtual Vector3 GetLookAtPointAndSetTrackedPoint(Vector3 lookAt, Vector3 up, float deltaTime)
    Parameters
    Type Name Description
    Vector3 lookAt

    The unoffset LookAt point

    Vector3 up

    Currest effective world up

    float deltaTime

    Current effective deltaTime

    Returns
    Type Description
    Vector3

    The LookAt point with the offset applied

    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)