Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


normal

A normalized vector that points from pointB to pointA.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public Vector2 normal { get; }

Remarks

The normalized vector points from _pointB to _pointA. When it is scaled with the _distance is produces a vector that can be used to move the Collider2D so that they are no longer overlapped (if the _distance is negative) or so they are touching (if the _distance is positive).