Tag Info

New answers tagged

1

I'm also building a voxel like game, and this is how I do it. I store a list of Chunks in an array. Each chunk have a position, and an short array of voxel materials. Heres my local chunk get and set methods: public short getBlock(byte x, byte y, byte z) { return blocks[y+(x*16)+(z*256)]; } public void setBlock(byte x, byte y, byte z, short id) ...



Top 50 recent answers are included