Virtual object control method and apparatus, storage medium, and electronic device
By adding a flight coefficient to the interaction events between virtual objects and controlling the trajectory flight and collision damage, precise control over the knockback state and damage effects of virtual objects is achieved, enhancing the richness of game interaction.
Patent Information
- Application Number
- CN202211131109.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-16
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-09-16
AI Technical Summary
The existing virtual object knockback display method has poor interactive effects and cannot generate new interactions with players.
By controlling the interaction events between virtual objects to increase the interaction flight coefficient, the virtual objects are controlled to fly along the target trajectory after the cumulative response value reaches the target threshold, and the survival status parameters are updated upon collision, thus achieving precise control over the knockback state and damage effect.
It provides rich interactive effects, allowing players to accurately display knockback effects and subsequent damage by controlling the interactive operations of virtual objects, thus solving the problem of poor interactive effects in existing technologies.
Smart Images

Figure CN116999837B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computers, and more specifically, to a method and apparatus for controlling virtual objects, a storage medium, and an electronic device. Background Technology
[0002] Nowadays, in competitive games, various animations are often used to render and display the interactions between virtual objects. For example, when one game object attacks a second game object, the animation of the second game object being hit is played, thus vividly demonstrating the interaction between the first and second virtual objects.
[0003] It's clear that current in-game animations can only showcase virtual objects in specific interactive states. For example, when a virtual object is attacked, an animation of it being knocked back is played. However, the relationship between being attacked and displaying the knockback animation is fixed; the knockback interaction is too simplistic and fails to create new interactions with the player. In other words, existing knockback display methods suffer from poor interactive effects.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This invention provides a method and apparatus for controlling virtual objects, a storage medium, and an electronic device, to at least solve the technical problem of poor interactive effects in existing knock-up display methods.
[0006] According to one aspect of the present invention, a method for controlling a virtual object is provided, comprising: displaying a virtual scene in which a first virtual object is located, wherein the virtual scene includes a second virtual object that interacts with the first virtual object; in response to a control operation on the first virtual object, controlling the first virtual object to initiate an interaction event to the second virtual object, wherein the interaction event is used to increase the value of an interaction flight coefficient for the second virtual object; in response to the current accumulated value of the interaction flight coefficient corresponding to the second virtual object reaching a target threshold, controlling the second virtual object to fly according to a target trajectory; and in response to the second virtual object in flight colliding with a target virtual object in the virtual scene, updating the survival state parameters of the second virtual object.
[0007] According to another aspect of the present invention, a control device for a virtual object is also provided, comprising: a display unit for displaying a virtual scene in which a first virtual object is located, wherein the virtual scene includes a second virtual object that interacts with the first virtual object; a first control unit for controlling the first virtual object to initiate an interaction event with the second virtual object in response to a control operation on the first virtual object, wherein the interaction event is used to increase the value of the interaction flight coefficient of the second virtual object; a second control unit for controlling the second virtual object to fly according to a target trajectory in response to the current accumulated value of the interaction flight coefficient corresponding to the second virtual object reaching a target threshold; and an update unit for updating the survival state parameters of the second virtual object in response to a collision between the second virtual object in flight and a target virtual object in the virtual scene.
[0008] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, wherein the computer program is configured to execute the control method of the virtual object described above when running.
[0009] According to another aspect of the embodiments of this application, a computer program product is provided, the computer program product including a computer program / instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer program / instructions from the computer-readable storage medium, and executes the computer program / instructions, causing the computer device to perform the control method of the virtual object described above.
[0010] According to another aspect of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute the control method of the virtual object described above through the computer program.
[0011] In this embodiment of the invention, a virtual scene is displayed where a first virtual object is located. This virtual scene includes a second virtual object that interacts with the first virtual object. In response to a control operation on the first virtual object, the first virtual object initiates an interaction event with the second virtual object. This interaction event is used to increase the interaction flight coefficient of the second virtual object. In response to the current accumulated value of the interaction flight coefficient corresponding to the second virtual object reaching a target threshold, the second virtual object is controlled to fly along a target trajectory. In response to a collision between the second virtual object in flight and the target virtual object in the virtual scene, the survival status parameters of the second virtual object are updated. Furthermore, the flight coefficient is determined through the interaction events between virtual objects, and the second virtual object is controlled to fly along the target trajectory based on the accumulation of the flight coefficient. Damage is inflicted on the second virtual object based on a secondary collision. Therefore, by controlling the interaction events between virtual objects, the knockback state of the virtual object can be further controlled, as well as the damage effect after knockback. During the interaction with the virtual object, users can accurately control the display of the knockback effect and the subsequent damage effect by controlling the interactive events. This achieves precise control over the knockback display method, thereby providing rich interactive effects and solving the technical problem of poor interactive effects in existing knockback display methods. Attached Figure Description
[0012] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings: Figure 1 This is a schematic diagram of the hardware environment for an optional virtual object control method according to an embodiment of the present invention; Figure 2 This is a flowchart of an optional virtual object control method according to an embodiment of the present invention; Figure 3 This is a schematic diagram of an optional virtual object control method according to an embodiment of the present invention; Figure 4 This is a schematic diagram of another optional virtual object control method according to an embodiment of the present invention; Figure 5 This is a schematic diagram of another optional virtual object control method according to an embodiment of the present invention; Figure 6 This is a schematic diagram of another optional virtual object control method according to an embodiment of the present invention; Figure 7 This is a schematic diagram of another optional virtual object control method according to an embodiment of the present invention; Figure 8This is a schematic diagram of another optional virtual object control method according to an embodiment of the present invention; Figure 9 This is a schematic diagram of another optional virtual object control method according to an embodiment of the present invention; Figure 10 This is a schematic diagram of another optional virtual object control method according to an embodiment of the present invention; Figure 11 This is a flowchart of another optional virtual object control method according to an embodiment of the present invention; Figure 12 This is a schematic diagram of the structure of an optional virtual object control device according to an embodiment of the present invention; Figure 13 This is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present invention. Detailed Implementation
[0013] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0014] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0015] According to one aspect of the present invention, a method for controlling virtual objects is provided. As an optional implementation, the above-described method for controlling virtual objects can be applied to, but is not limited to, [examples of other methods]. Figure 1 The control system for the virtual object in the hardware environment shown may include, but is not limited to, terminal device 102, network 104, server 106, database 108, and terminal device 110. Target clients (such as...) are running on terminal device 102 and terminal device 110 respectively. Figure 1As shown, taking a competitive game application client as an example. The aforementioned terminal devices 102 and 110 respectively include a human-computer interaction screen, a processor, and a memory. The human-computer interaction screen is used to display virtual game scenes (such as...). Figure 1 The virtual game scene shown also provides a human-computer interaction interface to receive human-computer interaction operations for controlling a controlled virtual object in the virtual scene, which will complete the game tasks set in the virtual scene. The processor is used to generate interaction instructions in response to the above human-computer interaction operations and send the interaction instructions to the server. The memory is used to store relevant attribute data, such as the object attribute information of the controlled virtual object and the attribute information of the virtual props it holds, etc. The attribute information here may include, but is not limited to, information used to identify its identity and current location. Among them, the terminal device 102 runs a client that controls the first virtual object; optionally, when the second virtual object is a virtual object controlled by the terminal device, the terminal device 110 runs a client that controls the second virtual object. The second virtual object and the first virtual object can be controlled to perform certain interactive events in the game, such as attack events, defense events, skill casting events, etc.
[0016] In addition, server 106 includes a processing engine, which performs store or read operations on database 108. Specifically, the processing engine reads the virtual scene information of each virtual object and the operation information to be performed from database 108.
[0017] Assumption Figure 1Terminal device 102 is used to control the first virtual object, and terminal device 110 is used to control the second virtual object. The specific process of this embodiment is as follows: As in step S102, the virtual scene where the first virtual object is located is displayed on terminal device 102, wherein the virtual scene includes a second virtual object that interacts with the first virtual object; then, as in steps S104 and S106, in response to the control operation on the first virtual object, the first virtual object is controlled to initiate an interaction event with the second virtual object, wherein the interaction event is used to increase the value of the interaction flight coefficient for the second virtual object; in response to the current accumulated value of the interaction flight coefficient corresponding to the second virtual object reaching a target threshold, the terminal device 102 is controlled to control the second virtual object. The two virtual objects fly along the target trajectory. Then, as in step S108, terminal device 102 sends the flight event information of the second virtual object to server 106 via network 104. Then, server 106 executes step S110, updating the survival status parameters of the second virtual object in response to the collision between the second virtual object in flight and the target virtual object in the virtual scene. Then, as in step S112, server 106 sends the updated survival status parameters to terminal device 102 and terminal device 110 via network 104. Finally, step S114 is executed in terminal device 102 and terminal device 110 to update and display the survival status parameters of the second virtual object in the virtual scene.
[0018] As another optional implementation, when terminal device 102 or terminal device 110 has powerful computing capabilities, the above step S110 can also be performed by terminal device 102 or terminal device 110. This is just an example, and no limitation is made in this embodiment.
[0019] Optionally, in this embodiment, the terminal device can be a terminal device configured with a target client, which may include, but is not limited to, at least one of the following: mobile phone (such as Android phone, iOS phone, etc.), laptop computer, tablet computer, PDA, MID (Mobile Internet Devices), PAD, desktop computer, smart TV, etc. The target client can be a video client, instant messaging client, browser client, educational client, or other client that supports providing shooting game tasks. The network can include, but is not limited to, wired networks and wireless networks, wherein the wired network includes: local area network, metropolitan area network, and wide area network, and the wireless network includes: Bluetooth, WIFI, and other networks that enable wireless communication. The server can be a single server, a server cluster composed of multiple servers, or a cloud server. The above is merely an example, and no limitation is made in this embodiment.
[0020] Optionally, in this embodiment, the aforementioned virtual object control method can be applied, but is not limited to, to game-type terminal applications (APPs) that complete predetermined competitive game tasks in a virtual scene, such as virtual competitive game applications in Multiplayer Online Battle Arena (MOBA) applications. The aforementioned competitive game tasks can be, but are not limited to, game tasks completed by the current player through human-computer interaction, controlling virtual objects in the virtual scene and interacting with virtual objects controlled by other players. The aforementioned virtual object control method can also be applied to large-scale multiplayer online role-playing game (MMORPG) terminal applications, where the current player can complete social game tasks from the first-person perspective of a virtual object through role-playing, such as completing game tasks together with other virtual objects. These social game tasks can, but are not limited to, run as plugins or mini-programs within the application (such as a non-standalone game APP), or run within the application (such as a standalone game APP) in a game engine. The types of game applications mentioned above may include, but are not limited to, at least one of the following: two-dimensional (2D) game applications, three-dimensional (3D) game applications, virtual reality (VR) game applications, augmented reality (AR) game applications, and mixed reality (MR) game applications. This is merely an example, and this embodiment does not impose any limitations on it.
[0021] The above-described embodiments of this application can also be applied to, but are not limited to, an open-world game. An open world refers to a game where the combat environment is completely free and open, allowing players to freely explore in any direction. The boundaries between different areas are very large, and the environment contains simulated objects of various shapes and sizes that can physically collide or interact with players, AI, and other entities. In open-world games, players can control virtual objects to complete game tasks through interactive combat.
[0022] Through the above-described embodiments of this application, by displaying a virtual scene where a first virtual object is located, wherein the virtual scene includes a second virtual object that interacts with the first virtual object; in response to a control operation on the first virtual object, the first virtual object is controlled to initiate an interaction event with the second virtual object, wherein the interaction event is used to increase the value of the interaction flight coefficient of the second virtual object; in response to the current accumulated value of the interaction flight coefficient corresponding to the second virtual object reaching a target threshold, the second virtual object is controlled to fly according to a target trajectory; in response to the second virtual object in flight colliding with the target virtual object in the virtual scene, the survival status parameters of the second virtual object are updated. Furthermore, the flight coefficient is determined through the interaction events between virtual objects, and the second virtual object is controlled to fly according to the target trajectory based on the accumulation of the flight coefficient, and damage is inflicted on the virtual object based on secondary collisions during flight. Thus, by controlling the interaction events between virtual objects, the knockback state of the virtual object can be further controlled, and the damage effect after knockback can be controlled. During the interaction with the virtual object, users can accurately control the display of the knockback effect and the subsequent damage effect by controlling the interactive events. This achieves precise control over the knockback display method, thereby providing rich interactive effects and solving the technical problem of poor interactive effects in existing knockback display methods.
[0023] As an optional implementation method, such as Figure 2 As shown, the control method for the above virtual object includes the following steps: S202, Display the virtual scene where the first virtual object is located, wherein the virtual scene includes a second virtual object that interacts with the first virtual object; It should be noted that, in this embodiment, the first virtual object and the second virtual object can be virtual characters, virtual images, or virtual figures controlled by players in the game. Alternatively, the first virtual object and the second virtual object can be AI virtual characters, AI virtual images, or AI virtual figures controlled by the computer in the game. For example, the first virtual object can be virtual hero A controlled by a first player, and the second virtual object can be virtual hero B controlled by a second player; alternatively, the first virtual object can be virtual hero A controlled by a first player, and the second virtual object can be a virtual monster C controlled by the computer.
[0024] Optionally, the first virtual object and the second virtual object can be virtual objects of the same faction, virtual objects of opposing factions, or, if the first virtual object is a virtual object of the first faction, the second virtual object is a virtual object of the neutral faction. For example, if the first virtual object is virtual hero A of the first faction, the second virtual object could be virtual monster C of the neutral faction.
[0025] The above description of the faction characteristics and control characteristics of the first and second virtual objects is merely illustrative and does not limit the specific implementation of this application.
[0026] It should be noted that the aforementioned interaction can be a virtual game interaction between the two virtual characters, such as mutual attack operations, mutual spell casting operations, or one virtual character initiating an attack while the other defends. The forms of interaction described above are merely examples and do not constitute a limitation on the specific implementation of this application.
[0027] S204, in response to the control operation on the first virtual object, control the first virtual object to initiate an interaction event to the second virtual object; Interactive events are used to add an interactive flight coefficient value to the second virtual object; It should be noted that the aforementioned interactive events can be those that transmit virtual damage to a second virtual object, such as physical attack events, skill attack events, spell attack events, item attack events, or level attack events. Through these interactive events, damage can be inflicted on the second virtual object while simultaneously accumulating an interaction flight coefficient for it.
[0028] Optionally, the cumulative values of the aforementioned interactive flight coefficients may be displayed explicitly rather than directly.
[0029] Without directly displaying the cumulative value of the interactive flight coefficient, players can become familiar with the increasing value of the virtual object's interactive flight coefficient through repeated training, thereby increasing the difficulty of controlling the game.
[0030] For example, when the interactive flight coefficient of the second virtual object is explicitly displayed, a value bar for the interactive flight coefficient of the second virtual object can be configured, so that the current cumulative status of the interactive flight coefficient of the second virtual object can be displayed through the progress displayed on the value bar. In another approach, various display effects can be configured on the second virtual object to show the current cumulative status of its interaction flight coefficient. For example, when the interaction flight coefficient of the second virtual object accumulates to a first value, a blue surround effect can be displayed; when it accumulates to a second value, a red surround effect can be displayed; and when it accumulates to a critical value, a purple surround effect can be displayed. By configuring different color effects for the virtual character, the current cumulative status of the second virtual object's interaction flight coefficient can be indicated. The above methods for displaying the cumulative status of the second virtual object's interaction flight coefficient are merely examples. In specific embodiments, the display of the interaction flight coefficient value can be chosen to be or not, depending on actual needs. Understandably, in one alternative approach, a "no-fly" flag can be configured for a subset of virtual objects in the virtual game. This flag controls the accumulation of interactive flight coefficients for these virtual objects, preventing them from triggering a knockback state.
[0031] S206, in response to the current accumulated value of the interactive flight coefficient corresponding to the second virtual object reaching the target threshold, control the second virtual object to fly according to the target trajectory; The following describes the method of controlling the second virtual object to fly according to the target trajectory. It should be noted that in this embodiment, the flight state of the second virtual object can be triggered by accumulating the aforementioned interactive flight coefficient. While the second virtual object is in flight, as an optional method, it can also be controlled to trigger a second knockback effect based on the interaction with the second virtual object. Alternatively, the flight state of the second virtual object can also be affected by other virtual objects in the virtual scene. For example, the flight state of the second virtual object may be interrupted due to a collision with a virtual object, or the second virtual object may be in a dead state due to its survival state parameter being less than a threshold, thus interrupting its current flight state.
[0032] It is understandable that the aforementioned display method for controlling the flight of the second virtual object can be dynamically displayed through programmatic means, and the flight trajectory can be obtained based on the physical model in the virtual scene. It is also understandable that during the flight of the second virtual object, if it further interacts with other objects in the virtual scene, the program can further determine the current state of the second virtual object. If the second virtual object is triggered to fly a second time, the second flight trajectory can be obtained based on the physical model in the virtual scene, and the second virtual object can be controlled to fly according to the second flight trajectory. During the flight of the second virtual object, various different motion effect materials can be obtained from a pre-defined motion effect library to drive and display the flight state of the second virtual object frame by frame in the virtual scene.
[0033] It should be further explained that when the current accumulated value of the interaction flight coefficient of the second virtual object reaches the target threshold, the second virtual object can be controlled to fly in the virtual scene to show that when the second virtual object has accumulated enough flight value, the current game state is a "knock-up state".
[0034] The aforementioned method of driving flight can be a preset, fixed driving method, or it can be a driving method configured individually for different virtual characters. The flight trajectory driving the second virtual object can be a trajectory determined according to the physical model in the game, such as a parabola. The specific shape of the parabola is determined by the event parameters of the interactive event that triggers the flight state. For example, the specific shape and landing position of the parabola can be determined based on the attack force and attack speed of the attack event. Alternatively, it can be a flight trajectory played according to a fixed animation. For example, the flight trajectory of all virtual objects can be set to a semi-circular flight trajectory. Different flight trajectories can also be configured for different virtual objects. For example, a semi-circular flight trajectory can be configured for monster A, a heart-shaped flight trajectory for monster B, and a wavy flight trajectory for monster C. Thus, when the player controls the virtual character to knock back different virtual characters, different flight trajectories can be displayed, thereby enhancing the interactive effect of the knockback event.
[0035] S208, in response to a collision between a second virtual object in flight and a target virtual object in the virtual scene, update the survival state parameters of the second virtual object.
[0036] It should be further explained that, in this embodiment, the second virtual object, when knocked back, can collide with a target virtual object in the game. This target virtual object can be any entity object in the game, such as virtual items, virtual ground, virtual props, virtual vehicles, virtual characters, virtual heroes, etc. The target virtual object is defined as an object that possesses a certain physical presence in the game's physical space and can collide with other objects. The specific type of the target virtual object is not limited here.
[0037] The following explains the survival status parameters mentioned above. These survival status parameters indicate the game activity status of the second virtual object, and may be parameters such as virtual health points, virtual health, or virtual activity index. It is understood that when these survival status parameters decrease to zero, the second virtual object is controlled to be in a defeated state in the game.
[0038] It is understood that in this embodiment, the second virtual object is configured with survival status parameters and can be displayed in a virtual scene. For example, if the second virtual object collides with the target virtual object during its knockback, the survival status parameters of the second virtual object are controlled to decrease.
[0039] The following combination Figure 3 , Figure 4 Two specific scenarios in this embodiment will be described.
[0040] like Figure 3 As shown, the first virtual object 301 is controlled to initiate a shooting operation towards the second virtual object 302. While inflicting damage on the second virtual object 302 according to the shooting operation, the shooting damage is used to accumulate the interaction flight coefficient of the second virtual object 302. When the interaction flight coefficient of the second virtual object 302 accumulates to a target threshold, the second virtual object 302 is controlled to fly, that is, the second virtual object 303 in flight state is displayed. Figure 3As shown, the flight trajectory of the second virtual object 303 in flight is a parabola, and at the end of the parabola, it collides with the third virtual object 305, i.e., a car. Simultaneously, the second virtual object 303 in flight is displayed as the second virtual object 304 in a landed state. It is understood that in this embodiment, the target virtual object is the third virtual object 305. It should be noted that in this collision event, only the second virtual object 304 will be damaged; in another scenario, the third virtual object 305 can also be configured with survival state parameters. As shown in the figure, the third virtual object 305, i.e., a car, can be configured with survival state parameters that change due to attacks or collisions. That is, when it is collided with by the second virtual object 304, the survival state parameters of the third virtual object 305 are reduced, and when the survival state parameters of the third virtual object 305 are reduced to 0, the third virtual object 305 is controlled to explode. It is understood that when the aforementioned target virtual object is damaged by a collision, its corresponding survival state parameters can be updated and displayed.
[0041] like Figure 4 As shown, the fourth virtual object 401 is controlled to launch an attack operation against the fifth virtual object 402. While causing damage to the fifth virtual object 402 according to the attack operation, the attack damage is used to accumulate the interaction flight coefficient of the fifth virtual object 402. When the interaction flight coefficient of the fifth virtual object 402 accumulates to a target threshold, the fifth virtual object 402 is controlled to fly, that is, the fifth virtual object 403 is displayed in a flying state. Figure 4 As shown, the flight trajectory of the fifth virtual object 403 in flight is a parabola, and at the end of the parabola, it collides with the sixth virtual object 405, which is another virtual character, such as a virtual monster. Simultaneously, the fifth virtual object 403 in flight is displayed as the fifth virtual object 404 in a landed state. It is understood that in this embodiment, the target virtual object can be the sixth virtual object 405. In one approach, both the fifth virtual object 404 and the sixth virtual object 405 can be configured with survival state parameters, and both can have their corresponding survival state parameters changed by attacks or collisions. That is, when the fifth virtual object 404 and the sixth virtual object 405 collide, the survival state parameters of both are simultaneously reduced, and when the survival state parameter of the sixth virtual object 405 drops to 0, the sixth virtual object 405 is controlled to die in the game.
[0042] It is understandable that, in this embodiment, the fifth and second virtual objects can still cause damage to themselves when they are knocked away and land, that is, the survival status parameters of the fifth and second virtual objects can be reduced.
[0043] Through the above-described embodiments of this application, by displaying a virtual scene where a first virtual object is located, wherein the virtual scene includes a second virtual object that interacts with the first virtual object; in response to a control operation on the first virtual object, controlling the first virtual object to initiate an interaction event with the second virtual object, wherein the interaction event is used to increase the value of the interaction flight coefficient of the second virtual object; in response to the current accumulated value of the interaction flight coefficient corresponding to the second virtual object reaching a target threshold, controlling the second virtual object to fly according to a target trajectory; in response to the second virtual object in flight colliding with the target virtual object in the virtual scene, updating the survival state parameters of the second virtual object. Furthermore, by determining the flight coefficient through interaction events between virtual objects, and controlling the virtual object to fly based on the accumulation of the flight coefficient, and causing damage to the virtual object based on secondary collisions, the knockback state of the virtual object and the damage effect after knockback can be further controlled by controlling the interaction events between virtual objects. During the interaction with the virtual object, users can accurately control the display of the knockback effect and the subsequent damage effect by controlling the interactive events. This achieves precise control over the knockback display method, thereby providing rich interactive effects and solving the technical problem of poor interactive effects in existing knockback display methods.
[0044] As an optional implementation, the above-mentioned response to a second virtual object in flight colliding with a target virtual object in a virtual scene, updating the survival state parameters of the second virtual object includes: S1, when the target virtual object is a first type of virtual object in the virtual scene, update the survival state parameters of the second virtual object and control the second virtual object to move according to the movement trajectory determined based on the collision event. The first type of virtual object carries a first state adjustment label, which is used to indicate that the survival state parameters are not adjusted for virtual objects that have contact collisions. S2, when the target virtual object is a second type of virtual object in the virtual scene, update the survival state parameters of the second virtual object and the target virtual object respectively, and control the second virtual object to move according to the movement trajectory determined based on the collision event, and control the target virtual object to move according to the collision displacement determined based on the collision event. The second type of virtual object carries a second state adjustment label, which is used to indicate that the survival state parameters of the virtual object that has a contact collision are allowed to be adjusted.
[0045] It should be noted that, in this embodiment, when the second virtual object collides with the target object while in flight, the collision display method corresponding to the current collision event and the target object that will be damaged by the collision can be determined according to the object type of the target object.
[0046] In this embodiment, the target objects include at least two types: The first type of target object carries a first state adjustment tag, which indicates that the first type of target object will not adjust its survival state parameters due to collision events. More specifically, the aforementioned first type of target object can be set not to suffer collision damage from collision events involving virtual objects in a knockback state. Therefore, if it is determined that the target virtual object colliding with the aforementioned second virtual object is the aforementioned first type of virtual object, only the survival state parameters of the second virtual object can be adjusted and displayed.
[0047] It is understandable that, if the target virtual object will not be damaged by collision, only the collision effect of the second virtual object can be displayed, without performing special animation effects on the target object.
[0048] In some specific ways, the first type of target object mentioned above can be virtual items, virtual ground, virtual props, virtual vehicles and other item entities. Because they have the attributes of items, they can be set not to be damaged by collisions. The aforementioned target objects also include a second type of virtual object, which carries a second state adjustment tag. This tag indicates that the second type of target object can adjust its survival state parameters due to collision events. More specifically, the aforementioned second type of target object can be set to allow collision damage from collision events involving virtual objects in a knockback state. Therefore, when it is determined that the target virtual object colliding with the aforementioned second type of virtual object is indeed the aforementioned second type of virtual object, the survival state parameters of both the second virtual object and the aforementioned target virtual object can be controlled to be adjusted and displayed synchronously.
[0049] It is understandable that, when the aforementioned target virtual object is subject to collision damage, special collision effects can be simultaneously displayed on the aforementioned target object while the driver displays the collision effects corresponding to the second virtual object. In some specific ways, the second type of target object mentioned above can be a controllable virtual image such as a virtual character or virtual hero. Because it has the survival attributes of a virtual image or virtual character, it is set to be able to suffer collision damage due to collision.
[0050] The following details the collision behavior of the reference virtual object being collided with: If the collided virtual object does not have a tag that grants immunity to collision damage, the collision effect will be triggered. The collision animation of the collided virtual object includes a four-way animation, named Bump_F (forward collision), Bump_B (backward collision), Bump_L (left collision), and Bump_R (right collision) for each direction, representing the virtual object being collided from different angles. Furthermore, the displacement of the collision animation is driven by the animation's built-in root motion, without requiring prediction of the impact point.
[0051] Through the above-described embodiments of this application, when the target virtual object is a first type of virtual object in the virtual scene, the survival state parameters of the second virtual object are updated, and the second virtual object is controlled to move according to the movement trajectory determined based on the collision event; when the target virtual object is a second type of virtual object in the virtual scene, the survival state parameters of the second virtual object and the target virtual object are updated respectively, and the second virtual object is controlled to move according to the movement trajectory determined based on the collision event, and the target virtual object is controlled to move according to the collision displacement determined based on the collision event. Different collision performance forms are configured for different collided virtual objects, and different collision performance forms are used to indicate the adjustment state of the survival state parameters of different types of virtual objects, thereby improving the display efficiency of the knock-up display method.
[0052] As an optional implementation, the aforementioned control target virtual object moving according to the collision displacement determined based on the collision event includes: S1, Update the current cumulative value of the interaction flight coefficient corresponding to the target virtual object after the collision; S2, in response to the current accumulated value of the interactive flight coefficient corresponding to the target virtual object reaching the target threshold, control the target virtual object to fly according to the first trajectory.
[0053] It should be noted that in this embodiment, the target virtual object will not trigger the knockback effect again by default when it is collided with; however, by using special labels, the target virtual object with the special label can be further charged with the above-mentioned interactive flight coefficient based on the impact damage when it is hit, thereby triggering the knockback effect on the target virtual object due to the impact damage, and controlling the target virtual object to fly along the first trajectory.
[0054] Specifically, in a game, by default, the virtual object that is hit will not be knocked back. However, by using the perk modifier, the hit virtual object can also be knocked back. The direction of the knockback can be determined according to the direction of the impact event relative to the hit virtual object.
[0055] The following combination Figure 5 The above methods will be explained. For example... Figure 5 As shown, when the fifth virtual object 404 collides with the sixth virtual object 405, and the sixth virtual object 405 carries a tag that allows for chain knockbacks, and when the flight coefficient of the sixth virtual object 405 reaches a threshold, the sixth virtual object 405 can be controlled to also be knocked back due to the collision event, thus displaying the sixth virtual object 406 in flight mode. It is understandable that after flight ends and the sixth virtual object 406 collides with other virtual objects, it will be further damaged by the landing collision.
[0056] The above-described embodiments of this application update the current accumulated value of the interaction flight coefficient corresponding to the target virtual object after collision; in response to the current accumulated value of the interaction flight coefficient corresponding to the target virtual object reaching a target threshold, the target virtual object is controlled to fly along a first trajectory, thereby providing a chain collision knockback control method. This allows players to consciously control the virtual object to interact near virtual objects that can trigger chain knockbacks, thereby increasing the probability of triggering chain knockbacks and resulting in more damage effects from chain knockbacks. Therefore, the above control method can generate more damage effects by controlling the interaction of virtual objects in a specific location.
[0057] As an optional implementation, controlling the second virtual object to move according to a movement trajectory determined based on collision events includes: S1, Based on the collision event, determine the collision position and first landing point position of the second virtual object in the virtual scene; S2, determine the movement trajectory between the collision location and the first impact point; S3 controls the second virtual object to move according to the movement trajectory.
[0058] It is understood that in this embodiment, when a collision event occurs to the second virtual object, it is necessary to first determine the collision location and the landing point of the flight trajectory, determine the movement trajectory based on the distance between them, and drive the display of the collision animation of the second virtual object according to the collision movement trajectory.
[0059] Through the above-described embodiments of this application, the collision position and first landing point position of the second virtual object in the virtual scene are determined based on the collision event; the movement trajectory between the collision position and the first landing point position is determined; and the second virtual object is controlled to move according to the movement trajectory. Thus, the display method of the collision animation of the second virtual object is accurately determined based on the collision position generated by the collision event and the landing point position of the flight trajectory, thereby improving the interactive control accuracy of the knock-up-collision control.
[0060] As an optional implementation, the above-mentioned determination of the collision position and first landing point position of the second virtual object in the virtual scene based on the collision event includes: S1, determine the collision location when the collision event is triggered; S2, obtain the velocity vector of the second virtual object at the collision location; S3, if the horizontal velocity component of the velocity vector is greater than the first velocity threshold, determine to trigger the first impact logic; S4, determine the first landing point position based on the first impact logic, and the first adjustment value of the survival state parameter of the second virtual object, or the first adjustment value of the survival state parameter of the second virtual object and the second adjustment value of the survival state parameter of the target virtual object.
[0061] As an optional implementation, after obtaining the velocity vector of the second virtual object at the collision location, the method further includes: S1, if the vertical velocity component of the velocity vector is greater than the second velocity threshold, determine to trigger the second impact logic; S2, based on the second impact logic, determine the first landing point position, and the third adjustment value of the survival state parameter of the second virtual object, or the third adjustment value of the survival state parameter of the second virtual object and the fourth adjustment value of the survival state parameter of the target virtual object.
[0062] The following combination Figure 6 The above methods will be explained in detail.
[0063] In the above embodiments of this application, it is necessary to adjust the relevant parameters according to the velocity vector of the second virtual object at the collision point, and the landing point animation of the second virtual object can be distinguished and displayed according to the velocity vector of the second virtual object at the collision point.
[0064] Specifically, such as Figure 6 As shown, for a virtual object in a knockback state, when the knockback state ends, the velocity vector V between the end time and the collision point (in terms of the collision position) needs to be decomposed. The velocity vector V at the end of the knockback is decomposed as follows: and Two orthogonal vectors, where It is a horizontal vector. It is a vertical (downward) vector; Next, calculate separately and The magnitude of the absolute values of the two values. First, check... If the value is greater than the preset value 'a', the current knockback result is determined to be a collision with another vertical object, triggering the collision object logic execution and playing the collision object animation 'KnockDown_Bump' based on the event parameters of the collision event. It can be understood that, in the case of determining a collision object logic, the specific adjustment value for the survival state parameters can be determined based on the event parameters of the collision event. For example, it can be based on the landing point... The value determines the specific adjustment value of the survival state parameter that matches it, which can be... The larger the value, the larger the specific adjustment value, meaning the larger the horizontal component of the landing speed, and the greater the damage to the virtual object.
[0065] If detection If the value is less than the preset value 'a', then a detection is performed. The magnitude of the value, when If the value is less than the preset value b, the result of the knock-up is determined to be a normal landing, that is, the normal knock-up landing animation KnockDown_End is played; it can be understood that in this landing logic, no damage will be caused to the landing virtual object, that is, the specific adjustment value of the survival state parameter can be directly determined to be 0.
[0066] If detection If the value is greater than the preset value 'b', it is determined that the height difference landing damage logic has been triggered, i.e., the height difference landing animation 'KnockDown_Floor' is played. It is understandable that, in the case of determining a height difference landing damage logic, the specific adjustment value of the survival status parameters can be determined based on the event parameters of the height difference landing event. For example, it can be based on the landing point... The value determines the specific adjustment value of the survival state parameter that matches it, which can be... The larger the value, the greater the specific adjustment value, meaning the greater the vertical component of the landing speed, and the higher the damage to the virtual object.
[0067] It is understood that in this implementation, different landing animations can be matched for different landing logics to show the impact damage suffered by the virtual object upon landing. For example, the KnockDown_Bump animation can be used to indicate that the virtual object was damaged by an impact object upon landing, and the damage is related to the horizontal velocity of the landing; the KnockDown_End animation can be used to indicate that the virtual object was not damaged by a collision upon landing; and the KnockDown_Floor animation can be used to indicate that the virtual object was damaged by a height difference impact upon landing, and the damage is related to the vertical component of the landing velocity.
[0068] Through the above-described embodiments of this application, the collision position when the collision event is triggered is determined; the velocity vector of the second virtual object at the collision position is obtained; if the horizontal velocity component of the velocity vector is greater than a first velocity threshold, a first impact logic is triggered; based on the first impact logic, the first landing point position is determined, and a first adjustment value for the survival state parameter of the second virtual object, or a first adjustment value for the survival state parameter of the second virtual object and a second adjustment value for the survival state parameter of the target virtual object are determined, and if the vertical velocity component of the velocity vector is greater than a second velocity threshold, a second impact logic is triggered; based on the second impact logic, the first landing point position is determined, and a third adjustment value for the survival state parameter of the second virtual object, or a third adjustment value for the survival state parameter of the second virtual object and a fourth adjustment value for the survival state parameter of the target virtual object are determined, thereby determining different damage values according to the velocity parameters of different landing collision events, and controlling the driving of collision effects corresponding to the damage type, thereby associating the display method of the collision effect with the damage type, improving the control interaction efficiency of the knockback control method.
[0069] As an optional implementation, the above-mentioned response to the current accumulated value of the interactive flight coefficient corresponding to the second virtual object reaching the target threshold, controlling the second virtual object to fly according to the target trajectory includes: S1, if the second virtual object in flight does not collide with any other virtual object in the virtual scene, determine the second landing point position of the second virtual object in the virtual scene; S2 controls the second virtual object to land at the second landing point.
[0070] The following is a detailed explanation of how the above flight effects are demonstrated.
[0071] In this implementation, the knockback effect animation consists of several basic animations: KnockDown_Start (knockback start animation), KnockDown_Loop (flight animation), KnockDown_End (landing animation), KnockDown_Bump (horizontal collision animation), and KnockDown_Floor (height difference collision animation). The following is a description of each animation: KnockDown_Start (Knock-down Start Animation): This indicates the animation that appears when the monster is knocked back. It consists of four sub-animations in four directions: F (forward), B (backward), L (left), and R (right). The direction of the knock-down start animation is determined by the attack that triggers the knock-up or the time relative to the position of the knocked-back monster. In other words, when a virtual object is knocked back, the sub-animation that matches the knock-up direction will be selected from KnockDown_Start to play in order to display the knock-up effect of the virtual object being knocked back. KnockDown_Loop (flight animation): This indicates the looping animation during the flight process after the monster is knocked back. KnockDown_End (landing animation): This indicates the animation of a virtual object landing normally after being knocked away. KnockDown_Bump (Horizontal Collision Animation): This animation represents the visual effect of a virtual object colliding with scene objects or other monsters during a knock-up. In other words, once the virtual object has finished being knocked up, and the horizontal collision logic is triggered, the KnockDown_Bump animation is played at the point of collision to display the impact effect and indicate that the virtual object has suffered impact damage. KnockDown_Floor (Height Difference Collision Animation): This animation depicts the damage inflicted when a monster, after being knocked back, lands on the lower ground due to a height difference. Essentially, once the virtual object has finished being knocked back, and a height difference collision is detected, the KnockDown_Floor animation is played at the point of collision to display the landing damage effect and indicate that the virtual object has taken landing damage.
[0072] It should be noted that the above animations are all presentational; the actual trajectory of the knock-up is driven by the program and determined by the combined effects of the initial velocity vector and gravity.
[0073] Through the above-described embodiments of this application, the second landing point position of the second virtual object in the virtual scene is determined when the second virtual object in flight does not collide with any other virtual object in the virtual scene; the second virtual object is controlled to land at the second landing point position, thereby dynamically displaying the knock-up process and the landing process, indicating the knock-up direction of the virtual object with different initial knock-up effects, and displaying the type of damage suffered by the virtual object at the landing point with different landing effects, thereby improving the interactive effect of the knock-up display process.
[0074] As an optional method, determining the second landing point position of the second virtual object in the virtual scene includes: S1, determine the initial landing position of the second virtual object as it flies along the target trajectory; S2, if the initial landing point is not located within the pathfinding area allowed in the virtual scene, determine the second landing point location based on the initial landing point location and the boundary of the pathfinding area. S3, if the initial landing point is within the pathfinding area, the initial landing point is determined as the second landing point.
[0075] Specifically, in this embodiment, each time a knockback is triggered, the possible landing point needs to be calculated in advance based on the animation displacement. If there is no navmesh (a pathfindable point within the level) at the landing point, then it is necessary to backtrack to a normal navmesh location as the actual landing point.
[0076] The following combination Figure 7 The above methods will be explained in detail. For example... Figure 7 As shown, assuming that the expected landing point of trajectory 703 should be the first landing point 701 according to the program calculation, but if the first landing point 701 is not a navmesh (for example, it may be a bug point in the virtual scene where the virtual object cannot be controlled to move), then a backtracking operation is performed, and the previous normal position point of the navmesh is determined, that is, the second landing point 702 is taken as the final landing point.
[0077] Through the above-described embodiments of this application, the initial landing position of the second virtual object flying along the target trajectory is determined; when the initial landing position is not located within the pathfinding area allowed in the virtual scene, the second landing position is determined based on the initial landing position and the boundary of the pathfinding area; when the initial landing position is located within the pathfinding area, the initial landing position is determined as the second landing position, thereby avoiding the trajectory landing point from falling in a scene prone to errors and improving the accuracy of the knock-off landing logic execution.
[0078] As an optional implementation, when controlling the second virtual object to fly according to the target trajectory, the method further includes: S1, when the second virtual object in flight receives an interaction event initiated by the third virtual object, the interaction position between the second virtual object and the third virtual object is determined; S2, when the interactive position is a key position, control the second virtual object to fly according to the adjusted second trajectory.
[0079] It is understood that in this embodiment, by default, virtual objects will not trigger a new knockback during the knockback process. However, this can be modified using a perk, i.e., by configuring a tag that authorizes a second knockback for a virtual object, allowing a knockback of a virtual object to occur a second time under certain conditions. Specifically, this could occur if a virtual object carrying a special perk is hit on a weakness during its knockback process, resulting in a second knockback.
[0080] Specific combination Figure 8 The above methods will be explained. For example... Figure 8 As shown, the first virtual object 801 attacks the second virtual object 802 through a shooting operation. When the interactive flight coefficient of the second virtual object 802 reaches a threshold, the flight effect of the second virtual object 802 is displayed, that is, the second virtual object 803 in flight state is displayed. When the second virtual object is a virtual object carrying a special perk, if it is attacked by the third virtual object 804 and the attack hits a key position of the second virtual object 803, that is, the second virtual object 803 is triggered into a secondary knockback state, that is, the second virtual object 805 in the secondary knockback state is displayed.
[0081] Through the above-described embodiments of this application, when a second virtual object in flight receives an interaction event initiated by a third virtual object, the interaction position between the second virtual object and the third virtual object is determined; when the interaction position is a key position, the second virtual object is controlled to fly according to the adjusted second trajectory, thereby providing secondary knockback control for special virtual objects and generating corresponding secondary knockback damage effects, thereby improving the interactive effect of the knockback display process.
[0082] As an optional implementation, the above-mentioned response to the current accumulated value of the interactive flight coefficient corresponding to the second virtual object reaching the target threshold, controlling the second virtual object to fly according to the target trajectory includes: S1, after the second virtual object updates the interaction flight coefficient in response to the interaction event initiated by the first virtual object, and the updated current cumulative value reaches the target threshold, the flight direction of the second virtual object is determined as the first direction based on the interaction direction of the interaction event initiated by the first virtual object; the second virtual object is controlled to fly along the first direction. S2, after the second virtual object updates the interaction flight coefficient in response to the interaction event initiated by the fourth virtual object, and the updated current cumulative value reaches the target threshold, the flight direction of the second virtual object is determined as the second direction based on the interaction direction of the interaction event initiated by the fourth virtual object, wherein the second virtual object interacts simultaneously with the first virtual object and the fourth virtual object; and the second virtual object is controlled to fly along the second direction.
[0083] It should be noted that, in this embodiment, as Figure 9 As shown, when a knockback is triggered, the direction of the knockback of the virtual object is from the player or object that caused the knockback damage to the extension of the line connecting the knocked-back monster. For example... Figure 9 In the middle, the first virtual object 901 attacks the second virtual object 902 through a hand attack operation. When the attack operation causes the flight interaction parameters of the second virtual object 902 to reach the threshold, that is, the second virtual object 902 is controlled to trigger a knockback along the extension line of the line connecting the player or object from the knockback damage source to the knocked-back monster, that is, the second virtual object 903 is displayed in the knockback state.
[0084] Optionally, the reference virtual object that the knocked-back virtual object collides with, if collision behavior is allowed to be triggered, is oriented towards the direction in which the knocked-back virtual object is flying, as the direction of the impact.
[0085] It is understandable that the specific confirmation process of the above-mentioned knockback direction and impact direction can be based on the extension of the line connecting the root bone point of the attacker and the root bone point of the attacked party to determine the knockback direction of the virtual object being knocked back and the impact direction of the virtual object being hit.
[0086] It should also be noted that in this embodiment, the attacked virtual object can be attacked or damaged by multiple virtual objects simultaneously. The final knockback direction of the virtual object is determined by the direction of the line connecting the last damaged object that reaches the target flight threshold and the virtual object. For example, if the knockback threshold is 100 and the current knockback coefficient of the second virtual object is 90, and the first and third virtual objects simultaneously damage the second virtual object and accumulate knockback coefficients, but the first virtual object ultimately damages the second virtual object and accumulates knockback coefficients first, the final flight direction is determined by the relationship between the positions and damage angles of the first and second virtual objects; similarly, if the third virtual object ultimately damages the second virtual object and accumulates knockback coefficients first, the final flight direction is determined by the relationship between the positions and damage angles of the third and second virtual objects.
[0087] Through the above-described embodiments of this application, when the updated current cumulative value obtained after the second virtual object updates the interaction flight coefficient in response to the interaction event initiated by the first virtual object reaches the target threshold, the flight direction of the second virtual object is determined as the first direction based on the interaction direction of the interaction event initiated by the first virtual object; the second virtual object is controlled to fly along the first direction; when the updated current cumulative value obtained after the second virtual object updates the interaction flight coefficient in response to the interaction event initiated by the fourth virtual object reaches the target threshold, the flight direction of the second virtual object is determined as the second direction based on the interaction direction of the interaction event initiated by the fourth virtual object, wherein the second virtual object interacts simultaneously with the first virtual object and the fourth virtual object; the second virtual object is controlled to fly along the second direction, thereby determining the final knockback flight direction based on the position and damage angle relationship between the virtual objects, thereby improving the operational accuracy of the knockback interaction operation.
[0088] As an optional implementation, after controlling the first virtual object to initiate an interaction event with the second virtual object, the method further includes: S1, obtain the first incremental value of the interactive flight coefficient corresponding to the interactive event initiated by the first virtual object; S2, determine the flight resistance coefficient that matches the second virtual object, wherein the flight resistance coefficient is used to indicate the difficulty of the second virtual object flying based on the interaction flight coefficient; S3, based on the first incremental value and the flight resistance coefficient, determine the second incremental value; S4, superimpose the second incremental value to update the interactive flight coefficient corresponding to the second virtual object, and obtain the current cumulative value.
[0089] Understandably, in this implementation, each virtual object is configured with an accumulated interaction flight coefficient. Furthermore, every instance of external damage transmits this interaction flight coefficient to the virtual object. Examples of such damage include damage from each bullet fired, damage from melee attacks, hero skill damage, and damage from thrown virtual objects (such as oxygen tanks, traps, virtual projectiles, etc.).
[0090] In this embodiment, the knockback state of the virtual object is determined by the accumulated interactive flight coefficient. When the accumulated interactive flight coefficient reaches or exceeds a preset threshold, it will trigger the knockback effect of the virtual object.
[0091] It should be further noted that in this embodiment, each virtual object is configured with a flight resistance value parameter. The function of the flight resistance value is that each time a virtual object receives an interactive flight coefficient value transmitted from the outside, it needs to multiply the external interactive flight coefficient value by its own resistance value before converting it into its own cumulative interactive flight coefficient value. In this embodiment, the default flight resistance value configured for the virtual object can be 1.
[0092] The following example illustrates the method. Assume the first virtual object can inflict 100 damage points each time, and the damage-to-flight coefficient transfer ratio is 2:1. This means that 100 damage points can transfer an initial interactive flight coefficient of 50 points to the second virtual object. Assume the second virtual object has a flight resistance coefficient of 1. Therefore, when it receives 100 damage points, based on its initial interactive flight coefficient of 50, its accumulated interactive flight coefficient is 50. 1 = 50 points; Assuming the second virtual object's flight resistance coefficient is 0.5, then when it receives 100 points of damage, based on its initial interaction flight coefficient of 50 points, its accumulated interaction flight coefficient is 50. 0.5 = 25 points.
[0093] Through the above-described embodiments of this application, the following methods are employed: obtaining a first incremental value of the interactive flight coefficient corresponding to an interactive event initiated by a first virtual object; determining a flight resistance coefficient matching a second virtual object, wherein the flight resistance coefficient indicates the difficulty for the second virtual object to fly based on the interactive flight coefficient; determining a second incremental value based on the first incremental value and the flight resistance coefficient; and superimposing the second incremental value to update the interactive flight coefficient corresponding to the second virtual object to obtain the current accumulated value. This allows for the configuration of different flight resistance coefficients for different virtual objects, resulting in varying degrees of difficulty for different virtual objects to be attacked and knocked back. Players can prioritize attacking virtual objects with higher flight resistance coefficients, thereby quickly accumulating the interactive flight coefficient and producing the effect of knocking back and damaging the knocked-back virtual objects. In other words, the interactive efficiency of knockback control is improved through the above methods.
[0094] As an optional implementation, after controlling the first virtual object to initiate an interaction event with the second virtual object in response to the control operation on the first virtual object, the method further includes: in response to the triggering operation on the target control in the active state, reducing the value of the interaction flight coefficient corresponding to the second virtual object, wherein the target control will be adjusted to a cooling state after being triggered, and the cooling state is configured with a cooling duration.
[0095] It should be noted that, in this implementation, the cumulative interaction flight coefficient value of each virtual object generally only increases and never decreases. Reducing it requires a specific buff. For example, this implementation provides a special control to reduce the accumulated interaction flight coefficient of virtual objects. Specifically, when a first virtual object controlled by a first player is attacked by a second virtual object controlled by a second player, and the interaction flight coefficient of the first virtual object is about to reach a preset threshold, the player can trigger the target control to reduce the interaction flight coefficient of the first virtual object, preventing it from being knocked back by the second virtual object and suffering landing damage.
[0096] Through the above-described embodiments of this application, by responding to the triggering operation of the target control in the active state, the value of the interactive flight coefficient corresponding to the second virtual object is reduced, which can provide a way to reduce the interactive flight coefficient, that is, to increase the operation mode of interactive operation and increase the richness of interactive effects in the game.
[0097] As an optional implementation, after controlling the second virtual object to fly according to the target trajectory, the method further includes: when the second virtual object reaches the landing position, clearing the current accumulated value of the interactive flight coefficient corresponding to the second virtual object to zero.
[0098] It is understood that in the above embodiments of this application, when a virtual object triggers a knockback effect, its knockback value can be cleared after the knockback state ends, thereby triggering the accumulation process of the next round of interactive flight coefficient.
[0099] Through the above-described embodiments of this application, when the second virtual object reaches the landing position, the current accumulated value of the interactive flight coefficient corresponding to the second virtual object is cleared to zero, thereby encouraging players to continue to perform interactive operations to accumulate the interactive flight coefficient and trigger the knock-up effect again, thereby improving the interactive effect of the knock-up control.
[0100] As an optional implementation, after controlling the second virtual object to fly along the target trajectory, the method further includes: terminating the flight state of the second virtual object when a target event is generated in the virtual scene, wherein the execution priority of the target event is higher than the execution priority of the second virtual object flying along the target trajectory.
[0101] It is understood that in this embodiment, the knockback state can be interrupted by other virtual states with higher priority. In this embodiment, different virtual states have different execution priorities. For example, the execution priority of the virtual death state can be higher than the aforementioned flight state. This means that if a virtual object is in flight and its survival status parameter indicates that it is in a death state, then the virtual object will display a death animation, and the aforementioned flight animation will be stopped. Simultaneously, the aforementioned flight state can have a higher execution priority than some other virtual states, such as the virtual attacked state. That is, if a virtual object is in an attacked state, assuming that the object has met the knockback trigger condition, then the attacked animation will be stopped, and the virtual object will be controlled to enter a flight state, displaying the virtual object's flight animation.
[0102] The following combination Figure 10 The priority of the various states present in this embodiment is explained. For example... Figure 10 As shown, the knockback (perk), weak stun, and death states have the highest execution priority and can interrupt normal knockback states; meanwhile, normal knockback states can interrupt hit reaction states, startle states, knockback (perk) states, and impact states. Figure 10 As shown in the priority diagram, virtual objects with the perk flag can trigger the knockback state again while still in a knockback state.
[0103] Through the above-described embodiments of this application, the execution priority of various states in the virtual scene is arranged in such a way that the flight state of the second virtual object is terminated when a target event occurs in the virtual scene, thereby precisely controlling the display state of the virtual object in the game.
[0104] The following combination Figure 11 A specific implementation of this application will be described.
[0105] As in step S1102, a knockback is triggered; It should be noted that in this implementation, each AI (i.e., virtual monster, an optional form of the aforementioned virtual object) has a cumulative knockback value parameter; each weapon can be configured to transfer a knockback value to monsters based on its basic attack, such as each bullet from a gun, melee attacks damaging hero skills, and level objects (oxygen tanks, mechanisms, etc.) can also transfer knockback value to hit monsters. The knockback of a monster is determined by its accumulated knockback value. When the accumulated knockback value of a monster reaches or exceeds a preset threshold, a knockback effect will be triggered on that monster. Each monster also has a knockback resistance value parameter. The function of the knockback resistance value is that each time a monster receives an external knockback value, it needs to multiply the external knockback value by its own resistance value and then convert it into its own cumulative knockback value.
[0106] When an AI is knocked back, hitting other objects in the scene will trigger a massive damage event. The damage value is configurable and related to the player's base damage. Similarly, if an AI collides with another type of AI during its knockback, it will also trigger a massive damage event, which is also configurable and related to the player's base damage. If the other AI is hit by a knocked-back AI and has a tag that prevents it from being hit by knocked-back monsters, it will not take damage. However, the knocked-back AI itself will still take damage from colliding with other monsters. Even if an AI doesn't collide with other objects after triggering a knockback, if the difference between its landing coordinates and the monster's coordinates at the time of the knockback is greater than a certain value, it will still suffer landing impact damage. This damage value is configurable and related to the player's base damage. The trigger conditions for the knockback collision and landing difference collision damage mentioned above can be determined by the vertical vector of the velocity at the time of impact or landing. Specific damage rules can be pre-configured as needed. Furthermore, each AI has specific knockback damage resistance. Each time a knockback is triggered or an impact occurs, the damage is multiplied by the resistance to obtain the final damage value inflicted on the knocked-back AI.
[0107] Next, during the AI's knockback process, the judgment step S1104 is repeated to determine whether a collision occurs; if a collision occurs, step S1106 is executed to split the velocity vector at the time of the collision. Next, the judgment step S1108 is executed to determine... If the value is greater than a preset value 'a', proceed to step S1110 to generate object collision logic; otherwise, proceed to step S1112 to determine whether the value is greater than the preset value 'a'. Is it greater than the preset value b? If If the value is less than or equal to the preset value b, then proceed to step S1114 for normal landing; if... If the value is greater than the preset value b, then step S1116 is executed to generate high-low difference collision logic.
[0108] The following combination Figure 6The above methods will be explained in detail.
[0109] In the above embodiments of this application, it is necessary to adjust the relevant parameters according to the velocity vector of the second virtual object at the collision point, and the landing point animation of the second virtual object can be distinguished and displayed according to the velocity vector of the second virtual object at the collision point.
[0110] Specifically, such as Figure 6 As shown, for a virtual object in a knockback state, when the knockback state ends, the velocity vector V between the end time and the collision point (in terms of the collision position) needs to be decomposed. The velocity vector V at the end of the knockback is decomposed as follows: and Two orthogonal values, among which It is a horizontal vector. It is a vertical (downward) vector; Next, calculate separately and The magnitude of the absolute values of the two values. First, check... If the value is greater than the preset value 'a', the current knockback result is determined to be a collision with another vertical object, triggering the collision object logic execution and playing the collision object animation 'KnockDown_Bump' based on the event parameters of the collision event. It can be understood that, in the case of determining a collision object logic, the specific adjustment value for the survival state parameters can be determined based on the event parameters of the collision event. For example, it can be based on the landing point... The value determines the specific adjustment value of the survival state parameter that matches it, which can be... The larger the value, the larger the specific adjustment value, meaning the larger the horizontal component of the landing speed, and the greater the damage to the virtual object.
[0111] If detection If the value is less than the preset value 'a', then a detection is performed. The magnitude of the value, when If the value is less than the preset value b, the result of the knock-up is determined to be a normal landing, that is, the normal knock-up landing animation KnockDown_End is played; it can be understood that in this landing logic, no damage will be caused to the landing virtual object, that is, the specific adjustment value of the survival state parameter can be directly determined to be 0.
[0112] If detection If the value is greater than the preset value 'b', it is determined that the height difference landing damage logic has been triggered, i.e., the height difference landing animation 'KnockDown_Floor' is played. It is understandable that, in the case of determining a height difference landing damage logic, the specific adjustment value of the survival status parameters can be determined based on the event parameters of the height difference landing event. For example, it can be based on the landing point... The value determines the specific adjustment value of the survival state parameter that matches it, which can be... The larger the value, the greater the specific adjustment value, meaning the greater the vertical component of the landing speed, and the higher the damage to the virtual object.
[0113] It is understood that in this implementation, different landing animations can be matched for different landing logics to show the impact damage suffered by the virtual object upon landing. For example, the KnockDown_Bump animation can be used to indicate that the virtual object was damaged by an impact object upon landing, and the damage is related to the horizontal velocity of the landing; the KnockDown_End animation can be used to indicate that the virtual object was not damaged by a collision upon landing; and the KnockDown_Floor animation can be used to indicate that the virtual object was damaged by a height difference impact upon landing, and the damage is related to the vertical component of the landing velocity.
[0114] Through the above-described embodiments of this application, by displaying a virtual scene where a first virtual object is located, wherein the virtual scene includes a second virtual object that interacts with the first virtual object; in response to a control operation on the first virtual object, the first virtual object is controlled to initiate an interaction event with the second virtual object, wherein the interaction event is used to increase the value of the interaction flight coefficient of the second virtual object; in response to the current accumulated value of the interaction flight coefficient corresponding to the second virtual object reaching a target threshold, the second virtual object is controlled to fly according to a target trajectory; in response to the second virtual object in flight colliding with the target virtual object in the virtual scene, the survival status parameters of the second virtual object are updated. Furthermore, the flight coefficient is determined through the interaction events between virtual objects, and the flight state of the displayed virtual object is controlled according to the accumulation of the flight coefficient. Damage is inflicted on the virtual object based on a secondary collision. Therefore, by controlling the interaction events between virtual objects, the knockback state of the virtual object can be further controlled, and the damage effect after knockback can be controlled. During the interaction with virtual objects, users can accurately control the display of knockback effects and subsequent damage effects through interactive event manipulation. This allows for precise control over the knockback display, providing rich interactive effects and resolving the technical problem of poor interactive effects in existing knockback display methods. In the above-described embodiments of this application, AI detects collisions with existing objects in the scene during knockback and knock-up, generating various types of combat effects. This guides players to consciously lure monsters to complex areas of the scene during combat, utilizing complex terrain to create various interesting combat experiences.
[0115] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0116] According to another aspect of the present invention, a control device for a virtual object for implementing the above-described virtual object control method is also provided. For example... Figure 12 As shown, the device includes: Display unit 1202 is used to display the virtual scene where the first virtual object is located, wherein the virtual scene includes a second virtual object that interacts with the first virtual object; The first control unit 1204 is configured to, in response to a control operation on the first virtual object, control the first virtual object to initiate an interaction event to the second virtual object, wherein the interaction event is used to increase the value of the interaction flight coefficient for the second virtual object; The second control unit 1206 is used to control the second virtual object to fly according to the target trajectory in response to the current accumulated value of the interactive flight coefficient corresponding to the second virtual object reaching the target threshold. The update unit 1208 is used to update the survival state parameters of the second virtual object in response to a collision between the second virtual object in flight and the target virtual object in the virtual scene.
[0117] Optionally, in this embodiment, the implementation of each of the above-mentioned unit modules can be referred to the above-mentioned method embodiments, which will not be repeated here.
[0118] According to another aspect of the present invention, an electronic device for implementing the above-described control method for virtual objects is also provided. This electronic device may be... Figure 13 The terminal device or server shown. This embodiment uses this electronic device as an example for illustration. Figure 13 As shown, the electronic device includes a memory 1302 and a processor 1304. The memory 1302 stores a computer program, and the processor 1304 is configured to execute the steps of any of the above method embodiments through the computer program.
[0119] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.
[0120] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program: S1, Display the virtual scene where the first virtual object is located, wherein the virtual scene includes a second virtual object that interacts with the first virtual object; S2, in response to the control operation on the first virtual object, controls the first virtual object to initiate an interaction event to the second virtual object, wherein the interaction event is used to increase the value of the interaction flight coefficient for the second virtual object; S3, in response to the current accumulated value of the interactive flight coefficient corresponding to the second virtual object reaching the target threshold, control the second virtual object to fly according to the target trajectory; S4, in response to the second virtual object in flight colliding with the target virtual object in the virtual scene, update the survival state parameters of the second virtual object.
[0121] Alternatively, as those skilled in the art will understand, Figure 13 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 13 This does not limit the structure of the aforementioned electronic devices or electronic equipment. For example, electronic devices or electronic equipment may also include components that are more... Figure 13 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 13 The different configurations shown.
[0122] The memory 1302 can be used to store software programs and modules, such as the program instructions / modules corresponding to the virtual object control method and device in this embodiment of the invention. The processor 1304 executes various functional applications and data processing by running the software programs and modules stored in the memory 1302, thereby realizing the aforementioned virtual object control method. The memory 1302 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1302 may further include memory remotely located relative to the processor 1304, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 1302 may be used, but is not limited to, to store information such as various elements in the scene screen and control information of virtual objects. As an example, such as... Figure 13As shown, the memory 1302 may include, but is not limited to, the display unit 1202, the first control unit 1204, the second control unit 1206, and the update unit 1208 in the control device for the virtual object. Furthermore, it may include, but is not limited to, other module units in the control device for the virtual object, which will not be elaborated upon in this example.
[0123] Optionally, the transmission device 1306 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1306 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 1306 is a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0124] In addition, the aforementioned electronic device also includes: a display 1308 for displaying a virtual scene in the interface; and a connection bus 1310 for connecting various module components in the aforementioned electronic device.
[0125] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this peer-to-peer network.
[0126] According to one aspect of this application, a computer program product is provided, comprising a computer program / instructions containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit, it performs various functions provided in embodiments of this application.
[0127] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0128] According to one aspect of this application, a computer-readable storage medium is provided, wherein a processor of a computer device reads computer instructions from the computer-readable storage medium, and executes the computer instructions to cause the computer device to perform the control method of the virtual object described above.
[0129] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps: S1, Display the virtual scene where the first virtual object is located, wherein the virtual scene includes a second virtual object that interacts with the first virtual object; S2, in response to the control operation on the first virtual object, controls the first virtual object to initiate an interaction event to the second virtual object, wherein the interaction event is used to increase the value of the interaction flight coefficient for the second virtual object; S3, in response to the current accumulated value of the interactive flight coefficient corresponding to the second virtual object reaching the target threshold, control the second virtual object to fly according to the target trajectory; S4, in response to the second virtual object in flight colliding with the target virtual object in the virtual scene, update the survival state parameters of the second virtual object.
[0130] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0131] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0132] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0133] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.
[0134] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0135] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0136] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for controlling a virtual object, characterized in that, include: Display the virtual scene where the first virtual object is located, respond to the control operation on the first virtual object, control the first virtual object to initiate an interaction event to the second virtual object, and increase the value of the interaction flight coefficient for the second virtual object; In response to the current accumulated value of the interactive flight coefficient corresponding to the second virtual object reaching the target threshold, the second virtual object is displayed according to the surrounding special effects display state matching the current accumulated value, and the second virtual object is controlled to fly according to the target trajectory determined based on the initial collision position and the landing position. The interactive flight coefficient is the product of the second virtual object's own resistance value and the external interactive flight coefficient value, and the initial collision position and the landing position are determined according to the interactive event. In response to the second virtual object in flight colliding with the target virtual object in the virtual scene, the second virtual object is controlled to perform a secondary flight according to the direction of the extension line connecting the root bone point of the target virtual object and the root bone point of the second virtual object, and the velocity vector and impact direction of the second virtual object at the collision point where it collides with the target virtual object are determined. The horizontal velocity component of the velocity vector is compared with a first velocity threshold, and the vertical velocity component of the velocity vector is compared with a second velocity threshold. Based on the comparison results, the damage type matching the second virtual object is determined from multiple candidate damage types. A first collision animation corresponding to the damage type is displayed at the collision point, and the survival status parameters of the second virtual object are updated according to the velocity vector. Different damage types correspond to different collision animations, and the second virtual object is displayed in the first collision animation. When the state adjustment label of the target virtual object is set to allow adjustment of survival state parameters, the target survival state parameters of the target virtual object are updated, and a second collision animation matching the impact direction is displayed, wherein the target virtual object is displayed in the second collision animation.
2. The method according to claim 1, characterized in that, In response to a collision between the second virtual object, which is in flight, and a target virtual object in the virtual scene, updating the survival state parameters of the second virtual object includes: When the target virtual object is a first type of virtual object in the virtual scene, the survival state parameters of the second virtual object are updated, and the second virtual object is controlled to move according to the movement trajectory determined based on the collision event. The first type of virtual object carries a first state adjustment tag, which is used to indicate that the survival state parameters are not adjusted for virtual objects that have contact collisions. When the target virtual object is a second type of virtual object in the virtual scene, the survival state parameters of the second virtual object and the target virtual object are updated respectively, and the second virtual object is controlled to move according to the movement trajectory determined based on the collision event, and the target virtual object is controlled to move according to the collision displacement determined based on the collision event. The second type of virtual object carries a second state adjustment tag, which is used to indicate that the survival state parameters of the virtual object that has a contact collision are allowed to be adjusted.
3. The method according to claim 2, characterized in that, Controlling the target virtual object to move according to the collision displacement determined based on the collision event includes: Update the current cumulative value of the interaction flight coefficient corresponding to the target virtual object after the collision; In response to the current cumulative value of the interactive flight coefficient corresponding to the target virtual object reaching the target threshold, the target virtual object is controlled to fly along the first trajectory.
4. The method according to claim 2, characterized in that, Controlling the second virtual object to move according to a trajectory determined based on collision events includes: Based on the collision event, the collision position and the first landing point position of the second virtual object in the virtual scene are determined; Determine the movement trajectory between the collision location and the first impact point location; Control the second virtual object to move according to the movement trajectory.
5. The method according to claim 4, characterized in that, Determining the collision position and first landing point position of the second virtual object in the virtual scene based on the collision event includes: Determine the collision location when the collision event is triggered; Obtain the velocity vector of the second virtual object at the collision location; If the horizontal velocity component of the velocity vector is greater than a first velocity threshold, the first impact logic is determined to be triggered. The first impact point is determined based on the first impact logic, and a first adjustment value is applied to the survival status parameter of the second virtual object, or a first adjustment value is applied to the survival status parameter of the second virtual object and a second adjustment value is applied to the survival status parameter of the target virtual object.
6. The method according to claim 5, characterized in that, After obtaining the velocity vector of the second virtual object at the collision location, the method further includes: If the vertical velocity component of the velocity vector is greater than the second velocity threshold, the second impact logic is determined to be triggered. The first impact point location is determined based on the second impact logic, and a third adjustment value is applied to the survival status parameters of the second virtual object, or a third adjustment value is applied to the survival status parameters of the second virtual object and a fourth adjustment value is applied to the survival status parameters of the target virtual object.
7. The method according to claim 1, characterized in that, The step of controlling the second virtual object to fly according to the target trajectory in response to the current cumulative value of the interactive flight coefficient corresponding to the second virtual object reaching the target threshold includes: If the second virtual object in flight does not collide with any other virtual object in the virtual scene, determine the second landing point position of the second virtual object in the virtual scene; Control the second virtual object to land at the second landing point.
8. The method according to claim 7, characterized in that, Determining the second landing point position of the second virtual object in the virtual scene includes: Determine the initial landing position of the second virtual object as it flies along the target trajectory; If the initial landing point is not located within the pathfinding area allowed in the virtual scene, the second landing point is determined based on the initial landing point and the boundary of the pathfinding area. If the initial landing point is located within the pathfinding area, the initial landing point is determined as the second landing point.
9. The method according to claim 1, characterized in that, When controlling the second virtual object to fly along the target trajectory, the method further includes: When the second virtual object, which is in flight mode, receives an interaction event initiated by the third virtual object, the interaction position between the second virtual object and the third virtual object is determined. When the interactive position is a key position, the second virtual object is controlled to fly according to the adjusted second trajectory.
10. The method according to any one of claims 1 to 9, characterized in that, In response to the current accumulated value of the interactive flight coefficient corresponding to the second virtual object reaching the target threshold, controlling the second virtual object to fly according to the target trajectory includes: After the second virtual object updates the interaction flight coefficient in response to the interaction event initiated by the first virtual object, and the updated current cumulative value reaches the target threshold, the flight direction of the second virtual object is determined as the first direction based on the interaction direction of the interaction event initiated by the first virtual object; and the second virtual object is controlled to fly along the first direction. After the second virtual object updates the interaction flight coefficient in response to the interaction event initiated by the fourth virtual object, and the updated current cumulative value reaches the target threshold, the flight direction of the second virtual object is determined as the second direction based on the interaction direction of the interaction event initiated by the fourth virtual object, wherein the second virtual object interacts simultaneously with the first virtual object and the fourth virtual object; and the second virtual object is controlled to fly along the second direction.
11. The method according to any one of claims 1 to 9, characterized in that, After controlling the first virtual object to initiate an interaction event with the second virtual object, the method further includes: Obtain the first incremental value of the interactive flight coefficient corresponding to the interactive event initiated by the first virtual object; Determine a flight resistance coefficient that matches the second virtual object, wherein the flight resistance coefficient is used to indicate the difficulty for the second virtual object to fly based on the interactive flight coefficient; Based on the first incremental value and the flight resistance coefficient, a second incremental value is determined; The second incremental value is superimposed to update the interactive flight coefficient corresponding to the second virtual object, thus obtaining the current cumulative value.
12. The method according to any one of claims 1 to 9, characterized in that, After controlling the first virtual object to initiate an interaction event with the second virtual object in response to a control operation on the first virtual object, the method further includes: In response to a trigger operation on an active target control, the value of the interactive flight coefficient corresponding to the second virtual object is reduced, wherein the target control will be adjusted to a cooling state after being triggered, and the cooling state is configured with a cooling duration.
13. The method according to any one of claims 1 to 9, characterized in that, After controlling the second virtual object to fly along the target trajectory, the process also includes: When the second virtual object reaches its landing position, the current accumulated value of the interactive flight coefficient corresponding to the second virtual object is cleared to zero.
14. The method according to any one of claims 1 to 9, characterized in that, After controlling the second virtual object to fly along the target trajectory, the process also includes: When a target event occurs in the virtual scene, the flight state of the second virtual object is terminated, wherein the execution priority of the target event is higher than the execution priority of the second virtual object flying according to the target trajectory.
15. A control device for a virtual object, characterized in that, include: The display unit is used to display the virtual scene where the first virtual object is located; A first control unit is configured to, in response to a control operation on the first virtual object, control the first virtual object to initiate an interaction event with the second virtual object, and increase the value of the interaction flight coefficient for the second virtual object; The second control unit is configured to respond to the current accumulated value of the interactive flight coefficient corresponding to the second virtual object reaching a target threshold, display the second virtual object according to the surrounding special effects display state matching the current accumulated value, and control the second virtual object to fly according to the target trajectory determined based on the initial collision position and the landing position, wherein the interactive flight coefficient is the product of the second virtual object's own resistance value and the external interactive flight coefficient value, and the initial collision position and the landing position are determined according to the interactive event; The update unit is configured to respond to a collision between the second virtual object in flight and a target virtual object in the virtual scene, control the second virtual object to perform a secondary flight according to the direction of the extension line connecting the root bone point of the target virtual object and the root bone point of the second virtual object, and determine the velocity vector and impact direction of the second virtual object at the collision point where it collides with the target virtual object. The horizontal velocity component of the velocity vector is compared with a first velocity threshold, and the vertical velocity component of the velocity vector is compared with a second velocity threshold. Based on the comparison results, the damage type matching the second virtual object is determined from multiple candidate damage types. A first collision animation corresponding to the damage type is displayed at the collision point, and the survival status parameters of the second virtual object are updated according to the velocity vector. Different damage types correspond to different collision animations, and the second virtual object is displayed in the first collision animation. When the state adjustment label of the target virtual object is set to allow adjustment of survival state parameters, the target survival state parameters of the target virtual object are updated, and a second collision animation matching the impact direction is displayed, wherein the target virtual object is displayed in the second collision animation.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method described in any one of claims 1 to 14.
17. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 14.
18. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 14 through the computer program.
