I have a RaycastHit2D that is detecting the object I want it to ignore. I’m trying to find any objects under the originating objects location. How do I ignore the object the raycast started in? I cannot use layer masks or ignore the object because the object below it is of the same class.
Collider2D cldr = gamePiece.GetComponent<Collider2D> ();
RaycastHit2D hit = Physics2D.Raycast (cldr.transform.position, Vector2.down, 1f);