RaycastHit.rigidbody Manual     Reference     Scripting  
Scripting > Runtime Classes > RaycastHit
RaycastHit.rigidbody

var rigidbody : Rigidbody

Description

The Rigidbody of the collider that was hit. If the collider is not attached to a rigidbody then it is null.

See Also: Physics.Raycast, Physics.Linecast, Physics.RaycastAll.