mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-03 06:24:32 +00:00
Minor changes & simplifications to Lua interface. 5 new functions.
This changes all typical vector interpolation functions that get value, time, loopType, pingPong, ease as args from the Lua state; use unified functions for all value type occurances. This fixes the slightly annoying problem that it was not possible to pass a boolean true to pingPong or ease, because lua_tonumber() would always return 0 in that case. Also changed: - obj_getWorldPosition() now takes optional x,y-vector New: - obj_getWorldPositionAndRotation() is a more efficient shortcut, as often both position and rotation are retrieved together, and the underlying matrix chain operation is rather expensive. - entity_getEmitter() - entity_getNumEmitters() - setSceneColor2() - getSceneColor2()
This commit is contained in:
parent
34fbbae71a
commit
7fb9204e97
7 changed files with 141 additions and 49 deletions
|
@ -206,6 +206,7 @@ public:
|
|||
|
||||
Vector getAbsoluteRotation();
|
||||
float getWorldRotation();
|
||||
Vector getWorldPositionAndRotation(); // more efficient shortcut, returns rotation in vector z component
|
||||
Vector getNormal();
|
||||
Vector getForward();
|
||||
void setOverrideCullRadius(float ovr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue