How can I set Linear Velocity in only X direction without effecting the motion of Y Direction to a body in LIBGDX Box2D. I applied an impulse to the body to make it jump now I want to move it towards right or left I tried applying the following method:
setLinearVelocity(Vector2)
But it is stopping the vertical motion. Thanks