local xacc = 2
local yacc = 1

function update(obj, current_time)
	local horinp = input.get('horizontal') * xacc
	local vertinp = input.get('vertical') * yacc

	obj:apply_force(vector.new(horinp,
				   vertinp))
end

coroutine.yield()


local xacc = 2
local yacc = 1

function update(obj, current_time)
	local horinp = input.get('horizontal') * xacc
	local vertinp = input.get('vertical') * yacc

	obj:apply_impulse(vector.new(horinp,
				   vertinp))
end

coroutine.yield()


Apply an impulse instead of a force
Apply an impulse instead of a force

It feels much nicer
