0 votes

Hello there. I am setting up some raycasts to try some VR stuff out. I was exactly following the VR tutorial, but for some very strange reason the raycasts refuse to collide with anything.
Here is how the raycast is setup:
Raycast setup
Here is it setup on a controller:
Raycast in world
Here is how it's set up in the tree:
Raycast tree
Here is the debug screen:
And here is the code for the controller: Code

The errors in the Debug seem to do nothing, as i can still move around the controllers and headset, and Godot still detects when i press the buttons on the controllers.
Any help would very much be appreciated, thank you!

in Engine by (12 points)

I see areas in your tree with collision shapes but your Raycast was set up to ignore areas (only collide with PhysicsBodies). Can this be the reason?

- Check the collision_layer of the PhysicsBodies. Is layer 1 enabled?
- Check if the PhysicsBodies have Collision Shapes assigned.
- Is the distance further away than 15? (this is what you set up as ray length).

Please log in or register to answer this question.

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 Frequently asked questions and 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.