From 81ec1a6509b0f349c145dd1b4d40029d141cbd6e Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 11 Sep 2017 19:22:18 +0200 Subject: Debug drawing changed to use new Camera properly --- not/PhysicalBody.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'not/PhysicalBody.lua') diff --git a/not/PhysicalBody.lua b/not/PhysicalBody.lua index 804c706..c9b7300 100644 --- a/not/PhysicalBody.lua +++ b/not/PhysicalBody.lua @@ -77,7 +77,8 @@ function PhysicalBody:draw (offset_x, offset_y, scale, debug) if category == 3 then love.graphics.setColor(137, 0, 255, 40) end - love.graphics.polygon("fill", self.world.camera:translatePoints(self.body:getWorldPoints(fixture:getShape():getPoints()))) + local camera = self.world.camera + love.graphics.polygon("fill", camera:scalePoints(self.body:getWorldPoints(fixture:getShape():getPoints()))) end end end -- cgit v1.1