mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-29 18:33:01 +00:00
Starbeamrainbowlabs
e2167c4ba3
Ref https://discord.com/channels/1135598362821935254/1247681375935533119
---------------------------------------
Hi, a wild //orient+ appeared! While it (probably) doesn't crash, it also unfortunately doesn't work yet.
This is because facedir e.g. points towards the direction the node is pointing, and minetest.facedir_to_dir doesn't capture all the nuance of how the node is pointing, and e.g. if a node is pointing +y and you want to rotate by (0, 90, 0) [degrees], then the current implementation won't do anything.
Then I decided that this is silly and there has to be a solution. After all, screwdriver2 has a great implementation! https://content.minetest.net/packages/12Me21/screwdriver2/
....then I found this lookup table in their codebase: https://github.com/12Me21/screwdriver2/blob/master/init.lua#L75-L79
....aaaaarrrggggghhhhh //orient+ is such a pain to implement!
and my existing implementation is so neat 😢
|
||
---|---|---|
.. | ||
format | ||
io | ||
parse | ||
strings | ||
table | ||
terrain | ||
bit.lua | ||
chaikin.lua | ||
EventEmitter.lua | ||
inspect.lua | ||
lru.lua | ||
lru_benchmark.lua | ||
mesh.lua | ||
node_identification.lua | ||
NodeListMatcher.lua | ||
nodes.lua | ||
numbers.lua | ||
param2.lua | ||
player.lua | ||
queue.lua | ||
raycast_adv.lua | ||
rotation.lua | ||
set.lua | ||
setting_handler.lua | ||
vector3.lua |