- Home /
Is this an animation????
click this link but wait when he mines the rock and you can see the rock breaking is that an animation???
Answer by Mike 3 · Mar 27, 2011 at 04:05 AM
No, it just changes the texture then spawns some smaller pieces with physics on for rubble
Answer by Statement · Mar 27, 2011 at 02:03 PM
You could achieve something similar with a shader that accept two textures for "complete" and "broken", and have a third "crack" alpha texture (or even bumpmap) which you could use to lerp between the complete and broken one. Use a uniform float to increase cracks in the lerp.
The rocks that fly off can be achieved with particle systems.
Finally you could spawn a prefab in its place with added physics and some pick-up script.
Your answer
Follow this Question
Related Questions
How to create some kind of guide to place cubes 3 Answers
Minecraft-like block placement/deletion help 1 Answer
Block Placing script error 1 Answer
Replicating the Minecraft Acid Mod 1 Answer
Ingame Texture Switcher 1 Answer