I am trying to get a instance position relative to a plot, how could i do this?, I serialize some data and have some prefab models, howhever, the player can claim different plots, so i need to get the saved position from a plot and make it relative to any other plot, because it won’t always be the same, but how? , i’ve found this
But how can the position be exactly or similarly interpreted on a script?, I am not that good with Positions, I’d say
I believe I may have said this in my original comment, but if I were to do this, I would designate any specific location on a plot to be your origin. The center, the lowest x,y,z corner, anything you like, and save the relative position to that location. For example if I’m trying to save a model who’s position is 120,0,30 and the center of the part is 130,0,40, I’ll save the relative position as 10,0,10. Treat the location you choose as your ‘vertex’ (for lack of a better word, not a math dude) as 0,0,0.
Simply: Global Position - Plot Vertex = Relative Position
There are many ways to do this but that’s how I’d do it.
Also make sure to save orientaion, and change orientation based on the orientation of the plot which can reverse order of x and z or make them negative based on which way the plot is facing if it is facing a different direction from last time, like if your plots surround a certain area and face inward.