docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method DecomposeRigidBodyOrientation

    DecomposeRigidBodyOrientation(in float4x4)

    Physics internally represents all rigid bodies in world space. If a static body is in a hierarchy, its local-to-world matrix must be decomposed when building the physics world. This method returns a world-space orientation that would be decomposed for such a rigid body.

    Declaration
    public static quaternion DecomposeRigidBodyOrientation(in float4x4 localToWorld)
    Parameters
    Type Name Description
    float4x4 localToWorld

    The local to world.

    Returns
    Type Description
    quaternion

    A world-space orientation as used by physics.

    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)