Collision mask for Camera's ray projections?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Luka38

Is there any way to limit Camera node’s projection methods to specific layer?
Specifically I’m trying to use Camera’s project_ray_origin() and project_ray_normal() to find a 3D position of the mouse, and want it only to project on the floor of my scene. Problem is that the ray hits characters and I don’t know how to limit the ray’s collision layer.
Or maybe there is another way?
Thanks for any help!

:bust_in_silhouette: Reply From: Luka38

I found a way to do it. Just uncheck “Input Ray Pickable” on all of the Nodes that you don’t want to be collided with the ray.