diff options
author | Aki <nthirtyone@gmail.com> | 2017-09-11 19:22:18 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-09-11 19:22:18 +0200 |
commit | 81ec1a6509b0f349c145dd1b4d40029d141cbd6e (patch) | |
tree | 9e8f9211974ca5559d144e43307963972f5c744e /not/PhysicalBody.lua | |
parent | 9ddacd0f6481661cdaeab8abf2000b45a296faee (diff) | |
download | roflnauts-81ec1a6509b0f349c145dd1b4d40029d141cbd6e.zip roflnauts-81ec1a6509b0f349c145dd1b4d40029d141cbd6e.tar.gz roflnauts-81ec1a6509b0f349c145dd1b4d40029d141cbd6e.tar.bz2 |
Debug drawing changed to use new Camera properly
Diffstat (limited to 'not/PhysicalBody.lua')
-rw-r--r-- | not/PhysicalBody.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 |