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
please make a video on how you made the particle effect for the explosion
I loved this tutorial, really clean, simple and straight to the point
As always, amazing video quality and cool esthetics, love the content
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!
damn, i never thought i'd enjoy watching some exploding cubes, this is a pretty cool technique, thank you
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!
Another quality video! Thanks Tarodev
Amazing tutorial, thank you!
Thanks mate. Informative and entertaining.
Aaaaand I know what I'm going to implement tonight - thank You :)
Really cool and usefull stuff, adding this to my project :)!
Good tutorial thx my friend!
awesome tutorial! thank you very much :)
Holy smokes Tarodev! Nothing but good content from this mans.
Glad you enjoyed it 😊
Brilliant work 👏 👍 👌
Awesome! Thank you
Awesome Stuff
Ty for the tutorial
thank you so much
Thank u Señor Tarodev
THANK YOU SO MUCH
because your video I made my games perfect zombie dismembered
woah just found your channel from a vid you posted on unity's website and im very glad I have
Glad to have you here. Hopefully I can teach you some stuff 😊
@@Tarodev Please do a tutorial about your scene(lighting/post processing). how does it looks sooo goood ?
This video was the bomb.
I get it
Bro thank you so much. Now i can use some breakables bottles on my game
Enjoy brother!
Huge shoutout bro! I am doing a videogame using your script! i will mention you everywhere ofc!
awesome love it🚀😁🥇
Go make some explosions 💣
where did you get the materails from they look so nice
thanks its work good
Awesome tutorial thanks. ...Ok one more 🤣
It's been raining rubble for days at my place
Wow it's look very nice 😊
Could you tell how to make the materials like you have?
I just sub because of this video
Welcome aboard 😉
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
I would also be interested in knowing more about the material
those are using Toony Colors Pro 2 shaders
BOOM!
You said it
can you do a tutorial for lighting?
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
he is using TOONY COLORS PRO on asset store
how did you make the material for the boxes
i was hoping you'd do like 5 more.
could you share the source (perhaps tutorial) for that toon shader you use? thanks
noice noice
Hi, how to create a black border around the box?
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. 😁
The force is provided by the ExplosionForce function :D
Is there a way to make the shattered parts after the explotion dissapear after some time so the floor isn't covered in debris?
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.
Why my object with the explosion script will explode as soon as it touch the ground? no matter the mass of the object
Thank you so much for your work! My only Problem is that the TNT Object don’t disappear after explosion!? What do i wrong?
Fixed! Forgot to apply Particle… now it works flawless
How PERFORMENT is get rigid body component in a for each loop ?
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
@@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.
@@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.
After explosion my fps guy just switch in third person shooter guy. Some switch mode happening... ???
exploding box not working
Box no explody?
@@Tarodev fixed now exploding thank you
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...
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.
comment
Ty very usefull