1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Add rotation support for wallmounted nodes in 'ceiling' or 'floor' mode (#11073)

This commit is contained in:
Wuzzy 2024-01-17 17:47:06 +01:00 committed by GitHub
parent e7dd9737bd
commit 08ee6d8d4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 375 additions and 33 deletions

View file

@ -110,13 +110,15 @@ const v3s16 g_27dirs[27] =
v3s16(0,0,0),
};
const u8 wallmounted_to_facedir[6] = {
const u8 wallmounted_to_facedir[8] = {
20,
0,
16 + 1,
12 + 3,
8,
4 + 2
4 + 2,
20 + 1, // special 1
0 + 1 // special 2
};
const v3s16 wallmounted_dirs[8] = {