Search Unity

Question [Solved] Raycast hits objects outside of LayerMask

Discussion in 'Physics' started by Max-0, Nov 30, 2023.

  1. Max-0

    Max-0

    Joined:
    Jun 10, 2021
    Posts:
    31
    Hello! I have an issue with raycasts hitting objects outside of the specified LayerMask.
    I would much appreciate any help, thanks!
    upload_2023-11-29_23-15-24.png upload_2023-11-29_23-16-15.png upload_2023-11-29_23-17-24.png
     
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    7,819
    petey likes this.
  3. Max-0

    Max-0

    Joined:
    Jun 10, 2021
    Posts:
    31
    I already know that's it, thank you for the help!