Is there a solution without enabling caps on the sprite collection? Could you give me some guidelines what script will be needed?
I've tried with front and back polygon collider set, but it seems it is not working. This is the script which I have but it is not working:
if (Input.GetButtonDown("Fire1"))
{
Ray ray = gameCam.ScreenPointToRay(Input.mousePosition);
RaycastHit hit = new RaycastHit();
if (Physics.Raycast(ray, out hit))
{
Debug.Log("test");
}
}