ドキュメント

Unity Engine

Download Unity

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 分最終更新 7時間前

Definition

public void SetDepth(float minDepth, float maxDepth)

Parameters

minDepth

The value used to set ContactFilter2D.minDepth.

maxDepth

The value used to set ContactFilter2D.maxDepth.