New little Physic Engine - Trying to implement destructible objects

  Рет қаралды 97,243

Pezzza's Work

Pezzza's Work

3 жыл бұрын

Particles based physic engine allowing easy destruction handling.
Still a very early version.
Music freepd.com/music/Inspiration.mp3

Пікірлер: 197
@Neboooo
@Neboooo 3 жыл бұрын
Idk why, but this music makes me wanna make 20k a month from home online
@MonsieurSwag
@MonsieurSwag 3 жыл бұрын
You can. I dont know why. But you know why. Because you can do the thing you can do now
@uvbe
@uvbe 3 жыл бұрын
But can I be my own boss and work my own ours?
@georgplaz
@georgplaz 3 жыл бұрын
I personally just want to know that trick doctors wouldn't tell me
@MonsieurSwag
@MonsieurSwag 3 жыл бұрын
@@uvbe yes you can because when you want you do what you want when you want to do
@Toothily
@Toothily 3 жыл бұрын
> Dorian Smiles has entered the chat
@lnx0007
@lnx0007 3 жыл бұрын
0:22 that was legit the best cursive writing with a mouse i have ever seen
@PezzzasWork
@PezzzasWork 3 жыл бұрын
I have to say that this is the part I am most proud of
@8koi245
@8koi245 3 жыл бұрын
Lmao IKR
@raphulali8937
@raphulali8937 3 жыл бұрын
@@PezzzasWork 😆😆hahaaa
@masterjohn3126
@masterjohn3126 3 жыл бұрын
should see me then...
@georgplaz
@georgplaz 3 жыл бұрын
Don't get too excited, I bet he used a green screen
@NinjaNJH
@NinjaNJH 3 жыл бұрын
I love to see little projects like this. Not everything has to be a billion dollar AAA raytraced behemoth to be impressive. Good job lad!
@slimeball3209
@slimeball3209 3 жыл бұрын
do you saw "OE-Cake"?
@ThylineTheGay
@ThylineTheGay 3 жыл бұрын
It’s more impressive if it isn’t, indies are far more unique and fun most AAA games are just generic
@last_words596
@last_words596 3 жыл бұрын
@@ThylineTheGay most AAA games are far more polished and innovative
@thousandsofclowns
@thousandsofclowns 3 жыл бұрын
@@last_words596 Polished? Surely. Innovative? Not so much.
@ThylineTheGay
@ThylineTheGay 3 жыл бұрын
@@thousandsofclowns "Surely." *COUGH* _cyberpunk_ *COUGH*
@missingdev0948
@missingdev0948 3 жыл бұрын
It would be interesting to see a tiny bit of "give" on the atoms, so that things that aren't very thick are unsteady. Great work on this!
@mambe4349
@mambe4349 Жыл бұрын
Its meant to simulate rigidbody physics, though adding that would make some cool softbody/jelly physics
@alasanof
@alasanof 3 жыл бұрын
Every few years, someone is bound to remake the sand particle flash game everyone played in 2001.
@quantumbaqel6971
@quantumbaqel6971 3 жыл бұрын
Sandspiel?
@_neophyte
@_neophyte 3 жыл бұрын
@@quantumbaqel6971 man i remember wasting hours on that site
@AmantePatata
@AmantePatata 3 жыл бұрын
Noita is based on it
@xen32
@xen32 3 жыл бұрын
Are you talking about some Powder rip off?
@NeonV01D
@NeonV01D 3 жыл бұрын
Powder game?
@barnabasolah-bozo5837
@barnabasolah-bozo5837 3 жыл бұрын
This is awesome! And looks so efficient and realistic already! Keep working on it! :D
@CloudPhase
@CloudPhase 3 жыл бұрын
I've always thought about what if somebody made a physics engine where everything was particles, kinda like real life.
@Phiwipuss
@Phiwipuss 3 жыл бұрын
Look up "Powder Toy"
@legolion1849
@legolion1849 3 жыл бұрын
try noita
@artex_112
@artex_112 3 жыл бұрын
Look Space Simulaton Toolkit on Steam
@PenguinMaths
@PenguinMaths 3 жыл бұрын
@Mustache Merlin I'm familiar with the material point method, but what is PDB? Googling I only found Protein Data Bank.
@-Burb
@-Burb 3 жыл бұрын
Look up Teardown, it’s made of voxels so sort of like particles(just larger) but the destruction physics are really good and satisfying.
@nothingnothing1799
@nothingnothing1799 3 жыл бұрын
The lack of comments here is criminal so ima just leave this here
@That_Awesome_Guy1
@That_Awesome_Guy1 3 жыл бұрын
Only 6 comments is kind of sad.
@That_Awesome_Guy1
@That_Awesome_Guy1 3 жыл бұрын
Oh wait, now there's 7 comments.
@That_Awesome_Guy1
@That_Awesome_Guy1 3 жыл бұрын
Crap now there are 8 comments.
@nothingnothing1799
@nothingnothing1799 3 жыл бұрын
@@That_Awesome_Guy1 damn thats crazy now theres 9
@That_Awesome_Guy1
@That_Awesome_Guy1 3 жыл бұрын
@@nothingnothing1799 I don't know what you're talking about. I count 10 comments.
@nv7213
@nv7213 3 жыл бұрын
Looks super cool! You should try to add a basic blur shader, and then round the blurred values to a single value to make it look like one object breaking apart, I would love to see something like that! Great job!
@AAvfx
@AAvfx 3 жыл бұрын
Love it! So satisfying! 👍
@zyphery
@zyphery 3 жыл бұрын
Very impressive work! I love it
@ignuxas64
@ignuxas64 3 жыл бұрын
Great projects man, keep going!
@oguzdemirtas1873
@oguzdemirtas1873 2 жыл бұрын
This is what i want to do. Congrats man! So inspiring.
@keithmanning6564
@keithmanning6564 3 жыл бұрын
This is exactly what I’ve been looking for in a project of mine, how did you do it?
@TeenNewsLive
@TeenNewsLive 3 жыл бұрын
particle physics
@Jason-uv5tm
@Jason-uv5tm 3 жыл бұрын
@Schlingelkron ikr
@n8style
@n8style 3 жыл бұрын
he just did import physics as p; new p().start(); you're welcome
@keithmanning6564
@keithmanning6564 3 жыл бұрын
@@n8style thanks
@madajo3357
@madajo3357 3 жыл бұрын
@@keithmanning6564 Lmao
@MortVaderDK
@MortVaderDK 3 жыл бұрын
Looks Awersome! Keep going!
@ThylineTheGay
@ThylineTheGay 3 жыл бұрын
This seems really cool
@senorbill374
@senorbill374 3 жыл бұрын
daym this looks epic hope more people will see this soon
@too-many-choices
@too-many-choices 3 жыл бұрын
must comment for youtube algorithm to strike this masterpiece
@too-many-choices
@too-many-choices 3 жыл бұрын
if i comment again maybe it helps-
@too-many-choices
@too-many-choices 3 жыл бұрын
Maybe if I comment again again?
@too-many-choices
@too-many-choices 3 жыл бұрын
Maybe again again again will be fine.
@s0lly
@s0lly 3 жыл бұрын
Looking shweet.
@enrices
@enrices 3 жыл бұрын
Beautiful. More more more videos like this please !!
@rodakdev
@rodakdev 3 жыл бұрын
Truly amazing, great work
@merthyr1831
@merthyr1831 3 жыл бұрын
Awesome stuff!
@DrBZU
@DrBZU 3 жыл бұрын
Nice work!
@laz_chance_to_see
@laz_chance_to_see 3 жыл бұрын
very nice
@mateuspopoff
@mateuspopoff 3 жыл бұрын
beautifull job
@AdamgamesCZ
@AdamgamesCZ 3 жыл бұрын
Can I download it?
@soulguibo
@soulguibo 3 жыл бұрын
This is really similar to how the flash game SugarSugar works and it’s really cool
@tensterss
@tensterss 3 жыл бұрын
Projects like this are fun to pla with
@Pspet
@Pspet 3 жыл бұрын
This is very cool
@Mupersega
@Mupersega 3 жыл бұрын
you're incredible
@jonwatte4293
@jonwatte4293 3 жыл бұрын
Did you read up on the Jacobsen Verlet style particle integrator physics, used for the early Hitman games? It's well worth the read of you can find it!
@drewlop
@drewlop 3 жыл бұрын
I was gonna lose my mind if the cup pieces weren't successfully broken at the end, so glad that they were
@brynshannon6692
@brynshannon6692 3 жыл бұрын
Utterly, utterly amazing. Excellent. Please tell me you're planning to make a game of this. XD
@dimarichmain
@dimarichmain 3 жыл бұрын
Wow, nice
@Antcode-wk7tu
@Antcode-wk7tu 6 күн бұрын
Please explain how you made the custom drawable shapes rigid bodies?
@arabic_memes1865
@arabic_memes1865 3 жыл бұрын
THIS REMINDS ME ABOUT PHUN ALGADOO!
@dirtyspock7957
@dirtyspock7957 3 жыл бұрын
Hmm very much like Nvidia Flex. How do you update the particle belonging to a rigid body? Using the best fit transform and simulating each particle?
@walkiacid9265
@walkiacid9265 3 жыл бұрын
damn, Box2D v2 looking real spicy today.
@CallMeTess
@CallMeTess 3 жыл бұрын
Really cool. Reminds me of Noita.
@evannibbe9375
@evannibbe9375 3 жыл бұрын
So then, to mimic how objects have a certain level of brittleness, did you have some random distribution that changes the probability of breaking along a fault like based on, say, the square of the impulse applied (force*time, which is the generally constant quantity that is precisely why air bags work so well (by increasing the amount of time your head has to slow down to a stop, thus reducing the amount of force you encounter))?
@konstantinkh
@konstantinkh 3 жыл бұрын
Treating each object as a rigid body, and running separate constraints solver for stress within each one? Hopefully, only doing the inverse for stress once unless there is a break?
@kurtiskurt1
@kurtiskurt1 3 жыл бұрын
Idk why but this physics stuff feels so nostalgic
@Onimirare
@Onimirare 3 жыл бұрын
I was thinking of those 2007 flash games where you draw something that turns into a object in game, like Crayon Physics Deluxe.
@kurtiskurt1
@kurtiskurt1 3 жыл бұрын
@@Onimirare oh yeah i remember now! those phone apps where you draw stuff with neon. good old times
@dairop3220
@dairop3220 3 жыл бұрын
Well done, new sub ^^ (Ty to the youtube algoritm)
@NuYiDao
@NuYiDao 3 жыл бұрын
So good. Is it faster over all this way? Like is it better to render a hull afterwards than try to simulate complex polygons?
@vibaj16
@vibaj16 5 ай бұрын
I don't think so, but it's simpler
@Xenthera
@Xenthera 3 жыл бұрын
This is cool because it cuts out a ton of math for traditional physics engines, but behaves in a similar way.
@mytino
@mytino 3 жыл бұрын
Do you use some sort of flood fill to construct the broken pieces when a body splits? Or is there some predefined hierarchy or structure or something that makes the fracture fast? I'm curious as I wonder if for example a 10k particle rigid body would lag a lot when breaking because of some kind of recursive calculation. And because I'm curious if it can work with a parallel simulation on the GPU.
@crazy_wwww
@crazy_wwww Жыл бұрын
i believe it uses some sort of voronoi noise thing to make the shattered pieces, since i remember using voronoi to generate a glass shatter texture
@PezzzasWork
@PezzzasWork Жыл бұрын
The algorithm is really naive and would probably be slow for a an object with 10K particles. When an object collides with another with enough force, I simply cut it from the collision point along the collision normal
@johnjackson9767
@johnjackson9767 3 жыл бұрын
Very nice, is this using MPM for the phyiscs?
@PezzzasWork
@PezzzasWork 3 жыл бұрын
I am just using basic circle-circle collisions for this. But I'm looking into mpm to improve stability
@AlienLogic775
@AlienLogic775 3 жыл бұрын
I've cloned your fabulous repo! Where I can find (in the commit history) this example?
@JoeEnderman
@JoeEnderman 3 жыл бұрын
Are the cubes assigned random strength values on top of the random colors?
@peridoritothemighty5226
@peridoritothemighty5226 3 жыл бұрын
:0 I love it
@enricobianchi4499
@enricobianchi4499 3 жыл бұрын
What is the criterion for a body to split in two?
@TheRealSavi
@TheRealSavi 3 жыл бұрын
Im currently embarking on a similar project, where did you learn to make the collision response algorithms?
@PezzzasWork
@PezzzasWork 3 жыл бұрын
This article is very nice gamedevelopment.tutsplus.com/tutorials/how-to-create-a-custom-2d-physics-engine-the-basics-and-impulse-resolution--gamedev-6331
@santiagopuentep
@santiagopuentep 3 жыл бұрын
@@PezzzasWork Your demo looks amazing. How did you solve the rigid body part with rotations and stacking. Are you using polygon or polygon collitions by creating polygons around the circles or is it some other kind of solver?
@santiagopuentep
@santiagopuentep 2 жыл бұрын
@No Sound @No Sound yeah, what I mean is that when multiple circles form a shape together, how does it stay so stable. I've implemented polygon on polygon solvers and complex concave shapes are subdivided into convex ones, but always polygons for efficiency. This one seems to just use circles but forces transfer perfectly.
@santiagopuentep
@santiagopuentep 2 жыл бұрын
@No Sound stacking. Things on top of things.
@delve_
@delve_ 3 жыл бұрын
Is there a download? I'd like to play with this.
@TeppuTeppu
@TeppuTeppu 2 жыл бұрын
Can you do a performance demo with as many objects as possible?
@Ali107
@Ali107 2 жыл бұрын
From the video those simulated particle objects can get destroyed, but can they be malleable or flexible?
@PezzzasWork
@PezzzasWork 2 жыл бұрын
It is currently not possible, my solver only supports rigid bodies
@yfluz
@yfluz 3 жыл бұрын
0:46 Green seem *sus...*
@Leander_0
@Leander_0 3 жыл бұрын
how does one learn this power? this is soo cool
@lukeystuff
@lukeystuff 3 жыл бұрын
Ferb, I know what we're gonna do today.
@leelou0796
@leelou0796 3 жыл бұрын
J'aime bien
@PezzzasWork
@PezzzasWork 3 жыл бұрын
Merci madame
@ChristopherGray00
@ChristopherGray00 3 жыл бұрын
Do you have a github for this?
@prod.hxrford3896
@prod.hxrford3896 3 жыл бұрын
What is this programmed on?
@Natsters46
@Natsters46 3 жыл бұрын
This makes me want to eat some pearled couscous
@ImXyper
@ImXyper 3 жыл бұрын
can you upload this to github? i t seems fun and i wanna try
@leeuwengames315
@leeuwengames315 3 жыл бұрын
think you should put on something so that if there is no particle of same block in 2 particle length the block sperates cause that didn't really happen at the end.
@atlasua2021
@atlasua2021 3 жыл бұрын
Лучший!
@SacrificialGoat94
@SacrificialGoat94 3 жыл бұрын
Is this opensource? Can we get the code anywhere?
@PezzzasWork
@PezzzasWork 3 жыл бұрын
I will publish it when it'll be more polished
@AlienLogic775
@AlienLogic775 2 жыл бұрын
It’s Verlet Integration based for the round particles? Trying to figure out how you managed to make a “solid” body with the cursive writing.
@PezzzasWork
@PezzzasWork 2 жыл бұрын
It could be done with this technique using extended position based dynamic. However in this case it is classic rigid body dynamics
@AlienLogic775
@AlienLogic775 2 жыл бұрын
@@PezzzasWork thanks, do you mind releasing the source code? Even if not finished. Would be very cool to learn something new
@AlienLogic775
@AlienLogic775 2 жыл бұрын
@@PezzzasWork P.S: I’ve been working on a Verlet based engine with also angle constraints and it looks promising.
@PezzzasWork
@PezzzasWork 2 жыл бұрын
@@AlienLogic775 I tried using verlet based angle constraints to simulate grass and trees. For grass it worked quite well but requires a lot of damping to stay stable. However for trees I didn't manage to have something robust enough and switch to another approach
@AlienLogic775
@AlienLogic775 2 жыл бұрын
@@PezzzasWork I've tried a different approach for angle constraint, instead of the classic dot product I'm using a kinematic style solver. Seems to be stable at the moment. (I can share with you the code if you are interested) Any chance to see your source code about this project? Even if not finished.
@kylaxial
@kylaxial 3 жыл бұрын
I hope this project doesn't get as laggy as OE Cake does when there's too many things on-screen
@Mark00747
@Mark00747 3 жыл бұрын
Could you share the code?
@arsenbabaev1022
@arsenbabaev1022 2 жыл бұрын
Does that work only with convex geometry?
@PezzzasWork
@PezzzasWork 2 жыл бұрын
Yes it does, I used this engine for this project kzbin.info/www/bejne/j5iWqaFsabVnZrs where objects have non convex shapes
@Philyshark7
@Philyshark7 3 жыл бұрын
idk why but i just expected all the objects to split into just the balls at some point
@viporal7898
@viporal7898 3 жыл бұрын
It's so little that it's just one physic
@Snort70
@Snort70 3 жыл бұрын
Reminds me of OE-Cake
@chakibchemso
@chakibchemso 3 жыл бұрын
3d?
@tehbigb
@tehbigb 3 жыл бұрын
I wonder how many youtube tutorials this took to make
@nix3l_
@nix3l_ 3 жыл бұрын
Source code?
@unknown-bx8my
@unknown-bx8my 3 жыл бұрын
Woww
@chakibchemso
@chakibchemso 3 жыл бұрын
This + raylib
@ITpanda
@ITpanda 3 жыл бұрын
Nice, but I don't think we have the readily available processing power to implement this at standard definitions let alone 2 or 4K. Just too many strings I figure.
@sapphire4310
@sapphire4310 3 жыл бұрын
Ever seen noita?
@ITpanda
@ITpanda 3 жыл бұрын
@@sapphire4310 Negative! Please inform me.
@sapphire4310
@sapphire4310 3 жыл бұрын
@@ITpanda well it's a game that uses a physics engine that can do far far more than this
@ITpanda
@ITpanda 3 жыл бұрын
Does not do so at a level that compares to n64 games. It is cool and I will be adding to my wishlist but not enough processing power available in a consumer grade setup to make this work on a high detail 3d environment. Would be cool to see.
@4ROff
@4ROff 3 жыл бұрын
tutor ?
@wizardnotknown
@wizardnotknown 3 жыл бұрын
I died.
@ivysly
@ivysly 3 жыл бұрын
reminds me of oe cake
@pajeetsingh
@pajeetsingh 3 жыл бұрын
Sell this on iphone. Toddlers would buy.
@anothrnoml
@anothrnoml 3 жыл бұрын
1:24 wait brain dots all over again
@edthetraveller
@edthetraveller 3 жыл бұрын
you should try uploading this to itch.io, I'd like to play with it myself
@Xturnal
@Xturnal 3 жыл бұрын
Git me the Hub
@prashanthkumar0
@prashanthkumar0 3 жыл бұрын
source code plz... +1 sub
@pou3321
@pou3321 3 жыл бұрын
unity particle system
@1e1001
@1e1001 3 жыл бұрын
Teardown 2D
@retard1582
@retard1582 3 жыл бұрын
This is nice and all... But Prometech Software made something called "OE cake" 12 years ago that does this exact things as this, and a whole bunch of other stuff. Like dragging images in and having them load in as objects, stretching and scaling texture meshes based on the physical model, simulation of elastic, viscous mediums. simulations of surface tension. The abilty to save and load simulations. And they released it as freeware... I know that some people probably haven't been on the internet in 2008, but this was basic stuff even then. It's funny to see that your implementation has the exact same object-body clipping issues as OE cake though, it brought back some fun memories.
@PezzzasWork
@PezzzasWork 3 жыл бұрын
The "new" in the title doesn't refer to the technique used but to the fact that it's a new version of my little physic engine. All my projects are about experimenting things from scratch in order to better understand various subjects. Didn't know about OE cake but it's very impressive and it seems very fun to play with :D
@TheVizualkat
@TheVizualkat 3 жыл бұрын
This has some Crayon physics Deluxe vibes.
@CstriderNNS
@CstriderNNS 3 жыл бұрын
be more optimized if it would procedurally break
@dankmemewannabe7692
@dankmemewannabe7692 3 жыл бұрын
cromch
@bugrilyus
@bugrilyus 3 жыл бұрын
Facebook video music
@praadiiit
@praadiiit 3 жыл бұрын
This video is so fragile
C++ Ants Simulation - Walls
2:46
Pezzza's Work
Рет қаралды 87 М.
Creating a Brick Breaker with my PHYSICS ENGINE
7:21
Pezzza's Work
Рет қаралды 109 М.
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 12 МЛН
Кәріс өшін алды...| Synyptas 3 | 10 серия
24:51
kak budto
Рет қаралды 1,1 МЛН
ХОТЯ БЫ КИНОДА 2 - официальный фильм
1:35:34
ХОТЯ БЫ В КИНО
Рет қаралды 2,8 МЛН
C++ Ants Simulation 3, Maze
5:09
Pezzza's Work
Рет қаралды 558 М.
I Made an Entire Game from Particle Physics
9:01
Gonkee
Рет қаралды 453 М.
Evolving AIs - Predator vs Prey, who will win?
12:15
Pezzza's Work
Рет қаралды 2,8 МЛН
microsoft recall is an absolute dumpster fire
9:34
Low Level Learning
Рет қаралды 20 М.
Turning bugs into Art
7:43
Pezzza's Work
Рет қаралды 193 М.
Soft Body Physics Explained
10:47
Gonkee
Рет қаралды 528 М.
Real time Fire Simulation
7:23
Pezzza's Work
Рет қаралды 153 М.
JavaScript Physics engine + fluid simulation
5:06
Dennis Collaris
Рет қаралды 117 М.
Making Minecraft from scratch in 48 hours (NO GAME ENGINE)
16:38
Gpu Physics #2: rigid body collisions & response
1:39
Alexander Sannikov
Рет қаралды 3,3 М.
ЭТОТ ЗАБЫТЫЙ ФЛАГМАН СИЛЬНО ПОДЕШЕВЕЛ! Стоит купить...
12:54
Thebox - о технике и гаджетах
Рет қаралды 150 М.
📱 SAMSUNG, ЧТО С ЛИЦОМ? 🤡
0:46
Яблочный Маньяк
Рет қаралды 1,9 МЛН
How To Unlock Your iphone With Your Voice
0:34
요루퐁 yorupong
Рет қаралды 19 МЛН
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 4,4 МЛН