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

var transform : Transform

Description

The Transform of the rigidbody or collider that was hit.

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