Vertical Grid

Hi every one,

another question of newbie,
I have this grid with x an y axis

I want to have the same, but on x and z axis, (like a vertical grid),
I tried many solutions, it never works
Any help will be cool
Thank’s in advance
Lc

I create empty blueprint actor then inside of it:

How i make this stuff:

  • make grid loop that goes from x_a to x_b and y_A to y_b
  • then i store current_x and current_y as variables
  • next is function that converts current_x and current_y into local location for tile mesh. Ie. current_x* width and current_y* width. Where width is just size of single cell (or size of mesh)
  • then i build transform for spawn mesh component at location

For you to get wall instead of floor just plug either X or Y into Z

ps.
I am unsure what your code should do. Well i see what it does, but not sure it is what you want exactly.

Thank’s for the answer

I put the x coordinate on the z below and it work’s

thank’s a lot

Lc