Hi,
I am trying to create a grid system based off set row and column variables.
As such I need to set grid object to specific vector 3s
to do this I add an int of +1 in a loop to represent the x position for rows, then convert that int to a float to input that into the vector 3's x position and so on to create a series of objects next to each other.
I do the same process but with z to create columns.
It all works well, but due to vector 3s needing float values, I must convert my ints to floats then input them. this however creates really annoying slight inaccuracies in the x and z coordinates so that my grid is ever so slightly off.
is there a way to convert a float to its closes whole number?
cheers,
jasper