Add Lua methods 'set_rotation()' and 'get_rotation()' (#7395)
[oweals/minetest.git] / doc / lua_api.txt
index 44902725dba471569aa241edb750892db198a3d4..a07356d00ad8a3012f8e4be45b72346991069c1a 100644 (file)
@@ -5070,6 +5070,9 @@ This is basically a reference to a C++ `ServerActiveObject`
 * `set_acceleration(acc)`
     * `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)`
 * `get_yaw()`: returns number in radians
 * `set_texture_mod(mod)`