The research and application of the collision detection algorithm in the virtual simulation system