阅读背景:

如何在一维数组中“变平”或“索引”3d数组?

来源:互联网 

I am trying to flatten 3D array into 1D array for "chunk" system in my game. It's a 3D-block game and basically I want the chunk system to be almost identical to Minecraft's system (however, this isn't Minecraft clone by any measure). In my previous 2D-games I have accessed the flattened array with following algorithm:I am trying to flatten 3D array into 1D array f




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: