Version: Unity 7.0 Alpha (7000.0)
Language : English
Physics Simulation Definition asset reference
Collisions and interactions in 2D Physics Core

Physics Simulation World asset reference

Explore the properties you can use to create a simulation world using 2D Physics Core.

Note: This documentation is about using Pose, Area, and Constraint components. To use 2D physics in the Unity Editor using components like the Rigidbody 2D component, refer to 2D physics instead.

Physics Simulation World asset properties

Property Description
Definition Sets the Physics Simulation Definition asset that contains the world’s settings, such as gravity. Drag a Physics Simulation Definition asset from the Project window to this property, or select the picker (⊙). If this property is empty, the world uses Unity’s default settings.
Make Asset Creates a Physics Simulation Definition asset for you to save, then assigns it to the Definition property. This property is available only if Definition is empty.

User Data

Use the properties in this section to add your own data to the component, and read it using the U2D.Physics API. For more information, refer to Add custom data to a 2D Physics Core object.

Property Description
Object Sets a custom object. Drag any object from the Hierarchy or Project windows to this property, or select the picker (⊙).
Physics Mask Sets a custom set of enabled and disabled layers. For more information, refer to Configure collisions between 2D Physics Core objects.
Float Sets a custom floating-point number.
Int Sets a custom integer.
Int 64 Sets a custom 64-bit integer.
Vector 3 Int Sets a custom 3D vector of integers.
Bool Sets a custom Boolean value.

Additional resources

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