PlaceItem takes radians instead of degrees + angle reliability
Hi, I recently tested an old mod of mine with OpenMW 0.36.1, and came upon this bug.
It's a random maze generator made entirely of in-game scripts. It relies on some specificities of the scripting system, so I was not hoping that it would work with OpenMW on the first try. It seems to come close, though :)
So the main bug I've encountered so far is that GetAngle returns radians. With vanilla Morrowind it returns degrees, in [0;360] as far as I know.
This is important for me as I use PlaceItem to position temporary items at specific coordinates with specific Z angles, then get these "data" back in each item's script with GetPos and GetAngle.
This makes me wonder about an other possible bug, which I could not verify because of the one I just described. Apparently you work with radians internally and this makes total sense. However with vanilla Morrowind if I PlaceItem with, say, a 270 degrees rotation on the Z axis, then a GetAngle Z on the new item will return exactly 270. If there's a conversion to and back from radians somewhere in between, we could lose this bijectivity because of floating point precision.
Thank you for the great work, devs :)
(RM-3007 from redmine: created on 2015-11-10 by Raphaël Lerbour, , closed on 2015-11-12 by scrawl .)