+ 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;
+ }