minDepth
Sets the contact filter to filter the results to only include Collider2D with a Z coordinate (depth) greater than this value.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Field
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public float minDepth
Remarks
This is only used if ContactFilter2D.useDepth is true. If the is set to -Mathf.Infinity or Mathf.Infinity then the lowest possible depth is used.
minDepthAdditional Resources: Transform.