Acces other class array elements

Howdy! 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?
Last edited on
Topic archived. No new replies allowed.