Arnas wrote:
i want my player body to move to a certain point where i clicked and stop there.
to do this i want the body to move in a straight line, so the body has to be stopped for the force to move it in a straight line, but i can't figure out how to stop it from moving in an instant. changing linearVelocity to (0,0) and angularVelocity to 0 doesn't seem to stop it.
Are you using the body's SetLinearVelocity() and SetAngularVelocity() functions to stop it? Altering the body definition that is stored in the body after it's already been made will not change the behavior of the body.