mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
feat: 'stairs' rotation profile
This commit is contained in:
parent
50aae8b98b
commit
9463917164
4 changed files with 33 additions and 1 deletions
|
|
@ -91,6 +91,22 @@ const BlockRotProfile BlockRotProfile::PANE {
|
|||
4
|
||||
};
|
||||
|
||||
const BlockRotProfile BlockRotProfile::STAIRS {
|
||||
"stairs",
|
||||
{
|
||||
{{1, 0, 0}, {0, 1, 0}, {0, 0, 1}}, // North
|
||||
{{0, 0, -1}, {0, 1, 0}, {1, 0, 0}}, // East
|
||||
{{-1, 0, 0}, {0, 1, 0}, {0, 0, -1}}, // South
|
||||
{{0, 0, 1}, {0, 1, 0}, {-1, 0, 0}}, // West
|
||||
|
||||
{{-1, 0, 0}, {0, -1, 0}, {0, 0, 1}},
|
||||
{{0, 0, 1}, {0, -1, 0}, {1, 0, 0}},
|
||||
{{1, 0, 0}, {0, -1, 0}, {0, 0, -1}},
|
||||
{{0, 0, -1}, {0, -1, 0}, {-1, 0, 0}},
|
||||
},
|
||||
8
|
||||
};
|
||||
|
||||
Block::Block(const std::string& name)
|
||||
: name(name),
|
||||
caption(util::id_to_caption(name)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue