mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
parent
eba7eed8c0
commit
a46aafa562
5 changed files with 38 additions and 17 deletions
|
|
@ -171,7 +171,7 @@ void VoxelFragment::prepare(const Content& content) {
|
|||
}
|
||||
|
||||
void VoxelFragment::place(
|
||||
GlobalChunks& chunks, const glm::ivec3& offset, ubyte rotation
|
||||
GlobalChunks& chunks, const glm::ivec3& offset
|
||||
) {
|
||||
auto& structVoxels = getRuntimeVoxels();
|
||||
for (int y = 0; y < size.y; y++) {
|
||||
|
|
|
|||
|
|
@ -45,8 +45,7 @@ public:
|
|||
|
||||
/// @brief Place fragment to the world
|
||||
/// @param offset target location
|
||||
/// @param rotation rotation index
|
||||
void place(GlobalChunks& chunks, const glm::ivec3& offset, ubyte rotation);
|
||||
void place(GlobalChunks& chunks, const glm::ivec3& offset);
|
||||
|
||||
/// @brief Create structure copy rotated 90 deg. clockwise
|
||||
std::unique_ptr<VoxelFragment> rotated(const Content& content) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue