Of course, the mechanism works the same for all masses of interacting bodies and for any relative velocities between them. However, while the most probable outcome for an object moving through a cloud is a loss of momentum and energy, as described intuitively above, in the general case it might be either loss or gain. When the body under consideration is gaining momentum and energy the same physical mechanism is called slingshot effect, or gravity assist. This technique is sometimes used by interplanetary probes to obtain a boost in velocity by passing close by a planet.