So, the older one had a huge problem which is you can interact through walls
I fixed it making a second raycast, which detects if the collider is interactable or not converting it into a bool so now you can't interact through walls :3
So the white ray detects if there is an interactable collider, and the blue one detects the information about the FIRST collider it encounters, making it a bool so you can or cannot interact correctly
Thanks for reading and as always, stay tuned :3
0 comments