摘要
针对多媒体设备接口种类繁多、连接复杂、实际操作训练少的问题,提出一种基于Unity3D设备接口连接行为的仿真实现方法。利用Unity3D中碰撞检测系统,实现接头与接口之间的交互;通过在接口处设置特有的线性探测碰撞体,将用户对接头的操作限制在二维平面内;利用脚本控制接头的第三维运动,提高用户使用效率,增加接头接口对接精度;采用C#语言Mono Behaviour类中的协程,精确控制接头运动,增加系统真实度。仿真结果表明:该方法仿真效果好,易于实现,用户体验真实,可移植性强。
Since the multimedia device plugs are complex and variety, a three-dimensional simulation method of connector behavior is proposed in this paper. Based on the collision detection system in Unity3 D, the interaction between the connector and the interface is realized. The users' operation is limited in two-dimensional plane by a trick of special collision detector setting. The efficiency and accuracy is boosted when third dimension motion of connector is controlled. The Coroutine in Mono Behaviour is used for improving the reality of the system. Simulation results show that this method has merits of verisimilitude, easy to implement, good user experience and strong portability.
出处
《兵工自动化》
2016年第8期58-61,共4页
Ordnance Industry Automation
关键词
三维仿真
连接行为
碰撞检测
three-dimensional simulation
connection behavior
collision detect