slap_rotate/data/axis.lua
AspireMint 76a9ccfc85
Initial commit
Wohooo!
2020-12-22 18:36:40 +01:00

16 lines
496 B
Lua

local AXIS = {
x = 0,
y = 1,
z = 2
}
local LOOK_DIR = {
[0] = {axis_index=AXIS.z, polarity=1, perpendicular_axis_index=AXIS.x},
[1] = {axis_index=AXIS.x, polarity=-1, perpendicular_axis_index=AXIS.z},
[2] = {axis_index=AXIS.z, polarity=-1, perpendicular_axis_index=AXIS.x},
[3] = {axis_index=AXIS.x, polarity=1, perpendicular_axis_index=AXIS.z},
y = {axis_index=AXIS.y, polarity=-1, perpendicular_axis_index=AXIS.y}, --[[special case]]--
}
return AXIS, LOOK_DIR