Hey Guys
I was wondering, is there a way to create an editable voxel terrain that the player can dig around in? So say I create the character a digging tool (Lets say I call is xertex), is there a way that, whenever I click in a direction, the xertex will sort of rotate so the tip would face that way, and if it touches the ground, the player would create a “hole” in the ground where they dug. And then with some code that I have written that Instantiates an object at random times, When I dig I can use this code? (When I make a hole in the ground?)
There are two ways that I have thought this could work:
-
Using ground that is already stacked up high (So maybe 100 y) and then dig down and it would start removing some of it. The problem with this would be the drawing sort of “sections” in the ground area that is piled up.
-
This was the one I was thinking of using more… That the ground (Which will be randomly created so there will be random hills and overhangs and stuff like that) is a terrain, and when I click on the ground with the digging tool, the terrain sort of modifies and stretches itself in the direction I dig.
Which one would be better and why? And what would the best way to do it be?
Thanks
Zolo