文档

Unity Engine

Unity Engine

SetNormalAngle(float, float)

Sets the ContactFilter2D.minNormalAngle and ContactFilter2D.maxNormalAngle filter properties and turns on normal angle filtering by setting ContactFilter2D.useNormalAngle to true.
阅读时间1 分钟最后更新于 21 天前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public void SetNormalAngle(float minNormalAngle, float maxNormalAngle)

Parameters

minNormalAngle

The value used to set the ContactFilter2D.minNormalAngle.

maxNormalAngle

The value used to set the ContactFilter2D.maxNormalAngle.