IP Library › Granted Patent US 12,172,072
Granted Patent B2
US 12,172,072 · App. 17/459,037 · Granted Dec 24, 2024

Controlling a virtual object to take action when targeted

Inventor: Zhi Hong Liu (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
A63F13/42A63F13/2145G06F3/04815G06F3/0488A63F2300/1075A63F2300/8076
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,172,072
App. No.
17/459,037
Granted
Dec 24, 2024
Kind
B2
Abstract

A method for controlling a virtual object and a related apparatus are provided. The method includes displaying a user interface (UI) having a virtual environment image and an interactive panel region. The virtual environment image is an image in which a virtual environment is observed. The method also includes receiving a preset operation in a target region in the UI, with the target region being a region associated with the virtual environment image but not with the interactive panel region; and controlling the virtual object according to the preset operation to perform a corresponding motion in the virtual environment.

Claims (75)

1. A method for controlling a virtual object, performed by a terminal, the method comprising:

displaying a user interface (UI), the UI comprising a virtual environment image and an interactive panel region, the interactive panel region being a region in the UI comprising a plurality of pre-determined action controls;

receiving a preset operation in a target region in the UI, wherein the target region is a region of a first range in the UI excluding the interactive panel region; and

controlling, based on a use state of a virtual item meeting a condition, the virtual object to perform a corresponding motion or action corresponding to the virtual item in the virtual environment based on the preset operation, wherein the performing the corresponding motion or action based on the preset operation comprises:

controlling, based on the use state of the virtual item meeting a second condition, the virtual object according to the preset operation to open an accessory corresponding to the virtual item in the virtual environment;

or

controlling, based on the use state of the virtual item meeting a third condition, the virtual object according to the preset operation to start to use the virtual item in the virtual environment;

or

controlling, based on the use state of the virtual item meeting a fourth condition, the virtual object according to the preset operation to throw the virtual item in the virtual environment.

2. The method according to claim 1 , wherein the performing the corresponding motion or action further comprises:

controlling, based on a body posture of the virtual object meeting a first-fifth condition, the virtual object according to the preset operation to adjust the body posture in the virtual environment.

3. The method according to claim 2 , wherein the first condition comprises that the body posture of the virtual object is in a squatting state; the preset operation comprises a two-finger vertical swipe operation; and

the controlling, based on the body posture of the virtual object meeting the first condition, the virtual object according to the preset operation to adjust the body posture in the virtual environment comprises:

receiving the two-finger vertical swipe operation in the target region; and

controlling, based on the body posture of the virtual object being in the squatting state, the virtual object according to the two-finger vertical swipe operation to switch from the squatting state to a standing state in the virtual environment.

4. The method according to claim 3 , wherein the target region comprises a first target region and a second target region; and

the receiving the two-finger vertical swipe operation in the target region comprises:

obtaining first start position coordinates of a first contact point in the first target region and second start position coordinates of a second contact point in the second target region;

obtaining, based on swiping of the first contact point and the second contact point being stopped, first end position coordinates of the first contact point in the first target region and second end position coordinates of the second contact point in the second target region; and

determining, based on a vertical coordinate displacement of the first contact point being greater than a vertical coordinate displacement threshold and a vertical coordinate displacement of the second contact point being greater than the vertical coordinate displacement threshold, that the two-finger vertical swipe operation is received in the target region.

5. The method according to claim 1 , wherein the second condition comprises that the virtual item is in an auto-start state; the preset operation further comprises a double-tap operation; and

the controlling, based on the use state of the virtual item meeting the second condition, the virtual object according to the preset operation to open the accessory corresponding to the virtual item in the virtual environment comprises:

receiving the double-tap operation in the target region; and

controlling, based on a first virtual item being in the auto-start state, the virtual object according to the double-tap operation to open a sight corresponding to the first virtual item in the virtual environment.

6. The method according to claim 5 , wherein the receiving the double-tap operation in the target region comprises:

obtaining a time of a first tap operation and a time of a second tap operation in the target region; and

determining, based on a time interval between the first tap operation and the second tap operation being less than a time interval threshold, that the double-tap operation is received in the target region.

7. The method according to claim 1 , wherein the third condition comprises that the virtual item is in a manual start state; the preset operation further comprises a double-tap and long-press operation; and

the controlling, based on the use state of the virtual item meeting the third condition, the virtual object according to the preset operation to start to use the virtual item in the virtual environment comprises:

receiving the double-tap and long-press operation in the target region; and

controlling, based on a second virtual item being in the manual start state, the virtual object according to the double-tap and long-press operation to start to use the second virtual item in the virtual environment.

8. The method according to claim 7 , wherein the receiving the double-tap and long-press operation in the target region comprises:

receiving a press operation in the target region after a double-tap operation in the target region is received; and

determining, based on a duration of the press operation being greater than a duration threshold, that the double-tap and long-press operation is received in the target region.

9. The method according to claim 7 , wherein after the controlling, based on the second virtual item being in the manual start state, the virtual object according to the double-tap and long-press operation to start to use the second virtual item in the virtual environment, the method further comprises:

controlling, based on the double-tap and long-press operation in the target region being stopped, the virtual object to stop using the virtual item.

10. The method according to claim 1 , wherein the fourth condition comprises that the virtual object owns the virtual item; the preset operation further comprises a two-finger horizontal swipe operation; and

the controlling, based on the use state of the virtual item meeting the fourth condition, the virtual object according to the preset operation to throw the virtual item in the virtual environment comprises:

receiving the two-finger horizontal swipe operation in the target region; and

controlling, based on the virtual object owning a third virtual item, the virtual object according to the two-finger horizontal swipe operation to throw the third virtual item in the virtual environment.

11. The method according to claim 10 , wherein the target region comprises a first target region and a second target region; and

the receiving the two-finger horizontal swipe operation in the target region comprises:

obtaining first start position coordinates of a first contact point in the first target region and second start position coordinates of a second contact point in the second target region;

obtaining, based on swiping of the first contact point and the second contact point being stopped, first end position coordinates of the first contact point in the first target region and second end position coordinates of the second contact point in the second target region; and

determining, based on a horizontal coordinate displacement of the first contact point being greater than a horizontal coordinate displacement threshold and a horizontal coordinate displacement of the second contact point being greater than the horizontal coordinate displacement threshold, that the two-finger horizontal swipe operation is received in the target region.

12. An apparatus for controlling a virtual object, comprising:

at least one memory configured to store program code; and

at least one processor configured to read the program code and operate as instructed by the program code, the program code comprising:

display code configured to cause the at least one processor to display a user interface (UI), the UI comprising a virtual environment image and an interactive panel region, the interactive panel region being a region in the UI comprising a plurality of pre-determined action controls;

receiving code configured to cause the at least one processor to receive a preset operation in a target region in the UI, wherein the target region is a region of a first range in the UI excluding the interactive panel region; and

control code configured to cause the at least one processor to control, based on a use state of a virtual item meeting a condition, the virtual object to perform a corresponding motion or action corresponding to the virtual item in the virtual environment based on the preset operation, wherein the performing the corresponding motion or action based on the preset operation comprises:

controlling, based on the use state of the virtual item meeting a second condition, the virtual object according to the preset operation to open an accessory corresponding to the virtual item in the virtual environment;

or

controlling, based on the use state of the virtual item meeting a third condition, the virtual object according to the preset operation to start to use the virtual item in the virtual environment;

or

controlling, based on the use state of the virtual item meeting a fourth condition, the virtual object according to the preset operation to throw the virtual item in the virtual environment.

13. The apparatus according to claim 12 , wherein the control code is further configured to cause the at least one processor to control, based on a body posture of the virtual object meeting a fifth condition, the virtual object according to the preset operation to adjust the body posture in the virtual environment.

14. The apparatus according to claim 13 , wherein the first condition comprises that the body posture of the virtual object is in a squatting state; the preset operation comprises a two-finger vertical swipe operation; and

wherein the control code is further configured to cause the at least one processor to, based on receiving the two-finger vertical swipe operation in the target region and based on the body posture of the virtual object being in the squatting state, control the virtual object according to the two-finger vertical swipe operation to switch from the squatting state to a standing state in the virtual environment.

15. The apparatus according to claim 14 , wherein the target region comprises a first target region and a second target region; and

the receiving code is further configured to cause the at least one processor to obtain first start position coordinates of a first contact point in the first target region and second start position coordinates of a second contact point in the second target region; obtain, based on swiping of the first contact point and the second contact point being stopped, first end position coordinates of the first contact point in the first target region and second end position coordinates of the second contact point in the second target region; and

determine, based on a vertical coordinate displacement of the first contact point being greater than a vertical coordinate displacement threshold and a vertical coordinate displacement of the second contact point being greater than the vertical coordinate displacement threshold, that the two-finger vertical swipe operation is received in the target region.

16. The apparatus according to claim 12 , wherein the second condition comprises that the virtual item is in an auto-start state; the preset operation further comprises a double-tap operation; and

the control code is further configured to cause the at least one processor to control, based on receiving the double-tap operation in the target region and based on a first virtual item being in the auto-start state, the virtual object according to the double-tap operation to open a sight corresponding to the first virtual item in the virtual environment.

17. A non-transitory storage medium, configured to store a computer program, the computer program being executable by at least one processor to perform:

displaying a user interface (UI), the UI comprising a virtual environment image and an interactive panel region, the interactive panel region being a region in the UI comprising a plurality of pre-determined action controls;

receiving a preset operation in a target region in the UI, wherein the target region is a region of a first range in the UI excluding the interactive panel region; and

controlling, based on a use state of a virtual item meeting a condition, the virtual object to perform a corresponding motion or action corresponding to the virtual item in the virtual environment based on the preset operation, wherein the performing the corresponding motion or action based on the preset operation comprises:

controlling, based on the use state of the virtual item meeting a second condition, the virtual object according to the preset operation to open an accessory corresponding to the virtual item in the virtual environment;

or

controlling, based on the use state of the virtual item meeting a third condition, the virtual object according to the preset operation to start to use the virtual item in the virtual environment;

or

controlling, based on the use state of the virtual item meeting a fourth condition, the virtual object according to the preset operation to throw the virtual item in the virtual environment.

18. The non-transitory storage medium according to claim 17 , wherein the performing the corresponding motion or action further comprises:

controlling, based on a body posture of the virtual object meeting a fifth condition, the virtual object according to the preset operation to adjust the body posture in the virtual environment.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 27, 2021
From: LIU, ZHI HONG
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LTD
Reel/Frame 057311/0073 →
Priority Claims (1)
CN 201910784863.5 · Aug 23, 2019 · national
Continuity (2)
Continuation PCTCN2020103006 · Jul 20, 2020
Related Publication 20210387087A1 · Dec 16, 2021