Creating Voxel Mountain From C# Code and Explosion of This Mountain

Hi Guys,

I am trying to create a mountain from voxel, in next step, some specific part of this mountain will explode. It should be all specified from c# code. I made a pyramid voxel right now but all mountain is exploding when I press the Q button. Does anyone know how can I control cubes which is created after press run button, inside of the voxel pyramid, ? Or does anyone have different idea to do this? I shared cubes which ı tried to talk about.

Thanks for your help…

You’re gonna have to share a lot more than that if you want any kind of useful input. How are you making the explosion currently? Share some code and describe how things interact.

There are two basic ways:

  • attach a script to each cube that handles its movement
  • attach a script to the cube container object that handles movement for every cube

Hi again, I am using VoxelTool for creating cube. When I press Q, as you see Update runs MakesAllCubesFall(). I have no idea how can I select specific cubes.

2999393--223580--1.png

Hi Ryiah,

Thanks for your reply,

Can you give me some example about these ways, I couldnt find how am I gonna do that…