LayerMask hitLayers = LayerMask.GetMask(“Objects”) | LayerMask.GetMask(“Player”) | LayerMask.GetMask(“Terrain”);
Physics.CheckSphere(transform.position, sphereRadius, hitLayers)
Physics.CheckSphere(transform.position, sphereRadius, LayerMask.GetMask(“Objects”))