AABB blocks rotation support (WIP part 3)

This commit is contained in:
MihailRis
2023-12-05 10:25:43 +03:00
parent 7f9e87cea2
commit 64f6f17386
5 changed files with 21 additions and 26 deletions
+3 -2
View File
@@ -28,7 +28,8 @@ struct CoordSystem {
};
struct BlockRotProfile {
CoordSystem variants[16];
static const int MAX_COUNT = 16;
CoordSystem variants[MAX_COUNT];
/* Wood logs, pillars, pipes
3 orientations supported
@@ -65,7 +66,7 @@ public:
blockid_t id;
bool solid = true;
bool emissive = false;
bool hitboxGrid[BLOCK_AABB_GRID][BLOCK_AABB_GRID][BLOCK_AABB_GRID];
AABB hitboxes[BlockRotProfile::MAX_COUNT];
} rt;
Block(std::string name);