# RaycastHit2D.Rigidbody

The Rigidbody2D of the Collider2D that was hit.

![RaycastHit2D.Rigidbody](./images/RaycastHit2DRigidbodyCalculator.png)

## Property

<table border="1" class="docutils">
<tbody valign="top">
<tr>
<td>
Raycast Hit 2D
</td>
<td>
RaycastHit2D
</td>
</tr>
<tr>
<td>
Rigidbody
</td>
<td>
Output hit Rigidbody2D
</td>
</tr>
 </tbody>
</table>


## Remarks

If the Collider2D is not attached to a Rigidbody2D then it is null.

