Publisher | Faber Brizio |
---|---|
File size | 375.14kB |
Number of files | 9 |
Latest version | 1 |
Latest release date | 2023-07-12 12:06:11 |
First release date | 2023-07-12 12:06:11 |
Supported Unity versions | 2018.4.2 or higher |
This package contains:
- 2 bottle models, which are used as the two LOD levels of the bottle prefab;
- various pieces of the broken bottle (with no LOD);
- a bottle prefab and a broken bottle prefabs.
- 2 scripts controlling the explotion.
How it works:
The two scripts in this package are used to destroy the bottle prefab and instantiate the broken bottle prefab, and make it explode into pieces. The function can be easily called from outside of the script attached to the bottle prefab, to make it explore. This can be useful for example if the player is shooting to the bottle and wants to see it exploding.
After the explosion, the broken bottle prefab is destroyed after a customizable count-down.
Also the velocity of the pieces exploding can be changed from the inspector.