AABB blocks rotation support (WIP part 3)
This commit is contained in:
+3
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user