Explosions in Unity! Let's blow some stuff up ;)

Поділитися
Вставка
  • Опубліковано 21 чер 2021
  • Make stuff explode in Unity! Satisfying explosions can add heaps of enjoyment to your players. Learn how to shatter objects, use the AddExplosionForce function and take your game to a whole new level ;)
    Breakable.cs: pastebin.com/0JVgSs43
    Explosive.cs: pastebin.com/Z7jkBKcP
    Cannon: bit.ly/3vGOWe4
    ❤️ Become a Tarobro on Patreon: / tarodev
    =========
    🔔 SUBSCRIBE: bit.ly/3eqG1Z6
    🗨️ DISCORD: / discord
    ✅ MORE TUTORIALS: / tarodev

КОМЕНТАРІ • 71

  • @aquafina2on217
    @aquafina2on217 Рік тому +7

    please make a video on how you made the particle effect for the explosion

  • @sinetwo
    @sinetwo 2 роки тому +1

    I loved this tutorial, really clean, simple and straight to the point

  • @raoulbest5395
    @raoulbest5395 3 роки тому +2

    As always, amazing video quality and cool esthetics, love the content

  • @a3dadventure79
    @a3dadventure79 10 місяців тому +2

    it's short and sweet but there is a lot of great stuff in here: the basic blender workflow, the physics especially the explosion force, then the spherecast to capture whatever is in the explosion radius, and more. thanks!

  • @paulorodriguez6288
    @paulorodriguez6288 3 роки тому +6

    damn, i never thought i'd enjoy watching some exploding cubes, this is a pretty cool technique, thank you

  • @robertbooth4645
    @robertbooth4645 Рік тому

    Great video! Exactly what I needed! Loved the Blender bonus! I had to adjust the settings to fracture my object satisfactorily but you opened the door nicely!! Thank you!

  • @rhow9724
    @rhow9724 3 роки тому +1

    Another quality video! Thanks Tarodev

  • @dirzz
    @dirzz Рік тому

    Amazing tutorial, thank you!

  • @capnnemo5330
    @capnnemo5330 Рік тому

    Thanks mate. Informative and entertaining.

  • @dadasss69
    @dadasss69 Рік тому

    Aaaaand I know what I'm going to implement tonight - thank You :)

  • @B4NTO
    @B4NTO 8 місяців тому +1

    Really cool and usefull stuff, adding this to my project :)!

  • @gmangman123
    @gmangman123 Рік тому

    Good tutorial thx my friend!

  • @aaron95223
    @aaron95223 Рік тому

    awesome tutorial! thank you very much :)

  • @caleb6067
    @caleb6067 3 роки тому

    Holy smokes Tarodev! Nothing but good content from this mans.

    • @Tarodev
      @Tarodev  3 роки тому

      Glad you enjoyed it 😊

  • @charithnirmal5823
    @charithnirmal5823 Рік тому

    Brilliant work 👏 👍 👌

  • @holosoft
    @holosoft 2 роки тому

    Awesome! Thank you

  • @garyspencer1951
    @garyspencer1951 3 роки тому +1

    Awesome Stuff

  • @raandomplayer8589
    @raandomplayer8589 6 місяців тому

    Ty for the tutorial

  • @zakilenck9759
    @zakilenck9759 Місяць тому

    thank you so much

  • @dondejavier6382
    @dondejavier6382 Рік тому

    Thank u Señor Tarodev

  • @yarriksauker993
    @yarriksauker993 2 роки тому

    THANK YOU SO MUCH

  • @knowingph5802
    @knowingph5802 Рік тому +1

    because your video I made my games perfect zombie dismembered

  • @canofsoda
    @canofsoda 3 роки тому +1

    woah just found your channel from a vid you posted on unity's website and im very glad I have

    • @Tarodev
      @Tarodev  3 роки тому +1

      Glad to have you here. Hopefully I can teach you some stuff 😊

    • @futuretrunks6927
      @futuretrunks6927 2 роки тому

      @@Tarodev Please do a tutorial about your scene(lighting/post processing). how does it looks sooo goood ?

  • @GrayFoxware
    @GrayFoxware Рік тому +1

    This video was the bomb.

  • @pedropc5824
    @pedropc5824 2 роки тому

    Bro thank you so much. Now i can use some breakables bottles on my game

    • @Tarodev
      @Tarodev  2 роки тому +1

      Enjoy brother!

  • @MrScripts.
    @MrScripts. 8 днів тому

    Huge shoutout bro! I am doing a videogame using your script! i will mention you everywhere ofc!

  • @Nick-rq4gy
    @Nick-rq4gy 2 роки тому

    awesome love it🚀😁🥇

    • @Tarodev
      @Tarodev  2 роки тому +1

      Go make some explosions 💣

  • @m-_-mad3930
    @m-_-mad3930 Рік тому

    where did you get the materails from they look so nice

  • @h.k.b6340
    @h.k.b6340 2 роки тому

    thanks its work good

  • @kellyrodgers9326
    @kellyrodgers9326 7 місяців тому

    Awesome tutorial thanks. ...Ok one more 🤣
    It's been raining rubble for days at my place

  • @marekjasinski9558
    @marekjasinski9558 Рік тому

    Wow it's look very nice 😊
    Could you tell how to make the materials like you have?

  • @demonic_little_grey_cat691
    @demonic_little_grey_cat691 24 дні тому +1

    I just sub because of this video

    • @Tarodev
      @Tarodev  24 дні тому

      Welcome aboard 😉

  • @theexcessive6712
    @theexcessive6712 3 роки тому +6

    I achieved a similar effect in a VR game I was making this method is cleaner and better than mine thanks. I would really like to know how you achieved the glossy effect on your cubes they look great

    •  3 роки тому +1

      I would also be interested in knowing more about the material

    • @sayankabir7958
      @sayankabir7958 2 роки тому

      those are using Toony Colors Pro 2 shaders

  • @noobcraft5712
    @noobcraft5712 3 роки тому +2

    BOOM!

  • @titan2969
    @titan2969 Рік тому

    can you do a tutorial for lighting?

  • @ktk47
    @ktk47 2 роки тому

    Thanks for the awesome tutorial. Also, how did you put up that outline thing for cubes ?. I really need that effect for one of my project. I saw a YT vid where he creates custom post processing effect for outlining (Yeah i need that effect for whole objects in the screen, like BORDERLANDS) but as i am not much "SHADER" person i couldn't implement it. Could you please tell or share any references. TIA

    • @shivamanand25
      @shivamanand25 Рік тому

      he is using TOONY COLORS PRO on asset store

  • @aquafina2on217
    @aquafina2on217 Рік тому

    how did you make the material for the boxes

  • @stbny4444
    @stbny4444 Рік тому

    i was hoping you'd do like 5 more.

  • @a3dadventure79
    @a3dadventure79 10 місяців тому

    could you share the source (perhaps tutorial) for that toon shader you use? thanks

  • @__Rizzler__
    @__Rizzler__ 10 місяців тому

    noice noice

  • @TruongThinhNguyen-iv8bx
    @TruongThinhNguyen-iv8bx 4 місяці тому

    Hi, how to create a black border around the box?

  • @markegan2570
    @markegan2570 2 роки тому

    How do you have the cannon ball exploding and doing the damage?
    Do you make it breakable and put the explosion script on it?
    And also explosion noise. Thanks! i subscribed. 😁

    • @Tarodev
      @Tarodev  2 роки тому

      The force is provided by the ExplosionForce function :D

  • @Mrskull500
    @Mrskull500 10 місяців тому +1

    Is there a way to make the shattered parts after the explotion dissapear after some time so the floor isn't covered in debris?

    • @Tarodev
      @Tarodev  10 місяців тому +2

      When you spawn them, you can destroy them after some random time, like:
      Destroy(theGameObjectYouWantToDestroy, Random.Range(5,10));
      For extra juice, you may want to subtly fade them first, or even scale them down to 0 before destroying.

  • @aleliu2458
    @aleliu2458 7 місяців тому

    Why my object with the explosion script will explode as soon as it touch the ground? no matter the mass of the object

  • @holodri69
    @holodri69 8 місяців тому

    Thank you so much for your work! My only Problem is that the TNT Object don’t disappear after explosion!? What do i wrong?

    • @holodri69
      @holodri69 8 місяців тому

      Fixed! Forgot to apply Particle… now it works flawless

  • @random_precision_software
    @random_precision_software 2 роки тому +1

    How PERFORMENT is get rigid body component in a for each loop ?

    • @Tarodev
      @Tarodev  2 роки тому

      I would previously say you shouldn't do it, but after doing my benchmark video I'd say it's absolutely no problem.
      Ideally you'd cache them, but it's honestly not even worth it

    • @random_precision_software
      @random_precision_software 2 роки тому

      @@Tarodev Reason why I asked is that its ok when its just runnning that as tutorial ,but if you want to incorperate it in your game its going to be a different story. So we need to know the best way to do it when in a game.

    • @Tarodev
      @Tarodev  2 роки тому

      @@random_precision_software I'm talking from the perspective of a game. If you want to write the most performant code absolutely possible, your code base is going to bloat and become more complex than it needs to be. My benchmark shows 900k getcomponent calls takes just 200ms, so you're not even going to notice grabbing 20 components.
      It's really up to you though. You can add a new script to the exploded version which caches the pieces quite easily.

  • @alexplaytop
    @alexplaytop Рік тому

    After explosion my fps guy just switch in third person shooter guy. Some switch mode happening... ???

  • @rizwanshaikh8175
    @rizwanshaikh8175 2 роки тому +1

    exploding box not working

  • @NHGeneral
    @NHGeneral 3 роки тому

    should a game dev learn everything from Blender to Unity? may be something musical too? Not to mention master C# is not an easy feat. Game dev is such a long and bumpy road...

    • @Tarodev
      @Tarodev  3 роки тому +1

      Long and bumpy for sure, but also very fun. This answer depends on the road... If you're aiming to work on AAA games or in a company, you'll only need programming. If you are wanting to be an Indie dev or collab with 1-2 people, other skills like modeling/drawing/music would come in handy. Just remember, if you focus on all 3 things, you limit your experience in any single skill.

  • @GreyHatGenX
    @GreyHatGenX 11 місяців тому

    comment

  • @anthonyroseiro
    @anthonyroseiro 2 місяці тому +1

    Ty very usefull