Search found 2 matches

by Sawbones
Sat Apr 16, 2016 12:29 am
Forum: Support and Development
Topic: Linear Dampening and wobbly sprite movement
Replies: 2
Views: 1359

Linear Dampening and wobbly sprite movement

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? draw = function(self) local x, y = self.body:getPosition() local width, height = self.image:getDimens...
by Sawbones
Fri Apr 15, 2016 11:12 pm
Forum: Support and Development
Topic: Body not moving when calling applyForce
Replies: 2
Views: 1379

Body not moving when calling applyForce

local Class = require 'lib.hump.class' local Player = Class{ init = function(self, x, y) self.body = love.physics.newBody(world, x, y, "dynamic") -- self.shape = love.physics.newRectangleShape(50, 50) -- self.fixture = love.physics.newFixture(self.body, self.shape, 1) self.image = love.gr...