Setting Up Object Interaction In Godot @stayathomedev
Setting Up Object Interaction In Godot  @stayathomedev
Uploaded June 2024 | Updated September 2026, 2 weeks ago
In this Godot 4 tutorial, we're setting up our initial object interaction raycast so we can check for interactable objects where we look.

🔥 GET THE SOURCE FILES ►► patreon.com/collection/138350?view=expanded

👉🏼 FREE BASIC FPS SETUP SOURCE FILES ►► stayathomedev.itch.io/basic-fps-controller

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

✅ Basic FPS Setup Video ►► youtu.be/N-jh8qc8tJs
✅ FPS State Machine ►► youtu.be/VtJXqRsFezY

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

0:00 - Introduction and Overview
0:24 - Setting Up Raycast and Explanation
0:59 - Export Variable for Interact Distance
1:50 - Adding Functions for Interaction
2:40 - Reference to Camera and Getting Space State
3:19 - Center of Screen and Explanation of Viewport Size
3:59 - Origin Point of Raycast and Calculating Vector
4:39 - Performing Raycast Query and Making Bodies Collidable
5:13 - Storing Raycast Result and Global Function Suggestion
6:02 - Getting Raycast Result and Details
6:49 - Getting Collider Node and Printing Result
7:30 - Running Raycast Every Frame and Testing Results
8:33 - Setting Up Input Map for Interaction
9:36 - Running Interaction Function and Checking Result
10:19 - Future Interaction Setup
11:00 - Conclusion and Patreon Support

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

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 ►► stayathomedev.com
TWITTER ►► twitter.com/StayAtHomeDev
MY GODOT ASSETS ►► stayathomedev.itch.io

#godot #godotengine #fps
Setting Up Object Interaction In Godot5 Games Made in Godot To Inspire You5 Games Made in Godot To Inspire You (10/09/25)5 Games Made in Godot To Inspire You (11/30/25)How to Animate the Entrance of Your Godot UI ElementsHitscan and Projectile Weapons - Godot FPS Series #8Should You Start A Gamedev Youtube Channel?FPS Smooth Stair Climbing - Godot FPS Series #3Best Selling Godot Games of 20245 Games Made in Godot To Inspire You (01/17/26)5 Games Made in Godot To Inspire You (06/16/25)5 Games Made in Godot To Inspire You
StayAtHomeDev |

Setting Up Object Interaction In Godot

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER