Version: 2023.2
언어: 한국어

Collider2D.localToWorldMatrix

매뉴얼로 전환
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.