docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method LookAtMatrix

    LookAtMatrix(Point3, Point3, Point3)

    Create a matrix from a camera position, up and target

    Declaration
    public Matrix4 LookAtMatrix(Point3 position, Point3 up, Point3 target)
    Parameters
    Type Name Description
    Point3 position

    The camera position

    Point3 up

    The up vector

    Point3 target

    The target position

    Returns
    Type Description
    Matrix4
    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)