summaryrefslogtreecommitdiff
path: root/entity.lua
diff options
context:
space:
mode:
Diffstat (limited to 'entity.lua')
-rw-r--r--entity.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/entity.lua b/entity.lua
index c85dc71..6c922aa 100644
--- a/entity.lua
+++ b/entity.lua
@@ -35,8 +35,8 @@ end
function Entity:syncFromPhysicsBody()
if not self.body then return end
- self.x = self.body:getX() - self.physicsWidth
- self.y = self.body:getY() - self.height + self.physicsHeight / 2
+ self.x = self.body:getX() - self.physicsWidth / 2
+ self.y = self.body:getY() - self.physicsHeight / 2
end
function getEntityCorners(entity)