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.minNormalAngle

public float minNormalAngle;

Description

Sets the contact filter to filter the results to only include contacts with collision normal angles that are greater than this angle.

This is only used if useNormalAngle is true. If the minNormalAngle is set to -Mathf.Infinity or Mathf.Infinity then the lowest possible angle is used.

See Also: ContactPoint2D.normal.