Hi,
I am trying to get Physics.CheckSphere to work, but it doesn’t seem to matter what layer mask I use or what radius I use, it never registers an object with a collider. I’m just trying to test the script out right now so my code is pretty simple.
public float radiusCircle = 2400f;
public bool isSomethingThere = false;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Physics.CheckSphere (transform.position, radiusCircle, 1 << 12)) {
isSomethingThere = true;
Debug.Log("There is something there");
}
}