Version: Unity 6.7 Beta (6000.7)
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