Please can someone tell me why this isn’t working is seems so simple! I’ve got 2 years of coding experience but the n snippet just wont work. Can some please help me. Thank You!
This is pos and downn.
downn = new Vector2(-transform.up.x , -transform.up.y);
pos = new Vector2(transform.position.x , transform.position.y);
This is the part that wont work!
RaycastHit2D hit = Physics2D.Raycast(pos, -downn , Mathf.Infinity);
if (hit.transform.tag == "Untagged") {
Debug.Log("Working");
}