mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
AABB blocks rotation support (WIP part 3)
This commit is contained in:
parent
7f9e87cea2
commit
64f6f17386
5 changed files with 21 additions and 26 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue