SHATTER / DESTRUCTION in Unity (Tutorial)

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

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

  • @Tbrekke
    @Tbrekke 7 лет назад +269

    You are one of the few unity tutorial people I've seen who actually use editing properly to have some sort of proper pacing in your vids. Good going, man!

    • @dragospop1558
      @dragospop1558 4 года назад +7

      i knooow! i leant soooo much from him!

  • @klerta
    @klerta 7 лет назад +400

    You are so good at explaining things!

    • @lars-sorensen
      @lars-sorensen 7 лет назад +4

      I agree!

    • @yassindridi
      @yassindridi 7 лет назад +2

      ye he is the best

    • @knoxrobo4174
      @knoxrobo4174 7 лет назад +4

      I also agree and you profile pic is creepy

    • @dylanrickard8694
      @dylanrickard8694 7 лет назад +1

      He is good at explaining but I'm just 10 years old I don't think I can make a game also I don't have a pc to create a game

    • @intrus012
      @intrus012 7 лет назад +4

      If you don't think you can make a game, then you won't make a game. Being 10 years old shouldn't stop you! Practice does make perfect, what you do need is a PC :). Don't give up.

  • @CeretPenyok
    @CeretPenyok 7 лет назад +55

    *BEST---UNITY---LEARNING---CHANNEL!*

  • @sanderhoel6289
    @sanderhoel6289 7 лет назад +43

    When you used the same script for the whisky bottle, I couldn't stop feeling satisfied :D

  • @cannonball1174
    @cannonball1174 7 лет назад +28

    Just a recommendation for optimizing performance. You should instantiate the the shattered object on the start and deactivate it. Afterwards you reactivate it when you want the break to happen. Nice vids bro! Keep it up!

    • @afkafkafk
      @afkafkafk 2 года назад +4

      Is this correct?
      public class Destructible : MonoBehaviour
      {
      public GameObject destroyedVersion;
      void Start()
      {
      GameObject tmp = Instantiate(destroyedVersion);
      tmp.SetActive(false);
      destroyedVersion = tmp;
      }
      private void OnCollisionEnter(Collision collision)
      {
      GameObject destroyed = destroyedVersion;
      if (destroyed != null)
      {
      destroyed.transform.position = this.transform.position;
      destroyed.transform.rotation = this.transform.rotation;
      destroyed.SetActive(true);
      }
      Destroy(gameObject);
      }
      }

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

      Indeed! Also if you have a lot of different objects that should be instantiated, you should use Object Pooling. Brakeys has very nice video about it.

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

      Why would you instantiate it on Start? Just use a prefab that already contains both the destroyed and undestroyed versions.

  • @اشکانمحمدی-ز1ث
    @اشکانمحمدی-ز1ث 4 года назад +6

    OMG!!! I can't believe that you explained all of these things so beautifully just within 5 minutes. Thanks man keep it going

  • @123IffoGr
    @123IffoGr 7 лет назад +1

    All these developers and brackeys out here doing hero work. Saved me in hours of need

  • @kentonleslie-smith7771
    @kentonleslie-smith7771 2 года назад +25

    Make sure that each of the Mesh Colliders on your “destroyed GameObject version” have the “Convex” checkbox ticked in the Unity Inspector, otherwise you’ll be thrown an error that “Non-convex MeshColliders with Non-kinematic Rigid bodies are no longer supported since Unity 5”

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

      thanks, needs more upvotes

  • @peterlavalle
    @peterlavalle 7 лет назад +1

    your skill and style of presentation wows me

  • @ConorDrew
    @ConorDrew 7 лет назад +149

    Remember if you want to to build a game, or code anything in general, RUclips videos are not a copy and paste thing, in fact, any code of the internet is not.
    What he has done here is shown you the process to do it, in a very simple form, but it helps people understand gameObjects and other coding bits,
    Like to learn a for Loop, we could show you
    for(int i, i

    • @vishalshetty4189
      @vishalshetty4189 5 лет назад

      Hm

    • @noctemcat_
      @noctemcat_ 5 лет назад +5

      @Nagato is better than Punk Naruto You will be surprised how many people didn't get this.

    • @jwalinadhyaru2218
      @jwalinadhyaru2218 4 года назад

      Didn't work 😔 my original object destroys but cracked one doesn't spawn, i can spawn single splint of whole destroyed set of parts though

  • @Brumus14
    @Brumus14 4 года назад +56

    0:02 My sleep paralysis demon

  • @MrTheamir
    @MrTheamir 7 лет назад

    This is one of the best Unity tutorials on RUclips

  • @thejammydodge1
    @thejammydodge1 4 года назад

    I really just want to know who would dislike these amazing videos!

  • @PandeyJiGames
    @PandeyJiGames 7 лет назад +3

    dude......I have been looking for a thing like this for a lot time...you are just awesome

  • @SchalaArchives2023ish
    @SchalaArchives2023ish 4 года назад +2

    I'm guessing something you can also do is, if you want it like in Diablo 3 where swinging your weapon or blasting a spell at an object sends it flying in pieces, after instantiating the fractured object, apply an impulse using data from the attack/projectile before it despawns

  • @joaocabo07
    @joaocabo07 7 лет назад +39

    Another lovely video. Anybody noticed the way he pronounces Wednesday, so cute.

    • @JACKOFALLFATES
      @JACKOFALLFATES 7 лет назад +1

      haha i was like scrolling down "theres no way someone else noticed that"

    • @joaocabo07
      @joaocabo07 7 лет назад

      ***** Actually I noticed it but I didn't mention it xD. This time I decided I would.

  • @dragomirpetrov5600
    @dragomirpetrov5600 4 года назад +1

    Best teacher I've ever had! Thank you!

  • @LUXSUSOFFICIAL
    @LUXSUSOFFICIAL 5 лет назад +2

    thank you brotha! - im new to this, currently bought a course on udemy for this, but for 2d, mainly learning scripting now, after I ll buy The 3d version, - and watch all your videos, as you so much more in depth of everything, and showing things they don't do in the course.- someday I WILL BECOME YOUR PATREON TO SUPPORT YOU!

  • @SuperRalle123
    @SuperRalle123 7 лет назад +5

    This was great. In my opinion this was a good example of the perfect video. Great work.

  • @mr.mysteriousyt6118
    @mr.mysteriousyt6118 7 лет назад +167

    how can we do the shatter effect on our own Props ? how can we make a cracked version ?

    • @grocerystore2750
      @grocerystore2750 7 лет назад +56

      you should create a 3d model of your prop cracked in pieces and add physics to each piece

    • @TeamChemicalDestruct
      @TeamChemicalDestruct 7 лет назад +53

      there are many great Blender tutorials for that.

    • @antonbergstrom6740
      @antonbergstrom6740 7 лет назад +41

      I've worked with 3D models before and find that if you want to do something, you have to do it yourself.
      Download a free 3D modeling software (Blender is my suggestion) and make your own cracked version.
      There are alot of tutorials on how blender works, so you'll be running in no time at all

    • @RitobanRoyChowdhury
      @RitobanRoyChowdhury 7 лет назад +14

      Look into the Blender Cell Fracture Addon. I'm sure that other modeling packages have their own equivalents. Andrew Price/BlenderGuru has QuickTips tutorial on this called something Like Destroying things in Blender

    • @WAMBHSE
      @WAMBHSE 7 лет назад +4

      mr.MYSTERIOUS,YT there is a very easy to follow tutorial on how to fracture / shatter any 3D objects which would include your own models. It tells you where to find a free program and how to set everything up in about a 10 minute tutorial. It's titled " [126] Scorpion81 Fracture - How To Make A Game " its by Gamer to game developer and it's part of a series. Check it out. I learned some basic but usefull shattering techniques from it.

  • @pandarzzz
    @pandarzzz 5 лет назад +3

    Thank You, Brackey! Tutorial is so helpful... Happy Holidays🎄🦌⛄

  • @GameDevNerd
    @GameDevNerd 3 года назад

    A lot of people's videos I take with a grain of salt, because they often show bad practices and poor implementations. But I always pay close attention to what Brackeys has to say about Unity topics. My boy really knows what he's talking about.

  • @Steven_Something20
    @Steven_Something20 7 лет назад +2

    I've already said this in a past video but the assets shown here are awesome, thanks again!

  • @OramiIT
    @OramiIT 5 лет назад +4

    Keep in mind you are going to want to texture inside the box as well! This is usually something we ignore for performance issues!

  • @KajitKiller
    @KajitKiller 7 лет назад +78

    Brackeys! Think you could make a tutorial on vehicles? It would provide a long-running series in which you could have multiple vehicles (Car, boat, tank and especially a helicopter). That would be awesome!

    • @prithvishbaidya1119
      @prithvishbaidya1119 7 лет назад +1

      Kajit Killer wow I really want something like that!

    • @ewendaunt4186
      @ewendaunt4186 6 лет назад +1

      Yeah that's be sweeeet

    • @madpancake9891
      @madpancake9891 5 лет назад +3

      Idk of you guys are still Interested but, find some tutorial on it because I'm sure there is one already, make the player object a child of the vehicle object, use the vehicle controlls from some tutorial and that's basically it, you are locked in the vehicle and able to drive it :D To get out use some button and check if you are close enough to car using Physics.checkSphere(object, rangeofcheck, layertolookfor), then give car correct layer so script knows when you are close to car when clicking enter :)

    • @gachastorys5129
      @gachastorys5129 3 года назад

      This comment aged horribly

  • @markyj07
    @markyj07 7 лет назад +5

    Hey Brackeys, love your videos, I don't always use and follow them as in copy exactly what you do as I want to learn from your videos and adapt to my own projects/experiments and you have so many that I end up just watching a lot of random ones and just learning new tips and tricks from all. I was wondering if you haven't already if you could do some videos on trying to understand the physics system a little more such as the mass options and rigidbodies and other relevant information. I heard somewhere that to really get the most out of unity understanding actual physics helps alot. If you have already done some videos, please point them out to me in case I have missed them. Thanks for your videos and helpful guides.

  • @theshref5931
    @theshref5931 6 лет назад +161

    Making your own games is easier than you think
    You know..

    • @Gamer-uf1kl
      @Gamer-uf1kl 5 лет назад

      ?

    • @arsenije5977
      @arsenije5977 5 лет назад +7

      OMG THAT AD SO BORING!!!!

    • @cornflakes6605
      @cornflakes6605 4 года назад

      i hate it so much

    • @artjom5617
      @artjom5617 4 года назад +1

      adblock. but if u preffer wasting hours with ads, dont install it.

    • @2987ms
      @2987ms 4 года назад +2

      @@artjom5617 uBlock Origin is much better

  • @Roryscanlan1990
    @Roryscanlan1990 7 лет назад +20

    If any1 is using Maya, to create shattered props go to FX/Effects/Shatter/Solid Shatter.

    • @alexelmoth4643
      @alexelmoth4643 5 лет назад

      Thx

    • @kloa4219
      @kloa4219 5 лет назад +1

      With blender, you can use the cell fracture tool.

  • @JesusAmaTeMenino
    @JesusAmaTeMenino 7 лет назад +4

    Wow, that timing! I was looking for a good tutorial of this subject this very afternoon \o/

  • @samuelbunko3948
    @samuelbunko3948 7 лет назад

    The first few lines you said "In this video we are going to look at destroying things in unity" so i responded in my head and said "Yeah, by using unity's standard asset fireworks in your scene" haha

  • @wbrjr820
    @wbrjr820 7 лет назад +2

    Hey there, I just want to thank you for your tutorials! They're helping alot! :)

  • @lakeviewgames2975
    @lakeviewgames2975 4 года назад +1

    As always, straight to the point and super useful 😎 thank you, great work 👌

  • @D3rFlo
    @D3rFlo 7 лет назад +1

    Short and informative. Great Tutorial

  • @Marcos10PT
    @Marcos10PT 4 года назад +4

    Why does the top of the bottle jump out if there's no force being applied?

    • @Nethan2000
      @Nethan2000 3 года назад +1

      Because both mesh colliders of the fragments intersect and PhysX forcefully pushes them away from each other.

  • @phonebook45
    @phonebook45 6 лет назад +2

    I would love to see a video showing how to program your characters to build/create/paint objects onto the environment.

  • @JackAllpikeMusic
    @JackAllpikeMusic 7 лет назад

    Hey Brackeys, it'd be awesome if you replied. I was wondering how you would make a cube, that you fractured to only demolish when that area is hit, so like a cube of "stone" getting something thrown at it, and that corner or face crumbling with rubble. So far in blender I've made a cube that fractures, but when something hits it I don't want it to COMPLETELY crumble.

  • @marcosvolpato8135
    @marcosvolpato8135 7 лет назад

    You are the best!! Happy New year with a lot of Successful Projects!!

  • @LordBete
    @LordBete 6 лет назад +1

    How would I change this to only happen when another gameobject touches it?
    For example I only want the crate to crack when my weapon hits it

  • @garypowell3566
    @garypowell3566 5 лет назад +1

    Thanks.....Just trying to progress, how do I add a fire & smoke effect to each Shattered/Fractured cell

  • @gorkemvids4839
    @gorkemvids4839 7 лет назад

    Free way to do this is using joints to make an object. And limit joint's breaking force. This way when enough force applied, joints will break and you can make this look like real breaking

  • @MrSwedencrafter
    @MrSwedencrafter 7 лет назад +2

    Very simple, but still incredibly effective! Thanks for this :)

  • @sleepykairo7479
    @sleepykairo7479 4 года назад +1

    I used knife tool in blender to split my models and it doesnt show up as cracked in unity. Help?

  • @ProfessionalJason
    @ProfessionalJason 7 лет назад +5

    The bottles seem to pop because when the broken pieces are placed on the screen, their rigid bodies are actually overlapping and when the physics engine resolves that overlap, they gain a little velocity. The effect is accidental, but it kind of helps in this case.

    • @somare2364
      @somare2364 3 года назад +3

      I was breaking my head to understand why this is happening, thanks for explaining.

  • @TerrorTarun
    @TerrorTarun 4 года назад +1

    Can you make a tutorial on That when we destroy a Gameobject it will drop a pickable item
    For Example : On Breaking Tree it drops wood !!

  • @bojken5384
    @bojken5384 7 лет назад +2

    Nice Tutorial
    As Always

  • @commenturthegreat2915
    @commenturthegreat2915 5 лет назад +1

    Thanks! This helped a lot! But is there a way to maintain the speed of the object after it breaks?

    • @HAWXLEADER
      @HAWXLEADER 5 лет назад

      Yes just add the same velocity form the main to the parts after you destroy the main one.

  • @nautisshadrick9254
    @nautisshadrick9254 7 лет назад

    Brackeys is the BEST!!!!

  • @illustrukarma
    @illustrukarma 4 года назад

    i love you brackeys you helped so much

  • @SweetMeethi
    @SweetMeethi 4 года назад +1

    Does anyone know why my fractured object spawns but doesn't explode? The code definitely works and I've tried this with a standard blender box object which works perfectly. The fractured objects all have a mesh collider with Convex ticked and rigidbody. Your help would be much appreciated.

    • @SweetMeethi
      @SweetMeethi 4 года назад

      untick is kinematic in the rigidbody and this will solve the problem

  • @z-beeblebrox
    @z-beeblebrox 6 лет назад +1

    This is really cool! Second-level question: let's say now that I've got this down, I instead want to have the same object break in a variety of ways. So I model a set of 3-4 broken versions of the original just like here. So then I create a script, head into visual studio aaaaaand...what goes in place of "GameObject"? Or do I leave that as-is, and instead do something along with "instantiate"?

    • @sharif47
      @sharif47 6 лет назад +3

      I can suggest something novice.
      Instead of making a single GaneObject, make an array of GameObjects for the destroyed versions.
      Then generate a random integer and use it as the element number of the array while instantiating.

  • @gregoryfenn1462
    @gregoryfenn1462 6 лет назад

    At 4:18, why do we say "Check off convex" and then proceed to check it? Did you mean to say "Check on convex"?

  • @drowsy5384
    @drowsy5384 7 лет назад +1

    thanks for your tutorials. Keep doing that mini universal tutorials they're way better than long long series

  • @sharif47
    @sharif47 6 лет назад

    How to make sure that the objects break depending on the force applied?
    Since here it's just gravity and unbalance responsible for the breaking part...

    • @commenturthegreat2915
      @commenturthegreat2915 5 лет назад

      Instead of calculating actual force, I just saved a vector with the velocity of the object and updated it each frame. When collision was detected I subtracted the saved speed from the current speed and used that as the force.

  • @LoganGardner
    @LoganGardner 7 лет назад

    What happens when the destructable version isn't convex in the rigidbody? I'm assuming that's why they mildly explode when onMouseEnter () gets run... I feel like without convex it would look more realistic

    • @pacukluka
      @pacukluka 7 лет назад

      Logan Gardner it gives error

  • @SupunWiratunga
    @SupunWiratunga 7 лет назад

    Your videos are awesome brothers! 😊

  • @samranali2679
    @samranali2679 4 года назад

    Can you plz make a video on car/objects crushing and object compresing between two objects.

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

    And what about a case when my object has a certain speed and shatters when collides with a wall (for example). Do i need to just set the initial speed for the spawning object?

  • @aboulkacemhouimel746
    @aboulkacemhouimel746 7 лет назад

    that's an other amazing video done by you Brackeys !!! thnx a lot !!!😉😉

  • @nishchaysingh5980
    @nishchaysingh5980 4 года назад

    As I dragged the sample scene ,the game scene isn't visible . Please help @Brackeys 🙏🙏🙏🙏

  • @shawnshaju2513
    @shawnshaju2513 3 года назад +1

    I am unable to do this. It's showing: Non-convex MeshCollider with non-kinematic Rigidbody is no longer supported since Unity 5

    • @kentonleslie-smith7771
      @kentonleslie-smith7771 2 года назад

      Hi Shawn, this comment is old, but I solved the issue by going to the Mesh Colliders of my “destroyed wall” version GameObject, and in the Unity Inspector, checking the “Convex” checkbox on each of the Mesh Colliders.

  • @howdy1234-v5d
    @howdy1234-v5d Год назад

    very useful, used it to make a character turn into a ragdoll on click.

  • @vepix4991
    @vepix4991 7 лет назад +6

    I'm your 6 th view and this is helpful cus I am At the moment making a game and I need this!

  • @DefinitelyNotJerry5
    @DefinitelyNotJerry5 7 лет назад +1

    How do you give the same velocity to cracked version as the original object had before.

    • @commenturthegreat2915
      @commenturthegreat2915 5 лет назад

      I tried doing that but it wouldn't work. If you already found a solution please let me know!

  • @ognjenpingvin
    @ognjenpingvin 7 лет назад

    What if we wanted almost everything to be destructable? Would a script be a better idea then? And how does that script work?

    • @SamSpain
      @SamSpain 7 лет назад +1

      You'd probably have to do a LOT of vertex shader magic to get that to work if you want it to be one mesh still.

  • @technorazor976
    @technorazor976 7 лет назад +1

    Except wouldn't it be better if you also applied the velocity of the ridigbody to each of the broken pieces?

    • @commenturthegreat2915
      @commenturthegreat2915 5 лет назад

      I tried to do that but it wouldn't work. If you know how to do it please let me know!

  • @amilismurfs
    @amilismurfs 7 лет назад

    you re makeing really good tutorials 👍

  • @blakel95
    @blakel95 7 лет назад +2

    Hey Brackeys was wondering if there was an easy way to have those cracked pieces fade out after a few seconds

    • @inti2822
      @inti2822 5 лет назад

      I'd do it by adding a script to every piece that decreases the alpha of the material (of course it has to be set to transparent) and when alpha is zero, destroy the game object. Then you can make it start fading since the shattered object is instantiated or wait some seconds. Anyway, I'm kinda new to unity and also just noticed I'm a year late

  • @lesliengo
    @lesliengo 5 лет назад

    how do you apply this to pieces of armor? for example, maybe I have an arm on a mech that has taken damage, and the armor peels away, revealing vitals inside?

  • @pranavkushwaha6016
    @pranavkushwaha6016 5 лет назад

    Just one query isn't having so many rigid body will be performance intensive ?

  • @leatherandpoemscharmyman5774
    @leatherandpoemscharmyman5774 5 лет назад

    hi , the script is good, but how can I make that after some seconds after the destructible objects can dissapear for my screen? and in memory? I create a Coroutine to also clean the scene for this broken objects, the script you make is cool because destroy the original object and then instanciate the DestroyedVertion, but in my case and in my game purpose, I need to make the objects dissapear after a period of time, thx.

  • @clip0clip092
    @clip0clip092 7 лет назад

    You're an awesome RUclipsr!

  • @operationalhumanbeing9916
    @operationalhumanbeing9916 4 года назад +1

    its says non covex meshcollider is not supported in unity 5

  • @bobthedj6992
    @bobthedj6992 7 лет назад

    Combined this with your grenade tutorial but when a grenade lands next to a destroyed bit it bugs out, spawns multiple partical effects and hardly moves it

  • @dami4335
    @dami4335 7 лет назад +3

    Wow i was thinking about something similar minutes ago!

  • @tedwilson5550
    @tedwilson5550 7 лет назад

    Awesome video and Props, but how would I make it destructible in a FPS?

  • @TheYusuf10
    @TheYusuf10 7 лет назад

    thank u so much to this whole tutorials dude!

  • @Felik18
    @Felik18 7 лет назад

    Great video.
    But why does the upper part of broken bottle bounces upwards when you destroy it? And how to get rid of that behavior?

  • @tysondennis1016
    @tysondennis1016 3 года назад +2

    I've come up with a way to make an object that breaks. First, I create the regular version in Blender, then I make a derivative for the broken version, with a Blender object for each fragment. Then, I code the fragments to only appear once the breakable object is broken, and each one has a rigidbody and a collider, and I make the colliders overlap, so they fly apart. And, why isn't instantiate working?

  • @balikif
    @balikif 7 лет назад

    nice tutorial man keep the awesome work!!!

  • @AllRetroGames
    @AllRetroGames 7 лет назад +1

    Great tutorial, but how can I make it break while on air ?
    I have an object in air and when I try this, the destroyedVersion breaks only when it falls and reaches the ground.
    I want it to break on air. How can I do this ?

    • @ProfessionalJason
      @ProfessionalJason 7 лет назад

      When the object breaks, you'd have to store the velocity and rotational velocity of the unbroken bottle and then apply that to the broken pieces. And it's generally best to calculate the velocity of that piece relative to the unbroken bottle.

  • @TheNefari
    @TheNefari 7 лет назад +46

    Wooden Crate Cracked Prefab
    Wooden Crate Cracked Prefab
    Wooden Crate Cracked Prefab
    :D

  • @blasthardcheese4336
    @blasthardcheese4336 4 года назад

    How do we make it break when it collides with a rigid body

  • @unforgiven52454
    @unforgiven52454 7 лет назад +1

    Holy crap this was very useful. THank you so much!

  • @TheSdeshazo
    @TheSdeshazo 3 года назад +2

    I have a problem my cracked version is spawning at the wrong angle can anyone help?

    • @Step1adder
      @Step1adder 3 года назад

      im in the same boat as you the next 6 hours aren't gonna be very fun

    • @Step1adder
      @Step1adder 3 года назад

      NEVERMIND FOUND THE FIX, 36 minutes easy peasy im not gonna count the 2 extra hours I spent yesterday
      use the "!!EXPERIMENTAL!! Apply Transform" option when exporting as fbx (from blender)

    • @Step1adder
      @Step1adder 3 года назад

      actually took 4 more hours to realize that when you input the object in the inspector it doesn't stay like that, it updates the input, as it falls apart off camera, okay very cool but its working now

  • @VisserGoedHart
    @VisserGoedHart 7 лет назад

    Cool, now I know how this concept works.
    I've adjusted the script to add the Collision.relativeVelocity way, but for some reason I have 2 prefabs spawn when my object hits the ground. *I had a Floor and Floor Box set up, both with colliders, disabling one resolved my issue.

  • @pnvgordinho
    @pnvgordinho 7 лет назад +6

    You speak so fast that Im getting suspicious when on your longer videos, you say that you are drinking water. :)

  • @r3n470f3rn4nd35
    @r3n470f3rn4nd35 7 лет назад

    awesome as usual. congrats

  • @yaboimrfailure2226
    @yaboimrfailure2226 7 лет назад

    can you make a tutorial about when if i shoot a object (in this case Iron) Unity would make a hole in it and a bended mesh around it

  • @wowme4120
    @wowme4120 4 года назад

    how to make dynamic destruction for example when i click the upper part the cut witll be in upper part only ...

  • @devjitpaul1191
    @devjitpaul1191 6 лет назад

    but like if i model a box and throw PBR maps on it like normal for details, still the object is 6 faces, to shatter a box, we have to model the inner things also, wouldn't this increase the poly count significantly?

  • @WilsonSilvaTanaWeb
    @WilsonSilvaTanaWeb 4 года назад

    Hello, can you help me?
    I want make a Slice Physic 3D in Unity but I dont can with 3d Joynts.

  • @inceptional
    @inceptional 6 лет назад

    On a related note: Is there a function to check if the game/scene is being reloaded/restarted/reset/switching to another scene?
    If so then I could simply use OnDestroy() directly in any game object when it's destroyed by whatever event and just say but don't instantiate the parts if the level is restarting/reloading/resetting/switching to another scene.
    This way I don't have to check whatever object is being hit in the game code so it's instantiating the parts specific to that object, which would be an issue if there's literally hundreds of different objects that it might need to check through and do certain things specific to each object other than just instantiating some parts.

    • @drevora2020
      @drevora2020 6 лет назад

      unityengine.scenemanagement;

  • @slightedge8244
    @slightedge8244 7 лет назад

    Can someone explain why "Debug.Log" is not working in this Destructible script?

  • @wilhelmvonc
    @wilhelmvonc 7 лет назад

    Dude, you are a great tutor.

  • @gasoline.8083
    @gasoline.8083 7 лет назад

    What about creating procedural destruction? Can you make a tutorial please

  • @bmxchamp4
    @bmxchamp4 7 лет назад

    WOW!! So I came from your grenade tutorial, and I didn't see the $0 on the far right for those western props! LOL That is sneaky AF, but my fault for not noticing. It's ok I ain't even mad. I've been watching your videos for god knows how long, and these props are pretty sweet. I have no issues offering support for the creator. Just wanted to point out my own stupidity haha. Thank you good sir.

  • @brigosx
    @brigosx 7 лет назад

    Awesome as always. Thanks mate.

  • @luiska49
    @luiska49 6 лет назад

    when i walk over the broken bottle it just disappears 0.o how can i Change it, so the bottle wont disappear?

  • @jigglessupreme2048
    @jigglessupreme2048 7 лет назад

    Couldn't you just use the physics on awake or acted upon script so you could have destructible meshes without spawning in another brick/box. I want to make a physics engine like Crackdown 3's in which you can shoot whatever you want and it cracks off. Like shooting a circle and then the shape falls off the wall.

  • @Dare404
    @Dare404 6 лет назад

    How do I create the shattered version of the object on ProBuilder?