Fix : maidroids fly no gravity

This commit is contained in:
tacigar 2016-06-15 10:57:17 +09:00
parent b992447292
commit 7887bc7b95

View File

@ -104,7 +104,10 @@ function maidroid.register_maidroid(product_name, def)
end end
-- initialize module -- initialize module
if self.module then self.module.initialize(self) 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, end,
on_step = function(self, dtime) on_step = function(self, dtime)