Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

var normal: Vector2;
Vector2 normal;
normal as Vector2

Description

Surface normal at the contact point.

This is the normal vector (ie, the vector perpendicular to the surface) of the incoming Collider2D at the contact point.

See Also: Collider2D class.