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.

碰到的碰撞器的Rigidbody。如果该碰撞器没有附加刚体那么它为null。

参见: Physics.Raycast, Physics.Linecast, Physics.RaycastAll.

Page last updated: 2011-3-13