Godot 3.0: 2D Visibility with Ray-casting @Kidscancode
Godot 3.0: 2D Visibility with Ray-casting  @Kidscancode
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
Godot 3.0: 2D Visibility with Ray-castingProcedural Content Generation in Godot Part 3: Tile-based Infinite WorldsLearning to Code with Python: Lesson 2.2 Simple AnimationGodot 3.0: Top-down Tank Battle - Part 11: PickupsPygame Platformer Part 9: Using SpritesheetsGodot Recipes: Car SteeringPygame Shmup Part 4: Adding GraphicsPygame Platformer Part 11: Character Animation (part 2)Pygame Shmup Part 1: Player Sprite and ControlsProcedural Generation in Godot: Dungeon Generation (part 3)Godot 101 - Part 9: Arcade Physics (KinematicBody2D)Tile-based game Part 3: Smooth Movement
KidsCanCode |

Godot 3.0: 2D Visibility with Ray-casting

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER