Version: 2018.1
public float distance ;

Description

Gets the distance between two colliders.

The distance between two colliders is defined as the length of a Vector2 between pointA and pointB. The distance between these points can be positive indicating that the Collider2D are separated (not overlapped), zero indicating that they are touching (but not overlapped) or negative indicating that they are overlapped.