Esempio n. 1
0
 static public IEnumerable <Collider> OverlapSphere(Vector3 position, float radius, int layer_mask = IntBits.ALL_BITS)
 {
     return(COLLIDER_POOL.UseEnumerateExpandForFuture(
                a => Physics.OverlapSphereNonAlloc(position, radius, a, layer_mask)
                ));
 }
Esempio n. 2
0
 static public IEnumerable <Collider> OverlapBox(Bounds bounds, int layer_mask = IntBits.ALL_BITS)
 {
     return(COLLIDER_POOL.UseEnumerateExpandForFuture(
                a => Physics.OverlapBoxNonAlloc(bounds.center, bounds.extents, a, Quaternion.identity, layer_mask)
                ));
 }