Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ContactFilter2D.SetNormalAngle

public void SetNormalAngle(float minNormalAngle, float maxNormalAngle);

Parameters

minNormalAngle The value used to set the minNormalAngle.
maxNormalAngle The value used to set the maxNormalAngle.

Description

Sets the minNormalAngle and maxNormalAngle filter properties and turns on normal angle filtering by setting useNormalAngle to true.