1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

ObjectRef: Add add_velocity() (#3208)

Allow changing the velocity of objects relatively to their current velocity
This commit is contained in:
you 2018-03-31 14:48:38 +02:00 committed by SmallJoker
parent 0a8ca59891
commit 93eb0794d6
5 changed files with 27 additions and 1 deletions

View file

@ -39,7 +39,7 @@ core.register_entity(":__builtin:falling_node", {
on_activate = function(self, staticdata)
self.object:set_armor_groups({immortal = 1})
local ds = core.deserialize(staticdata)
if ds and ds.node then
self:set_node(ds.node, ds.meta)