Soft Body Physics Explained

Sdílet
Vložit
  • čas přidán 5. 06. 2024
  • 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
  • Věda a technologie

Komentáře • 386

  • @ja100o
    @ja100o Před 3 lety +1220

    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!💪🏽

  • @lucinoide-2174
    @lucinoide-2174 Před 3 lety +478

    this is really some of if not thee best content on math + programming on youtube. keep it up man these are blessed

  • @AlexandriaLibraryGame
    @AlexandriaLibraryGame Před 3 lety +67

    Nice, I was googling the other day trying to find a video like this.

  • @anupamrana8619
    @anupamrana8619 Před 3 lety +135

    Wow What a content.... you're so underrated may CZcams algorithm bless you

  • @specialgorilla
    @specialgorilla Před 3 lety +65

    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  Před 3 lety +7

      Appreciate the support!

    • @nagualdesign
      @nagualdesign Před 2 lety

      You've been looking for a long time, but without bothering to Google it or do a simple search on CZcams? 😊

  • @FenlonAcoustic
    @FenlonAcoustic Před 3 lety +9

    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.

  • @TheSirako
    @TheSirako Před 3 lety +165

    Incredible content, keep it up! I'm getting vibes of a soon-to-blow-up channel:)

  • @bobsmithy3103
    @bobsmithy3103 Před 3 lety +23

    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  Před 3 lety +8

      Thank you, good luck if you try to implement it :)

  • @misterZalli
    @misterZalli Před 3 lety +51

    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.

  • @rentacowisgoogle
    @rentacowisgoogle Před 2 lety +125

    where the beamNG fans at?

  • @alessi4249
    @alessi4249 Před 3 lety +1

    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 Před 3 lety +4

    I love this video!
    Total Sebastian Lague
    vibes, keep on making great videos!

  • @antoinecantin1780
    @antoinecantin1780 Před 3 lety +2

    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

  • @Testgeraeusch
    @Testgeraeusch Před 3 lety +2

    8:44 "Exclamation mark not factorial sign"

  • @ruchirraj5300
    @ruchirraj5300 Před 3 lety +12

    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 Před 2 lety +1

      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! :)

  • @SuryanIsaac
    @SuryanIsaac Před 3 lety +2

    Subscribed in 15 seconds - I can feel the effort that went into this video

  • @rhethoricalQ
    @rhethoricalQ Před 3 lety +2

    I am SO LUCKY to have found this channel! This is some awesome content, thank you Inspecto!

  • @BgfordeProductions
    @BgfordeProductions Před 3 lety

    Excited to have stumbled upon this gem. Very well produced content sir, can't wait to see your next video!

  • @nerkulec
    @nerkulec Před 3 lety +1

    The quality of your content is so good, man! Keep it up!

  • @coolrat3816
    @coolrat3816 Před 2 lety

    This video is ridiculously practical and easy to understand. I'm beyond impressed!

  • @Qubaef
    @Qubaef Před 3 lety

    Holy, this was exactly what I was looking for. Physics for devs, with visuals and model names. Instantly subbed! Keep it up.

  • @Ywqqqq
    @Ywqqqq Před 3 lety

    That's exactly the type of content I was looking for, thanks a lot and keep going !

  • @ollie-d
    @ollie-d Před 3 lety +1

    Very well made, informative video. You have a great speaking cadence and you present your material clearly. Thanks!

  • @charliew.1122
    @charliew.1122 Před 3 lety +2

    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.

  • @ferociousfeind8538
    @ferociousfeind8538 Před 2 lety

    This is... refreshingly comprehensive, assuming little to no prior knowledge. Just.. wonderful! I didn't know tutorials could come in this flavor.

  • @TheSpinTensor
    @TheSpinTensor Před 3 lety +7

    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.

  • @augustindvs
    @augustindvs Před 3 lety

    your videos are very clear and comprehensive ! Thank you !

  • @acatfrompoland5230
    @acatfrompoland5230 Před 3 lety +1

    This video is actually really good. Well done keep making more.

  • @ypyketo
    @ypyketo Před 3 lety +1

    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!

  • @CANProductionZz
    @CANProductionZz Před 3 lety +8

    The amount of flashbacks I just had to A Level Maths and Physics is insane

    • @atom9885
      @atom9885 Před 3 lety +1

      whole lot of linear algebra as well

  • @maibster
    @maibster Před 3 lety

    Absolutely awesome video, completely perfect! Best explanation yet and maybe ever! Good job

  • @deadmeme5291
    @deadmeme5291 Před 3 lety

    Amazing video. Such nice work from a small content creator. Im amazed!

  • @tomasdougan1419
    @tomasdougan1419 Před rokem

    This is a concise and informative video-- thank you so much for making this!

  • @MissPiggyM976
    @MissPiggyM976 Před 7 měsíci +1

    Very good tutorial, thanks !

  • @thelostsoul9446
    @thelostsoul9446 Před 3 lety +5

    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!

  • @DThorn619
    @DThorn619 Před 3 lety

    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.

  • @kubstoff1418
    @kubstoff1418 Před 2 lety

    This is by far the best video explaining the introduction to softbodies I have ever seen, kudos to you!

  • @elishmuel1976
    @elishmuel1976 Před 3 lety

    5k subs only?? It's the first video I've seen of yours and I already subbed. I love the detail!

  • @boggybolt6782
    @boggybolt6782 Před 3 lety

    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.

  • @huseyintemiz5249
    @huseyintemiz5249 Před 2 lety

    How amazing. I subscribed your channel in the middle of video. Thanks.

  • @Xenro66
    @Xenro66 Před 3 lety +1

    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!

  • @danielweinmann960
    @danielweinmann960 Před 3 lety

    I realy like your Intro and the Style of your Videos!

  • @chenmarkson7413
    @chenmarkson7413 Před 3 lety

    CZcams lacks good explanators in the field of computer science simulations -- I'm sure you will be the best one given a couple of years!

  • @navid9852
    @navid9852 Před 2 lety

    Super cool presentation. Really liked the collision part

  • @thatskap
    @thatskap Před 3 lety +1

    Understanding soft bodies seemed so out of reach until this video. Nice job.

  • @avelione
    @avelione Před 5 měsíci

    I barely understand any of this but your voice is nice, it's nice to relax to in the background☺

  • @jacobyoung6876
    @jacobyoung6876 Před 3 lety

    Your explanations of physics simulations are just amazing.

  • @rickyspanish4792
    @rickyspanish4792 Před 3 lety +3

    this is super informative! thanks :)

  • @aleksanderbaszkiewicz536

    The most underrated channel. You have such knowledge....

  • @bobingstern4448
    @bobingstern4448 Před 3 lety

    Absolutely Fantastic video, I was able to implement the whole thing while watching the video

  • @AxelWard
    @AxelWard Před 3 lety

    This is such a good analysis of soft bodies. Well done!

  • @ghostsdefeated4078
    @ghostsdefeated4078 Před 3 lety

    The quality of your videos is incredible

  • @TomasSab3D
    @TomasSab3D Před 2 lety

    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.

  • @samarthtandale9121
    @samarthtandale9121 Před rokem

    Please keep uploading videos !!! You are the great

  • @hgsilva89
    @hgsilva89 Před 3 lety

    Great video! Keep up the awesome work, your channel is very promising

  • @J_E_N_T
    @J_E_N_T Před 3 lety

    This is a really brilliant video, well done!

  • @Jesse-cx4rc
    @Jesse-cx4rc Před 2 lety

    Love the explanation, i’ve personally obtained the best results in the past using a verlet integration scheme in terms of stability

  • @kilroy987
    @kilroy987 Před 3 lety

    Nice discussion, thank you. You make me want to try this. So I bookmarked your video.

  • @avinashjha7848
    @avinashjha7848 Před rokem

    Thanks a lot fir this video.. keep making...good luck

  • @boneman-calciumenjoyer8290

    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.

  • @andermium
    @andermium Před 3 lety +4

    This gives me a whole new level of appreciation for the work C4D4U is doing with his softbody simulations!

  • @rommusteegan
    @rommusteegan Před 3 lety

    happy this was recommended, really great video

  • @MichaelHickman3D
    @MichaelHickman3D Před 2 lety +1

    Wonderful video!!!

  • @AJ-et3vf
    @AJ-et3vf Před rokem

    Awesome video! Thank you!

  • @capitaopacoca8454
    @capitaopacoca8454 Před 3 lety

    This is video is so well-explained that even I could understand.

  • @juniorcyans2988
    @juniorcyans2988 Před 7 měsíci

    Interesting and inspiring topic!

  • @nextProgram
    @nextProgram Před 3 lety +1

    Really great video, good work

  • @OliverBevan23
    @OliverBevan23 Před 3 lety

    This video is great. So glad I got it in my recommendations.

  • @ArnoldsKtm
    @ArnoldsKtm Před 3 lety +1

    The visualization is spot on.

  • @rbcubosengenharia694
    @rbcubosengenharia694 Před 3 lety +4

    Are you Gonkee ? Pretty owesome explanation o/

  • @nitroflap
    @nitroflap Před 3 lety

    Subscribed. Content is amazing!

  • @AbElsaied
    @AbElsaied Před 3 lety

    Great video keep creating and one video will go viral. I just want to know what software do you use for simulation?

  • @HarhaMedia
    @HarhaMedia Před 3 lety +5

    Great introduction!

  • @rafaelgpontes
    @rafaelgpontes Před 3 lety

    Oh, boy. I wish I had known this Gonkee channel before. This content is gold!

  • @Viewpoint314
    @Viewpoint314 Před 2 lety

    That was a super explanation.

  • @enzowars
    @enzowars Před 2 lety

    Woah are you Gonkee? Great information by the way!

  • @ericstorm4613
    @ericstorm4613 Před 3 lety

    Very exciting channel!

  • @DrDrift-rl6cc
    @DrDrift-rl6cc Před rokem

    Man, this video is S tier. God be with you.

  • @robins423
    @robins423 Před 3 lety +1

    This channel is gold. Glad I found it

  • @fominvic81
    @fominvic81 Před 3 lety +1

    Thanks, amazing tutorial. Will you do the second part?

  • @antonioceglia7249
    @antonioceglia7249 Před 3 lety

    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

  • @AmitKumar-xw5gp
    @AmitKumar-xw5gp Před 3 lety

    Excellent explanation.. The animations were quite good. How did you make them?

  • @pixl237
    @pixl237 Před 3 lety

    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

  • @Mad3011
    @Mad3011 Před 3 lety +2

    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.

  • @BrendanGraziani
    @BrendanGraziani Před 4 měsíci

    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 Před 4 měsíci

      I am having a little trouble implementing self-collision though. Any help would be much appreciated.

    • @gmdrandom6287
      @gmdrandom6287 Před 4 měsíci

      @@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.

  • @boxed_in4357
    @boxed_in4357 Před 3 lety

    Why is this in my recommended. And why do I want to watch more of this guy’s work

  • @ombrezz7030
    @ombrezz7030 Před 3 lety

    first video I've seen from you, subbed in 20 seconds

  • @EVL624
    @EVL624 Před 3 lety

    This was really great!

  • @ParticleSkull
    @ParticleSkull Před 3 lety

    Love it! Thank you very much!

  • @ihspan6892
    @ihspan6892 Před 3 lety

    Very well done!

  • @dawidzyrek6481
    @dawidzyrek6481 Před 3 lety

    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

  • @hamol3d
    @hamol3d Před 3 lety

    Gold! Thank you.

  • @dekato635
    @dekato635 Před 3 lety

    Super cool and satisfying

  • @monsieuralexandergulbu3678

    You give me super interesting idea, thx

  • @zennxd941
    @zennxd941 Před 3 lety

    great video dude

  • @palkasalyami
    @palkasalyami Před 3 lety

    Thank you. Fast and easy, I like it

  • @xKil53Lx
    @xKil53Lx Před 3 lety

    Nice video! What kind of drawing library are you using?

  • @thejamesgreensill
    @thejamesgreensill Před 3 lety

    super useful!

  • @enderb0t
    @enderb0t Před 3 lety

    im still in school half of this is just random gibberish yet i still enjoy watching this

  • @shinkuroi789
    @shinkuroi789 Před 3 lety

    I really like those videos, but i wonder, what do you use to do those simulations? Like, do you code everything from scratch? with what language?