Godot Ray-casting tutorial: Create a simple Hitscan Weapon

Опубликовано: 17 Октябрь 2024
на канале: Chaff Games
10,110
274

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: https://www.udemy.com/course/building...

Get the FPS Template Here: https://chaffgames.com/fps-game-templ...

---------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------
Please like and Subscribe! It's truly appreciated

#GameDevelopment #GameJam #Godot

Links to my Socials

Instagram:   / chaff.dev  
Twitter:   / chaffdev  
Itch.io: https://chafmere.itch.io/
Website: chaffgames.com