+ while (position.x >= Chunk::width) {
+ position.x -= Chunk::width;
+ ++chunk.x;
+ }
+ while (position.x < 0) {
+ position.x += Chunk::width;
+ --chunk.x;
+ }
+ while (position.y >= Chunk::height) {
+ position.y -= Chunk::height;
+ ++chunk.y;
+ }
+ while (position.y < 0) {
+ position.y += Chunk::height;
+ --chunk.y;
+ }
+ while (position.z >= Chunk::depth) {
+ position.z -= Chunk::depth;
+ ++chunk.z;
+ }
+ while (position.z < 0) {
+ position.z += Chunk::depth;
+ --chunk.z;
+ }