Here I have tried a very simple simulation the motion of a homonuclear diatomic molecule. This includes rotational motion, vibrational motion and translational motion.
- press shift + enter at the end of code and run the slider.
- make vibrations more visible
- add translation with a suitable background to give a sense of relative motion.