Physics of JellyCar: Soft Body Physics Explained

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ย. 2024

ความคิดเห็น • 271

  • @llamaliver448
    @llamaliver448 2 ปีที่แล้ว +355

    I was telling my friends about playing Jelly Car when I was little. Then I just happened to see Worlds being made and releasing in A MONTH! My childhood is back. Thank you!!!

    • @rydergolde3169
      @rydergolde3169 ปีที่แล้ว +10

      literally same!
      I haven't played the original Jelly Car or Jelly Car 2 in AGES but I vaguely remember the dumb little cars I drew in JC2 because I was a goof
      also remember hearing a lot of that "wah-wahh" from falling or being stretched too much

  • @rko2016
    @rko2016 ปีที่แล้ว +17

    you said you wouldn't get into technical details of how to do these things,
    but i would actually LOVE an in depth explanation video, i love learning the coding side of simulation and IMO it's the most difficult subject to find guides on besides topology. (as a layman)

  • @rythegy4419
    @rythegy4419 2 ปีที่แล้ว +115

    This is an amazing video. You explain everything so well without getting crazy technical. Can't wait to play the game

  • @Tim_The_Dim
    @Tim_The_Dim ปีที่แล้ว +19

    Jelly car was one of my childhood games, I loved how fun and cute it was
    Thanks for reminding how great a game it was!

  • @PavoneSoftworks
    @PavoneSoftworks ปีที่แล้ว +7

    This is so cool! I used to play JellyCar 2 on Wii. Hard to believe that was over a decade ago. Back when I had no clue how game development worked.

  • @TeslaPixel
    @TeslaPixel ปีที่แล้ว +9

    I remember playing the original jellycar on my iPod as a child over a decade ago, great to see you're still passionate about it. Great game and great video.

  • @owenharrison8012
    @owenharrison8012 2 หลายเดือนก่อน +1

    This might be my favorite video on youtube right now. Im trying to make a softbody game of my own, this is huge inspiration and nostalgia!

  • @Chickenkeeper
    @Chickenkeeper 2 ปีที่แล้ว +36

    Thanks for making this video, it's exactly what I was hoping for! I'd been working on a little softbody toy but was having trouble with buckling. Your solution to that is just what I'm after, and you also showed that I was on the right track with my collisions, which makes me feel much more confident about that. I'll definitely be recommending this to anyone working on similar projects 🙌

  • @kosherre6243
    @kosherre6243 ปีที่แล้ว +1

    I like hearing the first 2 seconds; "the Jelly Car" sounds sooo phonetic

  • @Ethanthegrand
    @Ethanthegrand 11 หลายเดือนก่อน +1

    I used to play Jelly Car 3 on my IPad 2. It was incredibly fun and very unique. So happy to see a modern sequel!

  • @SuperMaDBrothers
    @SuperMaDBrothers ปีที่แล้ว +14

    Really awesome video. Extremely rare to find someone who actually cares that the audience understands what they’re saying. Awesome visuals and explanations. Not overcomplicated at all.
    But you never talk about FRICTION!!!!! Pretty sure you left this out, I can’t imagine the wheels working the way they do without it

  • @Productions7777
    @Productions7777 2 หลายเดือนก่อน +1

    Can't imagine all the maths behind this, beautiful result

  • @ittixen
    @ittixen ปีที่แล้ว +1

    The perfect fusion of *Gish* and *Elasto Mania*

  • @whytophat
    @whytophat 2 ปีที่แล้ว +6

    my brain expanded 5 times while wathing this.

  • @naturestuf9148
    @naturestuf9148 ปีที่แล้ว +3

    It's rare to see such an original game full of unique 2d platforming ideas. Thank you for sharing how the game is made!

  • @TMinusRecords
    @TMinusRecords ปีที่แล้ว +2

    You made the jelly car games!!! They were amazing

  • @LocalBosnian-99
    @LocalBosnian-99 ปีที่แล้ว +2

    NO FUCKING WAY I THOUGHT THAT GAME WAS SOME KIND OF FEVER DREAM???? HOLY SHIT MAN THANK YOU FOR MAKEING A VIDEO OF IT IVE BEEN SEARCHING FOR IT FOR AGES!!!

  • @memetech-
    @memetech- ปีที่แล้ว +1

    2:20 happens all the time, I find it really funny especially since real jelly does this too

  • @ronaldiplodicus
    @ronaldiplodicus ปีที่แล้ว +1

    Looking at anything Jelly Car related is giving me such insane nostalgia- I legit thought this game was a dream, I need to go play it right now.

  • @Nebuch
    @Nebuch 7 หลายเดือนก่อน

    JellyCar Worlds is a safe space for me among fun-physics platformers. See how it works is fascinating. Developing games myself and usually find "zen" in fun-physics ^_^

  • @dfs-comedy
    @dfs-comedy ปีที่แล้ว +3

    That was really fascinating. I'm a programmer, but not a gamer or a game programmer, and I found this explanation really compelling.

  • @qdeanc
    @qdeanc ปีที่แล้ว +4

    This is so informative and inspiring!
    I've been learning game dev for 7 years. My ideas are overly ambitious, and I've realized I must build a custom physics engine to achieve my goals.
    Seeing how you invented one of my favorite mobile games is incredible. How you solved problems with creative solutions, cleverly show/explain the complex algorithms, and managed to stay humble through it all...I admire you 😤

  • @mattiasfagerlund
    @mattiasfagerlund ปีที่แล้ว +53

    I love this, I had never considered the frame idea to maintain shapes! Brilliant ideas and brilliant presentation! How do you handle friction? I've been looking at verlet integration, and it turns out friction is quite difficult. Everything skates around...

    • @maxmultibamboo891
      @maxmultibamboo891 ปีที่แล้ว +6

      I would imagine you make them both have a friction constant, calculate that as if It is a square on a flat plane, then you distribute the forces based on the ratio of the point’s average masses for that line.

    • @JavierAlfonsoBellotadeFrutos
      @JavierAlfonsoBellotadeFrutos ปีที่แล้ว +3

      As he said in other answers "I sort of gloss over it in the video, but the step where new velocities are calculated for the points in the collision step does in fact take friction into account. In my case I define materials, and then define material pairs that set the friction for that pair.".

  • @Guarrow
    @Guarrow 2 ปีที่แล้ว +3

    I remember playing this when I was younger, it was already one of my favorite flash games. I've been waiting Worlds ever since !! I loved the demo, can't wait to play that

  • @foobars3816
    @foobars3816 ปีที่แล้ว +6

    Oh wow, this is actaully incredible. I had never heard of this game before, but I loved your super clear explination of how the game works. I hope you have huge success!

  • @speedntktzlastname2182
    @speedntktzlastname2182 10 หลายเดือนก่อน

    This game gave my kids so much joy and just hearing the sound effects or music makes them laugh and smile. Now they are young adults pursuing education and careers.

  • @noThankyou-g5c
    @noThankyou-g5c 9 หลายเดือนก่อน +1

    i cant believe i never hear ppl reminisce about this game. when I was a kid this was basically the only game you could get on the original iphone/ipod touch! everything else was like “beer glass simulator”. And this was back when the biggest mobile games were real games and not just addictive feed back loops that manipulated you into watching ads

  • @h4tt3n
    @h4tt3n 3 วันที่ผ่านมา

    Very inspiring! You are really good at explaining the principles behind the game physics without going into too much detail about the math or code. I'm having a blast creating my own soft body physics engine. If anyone wants to implement the shape matching algorithm, there is a really good in-depth explanation on the lisyarus blog, in the post "Making a 2D soft-body physics engine".

  • @fanchink
    @fanchink 2 หลายเดือนก่อน

    I came here thanks to Parking Garage Rally Circuit, and I stayed for the teaching. Offering fun and knowledge: you have my subscription and all my respect 🙏

  • @professeurredstone2134
    @professeurredstone2134 ปีที่แล้ว +5

    How do you manage to simulate the friction between two platform or the wheel and the ground, to push the car in one direction ? (very good explanation btw)

    • @WalaberEntertainment
      @WalaberEntertainment  ปีที่แล้ว +5

      I sort of gloss over it in the video, but the step where new velocities are calculated for the points in the collision step does in fact take friction into account. In my case I define materials, and then define material pairs that set the friction for that pair.

  • @tyelork
    @tyelork ปีที่แล้ว +2

    Really neat video! As a fellow developer myself I always love seeing cool videos showing techniques and logic other developers use and have used for their own projects. Some of these ideas are incredibly ingenious for fast softbody simulations, and could obviously be expanded to 3d as well, at the cost of extra calculations.

  • @bejoscha
    @bejoscha ปีที่แล้ว +2

    This is the video I would have needed all the years back when I was playing with exactly this kind of physics based doodles (using Processing). It is exactly the right amount of explanation with great visual cueing to give me back the itch of "I want to try this". I've never seen the actual game until now, btw. Need to check it out. Thanks for the video.

  • @MrSaemichlaus
    @MrSaemichlaus ปีที่แล้ว

    That's amazing. So many things here that I think I could pull off with some patience. The soft body physics make the game much less predictable, which leaves little opportunity for getting bored.

  • @karlmin8471
    @karlmin8471 ปีที่แล้ว

    I'm a physics student and thanks for your sharing. It's very helpful for us to understand rigidbody physics.

  • @How2Bboss
    @How2Bboss ปีที่แล้ว +3

    I remember playing Jelly Car on my Wii a long time ago. I had no clue that there was a new game!
    I love physics simulations; they're so fun. It would also be nice if you added the macOS version on Steam.

  • @iangsinclair
    @iangsinclair ปีที่แล้ว +2

    Great game, great breakdown. Did wonder : how do you approach friction between your shapes? Would be cool to see your thinking there too. :)

  • @DrNo64
    @DrNo64 ปีที่แล้ว

    TH-cam is finally starting to reccomend me the type of content I actually want to watch!

  • @BuyMyBeard
    @BuyMyBeard ปีที่แล้ว

    Wow! This game was part of my childhood, and now I am an amateur gamedev taking interest in computer physics simulations. This video was super insightful! 😊

  • @littlegamerguy4803
    @littlegamerguy4803 2 ปีที่แล้ว +1

    I can’t wait for this to release, this game was my childhood lol

  • @sendheIp
    @sendheIp 3 หลายเดือนก่อน +1

    Have you encountered situations where the closest point is not correctly identified on the intended edge? For instance, if a point falls from above and penetrates a square near a corner, the closest point may incorrectly be calculated on the side edge instead of the top edge.

    • @WalaberEntertainment
      @WalaberEntertainment  2 หลายเดือนก่อน

      Yes I have. I do have some code that tries to prefer finding points whose normal points “away” from the penetrating point’s normal, but it’s not perfect.

  • @FathomRaven
    @FathomRaven ปีที่แล้ว +1

    This is a really cool video, Jelly Car is so nostalgic for me, being able to see how it works is awesome

  • @AlmondAxis987
    @AlmondAxis987 11 หลายเดือนก่อน

    As a beginner programmer, this helped so much for my physics engine I made! And the collision detection was also fairly simple unlike SAT algorithm.... Huge Thanks!

    • @gmdrandom6287
      @gmdrandom6287 10 หลายเดือนก่อน +1

      SAT imo is simpler for collision resolution though

  • @sear9993
    @sear9993 ปีที่แล้ว

    I remember sitting in 2nd grade computer lab playing belly truck and my friend asked me what I was playing. This was one of my favorite games from my childhood.

  • @lucbloom
    @lucbloom ปีที่แล้ว

    Greatest way to discover a fun game: a devlog.

  • @EmilMacko
    @EmilMacko ปีที่แล้ว +1

    For the point-in-shape collision detection, wouldn't it have been cheaper use the winding number method? That way you just calculate N angles for the N points in the shape, instead of calculating between 1 and some higher number of line intersections?

    • @WalaberEntertainment
      @WalaberEntertainment  ปีที่แล้ว +2

      Probably! It’s still N checks either way so it really depends on how you attempt to optimize the internals of the algorithm I think.

  • @giantisopod
    @giantisopod ปีที่แล้ว +1

    Ah yes, I remember playing this when it was still called JelloCar. Then a few years later everybody at my school started playing it on their iPods. I always wondered how it was implemented, so I was very excited to find this video on my TH-cam front page today. Great explanation! I had always assumed it was more complex, but it seems like you can get away with a lot of approximations in game physics. That explains how it managed to run in real time on low powered hardware. Before this, I thought it might be some kind of FEM system, but that would probably be too slow...

  • @Cameo221
    @Cameo221 2 ปีที่แล้ว +1

    Shape matching is quite popular with certain types of games. They will use it to make a ragdoll attempt to match an animated character for example.

  • @Gxaps
    @Gxaps 11 หลายเดือนก่อน

    I used to play this game as a kid. Nowadays, I do game modding, and I’m totally gonna use this for modding purposes!

  • @Cameo221
    @Cameo221 2 ปีที่แล้ว +3

    Beautiful video! This is awesome. Probably the best soft body explanation out there. ❤️

  • @sagrgywejhxcvx
    @sagrgywejhxcvx 11 หลายเดือนก่อน

    DEAR dude, I repeated everything you said, and it WORKS!!! thanks

  • @PhiLudo
    @PhiLudo 2 ปีที่แล้ว +1

    absolute amazing video. i love how you used the debugs to visually explain everything. you even helped me with an solution to my rope physics.

  • @bixarrio5251
    @bixarrio5251 2 ปีที่แล้ว +1

    Lovely. You make the complicated stuff sound so simple. Thank you, this was great!

  • @amrosebirani
    @amrosebirani 5 หลายเดือนก่อน

    This is amazing, loved the way you have described the entire physics setup. Thanks for inspiring !!

  • @JKa244
    @JKa244 ปีที่แล้ว

    It's interesting that one of the failure cases for collision detection is actually a half-ass simulation of impalement. Thin object passes through broad side of another object if it moves quickly enough.
    Then collision still occurs keeping it in place

  • @prietjepruck
    @prietjepruck ปีที่แล้ว

    What a great explanation of the system behind soft body simulation I'm currently busy making my own project and this video helped a lot. I actually bought the game to compare your simulation with mine. Thanks a lot.

  • @salmonsushi47
    @salmonsushi47 ปีที่แล้ว +2

    You delivered every thing in a digestible way that anyone with a good knowledge of codding can recreate it THANKS!!! for the video you earned a sub.

  • @iamsushi1056
    @iamsushi1056 ปีที่แล้ว

    What a blast from the past. Some of those levels were quite difficult.

  • @johnsane2694
    @johnsane2694 ปีที่แล้ว

    Just a little fun fact: I am currently working on data augmentation for AI in cytology (cell images). I was looking for a way to simulate cell interactions and deformations and remembered the physics of JellyCar, which I played years earlier. Came here and found a really good working solution for my case! Thanks a lot! I'll mention you in the paper references :)

  • @AlanZucconi
    @AlanZucconi 2 ปีที่แล้ว +1

    This is such a good video!
    Thank you for taking the time making this! 🙏

  • @SeanStClair-cr9jl
    @SeanStClair-cr9jl ปีที่แล้ว +2

    Awesome. Videos like these are so incredibly helpful, thank you!

  • @worthstream
    @worthstream ปีที่แล้ว

    Your clever marketing plot has worked. I need to buy this! See you on Steam.

  • @Choolio94
    @Choolio94 2 ปีที่แล้ว +1

    I played the original jelly car game so many years ago and loved it. I found you recently on TikTok. I was so excited for this game and I love these informational videos. I would honestly be even more interested in deep dives if you'd be willing to make them. I can't wait for the game to come out next month!

  • @willd4686
    @willd4686 ปีที่แล้ว

    Thank you for making the Jelly Car games!

  • @678crazydave
    @678crazydave ปีที่แล้ว

    Incredible video. I used to play this game on the OG Ipod touch. You really explained everything clearly and concisely.

  • @michaeljburt
    @michaeljburt 7 หลายเดือนก่อน

    This video is incredible. It blew my mind quite a bit. Nice work!

  • @fntthesmth423
    @fntthesmth423 ปีที่แล้ว

    I for one deserately want a video from the sound designer of jelly car because some guy standing right behind my shoulder softly making "blorp" and "pling!" Sounds is genius

  • @TheGooEater
    @TheGooEater ปีที่แล้ว

    This brings joy.
    Reminds me of Gish, i love that game.

  • @zehdread
    @zehdread ปีที่แล้ว +6

    Super interesting! I'm curious, how did you do the conveyor belts? Do you actually move the point masses around or you hack the collision function and add a little tangent velocity to the final contact?

  • @georginikoloff9280
    @georginikoloff9280 ปีที่แล้ว

    This video quality is god tier. Thanks for making this.

  • @john.dough.
    @john.dough. ปีที่แล้ว

    I haven't thought about this game in years! What a great video!

  • @VyvyanTheGreat
    @VyvyanTheGreat ปีที่แล้ว

    What a cool breakdown. Some of these implementations are super clever!

  • @mylegispotato
    @mylegispotato ปีที่แล้ว

    Whoa, you are the original creator of JellyCar 1 Originally played it on iPhone 3G, it was one of my favorite games. Games back then were so much cooler, no ads, well optimized and not overwhelming. Just what smartphones needed. Too bad it's probably just nostalgia. Loved it anyway!

    • @WalaberEntertainment
      @WalaberEntertainment  ปีที่แล้ว

      try out the new one and let me know if it's just nostalgia :P

  • @namok-wx6xn
    @namok-wx6xn ปีที่แล้ว

    jelly car and jelly train was my childhood man

  • @barrettkepler7618
    @barrettkepler7618 ปีที่แล้ว

    Thank you for your video!
    I played your game on PSP when I was a kid and I had so much fun!

  • @juanma9868
    @juanma9868 6 หลายเดือนก่อน

    Well yeah this is it, this inspired me to try build this, it's so well explained, this is just a functional document, where now i can do a tech document of how to implement this and try to build this.
    Thanks man, i have a super hard time getting inspired to do things because i suck at creating ideas, im the kind of programmer that do stuff that others tells me instead of creating stuff, and this is the perfect content for me

  • @cpt_nordbart
    @cpt_nordbart ปีที่แล้ว

    Wow that takes me back a few years.

  • @RoboMarchello
    @RoboMarchello ปีที่แล้ว

    Hello! Thank you so much! This video helped me a lot for my soft body simulation. soft body simulations are really fun topic. Gg on releasing jellycar worlds

  • @happyhorse7886
    @happyhorse7886 2 ปีที่แล้ว +1

    Thank you so much for making this. Learned a lot!

  • @judiethai9172
    @judiethai9172 ปีที่แล้ว +1

    Awesome video! I've been working on making a game where the character is a soft body, but only using Unity's 2D physics system and components. Glad that I ended up using a similar point-spring set up :D

  • @batner
    @batner ปีที่แล้ว

    Thanks man! Very interesting. My hands are now itching to write something visual.

  • @razi_man
    @razi_man ปีที่แล้ว

    Wait... YOU'RE THE GAMEDEV OF JELLY CAR!?!
    I LOVE JELLY CAR! I still have the third Jelly Car game (Jelly Car 3) saved in my backup apps folder along with the save data backup!

    • @WalaberEntertainment
      @WalaberEntertainment  ปีที่แล้ว

      Amazing! You might want to join the discord, we are trying to archive all the classic levels and you might have some! There is a link on my website for the discord

  • @warguy6474
    @warguy6474 ปีที่แล้ว

    wow... I did not expect that collisison detection method

  • @alexanderkahn
    @alexanderkahn 6 หลายเดือนก่อน

    Eliot sent me. Brilliant video, thanks so much.

  • @TheChiptuner
    @TheChiptuner 2 ปีที่แล้ว

    This video really makes me want to get more into game development. Fantastic vid, can’t wait for the full game’s release!

  • @Notester82
    @Notester82 ปีที่แล้ว

    Wow, what an approachable look at what felt daunting to dive into at first! Also never would've thought about the technique you described for seeing if a point is inside of a shape or not, that feels clever. .u.

  • @GuyThatCREATESRandomStuff
    @GuyThatCREATESRandomStuff ปีที่แล้ว +1

    12:01 looks like a 3D object

  • @rungeon83
    @rungeon83 ปีที่แล้ว +2

    This was such a fantastic video, I'm very much a visual learner, but I'd have loved a long winded tutorial 😂. It gave me a lot to think about and I'm looking forward to trying a few techniques.

  • @jafsterlordbib
    @jafsterlordbib ปีที่แล้ว

    Great stuff. Makes me wanna try some soft body physics

  • @spaarm
    @spaarm ปีที่แล้ว

    Jelly car was the first app I ever downloaded on my iPod touch years and years ago

  • @johnstevenson5084
    @johnstevenson5084 ปีที่แล้ว

    I loved jellycar on cool math games

  • @Heavenira
    @Heavenira ปีที่แล้ว

    This is SO digestible, i love it!!

  • @guitarstuffig
    @guitarstuffig ปีที่แล้ว

    Omg I want to thank you for reminding me of this game from when I was a kid

  • @AzureLow
    @AzureLow 2 ปีที่แล้ว +1

    very good video and I learnt a lot! thanks, walaber! :)

  • @gammada1david57
    @gammada1david57 2 ปีที่แล้ว +1

    You can absolutely guarantee I’m telling as many people I know as I can about this game!!

  • @fazbeark1ng
    @fazbeark1ng ปีที่แล้ว

    this was my favorite cool math game :]

  • @solcloud
    @solcloud ปีที่แล้ว

    Really good examplanation and visuals. Thank you ❤

  • @CreatorofSecks
    @CreatorofSecks ปีที่แล้ว

    God, jelly car... how I miss this game

  • @StefanHayden
    @StefanHayden ปีที่แล้ว

    amazing video! Love long videos like these.

  • @Artem-u5e9c
    @Artem-u5e9c ปีที่แล้ว

    It's amazing! Please make the explanation math and physics you using video course with code examples. I would like to buy it for money! You cool, man!

  • @DetectivePoofPoof
    @DetectivePoofPoof ปีที่แล้ว

    Awesome video, great information and the game looks so fun I immediately bought it!