Acces other class array elements

Hey! I'm making a chunk system like minecraft ones, and I need to gather element from it's neighbor to optimize the faces drawn or not between the chunks.

So I store my chunks in an 3 array. And I want to get the neighbors that are
x, y + 1, z
x + 1, y, z etc etc.

I'm thinking of using this because it is a pointer to the element. It would work? And if yes, how I'm supposed to get it's neighbors?

http://csgofreeskins.eu/
Last edited on
I'm pretty sure minecraft works with voxels. (i.e 3d pixels)
Topic archived. No new replies allowed.