Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Physics Simulation World asset reference

Explore the properties you can use to configure a Physics Simulation World asset in the Unity Editor using 2D Physics Core.
Read time 1 minuteLast updated 14 days ago

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

DefinitionSets 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 AssetCreates 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

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

Additional resources