From a0f5b70568c1140085cba2e2d8d83b6ae6912ed1 Mon Sep 17 00:00:00 2001 From: hdastwb Date: Tue, 16 Jul 2013 20:50:41 -0400 Subject: added (optional) support for 6d facedir in dir_to_facedir and added facedir_to_dir --- doc/lua_api.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 1890682fd..b0281bee7 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1270,8 +1270,10 @@ minetest.inventorycube(img1, img2, img3) ^ Returns a string for making an image of a cube (useful as an item image) minetest.get_pointed_thing_position(pointed_thing, above) ^ Get position of a pointed_thing (that you can get from somewhere) -minetest.dir_to_facedir(dir) -^ Convert a vector to a facedir value, used in param2 for paramtype2="facedir" +minetest.dir_to_facedir(dir, is6d) +^ Convert a vector to a facedir value, used in param2 for paramtype2="facedir"; passing something non-nil/false for the optional second parameter causes it to take the y component into account +minetest.facedir_to_dir(facedir) +^ Convert a facedir back into a vector aimed directly out the "back" of a node minetest.dir_to_wallmounted(dir) ^ Convert a vector to a wallmounted value, used for paramtype2="wallmounted" minetest.get_node_drops(nodename, toolname) -- cgit v1.2.3