- Home /
Question by
moizvirjee54 · Feb 16, 2020 at 06:11 AM ·
gameobjectxyz
Using Unity for CNC
Can anyone please provide a code to scan all xyz coordinates of a game object placed on a terrain?
I want something like this:
run loop from 1 to max_of_x_axis
{ run loop from 1 to max_of_z_axis
get value of XYZ (here the Y will vary in accordance with X and Z point)
save the value to text file}}
next iteration of z axis
next iteration of x axis
I would be really helpful if someone helps. Regards.
,
Comment