This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hey guys,
I started using godot a couple weeks ago,
I have a problem so i folllowed the video here: https://www.youtube.com/watch?v=4jbfIN4t83k&t=0s , the first code works fine (with the raycast node) the second code, not really the world raycast only collides with the Room that I am in heres my code: https://github.com/lowy98/3D/blob/master/Fps_Character, (I don't think there is something wrong with the code tho) let me know if you know what the problem might be,
Thanks.

Edit: What I meant by half of the code (sorry for the wrong expression)
the when the raycast (the actual raycast)goes from the middle of the screen instead of going from the muzzle thats attatched to the gain,it's working fine, but when the raycast (world raycast) goes from muzzle(or middle of the gun) to the actual raycast collision point, it's not working, all it detects is the room

in Engine by (18 points)
edited by

1 Answer

–1 vote

Is the ray cast enabled? For some reason they are disabled by default.

by (157 points)

Ye it is enabled.

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 [email protected] with your username.