docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TRS

    TRS(float3, quaternion, float3)

    Returns a float4x4 matrix representing a combined scale-, rotation- and translation transform. Equivalent to mul(translationTransform, mul(rotationTransform, scaleTransform)).

    Declaration
    public static float4x4 TRS(float3 translation, quaternion rotation, float3 scale)
    Parameters
    Type Name Description
    float3 translation

    The translation vector.

    quaternion rotation

    The quaternion rotation.

    float3 scale

    The scaling factors of each axis.

    Returns
    Type Description
    float4x4

    The float4x4 matrix representing the translation, rotation, and scale by the inputs.

    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)