diff options
author | you <ovvv@web.de> | 2018-03-31 14:48:38 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-03-31 14:50:17 +0200 |
commit | 93eb0794d6f7366df5fb375855b2e5e5888304c6 (patch) | |
tree | f07bbb4af6148aecb28c3441232601c28f33500b /doc | |
parent | 0a8ca598915a906e665141dc79fc0c1bbab8cc91 (diff) | |
download | minetest-93eb0794d6f7366df5fb375855b2e5e5888304c6.tar.gz minetest-93eb0794d6f7366df5fb375855b2e5e5888304c6.tar.bz2 minetest-93eb0794d6f7366df5fb375855b2e5e5888304c6.zip |
ObjectRef: Add add_velocity() (#3208)
Allow changing the velocity of objects relatively to their current velocity
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 69c4b3262..00f5e3f71 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -4029,6 +4029,10 @@ This is basically a reference to a C++ `ServerActiveObject` ##### LuaEntitySAO-only (no-op for other objects) * `set_velocity(vel)` * `vel` is a vector, e.g. `{x=0.0, y=2.3, z=1.0}` +* `add_velocity(vel)` + * `vel` is a vector, e.g. `{x=0.0, y=2.3, z=1.0}` + * In comparison to using get_velocity, adding the velocity and then using + set_velocity, add_velocity is supposed to avoid synchronization problems. * `get_velocity()`: returns the velocity, a vector * `set_acceleration(acc)` * `acc` is a vector |