mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
implement structures rotation
This commit is contained in:
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue