Why it behaves this way
Explanation
Conservation of momentum is the system version of the impulse story. If no external impulse acts on the system, then the total momentum of all the objects together stays constant even while the objects shove, pull, or collide with one another internally.
This module keeps that idea bounded with two carts on one track and one internal interaction window. You can change the masses, the shared system drift, and the internal force pair, then watch the individual momenta redistribute while the total momentum and center-of-mass motion stay honest.