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!

in Engine by (60 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.

by (60 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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.