Godot Ray-casting tutorial: Create a simple Hitscan Weapon
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: https://www.patreon.com/ChaffGames Join The Discord: https://discord.gg/Aw9bvSeSwX My Latest Course: https://www.udemy.com/course/building-a-better-jump-in-godot-4/?referralCode=E852A97F2A35C087FC40 Get the FPS Template Here: https://chaffgames.com/fps-game-template/ --------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------- Please like and Subscribe! It's truly appreciated #GameDevelopment #GameJam #Godot Links to my Socials Instagram: https://www.instagram.com/chaff.dev/ Twitter: https://twitter.com/ChaffDev Itch.io: https://chafmere.itch.io/ Website: chaffgames.com
Download
0 formatsNo download links available.