Version: 2023.1
言語: 日本語
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.

See Also: Rigidbody2D.localToWorldMatrix and Matrix4x4.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961