Physics.OverlapSphere Manual     Reference     Scripting  
Scripting > Runtime Classes > Physics
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.

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