Virtual reality technology brings a series of changes to physical education. In this paper, Madgwick algorithm is chosen as the main algorithm of the human body attitude tracking system, which is widely used in the attitude solution of Jetlink inertial guidance system for its high accuracy and uncomplicated calculation. The use of forward kinematics is then utilized to capture and abstract the human body. To analyze its positive effects on students’ physical fitness, sports interest, sports technology mastery, and personalized development, the application of virtual reality technology is used in college sports teaching. The results show that in breaststroke exercise, there is a significant difference between the experimental group and the control group in physical fitness, lung capacity P=0.001<0.05, standing long jump P=0.032<0.05, sit-up P=0.030<0.05. There is also a highly significant difference in the change of the dimension of positive interest before and after the experiment, F=29.410, P<0.05,