Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


minDepth

Sets the contact filter to filter the results to only include Collider2D with a Z coordinate (depth) greater than this value.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public float minDepth

Remarks

This is only used if ContactFilter2D.useDepth is true. If the
minDepth
is set to -Mathf.Infinity or Mathf.Infinity then the lowest possible depth is used.
Additional Resources: Transform.