- Home /
This question was
closed Sep 28, 2015 at 04:35 PM by
getyour411 for the following reason:
See any number of questions/answers on altering terrain heightmap
"dig a hole" in terrain when tool touch it
Hi (again), I want to know how can I do this:
When Tool:Collider touch Terrain do Terrain.Transform: Shape = Shapes.Hole, CoordX = Tool.X, CoordY = Tool.Y, CoordZ = Tool.Z end function end when
I want to know how to make it in JS or C# (preferably JS).
Comment
Something that I can attach to Terrain or Tool and configure the hole size.
And, is not a real hole, something like "when tool touch terrain, set terrain height -10 in tool touch coord".
terrain doesn't support holes, you can only move heights. this script will not just few lines. you should work with
http://docs.unity3d.com/Documentation/ScriptReference/TerrainData.html
to achieve that
I know, this is just an algorithm, and I said, it's not a real hole, is to decrease height.