summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Ouellette <oue.paul18@gmail.com>2019-02-07 16:26:06 -0500
committerParamat <paramat@users.noreply.github.com>2019-02-07 21:26:06 +0000
commitd5456da69de6d74206a8513fc53db38c7dd4bd22 (patch)
treee0586b970acf83833c54166caaa00a9b8820bc05 /doc
parentfc566e2e1074e501283d4be70a654d6b79ef07ff (diff)
downloadminetest-d5456da69de6d74206a8513fc53db38c7dd4bd22.tar.gz
minetest-d5456da69de6d74206a8513fc53db38c7dd4bd22.tar.bz2
minetest-d5456da69de6d74206a8513fc53db38c7dd4bd22.zip
Use true pitch/yaw/roll rotations without loss of precision by pgimeno (#8019)
Store the rotation in the node as a 4x4 transformation matrix internally (through IDummyTransformationSceneNode), which allows more manipulations without losing precision or having gimbal lock issues. Network rotation is still transmitted as Eulers, though, not as matrix. But it will stay this way in 5.0.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index d2ab9de29..26d8a3d91 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -5074,9 +5074,10 @@ This is basically a reference to a C++ `ServerActiveObject`
* `acc` is a vector
* `get_acceleration()`: returns the acceleration, a vector
* `set_rotation(rot)`
- * `rot` is a vector (radians)
-* `get_rotation()` : returns the rotation, a vector (radians)
-* `set_yaw(radians)`
+ * `rot` is a vector (radians). X is pitch (elevation), Y is yaw (heading)
+ and Z is roll (bank).
+* `get_rotation()`: returns the rotation, a vector (radians)
+* `set_yaw(radians)`: sets the yaw (heading).
* `get_yaw()`: returns number in radians
* `set_texture_mod(mod)`
* `get_texture_mod()` returns current texture modifier