- Home /
Explosion craters in the ground (deform ground mesh)
Hey, I am making a RTS with tanks and heavy bombs, and I want to be able to set craters when a projectile hits the ground (think Company of Heroes), I have been searching but I still didnt find a proper way of doing it, I looked into Whirld for examples, looked into DeapthMask to try and fake it, but I need the physics that deforming ground provides me so this method wouldnt be enough, I also looked into meshcombine, this would probably be my best bet if I could somehow manage to combine meshes with a hole in them and at same time cut a round hole into the ground to actually make the hole empty.
I want to be able to not only make a hole (not a cave) on mountain sides (less than 50 degree angle, higher than that I can fake it with a texture painted on ground) and still get the lighting benefits from having the hole dig into the terrain.
Also, if possible, how would one go about to texture it convincingly?
Thank you in advance for your replies
PS: i found a way of doing something similar, but, it directly manipulates the terrain file, so, when you open a fresh new map your terrain will be corrupted with holes :/
Joao Carlos
Have you tried using TerrainData.SetHeights to manually lower the terrain vertices under your crater? (And raise the vertices around the rim) If you had some trouble with this method, please describe it, so I know what kind of answer you need.
fer me, all I would do is spawn a massive amount of dirt particles. and leave the ground theway it is (trust me sooner or later, the map will be very glithcy.)
Your answer
Follow this Question
Related Questions
Make a simple tree 1 Answer
How do I fix my terrain, its too reflective/plastic? 2 Answers
transfer splat from one terrain to another 1 Answer
Import Processing sketch to unity (3D) 0 Answers
How to use detailed texture? 2 Answers