forked from mtcontrib/maidroid
Fix : maidroids fly no gravity
This commit is contained in:
parent
b992447292
commit
7887bc7b95
5
api.lua
5
api.lua
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user