VIRTUAL OBJECT CONTROL METHOD, VIRTUAL OBJECT CONTROL DEVICE, COMPUTER DEVICE, AND COMPUTER PROGRAM

By controlling the first virtual object to launch the target virtual projection in the virtual scene and generating a virtual attraction source, the game time and resource waste caused by the virtual projection hitting the target virtual object is solved, and the rapid aggregation and operation of multiple virtual objects are achieved simultaneously, reducing resource consumption.

JP7648284B2Active Publication Date: 2025-03-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023528323
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-01-21
Filing Date
2021-12-27
Publication Date
2025-03-18
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

In the prior art, when a virtual projector hits a target virtual object, it can only cause damage to the target virtual object, resulting in extended game time and wasted power and data traffic of the terminal equipment.

Method used

By controlling the first virtual object to transmit the target virtual projection, a virtual attraction source is generated, and a virtual attraction source is generated at the target virtual projection location, when the second virtual object is less than a certain threshold from the virtual attraction source, it is controlled to move to the virtual attraction source.

Benefits of technology

It realizes the rapid gathering of the second virtual object to a designated location, and operates multiple second virtual objects simultaneously by controlling the first virtual object to transmit the target virtual projection, shortening the match time, and reducing the power and data traffic consumption of the terminal device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007648284000001
    Figure 0007648284000001
  • Figure 0007648284000002
    Figure 0007648284000002
  • Figure 0007648284000003
    Figure 0007648284000003
Patent Text Reader

Abstract

A virtual object control method, device, equipment, storage medium, and program product, belonging to the technical field of virtual scenes, includes: a step (301) of displaying a virtual scene screen corresponding to a virtual scene, the virtual scene including a first virtual object; a step (302) of generating a virtual gravitational source based on the location of a target virtual projectile in response to the first virtual object firing a target virtual projectile; and a step (303) of controlling a second virtual object to move toward the virtual gravitational source in response to a distance between the second virtual object and the virtual gravitational source being less than a distance threshold. The present invention provides a configuration for quickly gathering second virtual objects at a specified position, thereby enabling a first virtual object to control multiple second virtual objects, shortening the duration of a single match and further reducing terminal power consumption and data communication volume.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to a Chinese patent application filed on January 21, 2021, bearing application number 202110082390.1 and titled "Virtual object control method, apparatus, computer equipment, and storage medium," the entire contents of which are incorporated herein by reference.

[0002] The present application relates to the technical field of virtual scenes, and in particular to a virtual object control method, device, apparatus, storage medium, and program product. [Background technology]

[0003] Currently, in a match-based game, a user can control a virtual object and use a virtual item to fire a virtual projectile to attack other virtual objects, thereby achieving the goal of eliminating other virtual objects.

[0004] In the related technology, when a virtual projectile fired by a virtual item comes into contact with another virtual object on its firing path, it indicates that the virtual projectile has hit the other virtual object, and the life value of the hit virtual object is reduced by a specified value.

[0005] However, since a virtual projectile fired by a virtual item only inflicts damage on the hit virtual object after hitting another virtual object, it takes a long time to finish one match by eliminating the other virtual objects, which wastes terminal power consumption and data communication capacity. Summary of the Invention [Problem to be solved by the invention]

[0006] The embodiments of the present application provide a virtual object control method, an apparatus, a device, a storage medium, and a program product, which are configured as follows. [Means for solving the problem]

[0007] In one aspect, an embodiment of the present application provides a method for controlling a virtual object, the method comprising: displaying a virtual scene screen corresponding to a virtual scene, the virtual scene including a first virtual object; controlling the first virtual object to launch a target virtual projectile, the target virtual projectile for triggering a virtual gravitational source in the virtual scene; and in response to a distance between a second virtual object and the virtual source of attraction being less than a distance threshold, controlling the second virtual object to move toward the virtual source of attraction.

[0008] In one aspect, an embodiment of the present application provides a method for controlling a virtual object, the method comprising: displaying a first virtual scene view corresponding to a virtual scene, the first virtual scene view including a first virtual object; displaying a second virtual scene view in response to the first virtual object launching a target virtual projectile, the second virtual scene view including a virtual gravitational source generated based on a location of the target virtual projectile; and in response to a distance between a second virtual object and the virtual source of attraction being less than a distance threshold, controlling the second virtual object to move toward the virtual source of attraction.

[0009] In another aspect, an embodiment of the present application provides a virtual object control device, the device comprising: a display module for displaying a virtual scene screen corresponding to a virtual scene, the virtual scene including a first virtual object; a launch module for controlling the first virtual object to launch a target virtual projectile, the target virtual projectile for triggering a virtual gravitational source within the virtual scene; and a movement module that, in response to a distance between a second virtual object and the virtual source of attraction being less than a distance threshold, controls the second virtual object to move toward the virtual source of attraction.

[0010] In one possible implementation, the device comprises: Further included is a generation module that generates the virtual gravitational force source based on a location where the target virtual projectile is located.

[0011] In one possible implementation, the generation module comprises: a first trajectory acquisition submodule that acquires a first movement trajectory of the target virtual projectile in response to the first virtual object launching the target virtual projectile; a first position determination submodule for determining a first trigger position based on the first movement trajectory of the target virtual projectile, the first trigger position being a maximum range position where no collision occurs during the movement of the target virtual projectile along the first movement trajectory, or a position where the target virtual projectile collides with an obstacle; and an attraction source generating sub-module that generates the virtual attraction source based on the first trigger position.

[0012] In one possible implementation, the gravitational force source generation sub-module: and a first generating unit configured to generate the virtual gravitational source at the first trigger location in response to a volume of a space surrounding the first trigger location being equal to or greater than a volume of the virtual gravitational source.

[0013] In one possible implementation, the gravitational force source generation sub-module: a second position determination unit configured to determine a second trigger position in response to a volume of a space around the first trigger position being less than a volume of the virtual gravitational source, the second trigger position being a position on the first movement trajectory whose volume of a space around the first trigger position is equal to or greater than the volume of the virtual gravitational source; and a second generating unit configured to generate the virtual attractive force source at the second trigger position.

[0014] In one possible implementation, the mobile module comprises: a straight line determination submodule that determines a straight line motion trajectory by connecting a position of the second virtual object and a center position of the virtual gravitational source in response to a distance between the second virtual object and the virtual gravitational source being less than a distance threshold; a second trajectory determination submodule that determines a second movement trajectory corresponding to the second virtual object based on the linear motion trajectory; and a movement control submodule that controls the second virtual object to move toward the virtual gravitational source based on the second movement trajectory.

[0015] In one possible implementation, the second trajectory determination submodule: a position point acquisition unit for acquiring a highest position point and a lowest position point in a vertical direction of the second virtual object; an area acquisition unit that acquires a motion area of ​​the second virtual object moving along the linear motion trajectory by creating a parallel line of the linear motion trajectory based on each of the highest position point and the lowest position point; and a second trajectory determination unit that determines the second movement trajectory corresponding to the second virtual object based on a presence status of an obstacle in the movement area.

[0016] In one possible implementation, the second trajectory determination unit: In response to the obstacle not being present in the movement area, the straight-line movement trajectory is determined as the second movement trajectory corresponding to the second virtual object.

[0017] In one possible implementation, the second trajectory determination unit: in response to the obstacle being present in the motion area, determining the linear motion trajectory between the position of the second virtual object and the obstacle as a first section trajectory; obtaining a corrected trajectory that bypasses the obstacle based on a gravitational direction of the virtual gravitational source; generating a second section trajectory by connecting an end position of the corrected trajectory and a center position of the virtual gravitational source; The second movement trajectory corresponding to the second virtual object is determined based on the first section trajectory, the corrected trajectory, and the second section trajectory.

[0018] In one possible implementation, the mobile module comprises: a first distance acquisition submodule that acquires a first distance between a position of the second virtual object and a center position of the virtual gravitational source; an initial velocity determination sub-module that determines an initial velocity of the movement of the second virtual object based on the first distance, the initial velocity being negatively correlated with the first distance; and a movement submodule for controlling the second virtual object to move to a center position of the virtual gravitational source with the initial velocity and the first acceleration.

[0019] In one possible implementation, the device comprises: The virtual scene further includes an effect adding module that, in response to a time during which the virtual gravity source is present in the virtual scene reaching a first time, adds an explosion effect to a position corresponding to the virtual gravity source and removes the virtual gravity source.

[0020] In one possible implementation, the device comprises: a second distance acquisition module that acquires a second distance between a position of the second virtual object and a center position of the virtual gravitational source when a time during which the virtual gravitational source exists in the virtual scene reaches the first time; The virtual object further includes an attribute modification module that modifies a first attribute value of the second virtual object based on the second distance, where the second distance and the modified value of the first attribute value are negatively correlated.

[0021] In one possible implementation, the device comprises: and a counter direction movement module configured to, in response to a time during which the virtual gravitational source is present in the virtual scene reaching the first time, control the second virtual object to move in a direction opposite to the gravitational force provided by the virtual gravitational source.

[0022] In one possible implementation, the device comprises: The virtual attraction source further includes an attribute clearing module that modifies a first attribute value of the second virtual object to zero in response to the second virtual object moving to a central position of the virtual attraction source.

[0023] In another aspect, an embodiment of the present application provides a virtual object control device, the device comprising: a first display module for displaying a first virtual scene view corresponding to a virtual scene, the first virtual scene view including a first virtual object; a second display module configured to display a second virtual scene view in response to the first virtual object launching a target virtual projectile, the second virtual scene view including a virtual gravitational source generated based on a location of the target virtual projectile; and and a movement module that, in response to a distance between a second virtual object and the virtual source of attraction being less than a distance threshold, controls the second virtual object to move toward the virtual source of attraction.

[0024] In one possible implementation, the mobile module comprises: a direction confirmation submodule that, in response to a distance between the second virtual object and the virtual gravitational source being less than the distance threshold, obtains a first direction of a center position of the virtual gravitational source relative to an orientation of the second virtual object; a motion acquisition sub-module that determines a first motion of the second virtual object during the movement toward a center position of the virtual gravitational source based on the first direction; and a movement sub-module that controls the second virtual object to move to a center position of the virtual gravitational source based on the first motion.

[0025] In another aspect, an embodiment of the present application provides a terminal comprising a processor and a memory, the memory storing at least one instruction, at least one program, code set or instruction set, which, when loaded and executed by the processor, realises the virtual object control method of the above aspect.

[0026] In another aspect, an embodiment of the present application provides a computer readable storage medium storing at least one instruction, at least one program, code set or instruction set, which, when loaded and executed by a processor, realises the virtual object control method of the above aspect.

[0027] According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium, a processor of a terminal reading the computer instructions from the computer-readable storage medium, and executing the computer instructions by the processor, causing the terminal to perform the virtual object control method provided in various optional implementations of the above aspect. Effect of the Invention

[0028] The beneficial effects of the configurations provided in the embodiments of the present application include at least the following:

[0029] In an embodiment of the present application, the computing device controls a first virtual object to move within the virtual scene. virtuality By launching a target virtual projectile for triggering the gravitational source, when the second virtual object is located within the action range of the virtual gravitational source, the second virtual object is controlled to move toward the virtual gravitational source. According to the above method, a configuration for quickly gathering the second virtual object to a specified position is provided, and the first virtual object is controlled to launch the target virtual projectile, and the second virtual object within the specified range is controlled to move to the same position, thereby realizing the first virtual object to simultaneously interact with multiple second virtual objects, shortening the duration of one match, and further leading to a reduction in the power consumption of the terminal and a saving in the amount of data communication.

[0030] The drawings herein are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application, and together with the specification serve to explain the principles of the present application. [Brief description of the drawings]

[0031] [Figure 1] FIG. 1 is a schematic diagram of a virtual object control system provided in one exemplary embodiment of the present application. [Diagram 2] FIG. 2 is a schematic diagram of a display interface for a virtual scene provided in one exemplary embodiment of the present application. [Diagram 3] FIG. 2 is a schematic diagram of a virtual object control flow provided in one exemplary embodiment of the present application. [Figure 4] 1 is a flowchart of a virtual object control method provided in an exemplary embodiment of the present application. [Diagram 5] 1 is a flowchart of a virtual object control method provided in an exemplary embodiment of the present application. [Figure 6] FIG. 6 is a schematic diagram of a process for determining a second trigger position according to the embodiment shown in FIG. 5. [Figure 7] 6 is a schematic diagram of determining a linear motion trajectory corresponding to a second virtual object according to the embodiment shown in FIG. 5; [Figure 8] FIG. 6 is a schematic diagram of a process for determining a second movement trajectory according to the embodiment shown in FIG. 5; [Figure 9] 6 is a schematic diagram of another determination process of a second movement trajectory according to the embodiment shown in FIG. 5; [Figure 10] 6 is a schematic diagram of an operation in a movement process in which a second virtual object moves toward a virtual attraction source according to the embodiment shown in FIG. 5; [Figure 11] FIG. 2 is a block diagram of a virtual object control device provided in one exemplary embodiment of the present application. [Figure 12] FIG. 2 is a block diagram of a virtual object control device provided in one exemplary embodiment of the present application. [Figure 13] FIG. 2 is a block diagram of a computer device provided in one exemplary embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0032] Exemplary embodiments will now be described in detail, examples of which are illustrated in the drawings. Where the following description refers to the drawings, the same numerals in different drawings represent the same or similar elements unless otherwise stated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0033] A virtual scene is a virtual scene that is displayed (or provided) when an application is executed on a terminal. The virtual scene may be a scene of a simulation environment for the real world, a scene of a semi-simulated semi-virtual three-dimensional environment, or a scene of a purely virtual three-dimensional environment. The virtual scene may be any one of a two-dimensional virtual scene, a two-and-a-half-dimensional virtual scene, and a three-dimensional virtual scene. The following embodiment will be described by taking a case where the virtual scene is a three-dimensional virtual scene as an example, but is not limited thereto. Optionally, the virtual scene may be used for a virtual scene battle between at least two virtual characters. Optionally, the virtual scene may be used for a battle between at least two virtual characters using a virtual item. Optionally, the virtual scene may be used for a battle between at least two virtual characters using a virtual item within a target area range. This target area range continues to shrink as time passes in the virtual scene.

[0034] The virtual object refers to a movable object in a virtual scene. The movable object may be at least one of a virtual person, a virtual animal, and a virtual vehicle. Optionally, when the virtual scene is a three-dimensional virtual scene, the virtual object is a three-dimensional solid model created based on an animation skeleton technique. Each virtual object has its own shape, volume, and orientation in the three-dimensional virtual scene, and occupies a part of the space in the three-dimensional virtual scene.

[0035] The virtual scene is typically generated by an application in a computing device such as a terminal and is displayed by the hardware (e.g., a screen) of the terminal. The terminal may be a mobile terminal such as a smartphone, a tablet computer, or an e-reader, or it may be a personal computing device such as a laptop or a stationary computer.

[0036] Virtual items refer to items that virtual objects can use in the virtual environment, and include offensive items that deal damage to other virtual objects, supply items that provide supplies to offensive items, virtual pendants that can be attached to a specified offensive item and provide some attribute bonuses to the offensive item, and defensive items that resist or buffer against damage from virtual weapons.

[0037] A first-person game refers to a game that a user can play from a first-person perspective, and a screen of the virtual environment of the game is a screen that views the virtual environment from the perspective of a first virtual object. In the game, at least two virtual objects play a one-match battle mode in the virtual environment, and the virtual objects achieve the goal of surviving in the virtual environment by avoiding damage from other virtual objects and dangers (e.g., poison gas circles, swamps, etc.) that exist in the virtual environment, and when the life value of the virtual object in the virtual environment becomes zero, the life of the virtual object in the virtual environment ends, and the last virtual object that survives in the virtual environment is the winner. Optionally, the battle begins when the first client enters the battle and ends when the last client leaves the battle, and each client can control one or more virtual objects in the virtual environment. Optionally, the competitive mode of the battle may include a single-player battle mode, a two-player small team battle mode, or a multiplayer large team battle mode. The embodiment of the present application does not limit the battle mode.

[0038] A schematic diagram of a virtual object control system provided in one embodiment of the present application is shown in Figure 1. The system may include a first terminal 110, a server 120, and a second terminal 130.

[0039] An application 111 that supports a virtual environment is installed and executed on the first terminal 110, and the application 111 may be a multiplayer online battle program. 110When the application 111 is executed on the first terminal 110, a user interface of the application 111 is displayed on the screen of the first terminal 110. The application 111 is a multiplayer online battle arena (MOBA) game. a) The application 111 may be any one of a game, a battle royale game, a simulation game (SLG), and a first-person game. In this embodiment, the application 111 is described as a first-person game. The first terminal 110 is a terminal used by the first user 112. The first user 112 uses the first terminal 110 to control a first virtual object located in a virtual environment to make it move. The first virtual object can be called a master virtual object of the first user 112. The movement of the first virtual object includes at least one of body posture adjustment, creep, walking, running, riding, flying, jumping, driving, picking up, firing a virtual projectile, attacking, throwing, and skill activation, but is not limited thereto. Schematically, the first virtual object is a first virtual person, such as a simulation person or an anime person.

[0040] An application 131 supporting a virtual environment is installed and executed on the second terminal 130, and the application 131 may be a multiplayer online battle program. When the application 131 is executed on the second terminal 130, the user interface of the application 131 is displayed on the screen of the second terminal 130. Application 131 The application 131 may be any one of a MOBA game, a battle royale game, a SLG game, and a first-person game. In this embodiment, a case where the application 131 is an FPS game will be described as an example. The second terminal 130 is a terminal used by a second user 132. The second user 132 uses the second terminal 130 to control a second virtual object located in the virtual environment to make it move. The second virtual object is a master virtual object of the second user 132. ObjectSchematically, the second virtual object is a second virtual person, such as a simulated or animated person.

[0041] Optionally, the first virtual object and the second virtual object exist in the same virtual world.

[0042] Optionally, the first virtual object and the second virtual object may belong to the same faction, team, organization, be friends with each other, or have temporary communication rights. Optionally, the first virtual object and the second virtual object may belong to different factions, teams, organizations, or be enemies with each other.

[0043] Optionally, the applications installed on the first terminal 110 and the second terminal 130 are the same, or the applications installed on the two terminals are the same type of applications on different operating system platforms (Android or IOS). The first terminal 110 may generally refer to one of a plurality of terminals, and the second terminal 130 may generally refer to another of a plurality of terminals. In this embodiment, only the first terminal 110 and the second terminal 130 are taken as examples for description. The device types of the first terminal 110 and the second terminal 130 may be the same or different. The device types include at least one of a smartphone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop portable computer, and a desktop computer.

[0044] Although only two terminals are shown in FIG. 1, in different embodiments, there are multiple other terminals that can access the server 120. Optionally, there are also one or more terminals that are terminals corresponding to developers, and an application development and editing platform supporting a virtual environment is installed on the terminal. The developer can edit and update the application on the terminal, and transmit the updated application installation package to the server 120 via a wired or wireless network. The first terminal 110 and the second terminal 130 can download the application installation package from the server 120 to update the application.

[0045] The first terminal 110, the second terminal 130, and other terminals are connected to the server 120 via a wireless network or a wired network.

[0046] The server 120 includes at least one of a server, a server cluster of multiple servers, a cloud computing platform, and a virtualization center. The server 120 provides back-end services for applications supporting a 3D virtual environment. Optionally, the server 120 is responsible for main computational tasks, and the terminal is responsible for secondary computational tasks, or the server 120 is responsible for secondary computational tasks, and the terminal is responsible for main computational tasks, or a distributed computing architecture is used between the server 120 and the terminal to perform collaborative computing.

[0047] In a schematic example, the server 120 includes a memory 121, a processor 122, a user account database 123, a battle service module 124, and a user-oriented input / output interface (I / O interface: Input / Output Interface) 125. The processor 122 loads instructions stored in the server 120 and processes data in the user account database 123 and the battle service module 124. The user account database 123 stores data of user accounts used by the first terminal 110, the second terminal 130, and other terminals, such as avatars of the user accounts, nicknames of the user accounts, combat power indexes of the user accounts, and service areas in which the user accounts are located. The battle service module 124 provides a number of battle rooms for user battles, such as 1V1 battles, 3V3 battles, 5V5 battles, and the like. The user I / O interface 125 establishes communication and exchanges data with the first terminal 110 and / or the second terminal 130 via a wireless or wired network.

[0048] Here, the virtual scene may be a three-dimensional virtual scene. Alternatively, the virtual scene may be a two-dimensional virtual scene. Taking the case where the virtual scene is a three-dimensional virtual scene as an example, FIG. 2 shows a schematic diagram of a display interface of the virtual scene provided in one exemplary embodiment of the present application. As shown in FIG. 2, the display interface of the virtual scene includes a scene screen 200, which includes a currently controlled virtual object 210, an environment screen 220 of the three-dimensional virtual scene, and a virtual object 240. Among them, the virtual object 240 may be a virtual object controlled by a user corresponding to another terminal, or a virtual object controlled by an application.

[0049] 2, the currently controlled virtual object 210 and the virtual object 240 are three-dimensional models in a three-dimensional virtual scene, and the environment screen of the three-dimensional virtual scene displayed on the scene screen 200 is an object seen from the viewpoint of the currently controlled virtual object 210. Exemplarily, as shown in FIG. 2, when viewed from the viewpoint of the currently controlled virtual object 210, the environment screen 220 of the three-dimensional virtual scene displayed includes the earth 224, the sky 225, the horizon 223, a hill 221, and a factory building 222.

[0050] The currently controlled virtual object 210 can activate skills or use virtual items, move, and perform specified actions under the user's control. The virtual object in the virtual scene can display different three-dimensional models under the user's control. For example, if the screen of the terminal supports touch operations and the scene screen 200 of the virtual scene includes a virtual control, when the user touches the virtual control, the currently controlled virtual object 210 can perform a specified action in the virtual scene and display a currently corresponding three-dimensional model.

[0051] According to the virtual object control method provided in the present application, a computer device can display a virtual scene screen including a first virtual object, control the first virtual object to launch a target virtual projectile for triggering a virtual gravity source in the virtual scene, and control the second virtual object to move toward the virtual gravity source in response to a distance between the second virtual object and the virtual gravity source being less than a distance threshold. That is, after the first virtual object launches the target virtual projectile, the computer device can generate a virtual gravity source based on a position where the target virtual projectile is located, thereby controlling the second virtual object to move toward the virtual gravity source when the computer device determines that the distance between the second virtual object and the virtual gravity source is less than the distance threshold.

[0052] FIG. 3 shows a flowchart of a virtual object control method provided in one exemplary embodiment of the present application. Here, the method may be executed by a computer device. The computer device may be a terminal or a server. Or, the computer device may include the terminal and the server. As shown in FIG. 3, the computer device can control a virtual object by executing the following steps:

[0053] In step 301, a virtual scene view corresponding to a virtual scene is displayed, the virtual scene including a first virtual object.

[0054] In an embodiment of the present application, a computing device displays a virtual scene view corresponding to the virtual scene.

[0055] Here, the virtual scene screen may include a first virtual object, and the first virtual object is a virtual object controlled by a computing device.

[0056] At step 302, in response to the first virtual object launching the target virtual projectile, a virtual gravitational source is generated based on a location where the target virtual projectile is located.

[0057] Optionally, generating a virtual gravitational source based on a position where the target virtual projectile is located includes determining a generation position of the virtual gravitational source based on a position where the target virtual projectile is located, and generating a virtual gravitational source based on the generation position of the virtual gravitational source.

[0058] In an embodiment of the present application, when the first virtual object launches the target virtual projectile, the computing device generates a virtual gravitational source based on the location where the target virtual projectile is located.

[0059] In one possible implementation, in response to the first virtual object launching the target virtual projectile, a virtual gravitational source is generated based on a location where the target virtual projectile is located during the movement of the target virtual projectile.

[0060] Here, the target virtual projectile is a virtual item fired by the first virtual object to attack another virtual object. The target virtual projectile may be indirectly fired by the computer device controlling the first virtual object via a designated virtual item. Alternatively, the target virtual projectile may be directly fired or thrown by the computer device controlling the first virtual object.

[0061] At step 303, in response to the distance between the second virtual object and the virtual source of attraction being less than the distance threshold, the second virtual object is controlled to move towards the virtual source of attraction.

[0062] In an embodiment of the present application, when the computer device acquires that a second virtual object exists within a distance threshold range of a virtual gravitational source, the computer device controls the second virtual object within the distance threshold range to move it toward the virtual gravitational source. The distance threshold range refers to a range in which the distance from the virtual gravitational source is less than the distance threshold, with the virtual gravitational source as the center. Schematically, the computer device acquires the distance between each second virtual object in the virtual scene and the virtual gravitational source, and controls the second virtual object whose distance is less than the distance threshold to move it toward the virtual gravitational source. Alternatively, the computer device acquires a spherical range with the virtual gravitational source as the center and the distance threshold as the radius, acquires the second object existing within the spherical range, and controls the second virtual object within the spherical range to move it toward the virtual gravitational source.

[0063] Here, the second object may be any virtual object in the virtual scene. For example, the second virtual object may be a virtual object located in the same camp as the first virtual object, or may be a virtual object located in a different camp from the first virtual object, or may even be the first virtual object.

[0064] As described above, in the configuration shown in the embodiment of the present application, the first virtual object is controlled to launch a target virtual projectile, and a virtual gravitational source is generated based on the position of the target virtual projectile, so that when the second virtual object is located within the action range of the virtual gravitational source, the second virtual object is controlled to move toward the virtual gravitational source. According to the above method, a configuration for quickly gathering the second virtual objects at a specified position is provided, and the first virtual object is controlled to launch a target virtual projectile, and the second virtual object within the specified range is controlled to move to the same position, thereby realizing the control of multiple second virtual objects by the first virtual object, shortening the duration of one match, and further leading to a reduction in the power consumption of the terminal and a saving in the amount of data communication.

[0065] Optionally, after concentrating second virtual objects within a specified range to the same position by a virtual gravity source, concentrated operation of multiple second virtual objects can be realized, thereby reducing the steps and operation flow of operating multiple virtual objects one by one, further shortening the duration of one match, and further reducing the power consumption of the terminal and saving data communication volume.

[0066] FIG. 4 shows a flowchart of a virtual object control method provided in one exemplary embodiment of the present application. Here, the method may be executed by a computer device. The computer device may be a terminal or a server. Or, the computer device may include the terminal and the server. As shown in FIG. 4, the computer device can control a virtual object by executing the following steps:

[0067] In step 401, a first virtual scene view corresponding to a virtual scene is displayed, the first virtual scene view including a first virtual object.

[0068] In step 402, in response to the first virtual object launching the target virtual projectile, a second virtual scene view is displayed, the second virtual scene view including a virtual gravitational source, the virtual gravitational source being generated based on a location where the target virtual projectile is located.

[0069] At step 403, in response to the distance between the second virtual object and the virtual source of attraction being less than the distance threshold, the second virtual object is controlled to move towards the virtual source of attraction.

[0070] As described above, in the configuration shown in the embodiment of the present application, the first virtual object is controlled to launch a target virtual projectile, and a virtual gravitational source is generated based on the position of the target virtual projectile, so that when the second virtual object is located within the action range of the virtual gravitational source, the second virtual object is controlled to move toward the virtual gravitational source. According to the above method, a configuration for quickly gathering the second virtual object to a specified position is provided, and the first virtual object is controlled to launch a target virtual projectile, and the second virtual object within the specified range is controlled to move to the same position, so that the first virtual object can simultaneously interact with multiple second virtual objects, and then the intensive operation of the second virtual object can reduce the duration of one match, and further lead to a reduction in the power consumption of the terminal and a saving in the amount of data communication.

[0071] FIG. 5 shows a flowchart of a virtual object control method provided in an exemplary embodiment of the present application. Here, the method may be executed by a computer device. The computer device may be a terminal or a server. Or, the computer device may include the terminal and the server. As shown in FIG. 5, taking the case where the computer device is a terminal as an example, the terminal can control the movement of a virtual object by executing the following steps:

[0072] In step 501, a virtual scene screen corresponding to the virtual scene is displayed.

[0073] In an embodiment of the present application, a computing device displays a virtual scene view corresponding to the virtual scene.

[0074] Here, the virtual scene includes a first virtual object, the first virtual object carrying a target virtual projectile, or the first virtual object carrying a virtual item for launching the target virtual projectile.

[0075] In step 502, in response to a first virtual object launching a target virtual projectile, a first movement trajectory of the target virtual projectile is obtained.

[0076] In an embodiment of the present application, when a first virtual object launches a target virtual projectile, the computing device obtains a first movement trajectory of the target virtual projectile according to a program algorithm.

[0077] In one possible implementation, the first virtual object is equipped with a target virtual item, and when the computing device receives a user's firing operation, the computing device controls the first virtual object to fire the target virtual projectile using the target virtual item and obtains a first movement trajectory of the target virtual projectile.

[0078] Here, the target virtual item is a virtual item for launching a target virtual projectile. ,A virtual item that supports being fired by a target virtual item When the computing device receives a user's firing operation, the computing device controls the first virtual object to fire a target virtual projectile using the target virtual item, and obtains a first movement trajectory corresponding to the target virtual projectile.

[0079] In another possible implementation form, the first virtual object directly carries a target virtual projectile, and the target virtual projectile is a virtual item that supports being directly fired or thrown by the first virtual object. When the computer device receives a firing operation from the user, the computer device controls the first virtual object to directly fire or throw the target virtual projectile, and obtains a first movement trajectory of the target virtual projectile.

[0080] Exemplarily, when the target virtual projectile is a virtual explosive, upon receiving a user's firing operation, the computing device controls a first virtual object to throw the virtual explosive, and obtains a first movement trajectory of the virtual explosive.

[0081] In one possible implementation, in the process of preparing to launch the target virtual projectile, the first virtual object displays a sight icon on the virtual scene screen, the sight icon being for indicating the aiming position.

[0082] Here, the state in which the first virtual object fires the target virtual projectile may include a hip-fire state and an aim state, where the hip-fire state refers to a state in which the first virtual object fires the target virtual projectile without aiming using a scope, and the aim state refers to a state in which the first virtual object fires the target virtual projectile after aiming using a scope.

[0083] Optionally, when the first virtual object is in a hip-fire state, the color of the sight icon can be changed when a second virtual object located in a camp different from the first virtual object is present at the aiming position in a non-firing state. Schematically, when a second virtual object located in a camp different from the first virtual object is not present at the aiming position in a non-firing state, the color of the sight icon is white. For example, when no virtual object is present at the aiming position, or when the virtual object at the aiming position is located in the same camp as the first virtual object, the color of the sight icon is white. When a second virtual object located in a camp different from the first virtual object is present at the aiming position, the color of the sight icon may be changed from white to red to remind the first virtual object to aim at the second object located in the camp different from the first virtual object.

[0084] Optionally, when the first virtual object is in a hip-fire state, in a firing state, a color of the sight icon is different from a color of the sight icon in a non-firing state, for example, in a firing state, the sight icon may be set to yellow.

[0085] Optionally, when the first virtual object is in a hip-fire state, the sight icon may include two rings, an inner one and an outer one, and in a non-firing state, the two rings rotate at different speeds, and in a firing state, the two rings may disperse into three arcs to represent a spreading and then contracting shape.

[0086] Optionally, when the first virtual object is in a sight state, in a non-firing state, the sight icon may include two rings, an inner one and an outer one, and the rotation speeds of the two rings are the same. In a firing state, the two rings may be dispersed into three arcs to represent a similar diverging and then contracting shape.

[0087] In the embodiment of the present application, the first movement trajectory is intended to indicate the expected movement trajectory of the target virtual projectile during its movement after launch.

[0088] Here, the first movement trajectory may be an estimated movement trajectory calculated by the computer device according to the launch initial speed, launch direction, and launch position at the launch time of the target virtual projectile by a program. The first movement trajectory is for showing the movement trajectory between the launch position and the estimated maximum range position. Optionally, the computer device calculates the estimated movement trajectory based on the parabolic principle. Alternatively, the first movement trajectory may be a movement trajectory of the target virtual projectile that is generated based on the actual movement position at each time point calculated by the computer device during the movement of the target virtual projectile after launch by the computer device.

[0089] In one possible implementation, the user can control the initial launch velocity when the first virtual object launches the target virtual projectile by the charge operation, i.e., the computing device changes the initial launch velocity when the first virtual object launches the target virtual projectile based on the received user charge operation.

[0090] Here, the charge operation may be controlled by extending a trigger time for the designated control, and optionally, upon receiving the trigger time for the designated control that is greater than the first trigger time, modifying an initial launch velocity of the target virtual projectile based on the length of the trigger time.

[0091] In addition, there is a positive correlation between the initial launch velocity of the target virtual projectile and the trigger time of the charge operation. In other words, assuming that the trigger time for the specified control is greater than the first trigger time, the longer the trigger time of the charge operation, the greater the initial launch velocity of the target virtual projectile, and the shorter the trigger time of the charge operation, the smaller the initial launch velocity of the target virtual projectile.

[0092] Furthermore, there is a positive correlation between the initial launch velocity and the maximum range of the target virtual projectile when there is no impactor on the first movement trajectory. That is, the higher the initial launch velocity, the farther the maximum range of the target virtual projectile when there is no impactor on the first movement trajectory, and the lower the initial launch velocity, the closer the maximum range of the target virtual projectile when there is no impactor on the first movement trajectory. Here, the absence of an impactor on the first movement trajectory means that the first movement trajectory does not pass through an obstacle in the virtual scene.

[0093] Optionally, there is a negative correlation between the initial launch velocity and the radian degree of the parabola of the first movement trajectory, i.e., the greater the initial launch velocity, the smaller the radian degree of the parabola, and the smaller the initial launch velocity, the larger the radian degree of the parabola.

[0094] In step 503, a first trigger position is determined based on a first movement trajectory of the target virtual projectile.

[0095] In an embodiment of the present application, the computing device determines a first trigger position based on the acquired first movement trajectory corresponding to the target virtual projectile.

[0096] Here, the first trigger position is a maximum range position where no collision occurs during the movement of the target virtual projectile along the first movement trajectory, or a position where the target virtual projectile collides with an obstacle.

[0097] In one possible implementation, in response to the first movement trajectory being an estimated movement trajectory calculated by the computer device by a program at the launch time of the target virtual projectile, determine whether there is a situation in which the first movement trajectory passes through an obstacle, i.e., determine whether there is a situation in which the target virtual projectile collides with an obstacle in the virtual scene during the movement of the target virtual projectile along the first movement trajectory. If it is determined that there is a situation in which the target virtual projectile collides with an obstacle, obtain the collision position as a first trigger position. The collision position is a position where the target virtual projectile collides with the obstacle. If it is determined that there is no situation in which the target virtual projectile collides with an obstacle, obtain the maximum range position of the first movement trajectory as a first trigger position.

[0098] In another possible implementation form, in response to the first movement trajectory being a movement trajectory of the target virtual projectile that is generated based on the actual movement position at each time point calculated by the computer device during the movement of the target virtual projectile after launch, the computer device determines in real time whether there is a situation in which the target virtual projectile will collide with an obstacle. If it is determined that there is a situation in which there is a collision with an obstacle, it determines the collision position as a first trigger position and stops the movement of the target virtual projectile. If it is determined that there is no situation in which there is a collision with an obstacle, it determines the maximum range position that the target virtual projectile will reach as the first trigger position.

[0099] Here, an obstacle includes, but is not limited to, a virtual object with a collision box, a virtual vehicle, or a virtual object in a virtual scene.

[0100] In one possible implementation, in response to the target virtual projectile colliding with the second virtual object and the second virtual object being in a different camp than the first virtual object, a first attribute value of the second virtual object is modified.

[0101] Here, the first attribute value can be used to indicate a current life value of the virtual object, and the target virtual projectile can decrease the current life value of a virtual object that collides with it by a specified numerical value.

[0102] In step 504, a virtual source of attractive force is generated based on the first trigger position.

[0103] In an embodiment of the present application, the computing device generates a virtual attractive force source based on the determined first trigger position.

[0104] Here, the virtual attraction source may have a specified numerical value of attraction force to create an attraction effect on the virtual object or objects within a distance threshold range.

[0105] In other words, a virtual object or virtual substance located within a distance threshold range of the virtual gravitational source is attracted by the virtual gravitational source and can move in the direction of the virtual gravitational source due to the action of gravity.

[0106] In one possible implementation, the virtual gravitational source has a certain volume in the virtual scene, i.e., the virtual gravitational source has a collision box in the virtual scene. To avoid a situation where the virtual gravitational source cannot be fully displayed when displayed in the virtual scene due to lack of space at the first trigger location, or where the display of the virtual gravitational source causes model intersection and model pass-through, the volume of the virtual gravitational source needs to be compared to the volume of the space around the first trigger location that supports its display.

[0107] Optionally, the volume of the target virtual projectile is smaller than the volume of the virtual gravitational source. Since the volume of the target virtual projectile is smaller than the volume of the virtual gravitational source, the target virtual projectile may enter a certain space and be completely displayed in the virtual scene during the movement along the first movement trajectory. However, the volume of the space is smaller than the volume of the virtual gravitational source. When the first trigger position is in the space, the complete virtual gravitational source cannot be displayed in the space, and a situation occurs in which the display of the virtual gravitational source is incomplete or the virtual gravitational source passes through the model. Thus, in order to avoid the occurrence of a situation in which the display of the virtual gravitational source is incomplete or the virtual gravitational source passes through the model in the virtual scene, in response to the volume of the space around the first trigger position being equal to or larger than the volume of the virtual gravitational source, a second trigger position is determined, and a virtual gravitational source is generated at the second trigger position. In response to the volume of the space around the first trigger position being less than the volume of the virtual gravitational source, a second trigger position is determined, and a virtual gravitational source is generated at the second trigger position.

[0108] Here, the second trigger position is a position on the first movement trajectory where the volume of the surrounding space is equal to or larger than the volume of the virtual gravitational source.

[0109] In one possible implementation, the second trigger position is located on the first movement trajectory before reaching the first trigger position, or the second trigger position is located on an extension of the first movement trajectory after the first trigger position.

[0110] Optionally, the second trigger position is a position on the first movement trajectory that is closest to the first trigger position and has a volume of a surrounding space equal to or larger than the volume of the virtual gravitational source. Illustratively, in response to determining that a virtual gravitational source needs to be generated at the second trigger position, a closest position point located on the first movement trajectory around the first trigger position that supports displaying a complete virtual gravitational source is obtained as a second trigger position, and the complete virtual gravitational source is displayed at the determined second trigger position.

[0111] The virtual gravitational source may be any model having a real volume. Schematically, the virtual gravitational source may be a model of a regular shape such as a sphere model, a cube model, etc. Alternatively, the virtual gravitational source may be a model of an irregular shape.

[0112] Taking the case where the virtual gravitational source is a virtual sphere and the volume of the target virtual projectile is less than the volume of the virtual gravitational source as an example, FIG. 6 is a schematic diagram of a process for determining a second trigger position according to an embodiment of the present application. As shown in FIG. 6, the target virtual projectile 61 moves along a first moving trajectory 62 in the virtual scene after being launched. Assuming that the target virtual projectile 61 does not collide during its movement, the maximum range position 65 can be determined as the first trigger position. The computer device obtains the volume of the space around the first trigger position and checks whether the space around the first trigger position can accommodate a complete display of the virtual gravitational source. As shown in FIG. 6, there exists an obstacle 64 in the space around the first trigger position, which does not support the display of the complete virtual gravitational source 67, so the computer device checks that the space around the first trigger position cannot accommodate the virtual gravitational source. In this case, a position point that is closest to the first trigger position on the first movement trajectory 62 and its extension and supports a complete display of the virtual gravitational source 67 is obtained, and the first position point 63 located on the first movement trajectory 62 is set as the second trigger position. PlacementAlternatively, a second position point 66 located on an extension line of the first movement trajectory 62 is set as a second trigger position. When the target virtual projectile 61 moves to a maximum range position 65, a virtual gravitational force source 67 is generated at the first position point 63 or the second position point 66.

[0113] Optionally, the computing device determines a first distance between the first position point 63 and the first trigger position 65, and a second distance between the second position point 66 and the first trigger position 67. Place 6 A second trigger position may be determined from among the first position point 63 and the second position point 66 based on a magnitude relationship between the second distance between the first trigger position and the position point corresponding to the second trigger position and the second distance between the first trigger position and the position point corresponding to the second trigger position. Optionally, the distance between the first trigger position and the position point corresponding to the second trigger position is the shortest.

[0114] For example, after the target virtual projectile is launched, radiation detection is performed in the moving direction of the target virtual projectile to detect whether there is enough space to generate a virtual gravitational source on the forward movement trajectory. If it is detected that the volume of the space at a certain position cannot meet the needs of generating a virtual gravitational source and the distance between the position and the first trigger position is less than a first threshold, the target virtual projectile may be made to disappear before the target virtual projectile reaches the space, and the generation of the virtual gravitational source may be brought forward. This can avoid the phenomenon of model passing due to the generation of a virtual gravitational source in a narrow space. Schematically, when the virtual gravitational source is a virtual sphere, the first threshold may be equal to or greater than the radius of the virtual gravitational source. The value of the first threshold can be set by a related person, and the present application does not limit it.

[0115] Optionally, after the first trigger position or the second trigger position is determined, i.e., after the generation position of the virtual gravity source is determined, the virtual gravity source may be generated in a manner that spreads from the inside to the outside around the generation position of the virtual gravity source, or the center of a collision box corresponding to the virtual gravity source may be superimposed on the generation position to determine the display position of the virtual gravity source in the virtual scene, and the virtual gravity source may be displayed at that position.

[0116] In step 505, in response to the distance between the second virtual object and the virtual gravitational source being less than the distance threshold, a linear motion trajectory is determined by connecting the position of the second virtual object and the center position of the virtual gravitational source.

[0117] Optionally, the distance between the second virtual object and the virtual gravitational source in the embodiment of the present application refers to the distance between the position of the second virtual object and the center position of the virtual gravitational source.

[0118] In an embodiment of the present application, the computer device may obtain the position of the second virtual object and the center position of the virtual gravitational source respectively, determine whether the distance between the second virtual object and the virtual gravitational source is less than the distance threshold, and determine a linear motion trajectory corresponding to the second virtual object based on a line connecting the position of the second virtual object and the center position of the virtual gravitational source when detecting that the distance between the second virtual object and the center position of the virtual gravitational source is less than the distance threshold. motion The trajectory is intended to indicate a reference trajectory along which the second virtual object moves within the virtual scene based on the gravitational force of the virtual gravitational source.

[0119] Here, the second virtual object may be a culled virtual object, i.e., the life value of the virtual object may be zero, and the virtual object cannot continue to move within the virtual scene based on the user's control operation, but a model of the virtual object still exists in the virtual scene.

[0120] 7 is a schematic diagram of determining a linear motion trajectory corresponding to a second virtual object according to an embodiment of the present application. As shown in FIG. 7, the virtual scene includes a first virtual object 73, an unselected second virtual object 71, a selected second virtual object 75, and a virtual gravitational source 74. The distances between the unselected second virtual object 71 and the selected second virtual object 75 are both smaller than a distance threshold. The position of the unselected second virtual object 71 and the center position of the virtual gravitational source 74 are connected to each other, and a line connecting the two is determined as a linear motion trajectory 72 corresponding to the unselected second virtual object 71, and the position of the selected second virtual object 75 and the center position of the virtual gravitational source 74 are connected to each other, and a line connecting the two is determined as a linear motion trajectory 76 corresponding to the selected second virtual object 75.

[0121] Optionally, the position of the second virtual object may refer to a position where the head of the virtual object is located, or a position of the center of gravity of the virtual object, or a position where the foot of the virtual object is located, etc. A method for determining the position of the second virtual object may be set by a related person, but the present application is not limited thereto.

[0122] In step 506, a second movement trajectory corresponding to a second virtual object is determined based on the linear movement trajectory.

[0123] In an embodiment of the present application, the computing device determines a second movement trajectory corresponding to each second virtual object based on the acquired linear movement trajectory corresponding to each second virtual object.

[0124] Here, the second movement trajectory is intended to indicate a movement trajectory along which the second virtual object receives gravitational force from the virtual gravitational source and moves in the direction of the virtual gravitational source.

[0125] In one possible implementation form, the computer device pre-calculates the second movement trajectory by a program before the second virtual object moves toward the virtual gravitational source, or the computer device calculates the movement position of the second virtual object at the next time in real time while the second virtual object is moving toward the virtual gravitational source to generate the second movement trajectory.

[0126] In one possible implementation, in response to the presence of an obstacle on the linear motion trajectory that obstructs the second virtual object, a second movement trajectory corresponding to the second virtual object is determined based on the linear motion trajectory and the obstacle position.

[0127] Here, when determining whether or not there is an obstacle on the linear motion trajectory that can obstruct the second virtual object, the computer device may obtain the highest position point and the lowest position point in the vertical direction of the second virtual object, create parallel lines of the linear motion trajectory based on the highest position point and the lowest position point, respectively, to obtain a motion area of ​​the second virtual object moving along the linear motion trajectory, and determine a second motion trajectory corresponding to the second virtual object based on the existence of an obstacle in the motion area. 1) In response to no obstacle being present in the movement area, a straight movement trajectory is determined as a second movement trajectory corresponding to a second virtual object. 2) In response to the presence of an obstacle in the movement area, a straight-line motion trajectory between a position of the second virtual object and the obstacle is determined as a first section trajectory, a corrected trajectory that detours around the obstacle based on a gravitational direction of a virtual gravitational source is obtained, a second section trajectory is generated by connecting an end position of the corrected trajectory and a center position of the virtual gravitational source, and a second movement trajectory corresponding to the second virtual object is determined based on the first section trajectory, the corrected trajectory, and the second section trajectory.

[0128] Illustratively, Fig. 8 is a schematic diagram of a process for determining a second movement trajectory according to an embodiment of the present application. As shown in Fig. 8, since a second virtual object 81 is immediately adjacent to an obstacle 82 and the linear movement trajectory corresponding to the second virtual object 81 passes through the obstacle 82, the computer device detours around the obstacle 82 based on the direction of the gravitational force of the virtual gravitational source on the second virtual object 81, determines a horizontal correction trajectory 84, and determines a line connecting the end position of the correction trajectory of the second virtual object 81 and the center position of the virtual gravitational source 83 as a second section trajectory, and obtains a trajectory consisting of the correction trajectory 84 and the second section trajectory as a second movement trajectory.

[0129] 9 is a schematic diagram of another process of determining a second movement trajectory according to an embodiment of the present application. As shown in FIG. 9, the second virtual object 81 is not immediately adjacent to an obstacle 82, but moves along a linear movement trajectory. region An obstacle is present within the virtual gravitational force source 83. Therefore, when the second virtual object 81 does not collide with the obstacle 82, the linear motion trajectory between the position of the second virtual object 81 and the obstacle is set as the first section trajectory. When the second virtual object 81 collides with the obstacle 82, the second virtual object 81 is moved to the closest position away from the obstacle, and the obstacle 82 is detoured to determine the corrected trajectory 84. Then, the line connecting the end position of the corrected trajectory of the second virtual object 81 and the center position of the virtual gravitational force source 83 is set as the second section trajectory, and a trajectory consisting of the first section trajectory, the corrected trajectory 84, and the second section trajectory is acquired as the second movement trajectory.

[0130] In one possible implementation, in response to the second virtual object being obstructed by an obstacle that cannot be circumvented based on the gravitational direction, a second movement trajectory of the second virtual object is interrupted at a location where it collides with the obstacle.

[0131] For example, if there is a low obstacle on the linear motion trajectory, the motion trajectory is automatically corrected to generate a second motion trajectory that moves around the obstacle and then moves to the virtual gravitational source. If there is a high and large obstacle on the linear motion trajectory and the gravitational force of the virtual gravitational source cannot control the second virtual object to go around the obstacle, the second virtual object cannot continue to move toward the virtual gravitational source, but can continue to receive the gravitational force of the virtual gravitational source. The computer device can control the second virtual object to stick to the obstacle. In this case, the user cannot control the second virtual object to move in the virtual scene. Optionally, the computer device determines whether the second virtual object can go around the obstacle based on the movement attribute of the second virtual object and the height of the obstacle. Schematically, in response to the jump height of the second virtual object being greater than the height of the obstacle, it determines that the second virtual object can go around the obstacle, and in response to the jump height of the second virtual object being less than the height of the obstacle, it determines that the second virtual object cannot go around the obstacle.

[0132] In step 507, the second virtual object is controlled to move toward the virtual gravitational source based on the second movement trajectory.

[0133] In an embodiment of the present application, the computing device obtains a second movement trajectory corresponding to a second virtual object, and controls the second virtual object to move along the second movement trajectory toward the virtual gravitational source.

[0134] In one possible implementation, the initial speed of the movement of the second virtual object is correlated with the position of the second virtual object and the center position of the virtual gravitational source. The above-mentioned process of controlling the second virtual object to move toward the virtual gravitational source includes: Second Virtual Object Location and a central position of the virtual gravitational source, determine an initial velocity of movement of the second virtual object based on the first distance, and control the second virtual object to move at the initial velocity and the first acceleration toward the central position of the virtual gravitational source.

[0135] Here, there is a negative correlation between the initial speed and the first distance. That is, the larger the first distance between the second virtual object and the virtual gravitational source, the smaller the initial speed at which the second virtual object moves toward the virtual gravitational source under the gravitational force of the virtual gravitational source. Conversely, the smaller the first distance between the second virtual object and the virtual gravitational source, the greater the initial speed at which the second virtual object moves toward the virtual gravitational source under the gravitational force of the virtual gravitational source.

[0136] Optionally, the first acceleration value may be a first target numerical value that does not change in response to a change in distance between the second virtual object and the virtual gravitational source, the first target numerical value being configurable by an interested party.

[0137] In another possible implementation form, during the movement of the second virtual object toward the virtual gravitational source, as the first distance becomes smaller, the gravitational force received by the second virtual object becomes stronger and the first acceleration becomes gradually larger. In this case, the computing device determines a first acceleration of the movement of the second virtual object based on the first distance, and controls the second virtual object to move toward the center position of the virtual gravitational source based on the first acceleration.

[0138] Here, there is a negative correlation between the first acceleration and the first distance. That is, the larger the first distance between the position of the second virtual object and the central position of the virtual gravitational source, the smaller the gravitational force of the virtual gravitational source that the second virtual object receives, and the smaller the first acceleration when the second virtual object moves toward the virtual gravitational source. Conversely, the smaller the first distance between the second virtual object and the virtual gravitational source, the larger the gravitational force of the virtual gravitational source that the second virtual object receives, and the larger the first acceleration when the second virtual object moves toward the virtual gravitational source. During the movement of the second virtual object toward the virtual gravitational source, as the distance between the position of the second virtual object and the central position of the virtual gravitational source becomes gradually smaller, the gravitational force of the virtual gravitational source that the second virtual object receives becomes gradually larger, and the first acceleration becomes gradually larger.

[0139] Optionally, a minimum value of the first acceleration is greater than an acceleration when the movement of the second virtual object is controlled by accepting a trigger operation on the directional control, or an initial velocity of the second virtual object is greater than a velocity when the movement of the second virtual object is controlled by accepting a trigger operation on the directional control, thereby ensuring that the computing device cannot control the second virtual object to move in a direction away from the virtual gravitational source based on the accepted trigger operation on the directional control.

[0140] In one possible implementation, the initial velocity of the second virtual object may be 0. Alternatively, the initial velocity of the second virtual object may be a second target numerical value. The computing device controls the second virtual object to move to a center position of the virtual gravitational source based on the initial velocity and the first acceleration. Optionally, the second target numerical value may be greater than a maximum moving velocity when controlling the second virtual object by accepting a trigger operation on the directional control. This ensures that the computing device cannot control the second virtual object to move in a direction away from the virtual gravitational source based on the accepted trigger operation on the directional control.

[0141] At step 508, in response to the virtual source of gravity being present in the virtual scene for a first time, an explosion effect is added at a location corresponding to the virtual source of gravity and the virtual source of gravity is removed.

[0142] In an embodiment of the present application, the computer device obtains a time when the virtual gravitational source exists in the virtual scene, and in response to the existence time reaching a first time, adds an explosion effect to a position corresponding to the virtual gravitational source in the virtual scene, and removes a model of the virtual gravitational source to conform to the law of gravitational collapse. Optionally, the above process may be implemented to remove the model of the virtual gravitational source, add a virtual item having an explosion effect to a position corresponding to the virtual gravitational source, and cause the virtual item to immediately generate the explosion effect. Optionally, in the above process, in order to embody the law of gravitational collapse, only the explosion effect is added to the virtual scene without displaying a model of a virtual item that brings about the explosion effect, such as a virtual explosive, in the virtual scene.

[0143] To simulate the effect of damaging surrounding virtual objects when the virtual gravitational source explodes, when the existence time of the virtual gravitational source reaches a first time, the computer device may add an explosion effect to a position corresponding to the virtual gravitational source and cause a certain decrease in a first attribute value of the second virtual object, where the decrease value of the first attribute value is correlated with the distance between the position of the second virtual object and the center position of the virtual gravitational source. The process includes: A second distance between the position of the second virtual object and the central position of the virtual gravitational source when the time that the virtual gravitational source exists in the virtual scene reaches a first time is obtained, and a first attribute value of the second virtual object is modified based on the second distance, and may be realized such that there is a negative correlation between the second distance and the modified value of the first attribute value.

[0144] Optionally, the modification of the first attribute value of the second virtual object can be expressed as decreasing the numerical value of the first attribute value or increasing the numerical value of the first attribute value. For example, in the case where the modification value of the first attribute value is a decrease value, the decrease value and the second distance have a negative correlation. That is, when adding an explosion effect to a virtual scene, the larger the second distance is, the smaller the damage to the second virtual object is, and the smaller the decrease value is, and the smaller the second distance is, the larger the damage to the second virtual object is, and the larger the decrease value is. The relationship between the second distance and the decrease value can be set by the person concerned, but is not limited thereto. Here, the first attribute value may be a life value, a defense value, etc.

[0145] In one possible implementation, while the virtual gravitational source is present, a gravitational force can be applied to the second virtual object to change the direction and speed of movement of the second virtual object, as well as affect the first attribute value of the second virtual object. The numerical value of the effect on the first attribute value is negatively correlated with the first distance. That is, if the time during which the virtual gravitational source is present has not reached the first time, the virtual gravitational source will not be able to move beyond the distance threshold. range The smaller the first distance, the larger the influence value will be, and the larger the first distance, the smaller the influence value will be.

[0146] In one possible implementation, the first attribute value of a virtual object located in a different camp from the first virtual object may be affected by an explosion effect corresponding to the virtual gravitational source or during the presence of the virtual gravitational source. To this end, the computing device may determine whether the second virtual object belongs to a virtual object located in the same camp as the first virtual object. If the second virtual object is located in the same camp as the first virtual object, the first attribute value of the second virtual object may not be modified. If the second virtual object is located in a different camp from the first virtual object, the first attribute value of the second virtual object may be modified.

[0147] That is, the movement speed and movement direction of the virtual object located in the same camp as the first virtual object are changed by the action of the virtual gravitational source, and the first attribute value is affected. Therefore, by using a mechanism for controlling and moving the virtual object located in the same camp as the first virtual object based on the virtual gravitational source, it is possible to realize the movement control of the virtual object, and the control resources of the terminal controlling the second virtual object are saved. In addition, by using a mechanism for modifying the first attribute value of the second virtual object located in a camp different from the first virtual object based on the virtual gravitational source, the camp of the first virtual object can be quickly established in the match, the match can be accelerated, and the processing resources of the terminal controlling the first virtual object can be saved.

[0148] Optionally, in response to the second virtual object moving to a central position of the virtual source of attraction, a first attribute value of the second virtual object is modified to zero.

[0149] Schematically, when a second virtual object moves to the center position of the virtual gravitational source within the existence time of the virtual gravitational source, the life value of the second virtual object is cleared and the second virtual object is eliminated.

[0150] In one possible implementation, in response to the time that the virtual gravity source is present in the virtual scene reaching a first time, a second virtual object is controlled to move in an opposite direction to the gravitational force provided by the virtual gravity source.

[0151] That is, when generating an explosion effect based on a virtual gravitational source, not only is the first attribute value of each second virtual object numerically modified, but also, for each second virtual object, the second virtual object is moved in the opposite direction according to the reaction force of the gravitational force previously received. This process can simulate the situation of a virtual object being subjected to force during an explosion, and conforms to the physical motion principle. The process of simulating an explosion may be to set an explosion algorithm of a virtual explosive in a program, and not to set a related model. In this way, an explosion effect can be realized in a virtual scene. Here, the second virtual object that receives a reaction force and moves in the opposite direction includes a second virtual object that is not selected and a second virtual object that is selected.

[0152] Among them, the selected second virtual objects can move or fall based on the physical effects of the stuffed toy.

[0153] In one possible implementation form, in response to a distance between the position of the second virtual object and the central position of the virtual gravity source being less than a distance threshold, a first direction of the central position of the virtual gravity source relative to an orientation of the second virtual object is obtained, a first movement of the second virtual object during movement to the central position of the virtual gravity source is determined based on the first direction, and the second virtual object is controlled to move to the central position of the virtual gravity source based on the first movement.

[0154] When the orientation of the second virtual object relative to the center position of the virtual gravitational source is different, the movement action of the second virtual object is different when moving based on the gravitational force. For example, FIG. 10 is a schematic diagram of the movement process in which the second virtual object according to the embodiment of the present application moves to the virtual gravitational source. As shown in FIG. 10, when the orientation of the second virtual object 1001 when receiving the gravitational force is toward the virtual gravitational source 1003 in the horizontal direction, the second virtual object 1001 moves with a first action corresponding to this case during the movement of the second virtual object 1001 to the virtual gravitational source 1003. When the orientation of the second virtual object 1002 when receiving the gravitational force is toward the virtual gravitational source 1003 in the vertical direction, the second virtual object 1002 moves with a first action corresponding to the case shown in FIG. 10 during the movement of the second virtual object 1002 to the virtual gravitational source 1003.

[0155] Also, since the orientation of the second virtual object may change during movement, the computing device may detect the current orientation in real time and display the first action corresponding to the orientation in the virtual scene.

[0156] As described above, in the configuration shown in the embodiment of the present application, the first virtual object is controlled to launch a target virtual projectile, and a virtual gravitational source is generated based on the position of the target virtual projectile, so that when the second virtual object is located within the action range of the virtual gravitational source, the second virtual object is controlled to move toward the virtual gravitational source. According to the above method, a configuration for quickly gathering the second virtual object to a specified position is provided, and the first virtual object is controlled to launch a target virtual projectile, and the second virtual object within the specified range is controlled to move to the same position, so that the first virtual object can simultaneously interact with multiple second virtual objects, and then the intensive operation of the second virtual object can reduce the duration of one match, and further lead to a reduction in the power consumption of the terminal and a saving in the amount of data communication.

[0157] Optionally, after concentrating second virtual objects within a specified range to the same position by a virtual gravity source, concentrated operation of multiple second virtual objects can be realized, thereby reducing the steps and operation flow of operating multiple virtual objects one by one, further shortening the duration of one match, and further reducing the power consumption of the terminal and saving data communication volume.

[0158] FIG. 11 is a block diagram of a virtual object control device provided in one exemplary embodiment of the present application. a display module 1110 for displaying a virtual scene screen corresponding to a virtual scene, the virtual scene including a first virtual object; a launch module 1120 for controlling the first virtual object to launch a target virtual projectile, the target virtual projectile for triggering a virtual gravitational source within the virtual scene; and a movement module 1130 that, in response to a distance between a second virtual object and the virtual source of attraction being less than a distance threshold, controls the second virtual object to move towards the virtual source of attraction.

[0159] In one possible implementation, the device comprises: Further included is a generation module that generates the virtual gravitational force source based on a location where the target virtual projectile is located.

[0160] In one possible implementation, the generation module comprises: a first trajectory acquisition submodule that acquires a first movement trajectory of the target virtual projectile in response to the first virtual object launching the target virtual projectile; a first position determination submodule for determining a first trigger position based on the first movement trajectory of the target virtual projectile, the first trigger position being a maximum range position where no collision occurs during the movement of the target virtual projectile along the first movement trajectory, or a position where the target virtual projectile collides with an obstacle; and an attraction source generating sub-module that generates the virtual attraction source based on the first trigger position.

[0161] In one possible implementation, the gravitational force source generation sub-module: and a first generating unit configured to generate the virtual gravitational source at the first trigger location in response to a volume of a space surrounding the first trigger location being equal to or greater than a volume of the virtual gravitational source.

[0162] In one possible implementation, the gravitational force source generation sub-module: a second position determination unit configured to determine a second trigger position in response to a volume of a space around the first trigger position being less than a volume of the virtual gravitational source, the second trigger position being a position on the first movement trajectory whose volume of a space around the first trigger position is equal to or greater than the volume of the virtual gravitational source; and a second generating unit configured to generate the virtual attractive force source at the second trigger position.

[0163] In one possible implementation, the moving module 1130 includes: a straight line determination submodule that determines a straight line motion trajectory by connecting a position of the second virtual object and a center position of the virtual gravitational source in response to a distance between the second virtual object and the virtual gravitational source being less than a distance threshold; a second trajectory determination submodule that determines a second movement trajectory corresponding to the second virtual object based on the linear motion trajectory; and a movement control submodule that controls the second virtual object to move toward the virtual gravitational source based on the second movement trajectory.

[0164] In one possible implementation, the second trajectory determination submodule: a position point acquisition unit for acquiring a highest position point and a lowest position point in a vertical direction of the second virtual object; an area acquisition unit that acquires a motion area of ​​the second virtual object moving along the linear motion trajectory by creating a parallel line of the linear motion trajectory based on each of the highest position point and the lowest position point; and a second trajectory determination unit that determines the second movement trajectory corresponding to the second virtual object based on a presence status of an obstacle in the movement area.

[0165] In one possible implementation, the second trajectory determination unit: In response to the obstacle not being present in the movement area, the straight-line movement trajectory is determined as the second movement trajectory corresponding to the second virtual object.

[0166] In one possible implementation, the second trajectory determination unit: in response to the obstacle being present in the motion area, determining the linear motion trajectory between the position of the second virtual object and the obstacle as a first section trajectory; obtaining a corrected trajectory that bypasses the obstacle based on a gravitational direction of the virtual gravitational source; generating a second section trajectory by connecting an end position of the corrected trajectory and a center position of the virtual gravitational source; The second movement trajectory corresponding to the second virtual object is determined based on the first section trajectory, the corrected trajectory, and the second section trajectory.

[0167] In one possible implementation, the moving module 1130 includes: a first distance acquisition submodule that acquires a first distance between a position of the second virtual object and a center position of the virtual gravitational source; Based on the first distance, a distance of the movement of the second virtual object is initial an initial rate determination sub-module for determining a rate, initial an initial velocity determination submodule, the velocity being negatively correlated with the first distance; before Control the second virtual object At the initial velocity and the first acceleration and a movement sub-module for moving the virtual gravitational source to a central position thereof.

[0168] In one possible implementation, the device comprises: The virtual scene further includes an effect adding module that, in response to a time during which the virtual gravity source is present in the virtual scene reaching a first time, adds an explosion effect to a position corresponding to the virtual gravity source and removes the virtual gravity source.

[0169] In one possible implementation, the device comprises: a second distance acquisition module that acquires a second distance between a position of the second virtual object and a center position of the virtual gravitational source when a time during which the virtual gravitational source exists in the virtual scene reaches the first time; The virtual object further includes an attribute modification module that modifies a first attribute value of the second virtual object based on the second distance, where the second distance and the modified value of the first attribute value are negatively correlated.

[0170] In one possible implementation, the device comprises: and a counter direction movement module configured to, in response to a time during which the virtual gravitational source is present in the virtual scene reaching the first time, control the second virtual object to move in a direction opposite to the gravitational force provided by the virtual gravitational source.

[0171] In one possible implementation, the device comprises: The virtual attraction source further includes an attribute clearing module that modifies a first attribute value of the second virtual object to zero in response to the second virtual object moving to a central position of the virtual attraction source.

[0172] As described above, in the device shown in the embodiment of the present application, the first virtual object is controlled to launch a target virtual projectile, and a virtual gravitational source is generated based on the position of the target virtual projectile, so that when the second virtual object is located within the action range of the virtual gravitational source, the second virtual object is controlled to move toward the virtual gravitational source. According to the above method, a configuration for quickly gathering the second virtual object at a specified position is provided, and the first virtual object is controlled to launch a target virtual projectile, and the second virtual object within the specified range is controlled to move to the same position, thereby realizing the control of multiple second virtual objects by the first virtual object, shortening the duration of one match, and further leading to a reduction in the power consumption of the terminal and a saving in the amount of data communication.

[0173] FIG. 12 is a block diagram of a virtual object control device provided in one exemplary embodiment of the present application. a first display module 1210 for displaying a first virtual scene view corresponding to a virtual scene, the first virtual scene view including a first virtual object; a second display module 1220 for displaying a second virtual scene view in response to the first virtual object launching a target virtual projectile, the second virtual scene view including a virtual gravitational source, the virtual gravitational source being generated based on a location where the target virtual projectile is located; and a movement module 1230 that, in response to a distance between a second virtual object and the virtual source of gravity being less than a distance threshold, controls the second virtual object to move towards the virtual source of gravity.

[0174] In one possible implementation, the moving module 1230 includes: a direction confirmation submodule that, in response to a distance between the second virtual object and the virtual gravitational source being less than the distance threshold, obtains a first direction of a center position of the virtual gravitational source relative to an orientation of the second virtual object; a motion acquisition sub-module that determines a first motion of the second virtual object during the movement toward a center position of the virtual gravitational source based on the first direction; and a movement sub-module that controls the second virtual object to move to a center position of the virtual gravitational source based on the first motion.

[0175] As described above, in the device shown in the embodiment of the present application, the first virtual object is controlled to launch a target virtual projectile, and a virtual gravitational source is generated based on the position of the target virtual projectile, so that when the second virtual object is located within the action range of the virtual gravitational source, the second virtual object is controlled to move toward the virtual gravitational source. According to the above method, a configuration for quickly gathering the second virtual object at a specified position is provided, and the first virtual object is controlled to launch a target virtual projectile, and the second virtual object within the specified range is controlled to move to the same position, thereby realizing the control of multiple second virtual objects by the first virtual object, and after the second virtual objects within the specified range are concentrated at the same position by the virtual gravitational source, the concentrated operation of multiple second virtual objects can be realized, and the first virtual object is controlled to control multiple second virtual objects, which reduces the duration of one match, and further leads to a reduction in the power consumption of the terminal and a saving in the amount of data communication.

[0176] 13 is a block diagram of a computing device 1300 according to one exemplary embodiment. The computing device 1300 may be a user terminal, such as a smartphone, a tablet computer, an MP3 player, an MP4 player, a notebook computer, or a desktop computer. The computing device 1300 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal, or other names.

[0177] Generally, the computing device 1300 comprises a processor 1301 and a memory 1302 .

[0178] The processor 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1301 may perform digital signal processing. Processor (DSP: Digital Signal Processor or ), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 1301 may include a main processor and a coprocessor. The main processor is a processor for processing data in a wake state, and is also called a central processing unit (CPU). The coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1301 may incorporate a graphics processing unit (GPU). The GPU is responsible for rendering and drawing content to be displayed on the display. In some embodiments, the processor 1301 may include an artificial intelligence (AI) processor for processing computational operations related to machine learning.

[0179] The memory 1302 may include one or more computer-readable storage media. The computer-readable storage media may be non-transitory. The memory 1302 may include high-speed random access memory and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1302 stores at least one instruction that, when executed by the processor 1301, performs all or a portion of the steps of the method provided in the method embodiments of the present application.

[0180] In some embodiments, the computing device 1300 optionally further includes a peripheral interface 1303 and at least one peripheral device. The processor 1301, the memory 1302, and the peripheral interface 1303 may be connected via a bus or signal lines. Each peripheral device may be connected to the peripheral interface 1303 via a bus, signal lines, or a circuit board. Specifically, the peripheral devices include at least one of a radio frequency circuit 1304, a display 1305, a camera component 1306, an audio circuit 1307, and a power source 1308.

[0181] In some embodiments, the computing device 1300 further includes one or more sensors 1309, including, but not limited to, an acceleration sensor 1310, a gyro sensor 1311, a pressure sensor 1312, an optical sensor 1313, and a proximity sensor 1314.

[0182] As will be appreciated by those skilled in the art, the configuration shown in FIG. 13 is not intended to limit the computing device 1300, and the computing device 1300 may include more or fewer components than shown, may combine some components, or may employ a different arrangement of components.

[0183] In an exemplary embodiment, a non-transitory computer readable storage medium including instructions, such as a memory including at least one instruction, at least one program, code set, or instruction set, is further provided, which, when executed by a processor, can cause all or part of the steps of the method illustrated in the embodiment corresponding to any one of Figures 3, 4, or 5 above to be performed. For example, the non-transitory computer readable storage medium can be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0184] According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium, a processor of a terminal reading the computer instructions from the computer-readable storage medium, and executing the computer instructions by the processor, causing the terminal to perform the virtual object control method provided in various optional implementations of the above aspect.

[0185] Those skilled in the art may easily conceive other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses, or adaptations of the present application. These modifications, uses, or adaptations follow the general principles of the present application and include common general knowledge or customary technical means in the art that are not disclosed herein. It is intended that the specification and examples are considered as exemplary only, with the true scope and spirit of the present application being indicated by the following claims.

[0186] It should be understood that the present application is not limited to the exact construction described above and illustrated in the drawings, and various modifications and changes are possible without departing from the scope thereof, which is limited only by the appended claims. [Explanation of symbols]

[0187] 61 Target Virtual Projectile 62 1st movement trajectory 63 1st position point 64 Obstacles 65 Maximum range position 66 2nd position point 67 Virtual Gravity Source 71 Unculled Second Virtual Object 72 Linear motion trajectory 73 First Virtual Object 74 Virtual Gravity Source 75 The second virtual object that was eliminated 81 Second Virtual Object 82 Obstacles 83 Virtual Gravity Source 84 Correction trajectory 100 Computer Systems 110 Terminal 1 111 Applications that support virtual environments 112 First User 120 Servers 121 Memory 122 processors 123 User Account Database 124 Battle Service Module 125 User Input / Output Interface 130 Terminal 2 131 Applications that support virtual environments 132 Second User 200 Scene Screen 210 Virtual Objects 220 Environment screen 221 Koyama 222 Factory Building 223 Horizon 224 Earth 225 Sky 240 Virtual Objects 1110 Display module 1120 Launch Module 1130 Mobile Module 1210 First display module 1220 Second display module 1230 Mobile Module 1300 Computer Equipment 1301 Processor 1302 Memory 1303 Peripheral Device Interface 1304 Radio Frequency Circuits 1305 Display 1306 Camera Component 1307 Audio Circuit 1308 Power supply 1309 Sensor 1310 Acceleration Sensor 1311 Gyro sensor 1312 Pressure Sensor 1313 Optical Sensor 1314 Proximity Sensor

Claims

1. 1. A method for controlling a virtual object executed by a computing device, comprising: displaying a virtual scene screen corresponding to a virtual scene, the virtual scene including a first virtual object; controlling the first virtual object to launch a target virtual projectile, the target virtual projectile for triggering a virtual gravitational source within the virtual scene; in response to a distance between a second virtual object and the virtual gravitational source being less than a distance threshold, controlling the second virtual object to move toward the virtual gravitational source; in response to a time during which the virtual gravitational source is present in the virtual scene reaching a first time, adding an explosion effect at a position corresponding to the virtual gravitational source and removing the virtual gravitational source, the step including obtaining a second distance between a position of the second virtual object and a central position of the virtual gravitational source; modifying a first attribute value of the second virtual object based on the second distance, wherein the second distance and the modified value of the first attribute value are negatively correlated; A virtual object control method comprising:

2. prior to controlling the second virtual object to move towards the virtual gravitational source in response to a distance between the second virtual object and the virtual gravitational source being less than a distance threshold; generating the virtual gravitational force source based on a location where the target virtual projectile is located; The virtual object control method according to claim 1 .

3. The step of generating the virtual gravitational source based on a position where the target virtual projectile is located includes: obtaining a first movement trajectory of the target virtual projectile; determining a first trigger position based on the first motion trajectory of the target virtual projectile, the first trigger position being a maximum range position where no collision occurs during the movement of the target virtual projectile along the first motion trajectory, or a position where the target virtual projectile collides with an obstacle; generating the virtual attractive force source based on the first trigger position; The virtual object control method according to claim 2 , comprising:

4. generating the virtual attractive force source based on the first trigger position, generating the virtual gravitational source at the first trigger location in response to a volume of a space around the first trigger location being equal to or greater than a volume of the virtual gravitational source. The virtual object control method according to claim 3 .

5. generating the virtual attractive force source based on the first trigger position, determining a second trigger position in response to a volume of a space around the first trigger position being less than a volume of the virtual gravitational source, the second trigger position being a position on the first movement trajectory whose volume of a space around the second trigger position is equal to or greater than the volume of the virtual gravitational source; generating the virtual attractive force source at the second trigger position; The virtual object control method according to claim 3 , comprising:

6. In response to a distance between the second virtual object and the virtual gravitational source being less than a distance threshold, controlling the second virtual object to move toward the virtual gravitational source includes: determining a linear motion trajectory by connecting a position of the second virtual object and a center position of the virtual gravitational source in response to a distance between the second virtual object and the virtual gravitational source being less than a distance threshold; determining a second movement trajectory corresponding to the second virtual object based on the linear movement trajectory; controlling the second virtual object to move toward the virtual gravitational source based on the second movement trajectory; The virtual object control method according to claim 1 , comprising:

7. The step of determining a second movement trajectory corresponding to the second virtual object based on the linear movement trajectory includes: acquiring a highest position point and a lowest position point in a vertical direction of the second virtual object; obtaining a motion area of ​​the second virtual object moving along the linear motion trajectory by creating a parallel line of the linear motion trajectory based on each of the highest position point and the lowest position point; determining the second movement trajectory corresponding to the second virtual object based on a presence state of an obstacle in the movement area; The virtual object control method according to claim 6 , comprising:

8. determining the second movement trajectory corresponding to the second virtual object based on a presence state of an obstacle in the movement area, determining, in response to the absence of the obstacle in the movement area, the linear movement trajectory as the second movement trajectory corresponding to the second virtual object; The virtual object control method according to claim 7 .

9. determining the second movement trajectory corresponding to the second virtual object based on a presence state of an obstacle in the movement area, determining, in response to the obstacle being present in the motion area, the linear motion trajectory between a position of the second virtual object and the obstacle as a first section trajectory; obtaining a corrected trajectory that bypasses the obstacle based on a gravitational direction of the virtual gravitational source; generating a second section trajectory by connecting an end position of the corrected trajectory and a center position of the virtual gravitational source; determining the second movement trajectory corresponding to the second virtual object based on the first section trajectory, the corrected trajectory, and the second section trajectory; The virtual object control method according to claim 7 , comprising:

10. The step of controlling the second virtual object to move toward the virtual gravitational source includes: obtaining a first distance between a position of the second virtual object and a center position of the virtual gravitational source; determining an initial velocity of movement of the second virtual object based on the first distance, wherein the initial velocity and the first distance are negatively correlated; controlling the second virtual object to move with the initial velocity and the first acceleration toward a center position of the virtual gravitational source; The virtual object control method according to claim 1 , comprising:

11. and, in response to a time during which the virtual gravitational source is present in the virtual scene reaching the first time, controlling the second virtual object to move in a direction opposite to the gravitational force provided by the virtual gravitational source. The virtual object control method according to claim 1 .

12. and modifying a first attribute value of the second virtual object to zero in response to the second virtual object moving to a central position of the virtual gravitational source. The virtual object control method according to any one of claims 1 to 11.

13. 1. A method for controlling a virtual object executed by a computing device, comprising: displaying a first virtual scene view corresponding to a virtual scene, the first virtual scene view including a first virtual object; displaying a second virtual scene view in response to the first virtual object launching a target virtual projectile, the second virtual scene view including a virtual gravitational source generated based on a location of the target virtual projectile; in response to a distance between a second virtual object and the virtual gravitational source being less than a distance threshold, controlling the second virtual object to move toward the virtual gravitational source; in response to a time during which the virtual gravitational source is present in the virtual scene reaching a first time, adding an explosion effect at a position corresponding to the virtual gravitational source and removing the virtual gravitational source, the step including obtaining a second distance between a position of the second virtual object and a central position of the virtual gravitational source; modifying a first attribute value of the second virtual object based on the second distance, wherein the second distance and the modified value of the first attribute value are negatively correlated; A virtual object control method comprising:

14. In response to a distance between the second virtual object and the virtual gravitational source being less than a distance threshold, controlling the second virtual object to move toward the virtual gravitational source includes: in response to a distance between the second virtual object and the virtual gravitational source being less than the distance threshold, obtaining a first orientation of a center position of the virtual gravitational source relative to an orientation of the second virtual object; determining a first movement of the second virtual object during movement toward a central position of the virtual gravitational source based on the first direction; controlling the second virtual object to move to a center position of the virtual gravitational source based on the first action; The virtual object control method according to claim 13 , comprising:

15. A virtual object control device, a display module for displaying a virtual scene screen corresponding to a virtual scene, the virtual scene including a first virtual object; a launch module for controlling the first virtual object to launch a target virtual projectile, the target virtual projectile for triggering a virtual gravitational source within the virtual scene; a movement module that controls the second virtual object to move toward the virtual source of attraction in response to a distance between the second virtual object and the virtual source of attraction being less than a distance threshold; an effect adding module that, in response to a time during which the virtual gravitational source is present in the virtual scene reaching a first time, adds an explosion effect at a position corresponding to the virtual gravitational source and removes the virtual gravitational source; a second distance acquisition module that acquires a second distance between a position of the second virtual object and a center position of the virtual gravitational source when a time during which the virtual gravitational source exists in the virtual scene reaches the first time; an attribute modification module that modifies a first attribute value of the second virtual object based on the second distance, wherein the second distance and a modified value of the first attribute value are negatively correlated; A virtual object control device comprising:

16. A virtual object control device, a first display module for displaying a first virtual scene view corresponding to a virtual scene, the first virtual scene view including a first virtual object; a second display module configured to display a second virtual scene view in response to the first virtual object launching a target virtual projectile, the second virtual scene view including a virtual gravitational source generated based on a location of the target virtual projectile; and a movement module that controls the second virtual object to move toward the virtual source of attraction in response to a distance between the second virtual object and the virtual source of attraction being less than a distance threshold; an effect adding module that, in response to a time during which the virtual gravitational source is present in the virtual scene reaching a first time, adds an explosion effect at a position corresponding to the virtual gravitational source and removes the virtual gravitational source; a second distance acquisition module that acquires a second distance between a position of the second virtual object and a center position of the virtual gravitational source when a time during which the virtual gravitational source exists in the virtual scene reaches the first time; an attribute modification module that modifies a first attribute value of the second virtual object based on the second distance, wherein the second distance and a modified value of the first attribute value are negatively correlated; A virtual object control device comprising:

17. A computer device comprising a processor and a memory, wherein at least one computer program is stored in the memory, and the computer program, when loaded and executed by the processor, realizes the virtual object control method according to any one of claims 1 to 14.

18. A computer program causing a computer to implement the virtual object control method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Game system and program

    JP2019136358A

  • Program, game system and server system

    JP2020039403A

  • Method and apparatus for target location in virtual interactive scenarios

    JP2020534615A