# US 2023/0057151 A1 · Virtual object control method and apparatus, device, storage medium, and program product

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0057151 A1
- Document ID: US20230057151A1
- Status: Published application
- Kind: A1
- Application number: 17/981,320
- Filed: 2022-11-04
- Published: 2023-02-23
- Earliest claimed: 2021-01-21
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent TEchnology (Shenzhen) Company Limited
- Inventors: Yang WANG; Lijie Zhang
- Web page: https://patentgrep.com/patent/US20230057151A1

## CPC

- A63F 13/52: involving aspects of the displayed game scene
- A63F 13/837: Shooting of targets
- A63F 13/56: Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
- A63F 13/57: Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game (A63F13/56 takes precedence)
- A63F: CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR

## Abstract

A virtual object control method is performed by a computer device. The method includes: displaying a virtual scene picture 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 being configured to trigger a virtual gravitational source in the virtual scene; and, when a distance between a second virtual object and the virtual gravitational source is less than a distance threshold, controlling the second virtual object to move toward the virtual gravitational source. This solution provides a method for quickly gathering second virtual objects to a specified position, so as to realize control on a plurality of second virtual objects by a first virtual object, and shorten a duration of a single-round battle, thereby reducing the power consumption of a terminal and saving data traffic.

## Claims

### Claim 1

A virtual object control method, performed by a computer device, the method comprising:
displaying a virtual scene picture corresponding to a virtual scene, the virtual scene comprising a first virtual object;
controlling the first virtual object to launch a target virtual projectile, the target virtual projectile being configured to trigger a virtual gravitational source in the virtual scene; and
when a distance between a second virtual object and the virtual gravitational source is less than a distance threshold, controlling the second virtual object to move toward the virtual gravitational source.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the method further comprises:
generating the virtual gravitational source based on a position of the target virtual projectile.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the generating the virtual gravitational source based on a position of the target virtual projectile comprises:
acquiring a first movement trajectory of the target virtual projectile;
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 when no collision occurs during movement of the target virtual projectile along the first movement trajectory, or a position at which the target virtual projectile collides with an obstacle; and
generating the virtual gravitational source at the first trigger position.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the generating the virtual gravitational source at the first trigger position comprises:
generating the virtual gravitational source at the first trigger position when a volume of surrounding space of the first trigger position is greater than or equal to a volume of the virtual gravitational source.

### Claim 5 (depends on 3)

The method according to claim 3, wherein the generating the virtual gravitational source at the first trigger position comprises:
determining a second trigger position when a volume of surrounding space of the first trigger position is less than a volume of the virtual gravitational source, the second trigger position being a position on the first movement trajectory and for which a volume of surrounding space is greater than or equal to the volume of the virtual gravitational source; and
generating the virtual gravitational source at the second trigger position.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the controlling the second virtual object to move toward the virtual gravitational source comprises:
connecting a position of the second virtual object and a center position of the virtual gravitational source when the distance between the second virtual object and the virtual gravitational source is less than the distance threshold, to determine a linear motion trajectory;
determining a second movement trajectory corresponding to the second virtual object based on the linear motion trajectory; and
controlling, based on the second movement trajectory, the second virtual object to move toward the virtual gravitational source.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the controlling the second virtual object to move toward the virtual gravitational source comprises:
acquiring a first distance between a position of the second virtual object and a center position of the virtual gravitational source;
determining, based on the first distance, an initial speed at which the second virtual object moves, the initial speed being negatively correlated with the first distance; and
controlling the second virtual object to move toward the center position of the virtual gravitational source at the initial speed and a first acceleration.

### Claim 8 (depends on 1)

The method according to claim 1, further comprising:
when a duration for which the virtual gravitational source exists in the virtual scene reaches a first duration, adding an explosion effect to a position corresponding to the virtual gravitational source, and removing the virtual gravitational source.

### Claim 9 (depends on 1)

The method according to claim 1, further comprising:
modifying the first attribute value of the second virtual object to 0 when the second virtual object moves to the center position of the virtual gravitational source.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the controlling the second virtual object to move toward the virtual gravitational source comprises:
acquiring a first direction in which a center position of the virtual gravitational source faces relative to the second virtual object;
determining, based on the first direction, a first action of the second virtual object during its movement toward the center position of the virtual gravitational source; and
controlling, based on the first action, the second virtual object to move toward the center position of the virtual gravitational source.

### Claim 11

A computer device, comprising a processor and a memory, the memory storing at least one computer program, the computer program being loaded and executed by the processor and causing the computer device to implement a virtual object control method including:
displaying a virtual scene picture corresponding to a virtual scene, the virtual scene comprising a first virtual object;
controlling the first virtual object to launch a target virtual projectile, the target virtual projectile being configured to trigger a virtual gravitational source in the virtual scene; and
when a distance between a second virtual object and the virtual gravitational source is less than a distance threshold, controlling the second virtual object to move toward the virtual gravitational source.

### Claim 12 (depends on 10)

The computer device according to claim 10, wherein the method further comprises:
generating the virtual gravitational source based on a position of the target virtual projectile.

### Claim 13 (depends on 11)

The computer device according to claim 11, wherein the generating the virtual gravitational source based on a position of the target virtual projectile comprises:
acquiring a first movement trajectory of the target virtual projectile;
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 when no collision occurs during movement of the target virtual projectile along the first movement trajectory, or a position at which the target virtual projectile collides with an obstacle; and
generating the virtual gravitational source at the first trigger position.

### Claim 14 (depends on 12)

The computer device according to claim 12, wherein the generating the virtual gravitational source at the first trigger position comprises:
generating the virtual gravitational source at the first trigger position when a volume of surrounding space of the first trigger position is greater than or equal to a volume of the virtual gravitational source.

### Claim 15 (depends on 12)

The computer device according to claim 12, wherein the generating the virtual gravitational source at the first trigger position comprises:
determining a second trigger position when a volume of surrounding space of the first trigger position is less than a volume of the virtual gravitational source, the second trigger position being a position on the first movement trajectory and for which a volume of surrounding space is greater than or equal to the volume of the virtual gravitational source; and
generating the virtual gravitational source at the second trigger position.

### Claim 16 (depends on 10)

The computer device according to claim 10, wherein the controlling the second virtual object to move toward the virtual gravitational source comprises:
connecting a position of the second virtual object and a center position of the virtual gravitational source when the distance between the second virtual object and the virtual gravitational source is less than the distance threshold, to determine a linear motion trajectory;
determining a second movement trajectory corresponding to the second virtual object based on the linear motion trajectory; and
controlling, based on the second movement trajectory, the second virtual object to move toward the virtual gravitational source.

### Claim 17 (depends on 10)

The computer device according to claim 10, wherein the controlling the second virtual object to move toward the virtual gravitational source comprises:
acquiring a first distance between a position of the second virtual object and a center position of the virtual gravitational source;
determining, based on the first distance, an initial speed at which the second virtual object moves, the initial speed being negatively correlated with the first distance; and
controlling the second virtual object to move toward the center position of the virtual gravitational source at the initial speed and a first acceleration.

### Claim 18 (depends on 10)

The computer device according to claim 10, wherein the method further comprises:
when a duration for which the virtual gravitational source exists in the virtual scene reaches a first duration, adding an explosion effect to a position corresponding to the virtual gravitational source, and removing the virtual gravitational source.

### Claim 19 (depends on 10)

The computer device according to claim 10, wherein the method further comprises:
modifying the first attribute value of the second virtual object to 0 when the second virtual object moves to the center position of the virtual gravitational source.

### Claim 20

A non-transitory computer-readable storage medium, storing at least one computer program, the computer program being loaded and executed by a processor of a computer device and causing the computer device to implement a virtual object control method including:
displaying a virtual scene picture corresponding to a virtual scene, the virtual scene comprising a first virtual object;
controlling the first virtual object to launch a target virtual projectile, the target virtual projectile being configured to trigger a virtual gravitational source in the virtual scene; and
when a distance between a second virtual object and the virtual gravitational source is less than a distance threshold, controlling the second virtual object to move toward the virtual gravitational source.
