implement drag physics for linear movement