- Home /
Terrain Craters
I'm looking to have my maps fully destructible, so one thing I'm looking at doing is having the map's terrain mesh be able to have craters made in it when appropriate conditions apply.
From what I've seen online, the approach would involve creating a sphere halfway through the terrain, and then conform the vertices that are within the sphere to take shape around it -- making a bowl-like shape within the terrain.
I know I am supposed to give my first attempt at making this script, but I seriously have no idea where to start. It sounds relatively easy, but one of the problems afterward would be resetting the mesh collider so that it compensates the crater(s), and then from there it's just creating a projector over the crater to project the new destructed ground texture.
If anybody can give me a place to start, or explain to me everything script-wise I would have to implement, it would be greatly appreciated!
Answer by bompi88 · Apr 28, 2012 at 10:56 PM
Maybe these links will help you on the way:
Answer by Eric5h5 · Apr 28, 2012 at 10:59 PM
If you're talking about the built-in Unity terrain, there is no mesh that you have access to, it's a heightmap. See TerrainData.GetHeights/SetHeights.
Nope, I mean a physical mesh I constructed in 3DS $$anonymous$$ax.
Your answer
Follow this Question
Related Questions
Skew an imported mesh? 2 Answers
Looking for an asset that allows me to edit terrain in real time 0 Answers
Need Pointer: How to create 2D map in Unity? 1 Answer
Lighting Banding Artifact 0 Answers
Questions about render distance in an open world game 0 Answers