I'm trying to create a grid function using 4 vector3 values.
var size = 4 #This will create rows and columns 4 points long/high
var points = [Vector3(-4,-4,-4), Vector3(-4,4,4), Vector3(4,4,4), Vector3(4,-4,-4)]
#points 0 and 2 are directly across from each other, 1 and 3, making an x shape
for x in size:
for y in size:
CreatePointAt() #vector placed x/size and y/size distance along the grid
I think some sort of fraction is involved, multiplying by x/size and y/size or something similar. Maybe the center of all 4 points is important? (p1+ p2 + p3 + p4)/4. Potentially I could have different cases to set up the points, like if x < size/2 then use the distances of a particular 2 points instead of the ones across from each other. I am stuck.
In advance, I am sure this is how I would like to structure my code, and I dont believe gridmaps will help here. Mostly looking for help creating a formula. Any help appreciated though, thank you!