[Lua] Enhanced transformations
Currently, The Lua API and/or the underlying MyGUI rendering can not handle rotated elements or elements placed in world space.
Rotation: Important for layouts such as radial menus and compasses. MyGUI already has a rotating widget so we could just use this if it turns out to be adequate.
World space positioning: Has two categories.
- Billboard UI elements, like for a lock-on target or floating health bar. It is important that the element always face the camera.
- Absolute positioning in world space, like a computer terminal. Same as above, just without the always face camera bit. This may become more complicated though, as draw order is very important for these elements, and they need to be part of the scenegraph, not just drawn in final render stage as layers.
The front-facing API for this shouldn't be too complicated, as all we need is the fields in some fashion. A billboard flag and the world space position.
Ideally modders need to be able to directly place an object in world space, so the position doesn't need to be manually re-calculated every frame.
Edited by Cody Glassman