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