localToWorldMatrix
The transformation matrix used to transform the Rigidbody2D to world space.
阅读时间1 分钟最后更新于 1 个月前
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.