A dynamic model display method, device and equipment
By obtaining target position information and preset catching time and processing virtual scene frames regularly, the problem of stuttering display of virtual train models in virtual reality technology is solved, and the smooth and synchronous display of virtual train models is realized.
Patent Information
- Application Number
- CN202011255752.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-11
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2040-11-11
AI Technical Summary
In the existing virtual reality technology, the display of virtual train models in three-dimensional scenarios often leads to lag and not smooth due to timer accuracy errors and network communication delays.
By obtaining the target position information to be chased and the preset chasing time, the frame processing of the virtual scene is carried out regularly, the running status of the virtual model in each frame is determined, and the display is updated according to the running status, ensuring that the virtual model is moving evenly accelerated or decelerated evenly. Smooth display in the middle.
The smooth display of the virtual train model is realized, avoiding the problems of lag and unsmooth display, and improving the synchronization and authenticity of the virtual train in three-dimensional scenes.
Smart Images

Figure CN112381954B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of virtual reality technology, and in particular to a dynamic model display method, device and equipment. Background Art
[0002] With the development of virtual reality technology, virtual reality technology has also been widely used in rail transit driving and driving training and teaching. Displaying virtual trains in a three-dimensional scene can give people a more intuitive and realistic experience, effectively improving the effect of driving training. In the prior art, the virtual train simulation system usually sends train position information to the three-dimensional scene system at a regular interval, so that the three-dimensional scene system continuously updates the position of the train model, thereby showing that the train is running in the three-dimensional scene. However, due to the timer accuracy error and network communication delay, the display of the train model often appears to be stuck and not smooth. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a dynamic model display method, device and equipment to achieve smooth display of the dynamic model.
[0004] A first aspect of an embodiment of the present application provides a dynamic model display method, including: obtaining target position information to be chased and a preset chasing time; performing frame processing of a virtual scene at regular intervals according to the target position information and the preset chasing time, and determining the operating status of the virtual model in each frame; and updating and displaying the virtual model according to the operating status.
[0005] In one embodiment, before obtaining the target position information to be chased and the preset chasing time, it also includes: receiving the current position information of the target object sent periodically by the first system; judging whether there is the virtual model corresponding to the target object in the virtual scene; when there is the virtual model corresponding to the target object in the virtual scene, updating the target position information according to the current position information.
[0006] In one embodiment, before obtaining the position information of the target to be chased and the preset chasing time, the method further includes: when the virtual model corresponding to the target object does not exist in the virtual scene, creating the corresponding virtual model according to the target object.
[0007] In one embodiment, the frame processing of the virtual scene is performed periodically according to the target position information and the preset catch-up time to determine the running state of the virtual model in each frame, including: when the current frame is not the first frame, obtaining the time interval between the current frame and the previous frame; obtaining the first speed, the first acceleration and the first position information of the virtual model in the previous frame; calculating the actual displacement distance within the time interval and the second speed of the virtual model in the current frame according to the first speed, the first acceleration and the time interval; calculating the straight-line target distance of the target position information and the first position information; calculating the first ratio of the actual displacement distance to the straight-line target distance; determining the second position information of the virtual model in the current frame according to the first ratio, the first position information and the target position information; calculating the second acceleration of the virtual model in the current frame according to the straight-line target distance, the second speed and the preset catch-up time.
[0008] In one embodiment, the frame processing of the virtual scene is performed periodically according to the target position information and the preset catching-up time to determine the running state of the virtual model in each frame, including: when the current frame is the first frame, the second speed of the virtual model in the current frame is calculated according to the initial speed and initial acceleration when the virtual model is created; the second acceleration of the virtual model in the current frame is calculated according to the target position information, the second speed and the preset catching-up time.
[0009] A second aspect of an embodiment of the present application provides a dynamic model display device, including: an acquisition module, used to obtain target position information to be chased and a preset chasing time; a processing module, used to perform frame processing of a virtual scene at regular intervals according to the target position information and the preset chasing time, and determine the running status of the virtual model in each frame; and a display module, used to update and display the virtual model according to the running status.
[0010] In one embodiment, the dynamic model display device also includes: a receiving module for receiving current position information of the target object periodically sent by the first system; a judging module for judging whether the virtual model corresponding to the target object exists in the virtual scene; and an updating module for updating the target position information according to the current position information when the virtual model corresponding to the target object exists in the virtual scene.
[0011] In one embodiment, the dynamic model display device further includes: a creation module, which is used to create the corresponding virtual model according to the target object when the virtual model corresponding to the target object does not exist in the virtual scene.
[0012] In one embodiment, the processing module is used to: when the current frame is not the first frame, obtain the time interval between the current frame and the previous frame; obtain the first speed, first acceleration and first position information of the virtual model in the previous frame; calculate the actual displacement distance within the time interval and the second speed of the virtual model in the current frame according to the first speed, the first acceleration and the time interval; calculate the straight-line target distance of the target position information and the first position information; calculate the first ratio of the actual displacement distance and the straight-line target distance; determine the second position information of the virtual model in the current frame according to the first ratio, the first position information and the target position information; calculate the second acceleration of the virtual model in the current frame according to the straight-line target distance, the second speed and the preset catch-up time.
[0013] In one embodiment, the processing module is also used to: when the current frame is the first frame, calculate the second speed of the virtual model in the current frame based on the initial speed and initial acceleration when the virtual model is created; calculate the second acceleration of the virtual model in the current frame based on the target position information, the second speed and the preset catching-up time.
[0014] A third aspect of an embodiment of the present application provides an electronic device, comprising: a memory for storing a computer program; and a processor for executing the method of the first aspect of an embodiment of the present application and any one of its embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 A schematic diagram of the structure of an electronic device according to an embodiment of the present application;
[0017] Figure 2 A schematic diagram of an application scenario of a dynamic model display method according to an embodiment of the present application;
[0018] Figure 3 A schematic diagram of a flow chart of a dynamic model display method according to an embodiment of the present application;
[0019] Figure 4 A schematic diagram of a flow chart of a dynamic model display method according to another embodiment of the present application;
[0020] Figure 5 Schematic diagram of the structure of a dynamic model display device according to an embodiment of the present application.
[0021] Reference numerals:
[0022] 100-electronic device, 110-bus, 120-processor, 130-memory, 210-first system, 220-second system, 500-dynamic model display device, 510-acquisition module, 520-processing module, 530-display module, 540-receiving module, 550-judgment module, 560-update module, 570-creation module. DETAILED DESCRIPTION
[0023] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0024] In the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and do not indicate the order of arrangement, nor can they be understood as indicating or implying relative importance.
[0025] In the description of the present application, the terms "include", "comprising", etc. indicate the existence of the described features, integers, steps, operations, elements and / or components, but do not exclude the existence or addition of one or more other features, steps, operations, elements, components and / or collections thereof.
[0026] In the description of this application, unless otherwise clearly specified and limited, the terms "installed", "set", "provided with", "connected", and "configured to" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral structure; it can be a mechanical connection or an electrical connection; it can be a direct connection, an indirect connection through an intermediate medium, or an internal connection between two devices, elements, or components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0027] Please see Figure 1 , which is a schematic diagram of the structure of an electronic device 100 according to an embodiment of the present application, including at least one processor 120 and a memory 130, Figure 1 A processor is used as an example. The processor 120 and the memory 130 are connected via the bus 110. The memory 130 stores instructions that can be executed by at least one processor 120. The instructions are executed by at least one processor 120 so that at least one processor 120 executes the dynamic model display method in the following embodiment.
[0028] like Figure 2As shown, it is a schematic diagram of an application scenario of a dynamic model display method of an embodiment of the present application, and the application scenario includes a first system 210 and a second system 220. The first system 210 and the second system 220 are connected through a communication network and can interact with data. In one embodiment, the dynamic model display method of the present application can be applied to the display of a simulated train in a three-dimensional scene. The first system 210 can be a simulation system for performing logical simulation and operation simulation of subways, high-speed railways, trains and other trains, and periodically sending the current position information of the simulated train to the second system 220. In one embodiment, the current position information sent by the first system 210 can be in the form of three-dimensional coordinates.
[0029] The second system 220 is a virtual reality system, which is used to receive the current position information of the simulated train sent regularly by the first system 210, and create a virtual train model corresponding to the simulated train in three-dimensional scenes such as three-dimensional stations and driving simulators through virtual reality technology. The latest received current position information of the simulated train is used as the pursuit target of the virtual train model, and the virtual train model is set to run to the pursuit target in a very small time period in a uniformly accelerated and / or uniformly decelerated manner, so as to achieve a smooth running display effect of the virtual train model.
[0030] like Figure 3 As shown, it is a schematic diagram of the process of a dynamic model display method according to an embodiment of the present application. The method can be performed by Figure 1 The electronic device 100 shown in the figure can be used to implement smooth display of the dynamic model and avoid display freeze and unsmoothness. The method includes the following steps:
[0031] Step 310: Obtain the location information of the target to be chased and the preset chasing time.
[0032] In the above steps, the target position information to be caught up is the real-time position information of the train, and the preset catching-up time means that the virtual model of the train is set to run to the target position information in a uniformly accelerated or decelerated manner within the preset catching-up time.
[0033] In one embodiment, the real-time position information of the train may be sent periodically by the simulation system, and the time interval of the periodic sending is very small, such as 50 ms, so it can be approximately regarded as real-time sending.
[0034] Step 320: According to the target position information and the preset pursuit time, the frame processing of the virtual scene is performed regularly to determine the running state of the virtual model in each frame.
[0035] In the above steps, a timed frame processing is performed during the calling process of each frame of the virtual scene. The time interval of the frame processing is also very short, generally reaching 30fps, that is, more than 30 frames per second. In one embodiment, the time interval between two frame processings is less than 30ms. During the frame processing, smoothing processing can be performed according to the target position information and the preset catch-up time to determine the running state of the virtual model in each frame, which includes speed, acceleration, moving distance, current position, etc.
[0036] Step 330: Update and display the virtual model according to the operating status.
[0037] In the above steps, the running picture of the virtual model is displayed according to the running state of the virtual model in each frame.
[0038] like Figure 4 As shown, it is a schematic diagram of the process of a dynamic model display method according to an embodiment of the present application. The method can be performed by Figure 1 The electronic device 100 shown in the figure can be used to implement smooth display of the dynamic model and avoid display freeze and unsmoothness. The method includes the following steps:
[0039] Step 410: Receive the current location information of the target object sent periodically by the first system.
[0040] In the above step, the target object can be a simulated train in the first system or other moving objects. The first system periodically sends the current position information of the target object. The time interval of the periodic sending is very small. In one embodiment, the time interval of the periodic sending of the first system is 50ms.
[0041] Step 420: Determine whether there is a virtual model corresponding to the target object in the virtual scene.
[0042] In the above steps, it is determined whether there is a virtual model corresponding to the target object in the virtual scene. If there is no virtual model corresponding to the target object in the virtual scene, step 430 is executed. If there is a virtual model corresponding to the target object in the virtual scene, step 440 is executed.
[0043] Step 430: Create a corresponding virtual model according to the target object.
[0044] In the above steps, a virtual model corresponding to the target object is created according to the target object, and the initial velocity and initial acceleration of the virtual model are set to 0. The next step is to execute step 440 .
[0045] Step 440: Update the target location information according to the current location information.
[0046] In the above steps, the latest received current position information of the target object is used as the target position information in the subsequent processing process, that is, the pursuit target of the virtual model.
[0047] Step 450: Obtain the location information of the target to be chased and the preset chasing time.
[0048] Step 460: According to the target position information and the preset pursuit time, the frame processing of the virtual scene is performed regularly to determine the running state of the virtual model in each frame.
[0049] In the above steps, timed frame processing is performed during the calling process of each frame of the virtual scene. The time interval for frame processing is also very short, generally reaching 30fps, that is, more than 30 frames per second. In one embodiment, the time interval between two frame processings is less than 30ms.
[0050] In one embodiment, when the current frame is not the first frame, the time interval between the current frame and the previous frame is obtained; the first speed, the first acceleration and the first position information of the virtual model in the previous frame are obtained; according to the first speed, the first acceleration and the time interval, the actual displacement distance within the time interval and the second speed of the virtual model in the current frame are calculated; the straight-line target distance of the target position information and the first position information is calculated; the first ratio of the actual displacement distance and the straight-line target distance is calculated; according to the first ratio, the first position information and the target position information, the second position information of the virtual model in the current frame is determined; according to the straight-line target distance, the second speed and the preset catch-up time, the second acceleration of the virtual model in the current frame is calculated.
[0051] In one embodiment, the speed of the virtual model in the previous frame is recorded as the first speed, the acceleration of the virtual model in the previous frame is recorded as the first acceleration, and the position information of the virtual model in the previous frame is recorded as the first position information; the speed of the virtual model in the current frame is recorded as the second speed, the acceleration of the virtual model in the current frame is recorded as the second acceleration, and the position information of the virtual model in the current frame is recorded as the second position information. Substitute the first speed, the first acceleration, and the time interval between the current frame and the previous frame into the formula The actual displacement distance within the time interval between the current frame and the previous frame can be obtained, and the second speed can be obtained by substituting it into the formula v'=v+at.
[0052] In one embodiment, the target position information and the first position information are both in the form of three-dimensional coordinates. Substituting the x, y, and z coordinate values of the two into the formula The target position information and the linear target distance of the first position information can be obtained. The first ratio of the actual displacement distance and the linear target distance is calculated, and the offset in the three directions of x, y, and z can be determined according to the first ratio and the difference between the x, y, and z coordinate values of the first position information and the target position information, thereby obtaining the second position information.
[0053] In one embodiment, the target position information and the first position information include three-dimensional coordinate values and rotation angles around the three coordinate axes of x, y, and z, respectively. Specifically, rotation around the x-axis is roll, rotation around the y-axis is pitch, and rotation around the z-axis is yaw. Substitute the three-dimensional coordinate values x1, y1, z1 of the target position information and the three-dimensional coordinate values x2, y2, z2 of the first position information into the formula: The linear target distance between the target position information and the first position information can be obtained. The first ratio of the actual displacement distance and the linear target distance is calculated. According to the first ratio and the difference between the three-dimensional coordinate values of the first position information and the target position information, the offset in the three directions of x, y, and z can be determined to obtain the three-dimensional coordinate value of the second position information. Moreover, according to the first ratio and the difference between the rotation angles of the first position information and the target position information, the offset of the three rotation angles of roll, pitch, and yaw can be determined to obtain the rotation angle of the second position information.
[0054] Substitute the straight-line target distance, second speed, and preset pursuit time into the formula The second acceleration can be obtained.
[0055] In one embodiment, when the current frame is the first frame, the second speed of the virtual model in the current frame is calculated based on the initial speed and initial acceleration when the virtual model is created; the second acceleration of the virtual model in the current frame is calculated based on the target position information, the second speed and the preset catching-up time.
[0056] Step 470: Update and display the virtual model according to the operating status.
[0057] The present application synchronously updates the pursuit target point of the virtual model based on the position information sent in real time by the first system. The virtual model moves in a uniform acceleration / uniform deceleration manner, and the time interval between two frames is very short and the processing frequency is high. Therefore, the position of the virtual model moves very little during each frame processing, thereby avoiding the problem of train position display jamming and jumping or fast and slow movement in the prior art.
[0058] In one embodiment, when the train in the simulation system is accelerating, the position change of each update will gradually increase, and in the three-dimensional virtual scene, the virtual model will increase the acceleration of the movement in order to catch up with the target point within the preset pursuit time; on the contrary, when the train in the simulation system is decelerating, the position change of each update will gradually decrease, and in the three-dimensional virtual scene, the virtual model will reduce the acceleration and gradually drop to a negative value in order to meet the requirement of catching up with the target point within the preset pursuit time, and the moving speed of the virtual model will also gradually decrease, and finally stop moving, so as to achieve synchronous display with the train.
[0059] Since the preset catch-up time is very short, visually, the train is displayed smoothly and the train position update delay is not felt. In one embodiment, the preset catch-up time can be adjusted according to the type of simulated train. For example, for a subway with a low running speed, the preset catch-up time can be adjusted to about 1000ms or less, while for a high-speed train such as a high-speed train, the preset catch-up time should be set to a smaller value to reduce the offset error of the displayed position.
[0060] In one embodiment, the preset catch-up time can be a fixed value or a dynamically adjusted value. If the train in the simulation system has stopped, the position information sent by the simulation system no longer changes. At this time, the preset catch-up time can be continuously reduced and the time difference between two adjacent frames can be subtracted.
[0061] like Figure 5 As shown, it is a structural schematic diagram of a dynamic model display device 500 according to an embodiment of the present application, and the device can be applied to Figure 1 The electronic device 100 shown includes: an acquisition module 510, a processing module 520, a display module 530, a receiving module 540, a judgment module 550, an update module 560, and a creation module 570. The principle relationship of each module is as follows:
[0062] The acquisition module 510 is used to acquire the location information of the target to be chased and the preset chasing time.
[0063] The processing module 520 is used to perform frame processing of the virtual scene at regular intervals according to the target position information and the preset pursuit time, and determine the running state of the virtual model in each frame.
[0064] The display module 530 is used to update and display the virtual model according to the operating status.
[0065] The receiving module 540 is used to receive the current location information of the target object sent periodically by the first system.
[0066] The determination module 550 is used to determine whether there is a virtual model corresponding to the target object in the virtual scene.
[0067] The updating module 560 is used to update the target position information according to the current position information when there is a virtual model corresponding to the target object in the virtual scene.
[0068] The creation module 570 is used to create a corresponding virtual model according to the target object when there is no virtual model corresponding to the target object in the virtual scene.
[0069] In one embodiment, the processing module 520 is used to: when the current frame is not the first frame, obtain the time interval between the current frame and the previous frame; obtain the first speed, first acceleration and first position information of the virtual model in the previous frame; calculate the actual displacement distance within the time interval and the second speed of the virtual model in the current frame according to the first speed, first acceleration and time interval; calculate the straight-line target distance of the target position information and the first position information; calculate the first ratio of the actual displacement distance and the straight-line target distance; determine the second position information of the virtual model in the current frame according to the first ratio, the first position information and the target position information; calculate the second acceleration of the virtual model in the current frame according to the straight-line target distance, the second speed and the preset catch-up time.
[0070] In one embodiment, the processing module 520 is also used to: when the current frame is the first frame, calculate the second speed of the virtual model in the current frame according to the initial speed and initial acceleration when the virtual model is created; calculate the second acceleration of the virtual model in the current frame according to the target position information, the second speed and the preset catching-up time.
[0071] For a detailed description of the above-mentioned dynamic model display device 500, please refer to the description of the relevant method steps in the above-mentioned embodiment.
[0072] The embodiment of the present invention further provides an electronic device readable storage medium, including: a program, when it is run on an electronic device, the electronic device can execute all or part of the process of the method in the above embodiment. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (HDD) or a solid-state drive (SSD). The storage medium can also include a combination of the above types of memory.
[0073] In several embodiments provided in the present application, the disclosed devices and methods may also be implemented in other ways. The device embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram may represent a module, a program segment or a part of a code, and a module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0074] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0075] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. The above are only preferred embodiments of the present application, which are only used to illustrate the technical solution of the present application and are not used to limit the present application. For ordinary technicians in this technical field, any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A dynamic model display method, characterized in that: include: Obtaining the location information of the target to be chased and the preset chasing time; According to the target position information and the preset pursuit time, frame processing of the virtual scene is performed regularly to determine the running state of the virtual model in each frame; updating and displaying the virtual model according to the operating status; The target position information is the real-time position information of the train, and the preset catching-up time is the time for the virtual model of the train to run to the target position information in a uniformly accelerated or uniformly decelerated manner within the preset catching-up time; When the current frame is not the first frame, obtain the time interval between the current frame and the previous frame; Acquire a first velocity, a first acceleration, and a first position information of the virtual model in a previous frame; Calculate, according to the first speed, the first acceleration and the time interval, an actual displacement distance within the time interval and a second speed of the virtual model in a current frame; Calculating a straight-line target distance between the target position information and the first position information; Calculating a first ratio of the actual displacement distance to the straight-line target distance; Determine second position information of the virtual model in the current frame according to the first ratio, the first position information and the target position information; The second acceleration of the virtual model in the current frame is calculated according to the straight-line target distance, the second speed and the preset catching-up time.
2. The method according to claim 1, characterized in that Before obtaining the target location information to be chased and the preset chasing time, the method further includes: Receiving current location information of the target object sent regularly by the first system; Determining whether the virtual model corresponding to the target object exists in the virtual scene; When the virtual model corresponding to the target object exists in the virtual scene, the target position information is updated according to the current position information.
3. The method according to claim 2, characterized in that Before obtaining the target location information to be chased and the preset chasing time, the method further includes: When the virtual model corresponding to the target object does not exist in the virtual scene, the corresponding virtual model is created according to the target object.
4. The method according to claim 1, characterized in that: The step of periodically performing frame processing of the virtual scene according to the target position information and the preset pursuit time to determine the running state of the virtual model in each frame includes: When the current frame is the first frame, calculating a second speed of the virtual model in the current frame according to the initial speed and initial acceleration when the virtual model is created; The second acceleration of the virtual model in the current frame is calculated according to the target position information, the second speed and the preset catching-up time.
5. A dynamic model display device, characterized in that: include: An acquisition module is used to acquire the location information of the target to be chased and the preset chasing time; A processing module, used to perform frame processing of the virtual scene at regular intervals according to the target position information and a preset pursuit time, and determine the running state of the virtual model in each frame; A display module, used for updating and displaying the virtual model according to the operating status; The target position information is the current position information of the simulated train, and the preset catching-up time is the time for the virtual train model to run to the target position information in a uniformly accelerated or uniformly decelerated manner within the preset catching-up time; Wherein, the processing module is used to: when the current frame is not the first frame, obtain the time interval between the current frame and the previous frame; Acquire a first velocity, a first acceleration, and a first position information of the virtual model in a previous frame; Calculate, according to the first speed, the first acceleration and the time interval, an actual displacement distance within the time interval and a second speed of the virtual model in a current frame; Calculating a straight-line target distance between the target position information and the first position information; Calculating a first ratio of the actual displacement distance to the straight-line target distance; Determine second position information of the virtual model in the current frame according to the first ratio, the first position information and the target position information; The second acceleration of the virtual model in the current frame is calculated according to the straight-line target distance, the second speed and the preset catching-up time.
6. The device according to claim 5, characterized in that Also includes: A receiving module, used for receiving the current location information of the target object sent regularly by the first system; A judging module, used for judging whether there is the virtual model corresponding to the target object in the virtual scene; An updating module, configured to update the target position information according to the current position information when the virtual model corresponding to the target object exists in the virtual scene; A creation module is used to create the corresponding virtual model according to the target object when the virtual model corresponding to the target object does not exist in the virtual scene.
7. The device according to claim 5, characterized in that The processing module is also used for: When the current frame is the first frame, calculating a second speed of the virtual model in the current frame according to the initial speed and initial acceleration when the virtual model is created; The second acceleration of the virtual model in the current frame is calculated according to the target position information, the second speed and the preset catching-up time.
8. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the method according to any one of claims 1 to 4.
