Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static const u8 dir_to_tile[24 * 8] =
- {
- // 0 +X +Y +Z 0 -Z -Y -X
- 0, 2, 0, 4, 0, 5, 1, 3, // rotate over y+ 0 - 3
- 0, 4, 0, 3, 0, 2, 1, 5,
- 0, 3, 0, 5, 0, 4, 1, 2,
- 0, 5, 0, 2, 0, 3, 1, 4,
- 0, 3, 5, 0, 0, 1, 4, 2, // rotate over z+ 4 - 7
- 0, 5, 3, 0, 0, 1, 2, 4,
- 0, 3, 4, 0, 0, 1, 5, 2,
- 0, 4, 2, 0, 0, 1, 3, 5,
- 0, 2, 5, 1, 0, 0, 4, 3, // rotate over z- 8 - 11
- 0, 5, 2, 1, 0, 0, 3, 4,
- 0, 3, 4, 1, 0, 0, 5, 2,
- 0, 4, 3, 1, 0, 0, 2, 5,
- 0, 0, 5, 2, 0, 3, 4, 1, // rotate over x+ 12 - 15
- 0, 0, 3, 5, 0, 4, 2, 1,
- 0, 0, 4, 3, 0, 2, 5, 1,
- 0, 0, 2, 4, 0, 5, 3, 1,
- 0, 1, 5, 3, 0, 2, 4, 0, // rotate over x- 16 - 19
- 0, 1, 2, 5, 0, 4, 3, 0,
- 0, 1, 4, 2, 0, 3, 5, 0,
- 0, 1, 3, 4, 0, 5, 2, 0,
- 0, 3, 1, 4, 0, 5, 0, 2, // rotate over y- 20 - 23
- 0, 4, 1, 2, 0, 3, 0, 5,
- 0, 2, 1, 5, 0, 4, 0, 3,
- 0, 5, 1, 3, 0, 2, 0, 4,
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement