Nez.Portable/Physics/Physics.cs
/// <summary>
/// check if any collider falls within a circular area. Returns the first Collider encountered.
/// </summary>
/// <returns>The circle.</returns>
/// <param name="center">Center.</param>
/// <param name="radius">Radius.</param>
/// <param name="layerMask">Layer mask.</param>
check if any collider falls within a circular area. Returns the first Collider encountered.
check if any collider falls within a circular area . Returns the first Collider encountered .
public static Collider overlapCircle(Vector2 center, float radius, int layerMask = allLayers)
        {
            _colliderArray[0] = null;
            _spatialHash.overlapCircle(center, radius, _colliderArray, layerMask);
            return _colliderArray[0];
        }
public static Collider overlapCircle ( Vector2 center , float radius , int layerMask = allLayers ) { _colliderArray [ 0 ] = null ; _spatialHash . overlapCircle ( center , radius , _colliderArray , layerMask ) ; return _colliderArray [ 0 ] ; }
check if any collider falls within a circular area.
check if any collider falls within a circular area .
None
center
Vector2
None
radius
float
None
layerMask
int
None