기술 자료

Unity Engine

Unity Engine

SetDepth(float, float)

Sets the ContactFilter2D.minDepth and ContactFilter2D.maxDepth filter properties and turns on depth filtering by setting ContactFilter2D.useDepth to true.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public void SetDepth(float minDepth, float maxDepth)

Parameters

minDepth

The value used to set ContactFilter2D.minDepth.

maxDepth

The value used to set ContactFilter2D.maxDepth.