From 93eb0794d6f7366df5fb375855b2e5e5888304c6 Mon Sep 17 00:00:00 2001 From: you Date: Sat, 31 Mar 2018 14:48:38 +0200 Subject: ObjectRef: Add add_velocity() (#3208) Allow changing the velocity of objects relatively to their current velocity --- doc/lua_api.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') 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 -- cgit v1.2.3