-
can Math.round be used to round up to the next whole number?
I’m making a grid, I want the layer order to determine place in the grid. I’m trying to write an expression that goes in the 2D position.
The rows are 23 layers long.
I want to use Math.round to round up, in order to assign rows and columns automatically by index.
I’m really close, but don’t quite have it yet, can anyone help?
q = Math.round(index/23);
x = (index-(23*q))*315;
y = 355*q+178;[x, y];