Virtual reality is the process of new development in the new era. The continuous development of education technology is always fueled by the application of new technologies in the field of education and teaching, even though the technology has not yet matured. In this paper, 3D scanning technology is used to construct a three-dimensional scene after collecting point cloud data from the online education environment. The motion capture instrument is used to collect the action characteristics of teachers and students in the online education classroom, and the Kalman filter algorithm is used to process the data for the recognition of interactive actions. Based on this, the online education teaching system based on virtual reality technology is constructed to achieve good interaction between teachers and students in teaching. The results of the teaching experiment show that the post-test learning performance of students in the VR group who learned through virtual reality is better than that of the traditional group, and the pre and post-test scores of students’ learning motivation in the VR group are improved in all dimensions, and all of them reach the level of significance (P<0.001). Additionally, the language of students in VR classroom teaching saw a significant improvement (34.99%), and they gained a positive interactive experience. This paper found that virtual reality technology has a positive impact on student motivation and learning outcomes, which lays the foundation for promoting students’ interactive experiences and learning outcomes in online education.