Raycasting is a versatile feature of the Godot game engine that allows you to query the physics world for information. All of your favorite 3D games use it, and if you plan on making a game of your own, you're absolutely going to use it too. This video breaks down what exactly raycasting is, how to do it in Godot, and provides multiple examples along the way.
This video was made with 3D games in mind, but Godot does offer nearly identical tools for 2D games as well.
Raycasting in Godot's documentation: [ Ссылка ]
Collision Layers in Godot's documentation: [ Ссылка ]
GDQuest's Collision Layers video: [ Ссылка ]
![](https://i.ytimg.com/vi/DuyAHbznRx0/maxresdefault.jpg)