Hey, it's been a while since I posted anything here. Hope that somebody would be able to help.
I'm working on a game with an isometric-like style. So today I added a new feature: any shot or explosion leaves a mark on a wall or a floor. It looks something like this.
If shot hits the floor mark has to be rotated by 90 degrees. What is the best way to detect whether floor or wall was hit? In theory I can check index of the target tile but it won't work on corner tiles which have both wall and floor surfaces. I'm pretty sure that there is some kind of trigonometric equation that can solve my issue. But unfortunately trigonometry is not my strong side :)
Thanks in advance!