aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorElia Argentieri <elia.argentieri@openmailbox.org>2015-06-25 14:57:10 +0200
committerest31 <MTest31@outlook.com>2015-07-20 05:40:44 +0200
commit5ebb4237e204bfa760313f6f2a46a09dceb9cce0 (patch)
tree2a3b9d6e63ef9809919173d8052fb50474d1458b /doc
parent7bbb9b066a8cc079512ddd3e6b32475309f49fca (diff)
downloadminetest-5ebb4237e204bfa760313f6f2a46a09dceb9cce0.tar.gz
minetest-5ebb4237e204bfa760313f6f2a46a09dceb9cce0.tar.bz2
minetest-5ebb4237e204bfa760313f6f2a46a09dceb9cce0.zip
Added get_player_velocity() method. Fixes #1176
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 34d22cdb8..e156d75e4 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2470,6 +2470,7 @@ This is basically a reference to a C++ `ServerActiveObject`
##### Player-only (no-op for other objects)
* `get_player_name()`: returns `""` if is not a player
+* `get_player_velocity()`: returns `nil` if is not a player otherwise a table {x, y, z} representing the player's instantaneous velocity in nodes/s
* `get_look_dir()`: get camera direction as a unit vector
* `get_look_pitch()`: pitch in radians
* `get_look_yaw()`: yaw in radians (wraps around pretty randomly as of now)