摘要
碰撞检测技术对保证游戏场景的实时性和真实性起着关键性作用。本文依托目前流行的Unity游戏引擎,简单介绍了不同的碰撞检测方法及其使用场合,并以射击类游戏中飞行器如何通过触发器碰撞检测进行索敌为例,重点阐述了扇形碰撞网格的原理、生成步骤和具体实现,所提出的方法在射击游戏中的应用表明了其有效性和实用性。
Collision detection technology plays a key role in ensuring the real-time and authenticity of the game scene. This article relies on the currently popular Unity game engine, simply introduces the differences and use occasions of two kinds of collision detection methods. Taking how the cabling enemy laser of aircraft locks the enemies through the trigger collision detection in the shooting game for example, this article will put emphasis on the principle,generation steps and concrete realization of fan-shaped collision grid. The application of the proposed approach in shooting game indicates its effectiveness and practicability.
出处
《信息化研究》
2017年第6期30-33,共4页
INFORMATIZATION RESEARCH