Version: 2023.2
言語: 日本語
public Matrix4x4 localToWorldMatrix ;

説明

The transformation matrix used to transform the Collider physics shapes to world space.

The Collider2D creates PhysicsShape2D in the space of any attached Rigidbody2D. The transformation matrix returned here transforms these shapes from the Rigidbody2D's local space to world space.

If the Collider2D is not attached to a Rigidbody2D then Matrix4x4.identity is returned because the Collider2D is Static and the subsequently created PhysicsShape2D will already be in world space.

Additional resources: Rigidbody2D.localToWorldMatrix and Matrix4x4.