Friction is a force that opposes the relative motion or attempted motion of two surfaces in contact. It always acts in the direction opposite to the motion or attempted motion of the surfaces. The amount of friction depends on the roughness of the surfaces - rougher surfaces have more friction. Friction produces heat and can be useful for preventing slipping, but it is also reduced using lubricants to minimize wear on machine parts. Air resistance is a type of friction that acts on objects moving through air. Streamlined shapes experience less air resistance than non-streamlined shapes.