I'm making a game where I use love.physics and I only want to change the x velocity instead of both x and y.
In a normal physics game where you change both velocities it would go something like this:
But for my game I only need to change the x velocity and not both. I tried doing body:setLinearVelocity(100, body:getLinearVelocity) and it just made it float when moving in a straight line.
Is there a way to only change the x velocity instead of both? Thanks in advance
Last edited by Doctory on Wed Jun 08, 2016 7:31 pm, edited 1 time in total.