Пример #1
0
 /// <summary>
 /// returns all colliders with bounds that are intersected by collider.bounds. Note that this is a broadphase check so it
 /// only checks bounds and does not do individual Collider-to-Collider checks!
 /// </summary>
 /// <param name="bounds">Bounds.</param>
 /// <param name="layerMask">Layer mask.</param>
 public static HashSet <Collider> BoxcastBroadphase(RectangleF rect, int layerMask = AllLayers)
 {
     return(_spatialHash.AabbBroadphase(ref rect, null, layerMask));
 }