mirror of
https://github.com/tacigar/maidroid.git
synced 2024-11-17 15:48:16 +01:00
[DELETE] Delete print debug
This commit is contained in:
parent
409001d7e3
commit
6b5c57bfda
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user