3D , World.raycast not detecting

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

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,

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

:bust_in_silhouette: Reply From: droc101

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

Ye it is enabled.

lowy98 | 2020-05-21 03:39