I’m making a chess-like game, which uses two types of raycast.
Type one is for clicking. When the mouse clicks, it casts a ray from the mouse position to the game world, and gets the object clicked on.
Type two is for detecting the board state. To check what is in a tile position, a raycast is positioned above the tile and fired down, and returns what object it hits.
I want type one rays to ignore the pieces, so you click through to the tile its on top of, without preventing type two from seeing pieces.
How do i tell one ray “Ignore the pieces” and another “Don’t ignore the pieces”?