Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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.
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.

Pose

Property

Description

Pose A SourceSets how Unity finds the first object this constraint connects to. The options are:
  • Auto: Searches this GameObject and its parents for a Physics Pose component.
  • Custom: Uses the Physics Pose component you assign to Pose A Target.
Pose A TargetSets 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 TargetSets 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 PosesRefreshes Pose A Target and Pose B Target and recreates the constraint.

Definition

Property

Description

Definition AssetSets 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 DrawingDraws 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
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.

Info

This section displays information about the constraint. You can't directly edit the properties in this section.

Handle

Property

Description

ValidThe state of the object. True means the object is in the simulation.
WorldThe index number of the world the object belongs to. The default is 0, which is the default world.
IndexThe index number of the object in the world.
GenerationThe number of times Unity has used the same Index for different objects.

Additional resources