Does any one know the code to specifically Destroy Objects around the grenade explosion radius, instead of force pushing them away?
Also is it possible to make the objects shrink to 0 before being destroyed?
The best and easiest way to achieve this, would be to use events and delegates. you can trigger an event whenever the bomb blasts, and associate handlers with this function which will check if the distance between the bomb and the object is less then a specific value you can destroy those objects. you can find an example of events and delegates in this tutorial:
Just had a brilliant idea >.< I tried tweaking my script from Brackey’s Destroy/Shatter guides and i couldn’t tweak it for destroying before, so i am going to make my shattered version be a shrunken version if possible, and my grenade can be a shrinking grenade >.<