Fixed matrices alignment (cosmetic)

master
entuland 2018-06-10 00:30:04 +02:00
parent 088d58dd63
commit 300f0c61da
1 changed files with 20 additions and 20 deletions

View File

@ -493,46 +493,46 @@ function wesh._init_transforms()
-- no rotation
rot[0] = {{ 1, 0, 0},
{ 0, 1, 0},
{ 0, 0, 1}}
{ 0, 1, 0},
{ 0, 0, 1}}
-- 90 degrees clockwise
rot[1] = {{ 0, 0, 1},
{ 0, 1, 0},
{ -1, 0, 0}}
{ 0, 1, 0},
{ -1, 0, 0}}
-- 180 degrees
rot[2] = {{ -1, 0, 0},
{ 0, 1, 0},
{ 0, 0, -1}}
{ 0, 1, 0},
{ 0, 0, -1}}
-- 270 degrees clockwise
rot[3] = {{ 0, 0, -1},
{ 0, 1, 0},
{ 1, 0, 0}}
{ 0, 1, 0},
{ 1, 0, 0}}
-- directions
-- Y+
dir[0] = {{ 1, 0, 0},
{ 0, 1, 0},
{ 0, 0, 1}}
{ 0, 1, 0},
{ 0, 0, 1}}
-- Z+
dir[1] = {{ 1, 0, 0},
{ 0, 0, -1},
{ 0, 1, 0}}
{ 0, 0, -1},
{ 0, 1, 0}}
-- Z-
dir[2] = {{ 1, 0, 0},
{ 0, 0, 1},
{ 0, -1, 0}}
{ 0, 0, 1},
{ 0, -1, 0}}
-- X+
dir[3] = {{ 0, 1, 0},
{ -1, 0, 0},
{ 0, 0, 1}}
{ -1, 0, 0},
{ 0, 0, 1}}
-- X-
dir[4] = {{ 0, -1, 0},
{ 1, 0, 0},
{ 0, 0, 1}}
{ 1, 0, 0},
{ 0, 0, 1}}
-- Y-
dir[5] = {{ -1, 0, 0},
{ 0, -1, 0},
{ 0, 0, 1}}
{ 0, -1, 0},
{ 0, 0, 1}}
wesh.facedir_transform = {}