See the red box, between the terrain? That's where the character should also be. When the rectangle is up-right, it seems to correctly place the user's avatar.
However, it's when the rectangle isn't up-right / angled / that I have the problem. Here's the source.
Code: Select all
love.graphics.draw(uiImageFile, object.Body:getX()-math.ceil(part.Size.x / 2), object.Body:getY()-math.ceil(part.Size.y / 2), [b]math.pi * object.Body:getAngle()[/b])