Version: Unity 6.7 Beta (6000.7)
Language : English
Physics Constraint Hinge component reference
Physics Constraint Relative component reference

Physics Constraint Ignore component reference

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

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.

Additional resources

Physics Constraint Hinge component reference
Physics Constraint Relative component reference