the motion of an object is affected by friction