understanding facedir

Post Reply
User avatar
LocaL_ALchemisT
Member
Posts: 56
Joined: Thu Jul 19, 2012 16:21
Location: Asia Tenggara

understanding facedir

by LocaL_ALchemisT » Post

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
Built Telegate v1.0, Workers v2.0, Broadcast v0.0 & Weeping Angel v0.1
Having A Buzy Week
From 0.4.10 with love~

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

Re: understanding facedir

by 4aiman » Post

facedir modulo 4 = axisdir
More at: https://github.com/minetest/minetest/bl ... i.txt#L403

See also: player:get_look_dir()

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests