Topic was automatically imported from the old Question2Answer platform.
Asked By
andersmmg
I have some objects and I use a raycast to be able to pick them up. However, for many of them I’d like to be able to walk through them while still being able to pick them, such as plants. How would I do this? Changing the collision layers and masks didn’t seem to do what I needed, it just disabled the collision altogether
Okay, I figured it out. I just put the object in the second layer and added that to the interaction raycast mask. Worked like a charm, and didn’t require weird hacks!