Physics Constraint Ignore component reference
Explore the properties you can use to disable collisions between two 2D Physics Core objects.
Read time 1 minuteLast updated 14 days ago
Explore the properties you can use to disable collisions between two connected 2D Physics Core objects. For more information, refer to Add a constraint.
Pose
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. |
Definition
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. |
User Data
Use the properties in this section to add your own data to the component, and read it using the API. For more information, refer to Add custom data to a 2D Physics Core object.
U2D.PhysicsProperty | 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. |
Info
This section displays information about the constraint. You can't directly edit the properties in this section.
Handle
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. |