Time |
Nick |
Message |
06:56 |
|
sfan5 joined #minetest-mods |
08:25 |
|
jordach joined #minetest-mods |
08:57 |
|
chinabootlegmake joined #minetest-mods |
10:49 |
|
chinabootlegmake joined #minetest-mods |
11:27 |
|
thexyz joined #minetest-mods |
12:40 |
|
NakedFury joined #minetest-mods |
13:37 |
|
jordach joined #minetest-mods |
17:03 |
|
triplei joined #minetest-mods |
18:53 |
|
thexyz joined #minetest-mods |
20:04 |
|
thexyz joined #minetest-mods |
20:48 |
|
khonkhortisan joined #minetest-mods |
20:48 |
khonkhortisan |
how do I dir = minetest.facedir_to_dir(node.param2) ? |
21:07 |
khonkhortisan |
a drawer shouldn't open if there's something in front of it |
21:15 |
thexyz |
what did you mean by "how do I dir = minetest.facedir_to_dir(node.param2) "? |
21:15 |
khonkhortisan |
I want to turn a facedir back into a dir |
21:18 |
thexyz |
so that command does the trick |
21:20 |
khonkhortisan |
there is a minetest.dir_to_facedir(dir) function but there's no minetest.facedir_to_dir(facedir) function |
21:21 |
thexyz |
oh |
21:22 |
thexyz |
but it should be somehow simple to make it |
21:26 |
khonkhortisan |
yuck the collision box for my node_box changes based on facedir |
21:27 |
khonkhortisan |
I made a function that ran dir_to_facedir for every dir, then if it matched the facedir, returned the negated dir |
21:30 |
thexyz |
oh, that's bad hack |
21:31 |
thexyz |
why just not use dir_to_facedir code to see what facedir is for what dir |
21:31 |
thexyz |
0 → 0, 1 |
21:31 |
thexyz |
1 → 1,0 |
21:31 |
thexyz |
2 → 0,-1 |
21:31 |
thexyz |
3 → -1,0 |
21:31 |
thexyz |
x,z |
21:49 |
khonkhortisan |
I added the dir to the pos when I should've subtracted |