mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-22 10:29:47 +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++) {
|
||||
|
|
|
|||
|
|
@ -90,9 +90,13 @@ struct BlockRotProfile {
|
|||
/// @brief Stairs, stairs and stairs
|
||||
static const BlockRotProfile STAIRS;
|
||||
|
||||
/// @brief Ladders, wall signs, paintings
|
||||
static const BlockRotProfile LADDER;
|
||||
|
||||
static inline std::string PIPE_NAME = "pipe";
|
||||
static inline std::string PANE_NAME = "pane";
|
||||
static inline std::string STAIRS_NAME = "stairs";
|
||||
static inline std::string LADDER_NAME = "ladder";
|
||||
};
|
||||
|
||||
enum class BlockModelType {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue