Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

Wow! That's really interesting, I had a feeling it was something to do with toggling layers but I couldn't put it all together myself. Really impressive. For my game, I used Unity and kept track of the object rotation and original face direction vector. Each time you move, it updates 6 vector variables based on the new rotation, where each vector corresponds to a side. To check to see if a certain side is face up, I  simply just check to see if the face vector is equal to Vector3.up, or (0, 1, 0). I tried to keep it as simple as possible and this solution works pretty well. I hope that makes sense haha.

that makes sense, just to make sure i understood correctly, you rotate all the vectors (which themselves represent a face) when rotating the cube and simply get whichever is currently Vector3.up to know it's the one facing up?