Adding Physics to my C++ Minecraft Clone!

  Рет қаралды 16,785

Low Level Game Dev

Low Level Game Dev

2 ай бұрын

In this video, I added collisions and forces to my C++ OpenGL Minecraft Clone!
Playlist:
• Minecraft clone
Source Code:
github.com/meemknight/ourCraft
Join my Discord:
/ discord
Check out My Game Midnight Arrow:
store.steampowered.com/app/23...
Join this channel if you want to support me 😻:
/ @lowlevelgamedev9330
Music:
Evan King - Atomic Fire
/ contextsensitive
contextsensitive.bandcamp.com/
Minecraft soundtrack: C418 - Living Mice
Minecraft soundtrack: C418 - Aria Math
Minecraft soundtrack: C418 - Moog City

Пікірлер: 84
@marco-gp2sz
@marco-gp2sz Ай бұрын
mom: you can't buy minecraft the kid:
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
yeah fr 😂😂😂😂
@riufq
@riufq Ай бұрын
You got 15 missed call from Mojang
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
I'm a busy man 😌👉💪😤
@ChronoNewton
@ChronoNewton Ай бұрын
Mojang: Why isnt he responding? I just wanna have him in my team🤔
@stolyartoad8640
@stolyartoad8640 Ай бұрын
Yo wtf is that pig physics?!
@Skeffles
@Skeffles Ай бұрын
Brilliant to see what you've faced with collisions. I've had some similar issues too. Also very cool seeing all the pigs flying everywhere. Great stuff!
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
thanks bro, I'm glad you like it 💪💪
@satyamraj2476
@satyamraj2476 Ай бұрын
4:45 Most normal cpp dev btw nice video 😊
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
yes 😂😂😂😂
@riufq
@riufq Ай бұрын
Since when did you start learning c++?​@@lowlevelgamedev9330
@riufq
@riufq Ай бұрын
Btw @satyaamraj Your pfp, same as my banner picture. What a coincidence.
@satyamraj2476
@satyamraj2476 Ай бұрын
@@riufq yoo really cool. I like coincidence 😉
@riufq
@riufq Ай бұрын
@@lowlevelgamedev9330 may i know, since when did you start to learn c++
@DidIJustDoThat
@DidIJustDoThat Ай бұрын
You are smarter than me by a mile. And I am still here not understanding basic Opengl with its buffers
@Maxjoker98
@Maxjoker98 25 күн бұрын
I think the clipping through complete blocks is mostly a non-issue: Since the physics movement should be calculated per physics tick using the delta-time, the player would have to move more than a single block in a single physics tick(max_vel = 1/physics_dt), so for a physics tick rate of 30 updates/s the player would need to travel at least 30 units/s(assuming 1block = 1unit = 1meter, that's 108km/h or 67 mph).
@yds6268
@yds6268 Ай бұрын
At this point I lost all hope of ever making something comparable, but at least I can compile your game and play Minecraft without a Microsoft account 😂
@samlogamer2804
@samlogamer2804 Ай бұрын
Where is the game? I want to do that too!
@yds6268
@yds6268 Ай бұрын
@@samlogamer2804 link to the source code in the description
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
😂😂 ok than I will keep updating it untill you will get free minecraft basically
@kQqRoElsOw
@kQqRoElsOw Ай бұрын
very nice work, crazy how this has 800 views
@Godot-Game-Dev
@Godot-Game-Dev Ай бұрын
Very nice! Its crazy that you made better physics than minecraft (I think minecraft only has universal friction so every block is the same?) in a fairly short amount of time
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
They also have different friction per block. Also I don't think my physics is better but still thanks 💪🙏
@Godot-Game-Dev
@Godot-Game-Dev Ай бұрын
@@lowlevelgamedev9330 You got this tho, your game is going to be way better than minecraft when your finished!
@jamesbland5082
@jamesbland5082 Ай бұрын
Would love to see shaders next just subbed
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
yes, I will do shaders after the gameplay, but I also hava an older video on shaders in the series if you can't wait for the new one 💪
@BastanQc
@BastanQc Ай бұрын
This guy is a fcking genius
@Rasteriser
@Rasteriser Ай бұрын
Please add the hand sway and fov effects I’m dying bro
@simonmaracine4721
@simonmaracine4721 Ай бұрын
Îmi place ceea ce faci. M-aș putea uita cândva la cod. Poate pot da o mână de ajutor, dar nu promit nimic. Am ceva experiență.
@cyanuranus6456
@cyanuranus6456 Ай бұрын
The Only Thing I Know About GameDev is Just Entity-Component-System But I Don't Know How to Do NPC Attacking The Player As You Playing The Game is The "Protagonist" and The NPC Attacking You is "Enemy" which is Antagonist
@kedersiz8600
@kedersiz8600 Ай бұрын
Yoooooo pretty early, gonna watch now
@ROMERO2280
@ROMERO2280 Ай бұрын
I hope that I will get to the point where I will develop my own C/C++ SDK for developing games (Base Level Minimalist Game Engine) for a wide range of games, for Windows, Linux, Android and Playstation. The point of making my own Engine - I have my own Big plans to develop a Big and Cool GTA game, and in order for this project to be realized, I will need the appropriate tool.
@salvadorsanchez5644
@salvadorsanchez5644 18 күн бұрын
I love that it is the optimized version of Minecraft. I like the game because of the redstone. Is there a possibility that mechanisms can be made?
@lowlevelgamedev9330
@lowlevelgamedev9330 18 күн бұрын
yo I'd love to add it, but I'll see, its very difficult with the multi player aspect but I'll try 💪💪
@gugomajo4161
@gugomajo4161 Ай бұрын
cool video
@cvabds
@cvabds Ай бұрын
I doubt you can add a finite and volumetric water
@cursedspaceMC
@cursedspaceMC Ай бұрын
You deserve more views
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
thanks bro 💪
@MerlinSpace
@MerlinSpace Ай бұрын
Cool now do physics for blocks and you‘ll be rich
@Memose2
@Memose2 Ай бұрын
I am voting for this one
@arflopped
@arflopped Ай бұрын
Wow
@Blutoof_
@Blutoof_ 25 күн бұрын
How do I install it?
@pete-i7p
@pete-i7p 29 күн бұрын
Man you're out of this world
@lowlevelgamedev9330
@lowlevelgamedev9330 29 күн бұрын
thx bro 💪💪
@pete-i7p
@pete-i7p 29 күн бұрын
@lowlevelgamedev9330 Do you think it's possible to make a M&B Warband type game in an engine like yours? (Of course not quite the same size but like a clone-demo)
@DiamondWolfX
@DiamondWolfX Ай бұрын
Couldn't you just check every block boundary between start and end, and if there's an applicable block, then resolve collision with that block?
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
well yes but you need to do that in a specific way, one axe at a time, otherwise it won't work properly
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
kzfaq.info/get/bejne/brB6YJd7zLibdJs.html
@thegavinjackson
@thegavinjackson Ай бұрын
1:37 So what im hearing is there are parallel unuverses in the clone?
@nadiaezzarhouni300
@nadiaezzarhouni300 Ай бұрын
*universes
@prellit
@prellit Ай бұрын
atleast no invisible walls
@yytffs
@yytffs Ай бұрын
I’ve been programming mostly web and mobile apps for years now. I want to get into low level game development. Do you have any resources to learn Physics and Maths? I suck at both of them. I am like a toddler just starting to learn. I am average at Math though although still at beginner level. Could you guide me to the correct resources? I want to learn Physics and Maths from scratch. Thank you and I love what you’re doing. It inspires me to creating something like it on my own.
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
Yess, I have a few resources on my discord community, on dedicated channels for resources. There you will find some good stuff. Also if you need something more specific you can also tag me there 💪💪
@yytffs
@yytffs Ай бұрын
@@lowlevelgamedev9330 Thank you.
@ziphy_6471
@ziphy_6471 Ай бұрын
Unrelated to the video on a massive level but, How do I set up OpenGL in Vim
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
you can for example use my cmake templates
@ziphy_6471
@ziphy_6471 Ай бұрын
@@lowlevelgamedev9330 Thank you, I will come back if I fuck up again inevitably
@ziphy_6471
@ziphy_6471 Ай бұрын
@@lowlevelgamedev9330 Ok, so do you have to use vs to set up the templates and things or can you do the whole setup just in vim or cmake?
@SketchyScribe
@SketchyScribe Ай бұрын
​​@@ziphy_6471you can use cmake from the terminal if you don't want to use VS, I havent looked at the template in a bit, but essentially you can open the terminal in the root folder, and run "cmake -S -B ". If you're not planning on using the MSVC compiler, cmake can also generate other build files, for example if you use mingw gcc, you would add "-G "MinGW Makefiles" to the previous command, or you can look up the cmake generators documentation to see others
@rnts08
@rnts08 Ай бұрын
Vim is just an editor, like notepad but useful. You're asking about the build pipe?
@ben_the_potato
@ben_the_potato Ай бұрын
Is this the same way that Mario 64 calculates physics
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
idk but probably, many games do this
@PlushPilla
@PlushPilla Ай бұрын
There is a sm64 rom hack dev called Kaze Emanuar that made a video in how he fixed collisions with walls in sm64. Check out "The Problems with Walls in Super 64" for more info
@PlushPilla
@PlushPilla Ай бұрын
@@lowlevelgamedev9330 how about if you use a raycast instead of quatersteps?
@efeloteishe4675
@efeloteishe4675 Ай бұрын
Use Bullet physics or Jolt physics.
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
yeah that can't happen, bullet is a big library, and I need some simple simulations. I think it would slow down the server masivly
@_xerxes_5425
@_xerxes_5425 Ай бұрын
How do you synchronize physics between clients?
@kedersiz8600
@kedersiz8600 Ай бұрын
If I had to guess server to client packets on new positions
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
well the server will just update the clients with the correct position. The client will also simulate physics tho but it will corect itself when it gets messages from the server
@rch5395
@rch5395 Ай бұрын
Bro uses visual studio.
@marks_shot
@marks_shot Ай бұрын
cmuk
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
yes cmaku
@swapansaha2368
@swapansaha2368 Ай бұрын
Can you use Vulkan?
@thereborne5219
@thereborne5219 Ай бұрын
look at his first video
@sadge6430
@sadge6430 Ай бұрын
cvb
@evilwizardtherapist
@evilwizardtherapist Ай бұрын
I'm late. 🙁
@exotic42069
@exotic42069 Ай бұрын
there is already a minecraft bedrock which is written in c++ so why reinvent the wheel
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
I get this question all the time, first of all I think everyone hates bedrock but how am I supposed to learn this if not by making it myself? All the math problems in your math book have already been solved, why do you do your homework?
@exotic42069
@exotic42069 Ай бұрын
@@lowlevelgamedev9330 the answer is very simple, i dont
@epicstar86
@epicstar86 Ай бұрын
reaI
@cvabds
@cvabds Ай бұрын
Infinite game sucks, the awesome thing would be to pre generate the world and lore before like dwarf fortress. In that way you could have random and limited resources in the world
@lowlevelgamedev9330
@lowlevelgamedev9330 Ай бұрын
I actually want to add dwarf fortreses idk how you read my mind but I'll make it procedural. It's not difficult it's just a lot of work 😭
@cvabds
@cvabds Ай бұрын
@@lowlevelgamedev9330 Minecraft was supposed to be somewhat inspired by dwarf fortress but the dream died when notch rode the hype like a madman. Please try to make finite water and "realistic ""blocky"" fluid dynamics" 🥺 I hate the lack of realism in survival Minecraft.
I Solved Your Worst Minecraft Problems
20:17
Knarfy
Рет қаралды 541 М.
I Paid Game Developers on Fiverr to Make Minecraft
11:13
BadGameDev
Рет қаралды 1,7 МЛН
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 44 МЛН
I coded even more of your STUPID ideas in Minecraft
13:58
Element X
Рет қаралды 1,8 МЛН
I programmed Minecraft from scratch... again.
11:44
jdh
Рет қаралды 575 М.
USELESS Redstone Machines
8:50
gerg
Рет қаралды 204 М.
The World of Forgotten Minecraft Clones
31:53
Austin Eruption
Рет қаралды 260 М.
Why Minecraft Players Built a Real Life Supercomputer
23:24
HellCastle & Tylerrrr
Рет қаралды 983 М.
Minecraft's Lost Version | The Only Version You CAN'T Play
22:51
Bearman3600
Рет қаралды 521 М.
Optimizing my Game so it Runs on a Potato
19:02
Blargis
Рет қаралды 523 М.
Minecraft finally spoke about the Mob Vote Problem
19:32
Crafting History
Рет қаралды 1,7 МЛН
I Made Minecraft in 24 Hours
13:28
Sam Hogan
Рет қаралды 12 МЛН
I Tried To Beat Minecraft Backwards
18:53
Contraption8or
Рет қаралды 826 М.
#cat #shorts Rescue Adorable Kittens
0:50
Shohel Is Back
Рет қаралды 28 МЛН
Кто из девушек быстрее печатает?
0:58
Did you like the picture with my cat? #cat #cats
0:28
Prince Tom
Рет қаралды 24 МЛН