Thank you for that answer! I didn’t even consider changing that parameter. That’s definitely already a game changer.

I’ve done some additional testing and found the following things:

  • 0 and 4 seem to do the exact same thing colliding with everything
  • 1 works great with the metal fences, as the raycast goes through the chain link part, but not the metal pipes, sadly does not work on windows though
  • 2 seems to go through everything that is (partially) seethrough? Like vehicle windows and glass in general which is extremely useful as well. Sadly it seems to go through the whole fences (and not just the chain link part).
  • 3 doesn’t allow for combining both at the same time and just acts the same as 2 as far as I can tell.

Though I would still like to keep this thread open for the “ignore multiple objects/models raycast”. That would still be something useful in certain cases.