| Sailing has been developing rapidly in China with people’s increasing requirements for healthy life.Compared with other forms of sports,sailing inherently has the characteristics of high entry threshold,high cost and more danger.Its geographical limitations and dependence on environment also hinder the further development of sailing sports.This thesis aims to design a sailing training simulation system based on Unity3 D,which provides sailing enthusiasts and entry athletes with a more safe,convenient and low-cost training program.The main task of this thesis is the detailed design of visual simulation,force feedback simulation and operating environment simulation of the system.First of all,the use requirements of sailing training simulation system were summarized,and the overall scheme of the system was designed with Unity3 D engine as the core,including visual simulation,force feedback simulation,operating environment simulation and motion simulation functions,and the corresponding overall hardware device model was built.Secondly,Solidworks software was used to draw the virtual dinghy model,and the assembly and coordinate reset of each part of the sailing model were completed in the Unity3 D engine.The Unity3 D engine was used to build a virtual marine environment,and various auxiliary signs and audio-visual components were set up,providing an environmental premise for the realization of real-time visual simulation.Then,according to the sailing characteristics and force conditions of Optimist class sailboat,the rocking layer object was separated from the sailing layer object by object nesting.Two kinds of simulation schemes,animation simulation scheme and buoyancy ball simulation scheme,were designed to simulate rocking motion of virtual dinghy.For sailing simulation,several control scripts including operation function scripts,environment setting function scripts and sailing execution function scripts were written,and the control of virtual dinghy object was realized.Finally,by analyzing the functions of the equipment of Optimist class sailboat,the human-computer interaction equipment in the simulation cabin was designed to send operational signals to the system and realize real-time force feedback to the operator.The communication scheme between the external equipment and the Unity3 D engine was also designed.Taking the rudder as an example,the communication experiment and training function test of the human-computer interaction equipment were carried out,which realized the use of human-computer interaction equipment to control the behavior of the sailboat,and realized the torque feedback drive of the rudder equipment. |