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 --- src/script/lua_api/l_object.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/script/lua_api/l_object.h') diff --git a/src/script/lua_api/l_object.h b/src/script/lua_api/l_object.h index 58cfe7146..21c215c3f 100644 --- a/src/script/lua_api/l_object.h +++ b/src/script/lua_api/l_object.h @@ -161,6 +161,9 @@ private: // set_velocity(self, {x=num, y=num, z=num}) static int l_set_velocity(lua_State *L); + // add_velocity(self, {x=num, y=num, z=num}) + static int l_add_velocity(lua_State *L); + // get_velocity(self) static int l_get_velocity(lua_State *L); -- cgit v1.2.3