docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Up

    Up(in float4x4)

    Computes the "up" direction in a transformation matrix's reference frame.

    Declaration
    public static float3 Up(this in float4x4 m)
    Parameters
    Type Name Description
    float4x4 m

    A transformation matrix

    Returns
    Type Description
    float3

    A vector pointing in the "up" direction of m's reference frame. By Unity's convention, this is positive Y axis. This vector does not necessarily have unit length.

    Remarks

    This method assumes that m is an affine transformation matrix without shear.

    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)