mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
randomize rotatable plants in world generation
This commit is contained in:
parent
721286c2ba
commit
0649419485
3 changed files with 12 additions and 3 deletions
|
|
@ -101,7 +101,8 @@ const BlockRotProfile BlockRotProfile::NONE {
|
|||
{{1, 0, 0}, {0, 1, 0}, {0, 0, 1}}, // West
|
||||
{{1, 0, 0}, {0, 1, 0}, {0, 0, 1}}, // Up
|
||||
{{1, 0, 0}, {0, 1, 0}, {0, 0, 1}}, // Down
|
||||
}
|
||||
},
|
||||
0
|
||||
};
|
||||
|
||||
const BlockRotProfile BlockRotProfile::PIPE {
|
||||
|
|
@ -113,7 +114,8 @@ const BlockRotProfile BlockRotProfile::PIPE {
|
|||
{{0, 0, -1}, {1, 0, 0}, {0, -1, 0}}, // West
|
||||
{{1, 0, 0}, {0, 1, 0}, {0, 0, 1}}, // Up
|
||||
{{1, 0, 0}, {0, -1, 0}, {0, 0, -1}}, // Down
|
||||
}
|
||||
},
|
||||
6
|
||||
};
|
||||
|
||||
const BlockRotProfile BlockRotProfile::PANE {
|
||||
|
|
@ -123,7 +125,8 @@ const BlockRotProfile BlockRotProfile::PANE {
|
|||
{{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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue