Fix : maidroids fly no gravity

This commit is contained in:
tacigar 2016-06-15 10:57:17 +09:00
parent b992447292
commit 7887bc7b95
1 changed files with 4 additions and 1 deletions

View File

@ -104,7 +104,10 @@ function maidroid.register_maidroid(product_name, def)
end
-- initialize module
if self.module then self.module.initialize(self)
else self.object:setvelocity{x = 0, y = 0, z = 0} end
else
self.object:setvelocity{x = 0, y = 0, z = 0}
self.object:setacceleration{x = 0, y = -10, z = 0}
end
end,
on_step = function(self, dtime)