mirror of
https://github.com/vrld/hump.git
synced 2024-11-23 12:24:19 +00:00
Add 'local'
This commit is contained in:
parent
762de78e51
commit
5abd0f599d
@ -74,7 +74,7 @@ end
|
||||
|
||||
function camera:toWorldCoords(p)
|
||||
local w,h = love.graphics.getWidth(), love.graphics.getHeight()
|
||||
p = vector((p.x-w/2) / self.zoom, (p.y-h/2) / self.zoom):rotate_inplace(-self.rot)
|
||||
local p = vector((p.x-w/2) / self.zoom, (p.y-h/2) / self.zoom):rotate_inplace(-self.rot)
|
||||
return p + self.pos
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user