Open deboni1 opened 1 year ago
I have exactly same problem
This problem costs me hours and hours of time. It's a mysterious bug and it makes building custom bases difficult. The YPR is broken in the editor somewhat anyway, it takes a certain finesse to get items perfectly placed but it's our only option. I love the editor, it's brought life to my server and is the source of all our custom structures. I couldn't do what I do without it, but the scaling issue is a major flaw.
I have a bad habit of losing my master .DZE files and being stuck with my .json customs left on my server...well when I have to re-import those files for editing...the scaling is completely reset on everything. Without using a DiffMerge program of some sort it takes hours to rewrite every scale value...especially when some of my .json files have tons of scaled objects.
I'm dealing with this again right now and It's tough every time, but I have no choice. Either I fix the files by hand or I take a huge loss and trash the way my whole server is set up.
Hi there!
I noticed when using object scaling and applying a 'pitch' (the y value of orientation/ypr), the pitch is either being multiplied by the scale set or multiplied by the scale and some unknown variable.
As an example, setting scale to '5' and setting pitch (y value of orientation) to '1' then close and reopen the properties over and over and you will see this multiplication taking place until it hits 90 (will also eventually hit -90 if pitch is started as a negative value).
Also, once it does hit '90' or '-90', then the x and z values become flipped (1 becomes -179 as an example).
This happens within the editor as well as server side (when the .dze is loaded by either, it will mess up the pitch).
The only "workaround" I have found is to set pitch to what you want and set scale to 1/SCALE YOU WANT (ex: 1/5), then close the properties window, reopen, set the scale to what you want (ex: 5) and close again and NEVER reopen properties. You'll notice when doing this that when you reopened the properties window to set the proper scale, the pitch will now be set to some fraction of the pitch you actually want. It's not a correct value (aka (1/5)*66.5 = 13.3 but the properties window shows 10.35, for pitch that is) but that's fine (and shows there is some other variable being applied to the math).
Also, importing a .JSON object spawner file does NOT import the scale value (scale is 1) but STILL breaks the pitch as though the scale was used.
Thanks for your time!