Hello! I need help writing a function that can get positions on a grid.
I need the function to take 2 inputs, the center position and the size of the grid.
The function should then get a grid of positions with the middle of the grid being that center position. Yes this does mean that it can only take odd numbers for grid sizes. Do note the grid is horizontal meaning that the positions will be on x and z.
Example:
function(Vector3.new(0, 0, 0), 3)
should return {(0, 0, 0), (0, 1, 0), (1, 0, 1), (0, 0, 1), (-1, 0, 1), (-1, 0, 0), (-1, 0, -1), (0, 0, -1), (1, 0, -1)}
Also I do not care about the order that the positions are returned in.