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. |