aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_object.h
diff options
context:
space:
mode:
authoryou <ovvv@web.de>2018-03-31 14:48:38 +0200
committerSmallJoker <mk939@ymail.com>2018-03-31 14:50:17 +0200
commit93eb0794d6f7366df5fb375855b2e5e5888304c6 (patch)
treef07bbb4af6148aecb28c3441232601c28f33500b /src/script/lua_api/l_object.h
parent0a8ca598915a906e665141dc79fc0c1bbab8cc91 (diff)
downloadhax-minetest-server-93eb0794d6f7366df5fb375855b2e5e5888304c6.tar.gz
hax-minetest-server-93eb0794d6f7366df5fb375855b2e5e5888304c6.zip
ObjectRef: Add add_velocity() (#3208)
Allow changing the velocity of objects relatively to their current velocity
Diffstat (limited to '')
-rw-r--r--src/script/lua_api/l_object.h3
1 files changed, 3 insertions, 0 deletions
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);