Secret weapon how to promote your YouTube channel
Get Free YouTube Subscribers, Views and Likes

Shooting Raycasting Setup // Make An FPS in Godot 4 (E24)

Follow
StayAtHomeDev

In this video, we’re adding a basic raycast shooting mechanic to our FPS controller.

GET THE SOURCE FILES ►►   / stayathomedev_  
FREE BASIC FPS SETUP SOURCE FILES ►► https://github.com/StayAtHomeDevGit/...



✅ Basic FPS Setup Video ►►    • Make An FPS in Godot 4  
✅ FPS State Machine ►►    • E07  State Machine Introduction // M...  



0:00 The Godot FPS Project
0:25 Raycast vs. Projectile
1:27 Adding Attack Input
2:20 Testing Input
3:54 Creating a Raycast
4:20 Raycast Function Setup
6:22 What is the Origin Point?
6:45 Getting Center of the Screen
8:19 Ray Origin
8:51 Ray End
9:49 Creating the Query
10:15 Collide with Bodies
10:44 Getting the Raycast Result
11:32 Testing the Raycast
12:24 Spawning a Mesh at Raycast Result
13:00 Creating Mesh Scene
14:08 Instancing the Raycast Test Scene
16:37 Using Raycast Result to Spawn Mesh
17:46 Fixing Spawn Location and Nil Error
18:37 Final Test
19:44 Get the Source Files
20:09 More Tutorials



This series is part of my sponsored Godot FPS Project where we will walk through how to create an 3D FPS game in Godot 4, step by step. I won't be skipping any steps in the process and everything will be sequential video to video.

This initial basic FPS setup project is available for free to download and use using the MIT license via the link below. For all future videos, the project source files will be available to my GitHub Sponsors.

Joining my Patreon in one of the 3 tiers will give you:

access to the private Discord channel
your name in the project README
early access to tutorial videos
power to vote on what mechanics get covered in future videos
full access to the project source files to use in your own projects



STAYATHOMEDEV ►► https://stayathomedev.com
TWITTER ►►   / stayathomedev  
GODOT ASSET MARKETPLACE ►► https://godotxc.com/

#godot #godotengine #fps

posted by Dusevich5t