summaryrefslogtreecommitdiff
path: root/objects/Obstacle.lua
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-12 17:53:56 +0800
committerEltrac <hi@guhub.cn>2025-03-12 17:53:56 +0800
commit4bfe8d7679bfce861c03cff728d1aa9f44efeff9 (patch)
tree72fc525cd25811e6b0f7e198bfb1c3ee036bb73e /objects/Obstacle.lua
parent0910dc3f66fe377df51724c6559fa168ce6c5a8f (diff)
refactor: remove unused method
Diffstat (limited to 'objects/Obstacle.lua')
-rw-r--r--objects/Obstacle.lua15
1 files changed, 0 insertions, 15 deletions
diff --git a/objects/Obstacle.lua b/objects/Obstacle.lua
index a0686f3..51a1ee6 100644
--- a/objects/Obstacle.lua
+++ b/objects/Obstacle.lua
@@ -30,21 +30,6 @@ function Obstacle:getBorders()
return { left, right, top, bottom }
end
-function Obstacle:isMet(body, currentX, currentY, dv, dir)
- -- x,y should be the predicted next location of this body
- -- dv = speed * dt * direction
- local x, y
- if dir == Direction.LEFT or dir == Direction.RIGHT then
- x = currentX + dv
- y = currentY
- elseif dir == Direction.UP or dir == Direction.DOWN then
- x = currentX
- y = currentY + dv
- end
-
- return self.body:collide(body, self.x, self.y, x, y)
-end
-
function Obstacle:update(dt)
-- nothing yet
end