RaycastHit.collider 碰撞器

var collider : Collider

Description描述

The Collider that was hit.

碰到的碰撞器。

This property is null if hit nothing and not-null if you hit anything.

如果什么也没有碰到,此属性为null,如果碰到任何东西,此属性为非空。

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

Page last updated: 2011-3-13