Tutorial: RayCast3D Projectiles in Godot 4

preview_player
Показать описание
In this Godot 4 tutorial we are building RayCast3D based projectiles, as well as tackling some common use cases such as:
- Firing them in response to input events.
- Cleaning them up with the Timer node.
- Attaching to objects, so they can get embeded in things like enemies and moving platforms.

🤖 This tutorial is using Godot 4.2.2 stable.

✨ Socials ✨

Chapters:
00:00 Introduction
02:50 The Projectile Scene
07:25 RayCast3D Nodes
09:38 The Projectile Script
15:24 Connecting Signals
16:29 Testing the Projectile
18:04 Projectile Launchers
18:55 The Projectile Launcher Scene
20:52 The Projecile Launcher Script
25:22 Testing the Launcher
25:51 Moving Targets
26:40 RemoteTransform3D Nodes
28:06 Using RemoteTransforms
31:02 Deleting Targets
33:05 Wrap-Up

#Godot4 #GodotEngine #Gamedev
Рекомендации по теме
Комментарии
Автор

I really appreciate that you take the time to explain each of the features of the gdscripts, the nodes and the game engine environment. It is very helpful for a beginner, many tutorials gloss over the details and I end up not understanding what any of the code actually means. Thank you for your work in creating this amazing resource.

the-blackManic
Автор

You're tutorials are probably the best out there for godot. VERY happy to see your triumphant return

kordanot
Автор

Some of the best tutorials out there. Thank you.

cyb-mg
Автор

So many useful pieces throughout this. I don't have any need for a projectile system in my game but I can already see how to apply a lot of this to certain enemy behaviours.

Also, 4:58 I could not tell you how many times that has stalled my progress and left me scratching my head as to why things are moving "backwards".

xsnozskwg
Автор

This is really polished! Great job, Bram. It was a pleasure to have a chance to meet in person, albeit briefly. I'm looking forward to seeing more from you!

nathanlovato
Автор

Lovely presentation, the models for the environment and character looks really cute! Also I didn't know about the "Add type hints" editor setting, thanks :)

LucyLavend
Автор

High quality! Great to see that your back!

davidj
Автор

I LITARALLY JUST NEEDED THIS THANK YOU

Goobl
Автор

Idk what it is about Godot, maybe it's the python like scripting and the modularity, but man, it's just so intuitive. Great tutorial!

EmDrive_
Автор

Wow, this tutorial is very clear and it's working great! Thank you very much.

humbleraider
Автор

This is just unreasonably good content, everything is explained so well.

ktna
Автор

Would be cool to see all the projectiles fall off the object when it get deleted like in minecraft and arrows. Great tutorial always a pleasure to watch and learn from ya

GeneralChrisGaming
Автор

This is an amazing tutorial! Thank you!

MrigankaS
Автор

I’m currently creating my first game Wich is a third person shooter and your detailed explanations are top tier 🔥🔥once I start my devlogs my first game will be credited to you😂

AlexanderAgu
Автор

Always good to see your video. that's very informative 🗣

ThunderPlayStudios
Автор

Excellent explanation. Always move this way.

RuslanKhamidoullin
Автор

Hello, your tutorial is wonderful, I already did a projectile system, but I learned a thing or two. I wish I had it when I started as this is pretty complicated.

One thing: the forward vector is already part of the basis, so you can just do global_basis.z.

The RemoteTransform is interesting, but I find it easier to simply attach the projectile as a child of the collider.

Yogoda
Автор

Please make a video on how to do this type of natural voxel artstyle. It's amazing!

MarkAntony-ke
Автор

Great content. Also this scene asethetic is so charming and pixelated. Do you cover achieving that look in any tutorial content? Really cool.

jakeklassen
Автор

If you can't connect the timeout function to the cleanup function, save the script first ;)

luckycapgaming