A comprehensive investigation of the physical model of the Michelson interferometer is conducted, culminating in the development of a virtual simulation software for the Michelson interferometer experiment on the Unity platform. By integrating Unity's physics engine with custom algorithms, this simulation software accurately replicates the experimental procedure of the Michelson interferometer. It allows for precise adjustments to the positions of mirrors, mirror orientations, and translation stages, while dynamically displaying the resulting interference patterns. The simulation software enhances the pedagogical experience and facilitates a deeper understanding of optical principles. Test results demonstrate that the simulation's accuracy and outcomes align with those of actual experiments, providing a practical tool for the instruction of Michelson interferometer experiments.