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.

ContactPoint2D.normal

public Vector2 normal;

Description

Surface normal at the contact point.

This is the normal vector, that is the vector that is perpendicular to the surface or the incoming Collider2D at the contact point.

See Also: Collider2D class.