Physics.OverlapSphere 相交球

static function OverlapSphere (position : Vector3, radius : float, layerMask : int = kAllLayers) : Collider[]

Description描述

Returns an array with all colliders touching or inside the sphere.

返回球型半径之内(包括半径)的所有碰撞体 collider[]。

NOTE: Currently this only checks against the bounding volumes of the colliders not against the actual colliders.

注意:一般来说,这个函数检查的是碰撞体的包围体,而不是碰撞体的实际边界。

Page last updated: 2011-4-9