Uploaded March 2018 | Updated November 2026, 1 day ago
This tutorial shows how to use ray-casting (not the RayCast2D node) to create rotating turrets that can't see through walls.
A written version of this tutorial can be found here:
kidscancode.org/blog/2018/03/godot3_visibility_raycasts
Starting project: kidscancode.org/blog/img/raycasting_demo_start.zip
Ending project: kidscancode.org/blog/img/raycasting_demo_finish.zip
Support me on Patreon: patreon.com/kidscancode
This tutorial shows how to use ray-casting (not the RayCast2D node) to create rotating turrets that can't see through walls.
A written version of this tutorial can be found here:
kidscancode.org/blog/2018/03/godot3_visibility_raycasts
Starting project: kidscancode.org/blog/img/raycasting_demo_start.zip
Ending project: kidscancode.org/blog/img/raycasting_demo_finish.zip
Support me on Patreon: patreon.com/kidscancode










