| Game engine is a platform technique in game design. With the engine, game developers can concentrate on game design and ignore game architecture, storage system, rendering and drawing of image and graph and collision detection etc. Physics engine is sub-part of game engine, according to Newton's mechanics law, it computes rational physical position of the body in the game, and pass this information to rendering engine so as to display realistic rendering result to the users. Collision detection algorithm is the kernel of physics engine.In this paper, according to the research of open source game engine-nebula2, analyses its architecture and the functions of major modules; and by the analysis on ODE(Open Dynamic Engine) and common collision detection algorithm such as AABB, OBB, k-dop etc and the analysis of ODE(Open Dynamic Engine) and Nebula2, I made some interesting studies on physical engine and game architecture:Firstly, this paper analyzes and compares several common collision detection algorithm: AABB, OBB, k-dop; based on these algorithm, improve the AABB(Axis Aligned Bounding Box), enhance the efficiency of collision detection;Secondly, this paper constructs a universal model of game engine; according to the open source game engine-Nebula2, by the hierarchical thought , construct universal game engine architecture from bottom to top, and design the basic module of each hierarchy, conclude the function of physical engine, the basic architecture of universal physical engine including rigid body and soft body;Finally, this paper designs a physical model of soft body; based on the research of common water-surface and cloth simulation, construct a mass-rigid lever model to simulate the water-surface and cloth, and make it the basic model of soft body world , complete detailed design of the universal physical engine.Physical engine key techniques is an important part of 3D game engine technology. It can improve the development of 3D game engine technology, and has an primary scientific significance. |