RaycastHit2D.Centroid

The centroid of the primitive used to perform the cast.

RaycastHit2D.Centroid

Property

Raycast Hit 2D RaycastHit2D
Centroid Output barycentric coordinate