Linear Dampening and wobbly sprite movement
Posted: Sat Apr 16, 2016 12:29 am
I have an image that I render and is moved by a Body. When I apply linear dampening on the body the image's pixels wobble just before it stops completely. Is there a way to stop that from happening?
Code: Select all
draw = function(self)
local x, y = self.body:getPosition()
local width, height = self.image:getDimensions()
love.graphics.draw(self.image, x, y, self.body:getAngle(), .25, .25, width/2, height/2)
end