About TraceScreenRay()...
Posted: 20 Nov 2007, 14:48
Is this how it supposed to be that when using Spring.TraceScreenRay(mousex, mousey, true/false) it returns three variables (x,z,y) not (x,y,z)!!! This confused me!
Open Source Realtime Strategy Game Engine
https://springrts.com/phpbb/
Code: Select all
lua_newtable(L);
lua_pushnumber(L, 1); lua_pushnumber(L, groundPos.x); lua_rawset(L, -3);
lua_pushnumber(L, 2); lua_pushnumber(L, groundPos.y); lua_rawset(L, -3);
lua_pushnumber(L, 3); lua_pushnumber(L, groundPos.z); lua_rawset(L, -3);