implement structures rotation

This commit is contained in:
MihailRis
2024-09-22 01:58:59 +03:00
parent 001b930212
commit 74ded5a052
7 changed files with 67 additions and 14 deletions
@@ -127,9 +127,13 @@ public:
glm::ivec3 pos = lua::tovec3(L, -1);
lua::pop(L);
lua::rawgeti(L, 3);
int rotation = lua::tointeger(L, -1) & 0b11;
lua::pop(L);
placements.emplace_back(structIndex, pos);
lua::pop(L);
placements.emplace_back(structIndex, pos, rotation);
}
lua::pop(L);
}