Рет қаралды 9,214
Raycasting in Godot is a very important technique to know and understanding. The main class we're looking at today is PhysicsRayQueryParameters3D. PhysicsRayQueryParameters3D is a class that has been introduced as of Godot 4. It needs to be used in conjuction with the Direct Space State. By combining both you can easily ray cast from the camera or any other object you want.
In this simple tutorial we will use it to create a very simple hitscan weapon but this can also be used for a wide array of other things in you game as well, for example enemy vision.
Support the Channel: / chaffgames
Join The Discord: / discord
My Latest Course: www.udemy.com/...
Get the FPS Template Here: chaffgames.com...
---------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
Please like and Subscribe! It's truly appreciated
#GameDevelopment #GameJam #Godot
Links to my Socials
Instagram: / chaff.dev
Twitter: / chaffdev
Itch.io: chafmere.itch.io/
Website: chaffgames.com