Hi guys,
I have a weird behavior with the Physics2DRaycaster attached to my main camera. My objects in the scene have a 2D collider attached and a script implementing IPointerClickHandler.
When the camera (ortographic, planes all correct so that the are fits in) is zoomed out (size 340 and a bit less) as in this first picture. The tavern (small building between trees on upper left) and whatever other building i decide to build in that upper part don’t react to the raycaster and i always receive the message that i am hitting the terrain on click.
At the same level of zoom, if they are anywhere else in the map they cause no problem. When I zoom in (just changing the size of the camera and the x,y position in case, but not the distance from the scene) then, as in this picture here, i see that the area of “non raycasting” shrinks more and more until almost disappearing.
I am going stupid in trying to figure out the problem, any idea?
Best,
H