Is there a way to split the numbers for param2 of 6d facedir nodes (numbers 0 -23) into the mounted wall and rotation?
And manipulate the rotation and put it again together to a valid param2?
To be more precise: I want to split the param2 eg. 19 to split into 0 ( = mounted on ground (-Y)) and 1 (=rotated about 90 degree).
Is this possible to calculate this, or do I have to write huge tables and a lot of if else?
I currently use this table, but it only lists the next param2 if you want to rotate clockwise:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
{
-- Mounted on Ground (-Y)
[10]=19,
[19]=4,
[4]=13,
[13]=10,
-- Mounted on Top (+Y)
[8]=17,
[17]=6,
[6]=15,
[15]=8,
-- Mounted at South (-Z)
[2]=18, -- down
[18]=22, -- left
[22]=14, -- up
[14]=2, -- right
-- Mounted at North (+Z)
[0]=12, -- down
[12]=20, -- left
[20]=16, -- up
[16]=0, -- right
-- Mounted at West (-X)
[3]=7, -- down
[7]=21, -- left
[21]=11, -- up
[11]=3, -- right
-- Mounted at East (+X)
[1]=9, -- down
[9]=23, -- left
[23]=5, -- up
[5]=1, -- right
}
Thanks for any help