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

public float maxNormalAngle;

Description

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

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

See Also: ContactPoint2D.normal.