Journal of System Simulation ›› 2019, Vol. 31 ›› Issue (11): 2393-2401.doi: 10.16182/j.issn1004731x.joss.19-FZ0353

Previous Articles     Next Articles

Dynamic Collision Optimization Algorithm Based on Ray Detection

Li Xing1, Fu Yanfang1, Wang Liang2, Lu Chengtao1   

  1. 1. School of Computer Science and Engineering, Xi'an Technological University, Xi'an 710025, China;
    2. Key Laboratory of UAVs, Northwestern Polytechnical University, Xi'an 710025, China
  • Received:2019-05-13 Revised:2019-07-19 Online:2019-11-10 Published:2019-12-13

Abstract: Aiming at the inaccurate collision detection problem in Unity 3D-based visual simulation systems, a dynamic collision optimization algorithm based on ray detection is designed and implemented. The 3D virtual scene is segmented by octree, which simplifies the detection range of obstacles during the operation of simulation systems. At the same time, based on ray detection, according to the quantization coefficient and distance of the threat degree of obstacles, an appropriate collision collider is dynamically added to the obstacles to complete collision detection. The results show that the algorithm not only improves the fluency of visual simulation systems but also increases the accuracy of collision detection in visual simulation systems, and therefore solves the problem of inconsistency between the real environment and the visual simulation system.

Key words: visual simulation, ray detection, collision detection, Unity 3D

CLC Number: