Unity Collision Cheat-Sheet - Discrete vs Continuous

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024

Комментарии • 195

  • @MasterDavicous
    @MasterDavicous Год назад +228

    A fun trick I like to use in some instances is stretch the projectile's collider according to its velocity. This way it still detects collisions at high speeds on discrete mode! :)

    • @Tarodev
      @Tarodev  Год назад +61

      Oh wow, that's an awesome little trick!

    • @alex.g7317
      @alex.g7317 Год назад

      sick

    • @joscpe
      @joscpe Год назад +7

      I know a thing or two about stretchy projectiles

    • @alex.g7317
      @alex.g7317 Год назад

      @@joscpe Is this a dick joke?

    • @JuniorDjjrMixMods
      @JuniorDjjrMixMods Год назад +4

      Scale a collider is costly iirc. Maybe the cost is higher than the benefit.

  • @iHeartGameDev
    @iHeartGameDev Год назад +36

    Never pressed a notification so fast! Welcome back, Taro!!

  • @dragonlance1121
    @dragonlance1121 Год назад +71

    Nice! I have wondered about this for a while. There are so many Unity options that have no explanation tips, you could make a dozen videos like this easily, and I'd watch every one of them. By the way, you are mentioned in the Credits section of the game I am making, for all your great tutorials. Thanks!

    • @Tarodev
      @Tarodev  Год назад +23

      I'd love to play it when you're done. Come to discord and drop it in when you're ready :)

  • @neilmarkcorre5524
    @neilmarkcorre5524 Год назад +21

    Straight to the point, impressive and easy-to-understand visuals, concise - overall a brilliant video! This deserves to be shared EVERYWHERE.

  • @x-easy
    @x-easy Год назад +18

    This is awesome! Daniel Irving had a good idea; putting you in the credits section of my upcoming game. Thanks a ton for what you do!

    • @Tarodev
      @Tarodev  Год назад +6

      I would be honoured to be in there ❤️ as I said to him, be sure to drop your game in discord so I can check it out.

  • @NoTimeLeft_
    @NoTimeLeft_ Год назад +2

    The quest for quaternions has envelopes tarodev so utterly completely, he may never be the same again.

    • @Tarodev
      @Tarodev  Год назад +2

      Very VERY soon my friend

  • @MassimoRough
    @MassimoRough Год назад +6

    Here! That's some high quality content in here! Was missing you, good job!

    • @Tarodev
      @Tarodev  Год назад +2

      Thanks for waiting 🙏

  • @dibaterman
    @dibaterman Год назад

    This... I have wall boundaries in my project, it's rare but sometimes when something moves too quickly they go through the wall. YT recommending this was so timely.

  • @petpumpkin
    @petpumpkin Год назад +6

    This is great, I'd love to see more dives into what the settings of components actually do

  • @attenurmi936
    @attenurmi936 Год назад +3

    Concept explanation and video quality 13/10! Would watch again!

    • @Tarodev
      @Tarodev  Год назад

      That's a high rating my man

  • @Beldarak
    @Beldarak Год назад +2

    Thanks. I never took the time to ask myself what different modes did. super helpful and straight to the point :)

  • @triplezgames3882
    @triplezgames3882 Год назад +3

    Awesome! We're still waiting for quaternions though, please don't leave us hanging 🙏

  • @wayward8372
    @wayward8372 10 месяцев назад +1

    Further to another comment - this video gives clarity, with clear, easy to understand visuals and example use cases and concise. Great.

  • @Chubzdoomer
    @Chubzdoomer Год назад +1

    One of the best breakdowns of the collision types I've ever seen. Fantastic work as usual (and another great reminder why I've stayed subscribed to this gem of a channel)!

  • @Subreeze102
    @Subreeze102 Год назад +4

    Great execution on the short but informative cheatsheet video!

  • @pavelholub6275
    @pavelholub6275 Год назад

    This channel is piece of gem! Fast, simple, but explain enough to understand by almost everyone! I just love it.

    • @Tarodev
      @Tarodev  Год назад +1

      Had me worried reading "a piece of...".
      Glad you like it 😀😀

  • @aryajohary5922
    @aryajohary5922 Год назад +1

    That Byeeeeeee was fun..😂

  • @ThiccyDev
    @ThiccyDev Год назад +2

    Tarogoat with another banger upload ngl🐐

  • @landixus
    @landixus Год назад +2

    After 10 years, i understand it :)

  • @ayushsidam289
    @ayushsidam289 Год назад +1

    Thanks Taro I'm beginner and always used continuous collision before. This video changed my mind. 😀🙌🏻

  • @hamedbabamohamadi9017
    @hamedbabamohamadi9017 Год назад +2

    Missed you! glad to watch another amazing video from you.

  • @PitiITNet
    @PitiITNet Год назад +1

    So good to have another of your videos :)! I missed you already :D

  • @2PANZER2
    @2PANZER2 Год назад +2

    nice short video for beginners
    also you can make about collisions. When does happen ontriggerenter/oncollisionenter, what difference and etc

  • @ojassharma56
    @ojassharma56 Год назад +1

    Just brilliant, and so helpful. I would recommend these anyday to my junior devs who can learn from you just like once I did, and I keep learning from you everyday since

  • @tansangle7226
    @tansangle7226 Год назад +1

    Woah, great video mate!

  • @ChristinaCreatesGames
    @ChristinaCreatesGames Год назад +2

    Oh, cool, I had wondered about this recently. Good explanation and I love your visuals =)

  • @ShinichiKudoQatnip
    @ShinichiKudoQatnip Год назад +2

    Woah, now this bite size info will go a looooong way for me. ❤️

  • @ewwitsantonio
    @ewwitsantonio Год назад +1

    Yay another tarodev video!

    • @Tarodev
      @Tarodev  Год назад

      Kept you waiting ;)

  • @murftg
    @murftg Год назад +1

    king has returned

    • @Tarodev
      @Tarodev  Год назад

      Thanks for waiting on me 🙏

  • @ishan9050
    @ishan9050 Год назад

    Now this is what we call "Back with a Bang"
    Missed your videos...

  • @maxhuk
    @maxhuk Год назад +1

    Nice breakdown!

  • @rathodketan5551
    @rathodketan5551 Год назад +1

    yes please make videos like this we love it thank you

  • @OfflineOffie
    @OfflineOffie Год назад +2

    Nice quick explanation!
    _But where's the promised Quaternion video Taro, hmm?_

    • @Tarodev
      @Tarodev  Год назад

      Oh yeah... that. Just around the corner

  • @_g_r_m_
    @_g_r_m_ Год назад +1

    He's back!

    • @Tarodev
      @Tarodev  Год назад

      Never left baby
      ... maybe a little

  • @Paul-Jean
    @Paul-Jean Год назад +1

    It is very well explained. Very useful cheat sheet, thanks. (The video support helps me understand better than just pictures and text.)
    Otherwise, I wonder, for the thumbnail image of this video, what type of font you are currently using? I love this typography.

    • @Tarodev
      @Tarodev  Год назад +1

      It's called 'You Blockhead'. It's the same font supercell uses. You can buy a license pretty cheap.

  • @LawZist
    @LawZist Год назад +1

    Short and to the point! Very informative. Thanks

  • @pixelsoupgames
    @pixelsoupgames Год назад +1

    Thank you, this is great info provided quickly

  • @MattSimon1
    @MattSimon1 Год назад +2

    Short and sweet. Love it!

  • @mayankbhaisora2699
    @mayankbhaisora2699 Год назад +1

    Wizard is back

  • @Fiiloret
    @Fiiloret Год назад +1

    Finely the best describe of this options

  • @veuch_
    @veuch_ Год назад +1

    Huh, that's pretty handy ! Thanks ! :)

  • @wicgamesdev
    @wicgamesdev Год назад +1

    Thank for the knowledge mate

  • @This-Was-Sparta
    @This-Was-Sparta Год назад +1

    That's some good knowledge, thanks.

  • @pachaselektah
    @pachaselektah Год назад

    thanks, it actually let me through so i could download it.

  • @midniteoilsoftware
    @midniteoilsoftware Год назад +4

    Nice but I want to see more on the new multiplayer services :)

    • @Tarodev
      @Tarodev  Год назад +3

      Coming soon :D

  • @Damiano401
    @Damiano401 Год назад +1

    Great explanation

  • @googleuser4720
    @googleuser4720 Год назад +1

    Succinct and to the point. I like it

  • @aliengarden
    @aliengarden Год назад +2

    Great video, as always!

  • @abdrnasr
    @abdrnasr Год назад

    For the problem of ghost collisions with rotaion in speculative mode one solution that I can think of is to lag the collider of the rotating object based on its speed, so that when it ghost collides the actual mesh would be leading the collider.

  • @IAmYes.
    @IAmYes. Год назад +1

    Amazing visuals!!!!

  • @あれくす
    @あれくす Год назад +1

    these videos are so great.

  • @lokeshyadav8748
    @lokeshyadav8748 Год назад

    ITS REALLY WORKED LOL THANK YOU DUDE

  • @tiagobarracha
    @tiagobarracha Год назад

    I use Physics.OverlapBox as the collider. This never misses (at least until now). I don't know about its performance, but I only make mobile games and never had an issue

  • @csidesummit
    @csidesummit Год назад

    That was such an excellent visual! So incredibly helpful1

  • @asmr_codster
    @asmr_codster Год назад +1

    Thanks for the video

  • @jahoopyjaheepu497
    @jahoopyjaheepu497 Год назад +1

    Great video!
    The tradeoffs with traditional Rigidbody collisions are why I almost always opt to write my own collision detection and resolution using a Kinematic Ridigbody.

  • @awesomemike3857
    @awesomemike3857 Год назад +1

    Thank you for this

  • @mwn02
    @mwn02 Год назад +1

    Great video!!!

  • @DevDunkStudio
    @DevDunkStudio Год назад +1

    Thanks!
    Idk why, but this info is hard to find

    • @Tarodev
      @Tarodev  Год назад +1

      Sounds like the perfect reason to make a video 😊

    • @DevDunkStudio
      @DevDunkStudio Год назад

      @@Tarodev definitely! Hope it does well

  • @lakemonstergames32
    @lakemonstergames32 Год назад

    Beautiful presentation! It was so informative and concise.

  • @enescetinn
    @enescetinn Год назад +1

    Just awesome!

  • @bluzenkk
    @bluzenkk Год назад +1

    thanks for the info.

  • @maxherrmann1182
    @maxherrmann1182 Год назад +3

    Great vid, seams really helpful but dude... what happened to the quaternion vid? xD

    • @Tarodev
      @Tarodev  Год назад +1

      Oh mate, any day now

  • @calvinms7503
    @calvinms7503 Год назад +1

    THANKS!

  • @mohammedamine5553
    @mohammedamine5553 Год назад

    it worked! thank you so much!!

  • @mazdnd
    @mazdnd Год назад +1

    Comment to help youtube alog gods understand this is great

    • @Tarodev
      @Tarodev  Год назад

      Too kind 🙏
      YOU HEAR THAT RUclips?

  • @FoolishCrow
    @FoolishCrow Год назад +1

    Thank you for the explanation.

  • @RootTheCoop87
    @RootTheCoop87 Год назад +2

    I don't know what I'm doing wrong, but no matter which option I choose and no matter how slow or fast the two objects are that have a rigidbody, they go right through each other if I add a script to them. Doesn't matter if I move the objects with transform or by the rigidbody. The only time they don't pass right through each other is to not add scripts to them, which is pointless when making platforming traps. I didn't have this problem until I switched to the newest version on Unity.

    • @Tarodev
      @Tarodev  Год назад

      That is... Bizarre. Does this happen with any script or a specific one?

    • @RootTheCoop87
      @RootTheCoop87 Год назад

      @@Tarodev Any script, even scripts I've used in older builds of Unity with no issue. I bought a controller, but I didn't like it, removed it. I don't know if that changed some setting I've never used or seen before. That's why I rarely use Unity assets. The only time I've haven't had issues on a project, are ones without Unity assets.

  • @alex.g7317
    @alex.g7317 Год назад +1

    I love the tips!

  • @vladyslavlytovchenko5057
    @vladyslavlytovchenko5057 Год назад

    awesome explanation. thank you =)

  • @Hazzel31337
    @Hazzel31337 Год назад +1

    verry good and verry informativ

  • @MaskedImposter
    @MaskedImposter Год назад +2

    I had a tunneling issue with a parabolic projectile tunneling through the ground. I just decided to increase the size of its collider.

  • @notDiru
    @notDiru Год назад +1

    what an extraordinary explanation!

    • @Tarodev
      @Tarodev  Год назад

      Thanks stranger

    • @notDiru
      @notDiru Год назад

      @@Tarodev 😨😭😭😭😭😭😭

  • @kineticconundrum
    @kineticconundrum Год назад +1

    ty

  • @zendraw3468
    @zendraw3468 Год назад +1

    you can just keep it descrete and modify the collision box depending on the speed

    • @Tarodev
      @Tarodev  Год назад

      Somebody else mentioned this, and it's a very cool idea. Had experience doing it this way?

    • @zendraw3468
      @zendraw3468 Год назад

      @@Tarodev not in unity, but it works fine.

  • @shoco2
    @shoco2 Год назад +1

    Great video!

  • @alextreme98
    @alextreme98 Год назад +1

    The next Brackeys is here 😇

    • @Tarodev
      @Tarodev  Год назад +1

      Making me blush over here guy

    • @alextreme98
      @alextreme98 Год назад

      @@Tarodev I enjoyed all your tutorials since the beginning. Also the discord community. Kutgw and you will become even more successful 🔥💯

    • @Tarodev
      @Tarodev  Год назад +1

      @@alextreme98 thanks for sticking around since the early days 😊

  • @NunSuperior
    @NunSuperior Год назад +1

    Super useful.

  • @octia2817
    @octia2817 Год назад +1

    Is there no solution for accurate collisions with rotating objects?

  • @monishdhayalan2552
    @monishdhayalan2552 Год назад +6

    quaternion made this man quit

    • @Tarodev
      @Tarodev  Год назад

      Almost brother...

  • @tomkc516
    @tomkc516 Год назад +1

    Great video! Minus points for no bearded face though...

    • @Tarodev
      @Tarodev  Год назад +1

      I look like a homeless right now

    • @tomkc516
      @tomkc516 Год назад +1

      @@Tarodev hot!

  • @BHPhoenix
    @BHPhoenix Год назад +1

    GOD!!!My broo

    • @Tarodev
      @Tarodev  Год назад

      Was this helpful siph?

  • @abdulist3071
    @abdulist3071 8 месяцев назад

    thanks!

  • @harrywizards3323
    @harrywizards3323 Год назад +1

    Hlo pls tutorial on esl

  • @varunsuresh22
    @varunsuresh22 Год назад

    finally someone address this..

  • @trashcaster
    @trashcaster Год назад

    What is the best option to use in the case of a bullet-hell game or a game where a player may mod their weapons to fire 10s of projectiles per second, with 100s on screen?
    Ray Cast per projectile? Or the built in collider solution?
    I've attempted the raycast option before, but always had tunneling as well (as if the projectile just never "hit"), but with much better performance than rigidbody/colliders. I raycasted from the projectile, forward by units equal to the "travel speed" of the projectile, and even slow projectiles would occasionally just act like the ray cast missed

  • @FreshWaffles3
    @FreshWaffles3 Год назад

    Could you do a video on unitys built in coding mechanics, such as Time.deltaTime or GetAxis, and list the 10-20 most important of them and explain how to use them? I watched a 4 hour video and learned the basics of coding but now when I go into Unity I can't figure out what to do because I don't know what the unity coding mechanics are and so I cant effect the unity editor

    • @Tarodev
      @Tarodev  Год назад

      I quite like this idea! Basically a unity keyword tutorial. I'll write this down, thanks :)

    • @FreshWaffles3
      @FreshWaffles3 Год назад

      @@Tarodev no, thank you for all these amazing tutorials!!!

  • @youcancallmedoggie
    @youcancallmedoggie Год назад +1

    Hello there!

  • @zeldinus
    @zeldinus Год назад +1

    Algo comment.

    • @Tarodev
      @Tarodev  Год назад

      Appreciate it 😉

  • @Tropicaya
    @Tropicaya Год назад +3

    And why should we believe you? lol.
    Thanks. Great explanation.

    • @Tarodev
      @Tarodev  Год назад +2

      I am papa Taro

    • @Tropicaya
      @Tropicaya Год назад +1

      @@Tarodev Heyy. That's enough for me. 😂😀

    • @abdrnasr
      @abdrnasr Год назад +1

      Trust him bro xD

  • @maeld7993
    @maeld7993 Год назад

    Mlk, se pá que o canal foi hackeado

  • @jstra
    @jstra Год назад

    Very helpful video! Thank you!

  • @jankrajewski6170
    @jankrajewski6170 Год назад +1

    I gave the 666th like YEAH! \../

  • @restushlogic5794
    @restushlogic5794 Год назад +1

    I tot u were quit yt

    • @Tarodev
      @Tarodev  Год назад +1

      I would never leave you

    • @restushlogic5794
      @restushlogic5794 Год назад +1

      @@Tarodev so sweet... 🤣
      Anyway, UI Toolkit will become popular soon. Please try make a video about UI Toolkit. It's most easier than Quaternion I believe.

    • @Tarodev
      @Tarodev  Год назад

      @@restushlogic5794 hah... Yes good suggestion. It's in my radar

    • @restushlogic5794
      @restushlogic5794 Год назад

      @@Tarodev Awesome 🔥

  • @MandyLeeYT
    @MandyLeeYT Год назад

    Byeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

  • @EngineersToGoMT
    @EngineersToGoMT 5 месяцев назад +1

    Broooo !!! this here was helpfull. I didn't even know what was going on with my objects going through walls. This was too helpful

    • @Tarodev
      @Tarodev  5 месяцев назад

      Glad it helped you my man

  • @castlecodersltd
    @castlecodersltd Год назад +1

    Very good, thanks

  • @babbycakes173
    @babbycakes173 Год назад +2

    that is a great video

    • @Tarodev
      @Tarodev  Год назад

      Glad you like it

  • @jean-michel.houbre
    @jean-michel.houbre Год назад +1

    Very clear, thanks.

  • @Algost_
    @Algost_ Год назад +1

    More like this plz ! Thx