RaycastHit.rigidbodyvar rigidbody : RigidbodyDescriptionThe 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. |
|
||||
| Scripting > Runtime Classes > RaycastHit | ||||
RaycastHit.rigidbodyvar rigidbody : RigidbodyDescriptionThe 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. |