0 votes

Is there any way to limit Camera node's projection methods to specific layer?
Specifically I'm trying to use Camera's projectrayorigin() and projectraynormal() 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!

asked Feb 18, 2018 in Engine by Luka38 (57 points)

1 Answer

0 votes
Best answer

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.

answered Feb 23, 2018 by Luka38 (57 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.