diff options
author | ANAND <ClobberXD@gmail.com> | 2020-05-17 01:12:31 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-16 21:42:31 +0200 |
commit | c1ce4be756e2554051a27f244303377c0a7d69a6 (patch) | |
tree | e55eb5c2a2cc85122de0d1a1a5571d39cb550b61 /doc | |
parent | ab745685c79cd7b0fa8f74b96e190c528d620608 (diff) | |
download | minetest-c1ce4be756e2554051a27f244303377c0a7d69a6.tar.gz minetest-c1ce4be756e2554051a27f244303377c0a7d69a6.tar.bz2 minetest-c1ce4be756e2554051a27f244303377c0a7d69a6.zip |
Make automatic_rotate relative, allow setting rotation (#8468)
automatic_rotate does not make sense if it is absolute. Make it relative.
To avoid bouncing, set_rotation did not update the client when automatic_rotate was set. That's no longer necessary because the new spinning method applies the rotation on top of the current one, and the updates are necessary for set_rotation to actually transform the object.
Co-authored-by: ANAND <ClobberXD@gmail.com>
Co-authored-by: Pedro Gimeno <pgimeno@users.noreply.notabug.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 9685e8307..07758c237 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -6555,6 +6555,7 @@ Player properties need to be saved manually. automatic_rotate = 0, -- Set constant rotation in radians per second, positive or negative. + -- Object rotates along the local Y-axis, and works with set_rotation. -- Set to 0 to disable constant rotation. stepheight = 0, |