# RaycastHit.Rigidbody

The Rigidbody of the collider that was hit.

![RaycastHit.Rigidbody](./images/RaycastHitRigidbodyCalculator.png)

## Property

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


## Remarks

If the collider is not attached to a rigidbody then it is null.

