Motion simulation on ramp is an important part of the whole motion simulation of high-speed railway. In order to study the motion simulation of high-speed railway on ramp, this study puts forward a simulation method based on virtual reality. First, the high-speed railway model and terrain are constructed. Then, high-speed railway is abstracted into rope model, and the force and motion state of high-speed railway on ramp are analyzed from a dynamic point of view. Finally, related blueprint nodes are connected in virtual reality engine Unreal Engine, and it is applied to the high-speed railway simulation using the complete suite and real-time high-fidelity rendering effects provided by it. It provides a satisfied means and method for studying the design of high-speed railway line selection, simulated operation, and the adaptability of parameters such as train speed and terrain, so that the simulation effect can be matched with the actual operation status of the train to the maximum extent, and also to provide reference for other related studies.