Godot 4 3D Platformer Lesson #2: Solid Objects & Physics Simulation!

  Рет қаралды 45,842

BornCG

BornCG

Күн бұрын

In this Godot 4 Lesson I cover the basics of Adding Simple Solid Objects (a Floor, and Blocks), Creating Reusable Objects that can be instanced, and running a Physics Simulation (to make the blocks fall and tumble in-game) in the game. Thanks for watching! Here are the video chapter timecode links:
- 0:00 - Video Intro
- 0:07 - Lesson Outline (what's in this lesson)
- 0:47 - Opening & Importing a Project into the Project Manager
- 1:54 - Creating a Floor using 3 Nodes (Static Body 3D / Mesh Instance / Collision Shape 3D)
- 12:27 - Grouping Nodes of an Object Together
- 14:19 - Disabling Editor Environment & Lighting
- 14:48 - Adding a 3D Light Object / Node
- 16:37 - Creating a Reusable Block Object as its own scene.
- 22:05 - Adding Block Instances to the Game Level Scene
- 26:03 - Recap / Summary
- 26:56 - Changing / Updating All Block Instances
- 27:32 - Wrap-Up & Outro
Don't forget to LIKE & SUBSCRIBE! 🥰 👍
*note: In this video I use Godot 4.0.1
#godotengine #gamedev
Play and Download the Finished 3D Platformer Game Online Now!: borncg.itch.io/3d-platformer-... (use: Chrome/Edge/Firefox to play the web game version)
*****************
DONATE to support my channel via PayPal: goo.gl/ThkwyG
********************************
LIKE and FOLLOW me on:
FACEBOOK: / borncg
INSTAGRAM: / born.cg
X / TWITTER: / borncg
Reddit: / borncg
**********************************
Visit this Godot 4 Beginners: 3D Platformer Course playlist!:
• Godot 4 Beginners: Lea...
Visit my Let's Learn Blender! Tutorial Series playlist:
• Let's Learn Blender!
****************
Nicolas from the band 'The Lazy Saviours' created my Intro Jingle!
****************

Пікірлер: 88
@KeelanJon
@KeelanJon 20 күн бұрын
As a Blender artist the Open Source design of Godot has really peaked my interest in Game dev. Thank you for this great series.
@Mytif_or_mytiph
@Mytif_or_mytiph 5 күн бұрын
i never been so happy to watch a box fall
@ollievendor7413
@ollievendor7413 2 ай бұрын
i feel like a kid again. if i had a teacher like this in school i would have done much better. :D learning feels fun with these tutorials.
@hermandarr6274
@hermandarr6274 8 ай бұрын
In Unity, My go to teacher was Jimmy Vegas, In Godot its you. Thank you for all your videos.
@keithfay9328
@keithfay9328 7 ай бұрын
yeah, too bad jimmy stopped doing tutorials, he was good
@MakutaOfficial
@MakutaOfficial 8 ай бұрын
FIRST LETS GOOOO! Your tutorials helped me get into Godot, now I'm 3 years into it and have learned so much, now I just have to finish a game, lol.
@BornCG
@BornCG 8 ай бұрын
Great to hear!
@dightrox
@dightrox 3 ай бұрын
Omg I'm so glad I found this. I was trying to make a game right into unreal, but this is so much easier and user friendly and you just make it SO easy to understand and follow along. I'm only on the 2nd video and I feel confident and want to learn more! THANK YOU!! for the time you put into these vids to help others. WE APPRECIATE YOU!!!
@Firepotz
@Firepotz 19 күн бұрын
You are a wonderful tutor. Thank you!
@thefatcatneverdies
@thefatcatneverdies 8 ай бұрын
Fantastic tutorial! I eagerly await the next in this series :)
@user-wo6jf2to9z
@user-wo6jf2to9z 8 ай бұрын
Great! can't wait for the next one, really looking forward to the finished product, 😊
@gofudgeyourselves9024
@gofudgeyourselves9024 8 ай бұрын
Hands down, you're the best teacher I've ever had the privilege of learning from. Your passion, dedication, and ability to explain complex topics in a simple and engaging way are truly remarkable. Thank you for making learning such an incredible journey!"📚👏🏆
@BornCG
@BornCG 8 ай бұрын
☺️
@ebooooooy4249
@ebooooooy4249 8 ай бұрын
This is really good, please post more often. Finally gonna learn some 3D Godot
@Mihimal
@Mihimal 3 ай бұрын
I like your kindful voice tone 🥰
@BornCG
@BornCG 3 ай бұрын
☺️
@captainclamboat
@captainclamboat 2 ай бұрын
Okay, after this second lesson I'm grinning. It's exciting to see the technical stuff turn into physics objects! Looking forward to the rest of this series!
@NotDawcik
@NotDawcik 7 ай бұрын
Even, if brackleys will come back as he said, and learn godot, i will still watch yoir tutorials. When i m watching it i can understand everything. Thanks for your turorials :)
@lucasguzzi9329
@lucasguzzi9329 8 ай бұрын
very good tutorial! can't wait for the next one!
@ClintCarlson
@ClintCarlson 8 ай бұрын
Amazing teaching. I've been doing other tutorials but love this series highlighting the little tips and hints along the way. thank you!
@MrXlee1967
@MrXlee1967 6 ай бұрын
hi what other tuts would you recommend after finishing this one?
@CentDev
@CentDev 8 ай бұрын
Thank you for doing this. I am waiting for the next.
@kenmaia
@kenmaia 8 ай бұрын
Great video! Keep up the good work😁
@FOXTROT_3D
@FOXTROT_3D 2 ай бұрын
Amazing video tutorials!
@thatcardiologist3874
@thatcardiologist3874 8 ай бұрын
Amazing tutorial! I’m following along to learn Godot
@asthalis
@asthalis 8 ай бұрын
Thanks ! Can't wait for next videos
@kenknudsen7478
@kenknudsen7478 8 ай бұрын
Well done again, very well done!
@yacineguer4231
@yacineguer4231 8 ай бұрын
Many thanks🎉, Waiting for the next episode ❤❤
@tompom1144
@tompom1144 8 ай бұрын
Going to need the next episode asap, eager to learn more!
@BornCG
@BornCG 8 ай бұрын
Lesson #3 is up!: kzfaq.info/get/bejne/isVnosVi36fOfKM.html
@Creationkitnz
@Creationkitnz 7 ай бұрын
This is the first time I've seen your videos man and already hooked with that intro! 🔥🤣
@BornCG
@BornCG 7 ай бұрын
Thanks! ☺️
@ashok47ksaharan47
@ashok47ksaharan47 8 ай бұрын
U are best teacher in the world i learned blender from you and now godot. Thanku thanku so so muchhh ❤❤❤❤
@hipojoe
@hipojoe 7 ай бұрын
Thank you so very much! I am using Godot based on your videos to create a terrain generator for my work. SO MUCH EASIER (and nicer) than making my own engine, which I have been doing for years!
@MrBear-mk2mg
@MrBear-mk2mg 8 ай бұрын
Thanks i dont found a teacher better than you 🎉🎉 Pls part 3
@eisenspanigel67
@eisenspanigel67 8 ай бұрын
Thats so simple. Nice.
@Shiromaru.
@Shiromaru. 29 күн бұрын
u r legend, thx a lot
@lagpostg.r.y9955
@lagpostg.r.y9955 3 ай бұрын
I BEEN TRYING TO FIGURE OUT HOW TO MAKE AOLID GROUND FOR A LONG TIME THANK YOU SO MUCH
@Punkerobmx
@Punkerobmx 7 ай бұрын
I really like yours video are amazing
@BornCG
@BornCG 7 ай бұрын
😊
@TextoAmarillo
@TextoAmarillo 8 ай бұрын
Thanks 💙
@Vertigo97
@Vertigo97 6 ай бұрын
I’ve been using godot for a while now, and I still just now learned physics was that easy. Damn.
@martinchudoba6945
@martinchudoba6945 8 ай бұрын
Fantastic
@user-rk4ms4dk4x
@user-rk4ms4dk4x 3 ай бұрын
amazing
@f3b
@f3b 3 ай бұрын
Again, amazing tutorial, very UpToDate to the current version. I was wondering is there a possibility to automatically match the collision size into the mesh itself ?
@majesticchicken3213
@majesticchicken3213 8 ай бұрын
Finally❤
@sporeolegy
@sporeolegy 4 ай бұрын
Wow! coming from unreal, godot 4 seems so much more intuitive and not at as clunky.
@davestomper3428
@davestomper3428 6 ай бұрын
This is a great series I really like the attentions to every little detail one question for you is if I am making a 3d platformer scrolling can I just attach the Light node to the camera Then position the way I want my light and let it follow the light throughout the game?? this way I am done with lighting unless I need a special light color or something.
@BornCG
@BornCG 6 ай бұрын
You could, though directional lights extend automatically through the entire world already, like a sun.
@davidterry1801
@davidterry1801 5 ай бұрын
Hi! I don't know if you are still taking questions on a 3 month old video, but I noticed that with the CollisionShape3D, you can scale the size of the box either by changing the size of the shape as you showed, but also by using the transform section lower down in the inspector to adjust the scale. They seem to arrive at the same result, but is there a difference between the two?
@starkibrahim3753
@starkibrahim3753 8 ай бұрын
I want to learn how to change the player's path when I move the mouse. Can you do a lesson?❤
@byucknahthered3914
@byucknahthered3914 3 ай бұрын
May I give a suggestion? You mentioned you are a High School teacher, right? I am assuming when teaching a class you show how to do something then provide an exercise so that students can practice what they just learned. I mention this because one of the more well known Godot tutorials for 2d games does this. They teach you how to use the features then give you an exercise, asking you to pause the video and try on your own as best you can, then when you un-pause they quickly go through the process which reinforces if you understood the steps -or- so you can see where you might have messed up. Early on this stuff is super simple but as things get more complex it's kinda handy to have exercises. For example, you could have made an exercise saying "Go ahead and try to make a new scene for another falling object, but this time try to make a sphere instead of a cube and add it to the level scene. Pause the video now and go ahead and try." which would give the viewers a chance to try and put what they just learned to the test but also changing it ever so slightly (Sphere instead of Cube) so they have to experiment a little while not fully alienating what they have been taught. Just my two bits of criticism, the videos are awesome and very well done/educational but I think giving exercises at the end of each lesson might help cement how to do things in a persons head.
@lukeomatik
@lukeomatik Ай бұрын
Low effort question: since I don't know what is the correct definition of `scene` in godot context (i will look at it asap), not considering the re-usability of the assets, what is the difference between (A) creating the "falling cube" in another scene then link it to the main scene (like you did) and (B) creating a RigidBody3D with MeshInstance3D & CollisionShape3D directly into the main scene ? and again: not considering the re-usability of the falling cube asset
@NandaRiziq
@NandaRiziq 8 ай бұрын
awesome tutorials! just wondering will you be making 2d godot 4.x tutorial soon? i want to learn 2d in godot but i dont know if your godot 3.5 tutorial knowledge is transferable to godot 4
@BornCG
@BornCG 8 ай бұрын
A lot (most) of the knowledge from my previous Godot 3.5 tutorial series is transferable, though they changed the names of a few nodes, and some GDScript code has changed slightly, enough to be a barrier to people just starting out programming unfortunately.
@BornCG
@BornCG 8 ай бұрын
Thanks! ☺️. .. this course, my full time teaching, and life, are going to keep me busy through to the new year (there are 24 more lessons to edit and post, 26 in all) .. there will be another course after this one ... I have barely just started thinking about that at this point. 🤷🏼‍♂️🙃
@louptreize
@louptreize 8 ай бұрын
thx for videos, why don't you resize the staticbody3d directly instead of resizing mesh then collision (for the floor for example) ?
@BornCG
@BornCG 8 ай бұрын
That's correct! In fact, way least in prior versions of Godot, scaling the physics body directly would cause issues apparently.
@TheTrue_Burger
@TheTrue_Burger 7 ай бұрын
How would I make this in first person? btw, I love your tutorials!
@MrXlee1967
@MrXlee1967 6 ай бұрын
With "CollisionShape3D" can I not just link it to a mesh and it auto resize to the mesh? is there a way of doing this? thank you
@thatcardiologist3874
@thatcardiologist3874 8 ай бұрын
So I've played around with both Unity and Godot, learning the basics of each. I'm kind of torn between the two though.. I love Godot's clean interface and it seems a lot less cluttered than Unity's. However, some things seem unnecessarily complex in Godot. For example, you have to create a StaticBody3d, a CollisionObject3d, and a MeshInstance3d all to create a simple cube.. In Unity you just add a cube. Even adding a color to the cube seems oddly complex. The coding also seems more complex in Godot. For instance if you want to detect if the mouse touches a gameObject in Unity, there is a built in function and it's super easy. However, despite making numerous google searches on how to do it in Godot, I still don't know how to do it.... Which should I choose???
@AeroAndZero
@AeroAndZero 8 ай бұрын
It depends on what are you targeting in the future. For example, if you want to work in a AAA company with a big team then you should definitely learn Unity as it has industry level tools. However, if you want to make a living out of being a indie game dev then you are free to choose godot as it will cut down many costs. Learning both's basics will definitely be useful in the future. I would recommend trying out both as you are just a beginner. Try to make a simple project in both and see which one works out for you :)
@ravenanne1734
@ravenanne1734 6 ай бұрын
I know this is a month old, but some people may still see this so I wanted to clarfy, the way he does it here is more complicated than usual! There are shortcuts already built in Godot that he doesn't mention, probably to avoid confusing people. You can just make a shape using a MeshInstance3D and there's a button at the top middle of the viewport called "Mesh" that lets you give it a collision shape automatically, and a StaticBody3D if that's the option you pick. It's automatically the shape and size you need it to be so it's really convenient. It's designed to be modular; if everything is made up of smaller things, it's easier to customise and mess around with. I'm not sure exactly what you mean by "detect if the mouse touches a gameObject" but it probably does exist in Godot, just under an awkward name. The main problem I've had with Godot so far is that because it's so new, the resources are scarce. The stuff exists, just not described how you might like, and with keywords that won't show up when searching for your specific problem. I've personally been finding vaguely related things, learning them, asking Chatgpt for more information, and then seeing how that pans out.
@izuna9815
@izuna9815 2 ай бұрын
my directional3dlight has a warning it says "A light's scale does not affect the actual visual size of light", I'm pretty sure that I followed your amazing tutorial correctly, but what do I do to remove this?
@LoneWolfGamer666
@LoneWolfGamer666 2 ай бұрын
Just put the scale of your light to 1, 1, 1
@learningconfe
@learningconfe 7 ай бұрын
shadows are not supported when using the gl compatibility backend yet support will be added in future release in godot any help withe would help
@user-eq6qj4zc7n
@user-eq6qj4zc7n Ай бұрын
When I play the current scene after adding the floor (around time stamp 14:20), it is just gray and empty. It doesn't look like yours. :(
@jacobthomas1688
@jacobthomas1688 Ай бұрын
for some reason, the boxmesh isn't appearing. I added the meshinstace3d node and chose boxmesh properly but nothing happened
@NobleAbsinthe
@NobleAbsinthe 7 ай бұрын
I'm at 19:53 what would be the issue if we made Rigidbody3D a child of a 3D scene node like in level 1. We make a new scene, start with 3D node and then have the Rigidbody3D as a child. As we can see it already is in the menu, so why do we start the root node as a RigidBody3D? I think it would semantically be the same...
@tinyrandomthings
@tinyrandomthings 7 ай бұрын
what is the idea behind having separated collision shape and the object/the shape?
@BornCG
@BornCG 7 ай бұрын
Modularity. The collision shape is a component that appears in different types of objects: static bodies, character bodies, rigid bodies, etc.
@tinyrandomthings
@tinyrandomthings 7 ай бұрын
Oh, got it. That will make the code base much more efficient and neat. Different shapes may just have the same collision mechanism.
@tinyrandomthings
@tinyrandomthings 7 ай бұрын
Appreciate, sir!
@TheDerekCrosson
@TheDerekCrosson 18 күн бұрын
Anyone know what camera position and rotation I should use to see the floor? Currently I have: Position: 2, 0, 5 Rotation: 45, 0, 0 Scale: 1, 1, 1
@inyagi3107
@inyagi3107 3 ай бұрын
Hi at 6:46 you click the drop down arrow but for me nothing comes up :(
@Bomba_Game
@Bomba_Game Ай бұрын
27:24 its an actuall smooth quarts slab
@mrtwinky0v034
@mrtwinky0v034 3 ай бұрын
wish i found this. the older version that was made 4yrs ago was so hard for me to follow becouse thay changed every thing
@Rock_yeah
@Rock_yeah 6 ай бұрын
Something that i noticed is that theres no random factor its always fall the same way
@alkeshnayak2072
@alkeshnayak2072 8 ай бұрын
I can't see my scene?
@ningyi5727
@ningyi5727 5 ай бұрын
why not a plane mesh?
@BornCG
@BornCG 5 ай бұрын
Later in this project our level will be made of blocks that are easy to ‘paint’, so I just kept it simple and consistent in this earlier lesson. You could use a plain mesh with a block collision shape with its top just matching the plain.
@florianlugmayr7476
@florianlugmayr7476 5 ай бұрын
bro, just make your floor tile 2 units high and translate it to y=-1 all the things you put on top will have y=0
@pbjfamily1779
@pbjfamily1779 5 күн бұрын
@pbjfamily1779
@pbjfamily1779 5 күн бұрын
i can't get it
@user-th7gd7ge4p
@user-th7gd7ge4p 3 ай бұрын
I like there's no crap audio tune mixed over your voice and no "hey wozzups bros uhms ers" but you could also leave out the "alrights" & "okays" and constant dancing with the mouse cursor around the screen. it would also help if you could focus on proper pronounciation and also just cut straight to the cheese - leave out all the "beating around the bush" clutter. I do appreciate you need to accumulate some watch time for monetisation purposes but I find it really annoying. in any case all the best with your endeavours and thanks for this series.
@MidvightMirage
@MidvightMirage 2 ай бұрын
bro wtf it just randomly deleted my stuff wtf is this trash
@haruu.010
@haruu.010 Ай бұрын
you just have to save the scene from time to time in "scene"
@BroYousuck-hu7rp
@BroYousuck-hu7rp 4 ай бұрын
10:51
Blender and zbrush
0:50
SK CAD JEWELLRY DESIGNS
Рет қаралды 7
How I prepare to meet the brothers Mbappé.. 🙈 @KylianMbappe
00:17
Celine Dept
Рет қаралды 55 МЛН
Joven bailarín noquea a ladrón de un golpe #nmas #shorts
00:17
1 класс vs 11 класс (неаккуратность)
01:00
БЕРТ
Рет қаралды 4,8 МЛН
Godot Vs Unity: The Ultimate Game Engine Showdown
7:11
Goodgis
Рет қаралды 375 М.
How To Make A Water Shader in Godot 4.2
2:27
Coding Worm
Рет қаралды 224
Using Composition to Make More Scalable Games in Godot
10:13
Firebelley Games
Рет қаралды 188 М.
Can I Remake Super Mario World in Godot? (Part 1)
18:44
4 Godot 4 Devs Make 4 Games in 44 Hours
25:19
DevLogLogan
Рет қаралды 448 М.
Godot... But Prettier
11:23
Gamefromscratch
Рет қаралды 82 М.
10+2 AWESOME ADDONS for GODOT 4
8:36
MrElipteach
Рет қаралды 117 М.
How I prepare to meet the brothers Mbappé.. 🙈 @KylianMbappe
00:17
Celine Dept
Рет қаралды 55 МЛН