mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add ladder block rotation
This commit is contained in:
parent
e00038327f
commit
e2806fb19c
5 changed files with 32 additions and 1 deletions
|
|
@ -109,6 +109,17 @@ const BlockRotProfile BlockRotProfile::STAIRS {
|
|||
8
|
||||
};
|
||||
|
||||
const BlockRotProfile BlockRotProfile::LADDER {
|
||||
"ladder",
|
||||
{
|
||||
{{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
|
||||
},
|
||||
4
|
||||
};
|
||||
|
||||
Block::Block(const std::string& name)
|
||||
: name(name), caption(util::id_to_caption(name)) {
|
||||
for (int i = 0; i < defaults.textureFaces.size(); i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue