Explore the properties you can use to disable collisions between two connected 2D Physics Core objects. For more information, refer to Add a constraint.
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.
| Property | Description |
|---|---|
| Pose A Source | Sets how Unity finds the first object this constraint connects to. The options are:
|
| Pose A Target | Sets the first Physics Pose component this constraint connects to. This property is available only if you set Pose A Source to Custom. Drag a GameObject with a Physics Pose component from the Hierarchy window to this property, or select the picker (⊙). |
| Pose B Target | Sets the second object this constraint connects. Drag a GameObject with a Physics Pose component from the Hierarchy window to this property, or select the picker (⊙). |
| Refresh Poses | Refreshes Pose A Target and Pose B Target and recreates the constraint. |
| Property | Description |
|---|---|
| Definition Asset | Sets an asset that sets the values of the properties in this section. By default, this property is empty, and Unity stores the values inside the component. To set a definition asset, drag a Physics Constraint Ignore Definition asset from the Project window to this property, or select the picker (⊙). For more information, refer to Share properties across multiple 2D Physics Core components. |
| World Drawing | Draws the constraint when Unity draws the debug visualization of the world. For more information, refer to Visualize and edit 2D Physics Core scenes. |
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. |
This section displays information about the constraint. You can’t directly edit the properties in this section.
| Property | Description |
|---|---|
| Valid | The state of the object. True means the object is in the simulation. |
| World | The index number of the world the object belongs to. The default is 0, which is the default world. |
| Index | The index number of the object in the world. |
| Generation | The number of times Unity has used the same Index for different objects. |