RaycastHit2D.rigidbody
var rigidbody: Rigidbody2D;
Rigidbody2D rigidbody;
rigidbody as Rigidbody2D
Description

The Rigidbody2D attached to the object that was hit.

See Also: Rigidbody2D class.