maxDepth
Sets the contact filter to filter the results to only include Collider2D with a Z coordinate (depth) less than this value.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Field
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public float maxDepth
Remarks
This is only used if ContactFilter2D.useDepth is true. If the is set to -Mathf.Infinity or Mathf.Infinity then the highest possible depth is used.
maxDepthAdditional Resources: Transform.