The limitations of the traditional "book-based" and "theoretical" clinical teaching mode of ophthalmopathy make its teaching effect poor. And it is difficult to help learners realize the practical transformation of theoretical knowledge, and the degree of application transformation of clinical knowledge is low. Therefore, the research uses the virtual simulation technology to design the teaching system, and based on the position dynamics and collision detection to model, and carries out simulation analysis on the designed system. The improvement of force feedback nodes under virtual simulation technology exceeds 10%, reducing the probability of contact deformation. The error of experienced physicians in surgical operations under guided virtual devices is less than 0.5 mm, which is significantly better than the difference amplitude (12.3%) under a single motion scaling device. However, the average operating error of young physicians under virtual device guidance is 0.42 mm, which is significantly less than the result of a single motion error. Moreover, the surgical time, incision size, structural damage, and other parameter indicators under the teaching system are superior to traditional teaching methods. The accuracy and completeness of disease detection have reached 93.25% and 92.01%, which has a high practical application and effectively provides a new technical means for ophthalmic teaching methods.