From 6b5c57bfda816b94520dd17af51ee18ad703fc49 Mon Sep 17 00:00:00 2001 From: tacigar Date: Tue, 13 Sep 2016 22:54:17 +0900 Subject: [PATCH] [DELETE] Delete print debug --- maidroid/api.lua | 1 - maidroid_core_basic/register.lua | 1 - 2 files changed, 2 deletions(-) diff --git a/maidroid/api.lua b/maidroid/api.lua index 8c80d3c..9813bd5 100644 --- a/maidroid/api.lua +++ b/maidroid/api.lua @@ -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 diff --git a/maidroid_core_basic/register.lua b/maidroid_core_basic/register.lua index 62a1367..e48099a 100644 --- a/maidroid_core_basic/register.lua +++ b/maidroid_core_basic/register.lua @@ -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