Collider2D.attachedRigidbody
var attachedRigidbody: Rigidbody2D;
Rigidbody2D attachedRigidbody;
attachedRigidbody as Rigidbody2D
Description

The Rigidbody2D attached to the Collider2D's GameObject.

This property will be null if no Rigidbody2D is attached.

See Also: Rigidbody2D::ref::