This short video tutorial cover how to code an exploding cube in Unity. This is a great effect for 3D games.
In this tutorial we learn:
- How to dynamically create cubes (CreatePrimitive)
- How to initialize cubes (material, scale, position, etc)
- How to make cubes explode (Rigidbody and AddExposionForce)
You can find the final project on GitHub: [ Ссылка ]
![](https://s2.save4k.ru/pic/wcQqYOSteSs/maxresdefault.jpg)