Pane place direction fixed

This commit is contained in:
MihailRis
2023-12-05 11:39:59 +03:00
parent d9bc17e9b6
commit a691526693
4 changed files with 31 additions and 10 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ void CoordSystem::transform(AABB& aabb) {
aabb.b += fix2;
}
const BlockRotProfile BlockRotProfile::PIPE {{
const BlockRotProfile BlockRotProfile::PIPE {"pipe", {
// Vertical
{{1, 0, 0}, {0, 1, 0}, {0, 0, 1}, {0, 0, 0}, {0, 0, 0}},
// X-Aligned
@@ -21,7 +21,7 @@ const BlockRotProfile BlockRotProfile::PIPE {{
{{1, 0, 0}, {0, 0, 1}, {0, -1, 0}, {0, 0, -1}, {0, 1, 0}},
}};
const BlockRotProfile BlockRotProfile::PANE {{
const BlockRotProfile BlockRotProfile::PANE {"pane", {
// North
{{1, 0, 0}, {0, 1, 0}, {0, 0, 1}, {0, 0, 0}, {0, 0, 0}},
// East
+1
View File
@@ -29,6 +29,7 @@ struct CoordSystem {
struct BlockRotProfile {
static const int MAX_COUNT = 16;
std::string name;
CoordSystem variants[MAX_COUNT];
/* Wood logs, pillars, pipes */
+5
View File
@@ -7,6 +7,11 @@ const int BLOCK_DIR_X = 0x1;
const int BLOCK_DIR_Y = 0x0;
const int BLOCK_DIR_Z = 0x2;
const int BLOCK_DIR_NORTH = 0x0;
const int BLOCK_DIR_WEST = 0x1;
const int BLOCK_DIR_SOUTH = 0x2;
const int BLOCK_DIR_EAST = 0x3;
// limited to 16 block orientations
const int BLOCK_ROT_MASK = 0xF;