localToWorldMatrix
The transformation matrix used to transform the Rigidbody2D to world space.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public Matrix4x4 localToWorldMatrix { get; }
Remarks
The transformation matrix is calculated as the combination of the Rigidbody2D.position and the Rigidbody2D.rotation.
Additional Resources: Collider2D.localToWorldMatrix and Matrix4x4.