diff options
author | Aritz Erkiaga <38228836+aerkiaga@users.noreply.github.com> | 2022-09-25 13:45:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-25 13:45:02 +0200 |
commit | 5ced5c9b27a3c534bcbd7d095affe2f65d07e9b1 (patch) | |
tree | 25508b4645cbb9eec21e15aa7e57d5208ea32c4e /doc/lua_api.txt | |
parent | 1317cd12d74dba4ff765d6e18b0b30cdf42002a3 (diff) | |
download | minetest-5ced5c9b27a3c534bcbd7d095affe2f65d07e9b1.tar.xz |
Briefly explain how facedir rotations work (#11934)
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 9a23bf0c7..1982654c4 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1085,7 +1085,10 @@ The function of `param2` is determined by `paramtype2` in node definition. * Values range 0 - 23 * facedir / 4 = axis direction: 0 = y+, 1 = z+, 2 = z-, 3 = x+, 4 = x-, 5 = y- - * facedir modulo 4 = rotation around that axis + * The node is rotated 90 degrees around the X or Z axis so that its top face + points in the desired direction. For the y- direction, it's rotated 180 + degrees around the Z axis. + * facedir modulo 4 = left-handed rotation around the specified axis, in 90° steps. * By default, on placement the param2 is automatically set to the horizondal direction the player was looking at (values 0-3) * Special case: If the node is a connected nodebox, the nodebox |