Soft Body Physics Explained

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

Gonkee

Gonkee

Күн бұрын

While it’s physically impossible for a rigid body to exist in real life, it presents a simplicity that makes it convenient and optimal to use as a representation of most hard objects. Soft bodies take care of what rigid bodies lack the capability to represent - shapes that are elastic, can be deformed and can be compressed. This is Inspecto, and in this video I attempt to find out exactly how soft bodies work, and explain it to anyone else who’s also been curious about them.
Timestamps
00:00 Intro
00:48 Representation
02:08 Spring-Mass Model
05:17 Collision
07:01 Particle Spring-Mass Model
08:47 Limitations
Music by LAKEY INSPIRED
/ lakeyinspired
/ @lakeyinspired
Thanks for watching

Пікірлер: 387
@ja100o
@ja100o 3 жыл бұрын
You have the potential to become the "3 blue one brown" of game and simulation development. You already earned my bell, so keep it up!💪🏽
@SLPCaires
@SLPCaires 3 жыл бұрын
Same!!!
@automatescellulaires8543
@automatescellulaires8543 3 жыл бұрын
Nice channel for sure
@ajbridgewater
@ajbridgewater 3 жыл бұрын
I couldn't have said it better!
@NHCH
@NHCH 3 жыл бұрын
He will never be the 3blue1brown of game development. He leaks the black background lol Jk, great work🔥 keep it up
@jamesorendorff2284
@jamesorendorff2284 3 жыл бұрын
@@NHCH "lacks"
@lucinoide-2174
@lucinoide-2174 3 жыл бұрын
this is really some of if not thee best content on math + programming on youtube. keep it up man these are blessed
@koktszfung
@koktszfung 3 жыл бұрын
And physics 😂
@edysfunction_
@edysfunction_ 3 жыл бұрын
homestuck (:
@akisuri2202
@akisuri2202 3 жыл бұрын
Actually Physics
@wimfor10909
@wimfor10909 3 жыл бұрын
Soft body physics is made out of rigid body’s
@nagualdesign
@nagualdesign 2 жыл бұрын
"Thee" means _you._
@AlexandriaLibraryGame
@AlexandriaLibraryGame 3 жыл бұрын
Nice, I was googling the other day trying to find a video like this.
@AkariInsko
@AkariInsko 3 жыл бұрын
Goggleing*
@FenlonAcoustic
@FenlonAcoustic 3 жыл бұрын
Just came from your sound synthesis video, and I'm only a minute into this one, and I had to stop the video and take the time to say how utterly fantastic this content is. If the quality of the content on this channel continues as it has been, this channel is going to be HUGE. I'm absolutely delighted to have found this channel.
@specialgorilla
@specialgorilla 3 жыл бұрын
Yo this video is actually sick. I was surprised to see it doesn't have more views. You definitely earned a subscriber, I've been looking for a good explanation of this for a long time.
@Gonkee
@Gonkee 3 жыл бұрын
Appreciate the support!
@nagualdesign
@nagualdesign 2 жыл бұрын
You've been looking for a long time, but without bothering to Google it or do a simple search on KZfaq? 😊
@misterZalli
@misterZalli 3 жыл бұрын
A great introductory video! If you feel like it, I'd appreciate if you made a followup video(s) about the different approaches to soft bodies (and maybe integration techniques) that you mentioned.
@TheSirako
@TheSirako 3 жыл бұрын
Incredible content, keep it up! I'm getting vibes of a soon-to-blow-up channel:)
@tiagol8200
@tiagol8200 3 жыл бұрын
100% Agreed
@random.123
@random.123 3 жыл бұрын
Same, this is really well made
@bobsmithy3103
@bobsmithy3103 3 жыл бұрын
Amazing explanation. Even after learning about Hooke's law in high school and at uni, it never clicked with me how I'd actually make a program to simulate it. However this video does. Now I really want to implement it.
@Gonkee
@Gonkee 3 жыл бұрын
Thank you, good luck if you try to implement it :)
@anupamrana8619
@anupamrana8619 3 жыл бұрын
Wow What a content.... you're so underrated may KZfaq algorithm bless you
@AkariInsko
@AkariInsko 3 жыл бұрын
Yes
@DaveeeOnTop
@DaveeeOnTop 3 жыл бұрын
It getting recommended randomly to me
@alessi4249
@alessi4249 3 жыл бұрын
What an incredibly elegant and easy to understand explanation! I wish I had this when I was trying to figure this stuff out in the past!
@vb0t429
@vb0t429 3 жыл бұрын
I love this video! Total Sebastian Lague vibes, keep on making great videos!
@rhetorical_
@rhetorical_ 3 жыл бұрын
I am SO LUCKY to have found this channel! This is some awesome content, thank you Inspecto!
@WinterNox
@WinterNox 2 жыл бұрын
Now it's gonkee
@SuryanIsaac
@SuryanIsaac 3 жыл бұрын
Subscribed in 15 seconds - I can feel the effort that went into this video
@ruchirraj5300
@ruchirraj5300 3 жыл бұрын
This video really helped me get started in this field, I really thought it to be very difficult to do something like this but after watching this video it really inspired me to venture into this field and learn more about physics simulations in general, Thanks a lot 😁
@magnuswootton6181
@magnuswootton6181 2 жыл бұрын
Its easy to do if you dont need realism, pretty much any haphazard way of connecting together points with velocities will give you a quite good result! complete self contrived baby numerics will work! :)
@antoinecantin1780
@antoinecantin1780 3 жыл бұрын
I absolutely love your videos they are just next level quality with incredible animations and editing, along with great informative content, if you ever hit 1M, I won’t even be surprised
@BgfordeProductions
@BgfordeProductions 3 жыл бұрын
Excited to have stumbled upon this gem. Very well produced content sir, can't wait to see your next video!
@coolrat3816
@coolrat3816 2 жыл бұрын
This video is ridiculously practical and easy to understand. I'm beyond impressed!
@nerkulec
@nerkulec 3 жыл бұрын
The quality of your content is so good, man! Keep it up!
@ferociousfeind8538
@ferociousfeind8538 2 жыл бұрын
This is... refreshingly comprehensive, assuming little to no prior knowledge. Just.. wonderful! I didn't know tutorials could come in this flavor.
@ollie-d
@ollie-d 3 жыл бұрын
Very well made, informative video. You have a great speaking cadence and you present your material clearly. Thanks!
@Ywqqqq
@Ywqqqq 3 жыл бұрын
That's exactly the type of content I was looking for, thanks a lot and keep going !
@Qubaef
@Qubaef 3 жыл бұрын
Holy, this was exactly what I was looking for. Physics for devs, with visuals and model names. Instantly subbed! Keep it up.
@acatfrompoland5230
@acatfrompoland5230 3 жыл бұрын
This video is actually really good. Well done keep making more.
@augustindvs
@augustindvs 3 жыл бұрын
your videos are very clear and comprehensive ! Thank you !
@charliew.1122
@charliew.1122 3 жыл бұрын
Just spent the whole day coding this as well as I could from the video - furthest I've ever gone is circle-circle collisions so this was definitely a pretty big challenge to me.
@tomasdougan1419
@tomasdougan1419 Жыл бұрын
This is a concise and informative video-- thank you so much for making this!
@ypyketo
@ypyketo 3 жыл бұрын
So glad I found your channel. I do some physic simulation for kids myself, hope to learn a lot on the coding side from you! Keep up the great job!
@maibster
@maibster 3 жыл бұрын
Absolutely awesome video, completely perfect! Best explanation yet and maybe ever! Good job
@deadmeme5291
@deadmeme5291 3 жыл бұрын
Amazing video. Such nice work from a small content creator. Im amazed!
@TheSpinTensor
@TheSpinTensor 3 жыл бұрын
Nice video. Regarding the integration algorithms you could check out verlet-integration (or variations thereof like leap-frog integration). It is only slightly more complicated than euler integration but fixes a lot of its problems. Also it is probably possible to implement a multistep-integration scheme, where you integrate the external forces on the point-masses with different timesteps than the springs, thus reducing the required computational power. If you do so, you can further optimize the integration of the springs, as they are harmonic, thus exactly integratable with terms, that can be precomputed.
@MissPiggyM976
@MissPiggyM976 9 ай бұрын
Very good tutorial, thanks !
@thelostsoul9446
@thelostsoul9446 3 жыл бұрын
As a kid that would like to do some programming stuff as a job later in my life, this is awesome. Currently in class we started to study vectors, but i could still grasp somewhat of an understanding of everything that was said in this video due to the clarity of your explanations. I've learned a lot today. Thank you!
@rykehuss3435
@rykehuss3435 3 жыл бұрын
wait until you start studying tensors
@thelostsoul9446
@thelostsoul9446 3 жыл бұрын
@@rykehuss3435 i dunno if i should be scared or excited.....
@rykehuss3435
@rykehuss3435 3 жыл бұрын
@@thelostsoul9446 scared
@thelostsoul9446
@thelostsoul9446 3 жыл бұрын
@@rykehuss3435 good
@kubstoff1418
@kubstoff1418 3 жыл бұрын
This is by far the best video explaining the introduction to softbodies I have ever seen, kudos to you!
@rickyspanish4792
@rickyspanish4792 3 жыл бұрын
this is super informative! thanks :)
@navid9852
@navid9852 2 жыл бұрын
Super cool presentation. Really liked the collision part
@bobingstern4448
@bobingstern4448 3 жыл бұрын
Absolutely Fantastic video, I was able to implement the whole thing while watching the video
@CANProductionZz
@CANProductionZz 3 жыл бұрын
The amount of flashbacks I just had to A Level Maths and Physics is insane
@atom9885
@atom9885 3 жыл бұрын
whole lot of linear algebra as well
@kilroy987
@kilroy987 3 жыл бұрын
Nice discussion, thank you. You make me want to try this. So I bookmarked your video.
@danielweinmann960
@danielweinmann960 3 жыл бұрын
I realy like your Intro and the Style of your Videos!
@chenmarkson7413
@chenmarkson7413 3 жыл бұрын
KZfaq lacks good explanators in the field of computer science simulations -- I'm sure you will be the best one given a couple of years!
@avinashjha7848
@avinashjha7848 Жыл бұрын
Thanks a lot fir this video.. keep making...good luck
@J_E_N_T
@J_E_N_T 3 жыл бұрын
This is a really brilliant video, well done!
@hgsilva89
@hgsilva89 3 жыл бұрын
Great video! Keep up the awesome work, your channel is very promising
@jacobyoung6876
@jacobyoung6876 3 жыл бұрын
Your explanations of physics simulations are just amazing.
@aleksanderbaszkiewicz536
@aleksanderbaszkiewicz536 3 жыл бұрын
The most underrated channel. You have such knowledge....
@AxelWard
@AxelWard 3 жыл бұрын
This is such a good analysis of soft bodies. Well done!
@Xenro66
@Xenro66 3 жыл бұрын
Tryna learn all I can about rigid body physics to make my own crude engine in Java (yes, I'm that -sadistic- masochistic. I always mix up those words), so this video is right up my alley of interest. That ray method for detecting collisions is so damn elegant that I feel stupid for not knowing about it sooner lmao. In before your channel blows up...It's well deserved!
@samarthtandale9121
@samarthtandale9121 Жыл бұрын
Please keep uploading videos !!! You are the great
@huseyintemiz5249
@huseyintemiz5249 2 жыл бұрын
How amazing. I subscribed your channel in the middle of video. Thanks.
@juniorcyans2988
@juniorcyans2988 9 ай бұрын
Interesting and inspiring topic!
@Jesse-cx4rc
@Jesse-cx4rc 2 жыл бұрын
Love the explanation, i’ve personally obtained the best results in the past using a verlet integration scheme in terms of stability
@rommusteegan
@rommusteegan 3 жыл бұрын
happy this was recommended, really great video
@ghostsdefeated4078
@ghostsdefeated4078 3 жыл бұрын
The quality of your videos is incredible
@boggybolt6782
@boggybolt6782 3 жыл бұрын
Just imagining the limitations and issues these kind of simulations can create(like, example, the spring moving past its maximum extension in a single frame) makes me happy that I'm not going into that field myself.
@elishmuel1976
@elishmuel1976 3 жыл бұрын
5k subs only?? It's the first video I've seen of yours and I already subbed. I love the detail!
@OliverBevan23
@OliverBevan23 3 жыл бұрын
This video is great. So glad I got it in my recommendations.
@AJ-et3vf
@AJ-et3vf 2 жыл бұрын
Awesome video! Thank you!
@capitaopacoca8454
@capitaopacoca8454 3 жыл бұрын
This is video is so well-explained that even I could understand.
@DThorn619
@DThorn619 3 жыл бұрын
Ever run across a channel and think "Wow how have I not seen their videos sooner, this quality must have attracted a huge following" only to be floored when you see the abysmal view and subscriber count!?! Those are rookie numbers (42k views / 7k subscribers as of 4/7/2021) we gotta pump this channel up! Eagerly looking forward to more. Also if you have a Github page where you can share your implementation of these codes that would likely help your viewers as well.
@HarhaMedia
@HarhaMedia 3 жыл бұрын
Great introduction!
@Testgeraeusch
@Testgeraeusch 3 жыл бұрын
8:44 "Exclamation mark not factorial sign"
@MichaelHickman3D
@MichaelHickman3D 2 жыл бұрын
Wonderful video!!!
@Viewpoint314
@Viewpoint314 2 жыл бұрын
That was a super explanation.
@BrendanGraziani
@BrendanGraziani 6 ай бұрын
Great video, helped me create my own soft body simulation (in python!) without giving the code. Great explanation overall, really helped me understand the methods behind soft bodies. Definitely earned a subscription and a bell.
@BrendanGraziani
@BrendanGraziani 6 ай бұрын
I am having a little trouble implementing self-collision though. Any help would be much appreciated.
@gmdrandom6287
@gmdrandom6287 6 ай бұрын
@@BrendanGrazianigive each particle a radius. Check collisions between each particle kinda like: #idk how to actually python but example: for i, p1 in enumerate(shape): for j in range(i+1, len(shape): p2 = shape[j] #assuming that in a shape you have each point #get distance (squared) between each point with d = (x2-x1)^2 + (y2-y1)^2 #sum the radius of both particles and square it. If the dist is less than sum of rad squared, then they are colliding #for resolution, take the difference between the position of p1 and p2 #divide the difference by the magnitude of the difference to obtain the separation axis #sum up the radius of both points (not squared) and subtract that by distance (just take the sqrt of previously calculated d) to get penetration depth. #multiply the difference axis by the pen depth (separation vector) divided by 2 (because you apply it to both points). #Add and subtract the Sep Vec to both p1 and p2.
@nitroflap
@nitroflap 3 жыл бұрын
Subscribed. Content is amazing!
@avelione
@avelione 7 ай бұрын
I barely understand any of this but your voice is nice, it's nice to relax to in the background☺
@ericstorm4613
@ericstorm4613 3 жыл бұрын
Very exciting channel!
@boneman-calciumenjoyer8290
@boneman-calciumenjoyer8290 2 жыл бұрын
I'm not bright enough to understand what you're talking about, but I now do desire to play squishy Tetris. Great video... I think. I've also subscribed to your channel, so I may someday (in the far future) understand what you're talking about.
@TomasSab3D
@TomasSab3D 2 жыл бұрын
This is SO CLOSE to an advanced Ph.D. level course at a university! Only the quality - higher. Awesome. Though, at university, you get to see all of the different ways to model stiffness, complex geometries of elements, plasticity.... Still, introduction wise - this is amazing work.
@ArnoldsKtm
@ArnoldsKtm 3 жыл бұрын
The visualization is spot on.
@rafaelgpontes
@rafaelgpontes 3 жыл бұрын
Oh, boy. I wish I had known this Gonkee channel before. This content is gold!
@robins423
@robins423 3 жыл бұрын
This channel is gold. Glad I found it
@eldattackkrossa9886
@eldattackkrossa9886 3 жыл бұрын
same!
@DrDrift-rl6cc
@DrDrift-rl6cc Жыл бұрын
Man, this video is S tier. God be with you.
@nextProgram
@nextProgram 3 жыл бұрын
Really great video, good work
@fominvic81
@fominvic81 3 жыл бұрын
Thanks, amazing tutorial. Will you do the second part?
@andermium
@andermium 3 жыл бұрын
This gives me a whole new level of appreciation for the work C4D4U is doing with his softbody simulations!
@AkariInsko
@AkariInsko 3 жыл бұрын
Aprectiatcion*
@andermium
@andermium 3 жыл бұрын
@@AkariInsko Bone apple tea :)
@enzowars
@enzowars 3 жыл бұрын
Woah are you Gonkee? Great information by the way!
@boxed_in4357
@boxed_in4357 3 жыл бұрын
Why is this in my recommended. And why do I want to watch more of this guy’s work
@pixl237
@pixl237 3 жыл бұрын
I waited so long to find somebody alking about Physic simulation this smooth...I mean : I can create a whole Physic system only using this video EVEN IT'S the purpose was only the soft body...You're my Lord now
@ombrezz7030
@ombrezz7030 3 жыл бұрын
first video I've seen from you, subbed in 20 seconds
@EVL624
@EVL624 3 жыл бұрын
This was really great!
@monsieuralexandergulbu3678
@monsieuralexandergulbu3678 3 жыл бұрын
You give me super interesting idea, thx
@AbElsaied
@AbElsaied 3 жыл бұрын
Great video keep creating and one video will go viral. I just want to know what software do you use for simulation?
@thatskap
@thatskap 3 жыл бұрын
Understanding soft bodies seemed so out of reach until this video. Nice job.
@rentacowisgoogle
@rentacowisgoogle 2 жыл бұрын
where the beamNG fans at?
@Random54867
@Random54867 7 ай бұрын
Here
@yehudigames1120
@yehudigames1120 7 ай бұрын
Aqui
@HampterYesyes
@HampterYesyes 7 ай бұрын
Here
@cubus5451
@cubus5451 7 ай бұрын
Ima making my own BeamNG Muhahahahahah
@bloodylizard3158
@bloodylizard3158 7 ай бұрын
Present
@antonioceglia7249
@antonioceglia7249 3 жыл бұрын
I love this video, I love it so much that I'm using it for making an elaborate for my final high school exam, have you used any documentation paper like in the fluid simulations video? I can't find any documentation about spring-mass model that doesn't include heavy mass competences
@dekato635
@dekato635 3 жыл бұрын
Super cool and satisfying
@zennxd941
@zennxd941 3 жыл бұрын
great video dude
@Mad3011
@Mad3011 3 жыл бұрын
Nice video! Just wanted to point out what you are doing is a semi implicit Euler integration which is already slightly more stable than the standard Euler method.
@ihspan6892
@ihspan6892 3 жыл бұрын
Very well done!
@dawidzyrek6481
@dawidzyrek6481 3 жыл бұрын
That's soo good, I had no idea that that pattern of calculating velocity was called "Euler integration", but I've seen it already in many engines and frameworks. Keep it up
@AkariInsko
@AkariInsko 3 жыл бұрын
Ruler*
@redbuck1385
@redbuck1385 7 ай бұрын
Everything in math/physics is called "Euler ______"
@rbcubosengenharia694
@rbcubosengenharia694 3 жыл бұрын
Are you Gonkee ? Pretty owesome explanation o/
@ParticleSkull
@ParticleSkull 3 жыл бұрын
Love it! Thank you very much!
@runforitman
@runforitman 3 жыл бұрын
I love that I'm seeing this just after studying Hooke's law and a few other things in this video, at school
@dmitrym3757
@dmitrym3757 3 жыл бұрын
Great! Just great! Thank you. :))))
@palkasalyami
@palkasalyami 3 жыл бұрын
Thank you. Fast and easy, I like it
@ChannelSho
@ChannelSho 3 жыл бұрын
Where was this when I had to do a simulation using a soft-body? 😂 Good stuff though!
@user-gm2qc3np5o
@user-gm2qc3np5o 8 ай бұрын
Amazing video and
@RamiCrafy
@RamiCrafy 5 ай бұрын
Yeah I don't know what I was expecting I don't understand anything but good video!
@wouhou4018
@wouhou4018 3 жыл бұрын
Very cool video I like how you explain! Can you put programming language you use or maybe software in description pleases.
Making My Physics Engine 10x Faster and Simulating Trusses
11:28
AngeTheGreat
Рет қаралды 150 М.
I'm Coding an Entire Physics Engine from Scratch
9:19
Gonkee
Рет қаралды 1,6 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 26 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 190 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 115 МЛН
Physics of JellyCar: Soft Body Physics Explained
17:02
Walaber Entertainment
Рет қаралды 112 М.
Realtime 2D Gravity Simulation
12:31
Brendan Galea
Рет қаралды 405 М.
Chaos Theory: the language of (in)stability
12:37
Gonkee
Рет қаралды 548 М.
The Most Mind-Blowing Aspect of Circular Motion
18:35
All Things Physics
Рет қаралды 685 М.
The Physics of BeamNG
5:00
SkyFall
Рет қаралды 64 М.
Paradox of the Möbius Strip and Klein Bottle  - A 4D Visualization
13:08
drew's campfire
Рет қаралды 2,3 МЛН
Understanding Light and Why it exists.
12:12
But Why?
Рет қаралды 729 М.
When Your Game Is Bad But Your Optimisation Is Genius
8:52
Vercidium
Рет қаралды 1,4 МЛН
Why light has energy, but no mass? (Understanding E = mc2)
21:58
FloatHeadPhysics
Рет қаралды 1 МЛН
How Particle Life emerges from simplicity
10:16
Tom Mohr
Рет қаралды 334 М.
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 1,5 МЛН
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 2,2 МЛН
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2,1 МЛН
Сколько реально стоит ПК Величайшего?
0:37
S24 Ultra and IPhone 14 Pro Max telephoto shooting comparison #shorts
0:15
Photographer Army
Рет қаралды 9 МЛН