docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method DecomposeRigidBodyTransform

    DecomposeRigidBodyTransform(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 RigidTransform that would be decomposed for such a rigid body.

    Declaration
    public static RigidTransform DecomposeRigidBodyTransform(in float4x4 localToWorld)
    Parameters
    Type Name Description
    float4x4 localToWorld

    The local to world.

    Returns
    Type Description
    RigidTransform

    A world-space RigidTransform 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)