Page 1 of 1

understanding facedir

PostPosted: Mon Dec 15, 2014 06:52
by LocaL_ALchemisT
when a node with paramtype2 = "facedir" is placed, it will face towards the placer.

how does it work? what are the factors facedir value depends on? what's the algorithm?

many thanks in advance

Re: understanding facedir

PostPosted: Mon Dec 15, 2014 13:13
by 4aiman
facedir modulo 4 = axisdir
More at: https://github.com/minetest/minetest/bl ... i.txt#L403

See also: player:get_look_dir()