In this paper, we provide an approach that can simulate the behavior of insects, and the aggressive behavior of fruit flies is shown as an example. The specific workflow is as follows. (1) We obtained high-speed camera video of the fly's aggressive behavior. (2) Based on the high-speed camera video, we generated the key action diagrams for each movement. (3, 4) We used micro-computed tomography imaging to segment the leg exoskeleton models using Amira 6.0. (5) With the Blender software, we optimized the OBJ model. (6) We gave motion properties to the 3-dimensional biomechanical model in Blender. (7) Based on high-speed camera videos and the key action diagrams, we generated a 4-dimensional precision adult Drosophila melanogaster biomechanical model. Our study provides a new approach to study rapid locomotion in insects. In addition, our study provides a new idea for establishment of a 4D database, the design and fabrication of bionic multipedal robots, and the linking of nerve signaling and muscle stretching processes.