useOutsideDepth
Sets the contact filter to filter within the _minDepth and _maxDepth range, or outside that range.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Field
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public bool useOutsideDepth
Remarks
ContactFilter2D.useOutsideDepth uses the range between _minDepth and _maxDepth to filter depth. Set to true to only return object depth outside that range. Set to false to only return object depth within that range. It is false by default.
useOutsideDepthuseOutsideDepth