[FIX] Fix on_punch bug of maidroid

This commit is contained in:
tacigar
2016-09-18 08:45:14 +09:00
parent de7ede9d8d
commit b473843752
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@
local state = {IDLE = 0, ACCOMPANY = 1}
local function on_start(self)
print("KOKO")
self.state = state.IDLE
self.object:setacceleration{x = 0, y = -10, z = 0}
self.object:setvelocity{x = 0, y = 0, z = 0}