[DELETE] Delete print debug

This commit is contained in:
tacigar 2016-09-13 22:54:17 +09:00
parent 409001d7e3
commit 6b5c57bfda
2 changed files with 0 additions and 2 deletions

View File

@ -86,7 +86,6 @@ end
-- maidroid.maidroid.get_front_node returns a node that exists in front of the maidroid.
function maidroid.maidroid.get_front_node(self)
local direction = self:get_look_direction()
print(direction.x, direction.z)
if math.abs(direction.x) >= 0.5 then
if direction.x > 0 then direction.x = 1 else direction.x = -1 end
else

View File

@ -49,7 +49,6 @@ local function on_step(self, dtime)
-- if maidroid is stoped by obstacle, the maidroid must jump.
if velocity.y == 0 and self.state == state.ACCOMPANY then
local front_node = self:get_front_node()
print(front_node.name)
if front_node.name ~= "air" then
self.object:setvelocity{x = direction.x, y = 5, z = direction.z}
end