INNER CODE UNIT · C++

e2

evanbowman/BPCore-Engine · source/BPCoreEngine.cpp:508

         auto e2 = (Entity*)lua_topointer(L, 2);
         lua_pushboolean(L, e1->overlapping(*e2));
         return 1;
     }},
    {"rline",
     [](lua_State* L) -> int {
         lua_pushinteger(L, *(u16*)0x04000006);
         return 1;
     }},
    {"dirv",
     [](lua_State* L) -> int {
         auto x1 = lua_tonumber(L, 1);
         auto y1 = lua_tonumber(L, 2);
         auto x2 = lua_tonumber(L, 3);
         auto y2 = lua_tonumber(L, 4);

         auto uv = direction({x1, y1}, {x2, y2});
         lua_pushnumber(L, uv.x);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…