]> git.lizzy.rs Git - minetest.git/commitdiff
Document orientation parameter of set_attach (#6473)
authorraymoo <raymoo@users.noreply.github.com>
Thu, 28 Sep 2017 16:40:47 +0000 (09:40 -0700)
committerSmallJoker <mk939@ymail.com>
Sun, 3 Jun 2018 15:31:59 +0000 (17:31 +0200)
doc/lua_api.txt

index 8e750c5a4c29bcb233ac9d3e7101fcbb6f2f38af..c1799d79eef358840e79e9d521c2688d2686e3f8 100644 (file)
@@ -3182,7 +3182,7 @@ This is basically a reference to a C++ `ServerActiveObject`
 * `set_attach(parent, bone, position, rotation)`
     * `bone`: string
     * `position`: `{x=num, y=num, z=num}` (relative)
-    * `rotation`: `{x=num, y=num, z=num}`
+    * `rotation`: `{x=num, y=num, z=num}` = Rotation on each axis, in degrees
 * `get_attach()`: returns parent, bone, position, rotation or nil if it isn't attached
 * `set_detach()`
 * `set_bone_position(bone, position, rotation)`