IP Library Granted Patent US 10,946,277
Granted Patent B2
US 10,946,277 · App. 16/558,065 · Granted Mar 16, 2021

Method and apparatus for controlling virtual object, and storage medium

Inventors: Jing Liu (Shenzhen, CN); Li Li (Shenzhen, CN); Tao Wang (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
A63F13/42A63F13/2145G06F3/0488G06K9/00335
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 10,946,277
App. No.
16/558,065
Granted
Mar 16, 2021
Kind
B2
Abstract

The present disclosure provides a method for controlling a virtual object. The method includes: identifying screen areas corresponding to a left virtual sub-interface and a right virtual sub-interface in a virtual interface on a screen of the terminal device; detecting a gesture operation performed in the screen area corresponding to the left virtual sub-interface and detecting a gesture operation performed in the screen area corresponding to the right virtual sub-interface; and controlling a virtual object in the virtual interface to perform an action when a gesture operation is detected in the screen area corresponding to the left virtual sub-interface and the screen area corresponding to the right virtual sub-interface.

Claims (52)

1. A method for controlling a virtual object, applied to a terminal device, comprising:

identifying screen areas corresponding to a left virtual sub-interface and a right virtual sub-interface in a virtual interface on a screen of the terminal device;

detecting a gesture operation performed in the screen area corresponding to the left virtual sub-interface and detecting a gesture operation performed in the screen area corresponding to the right virtual sub-interface, wherein the detecting comprises:

confirming a first finger landing point corresponding to a start point of a first slide gesture on the screen and a second finger landing point corresponding to a start point of a second slide gesture on the screen, in response to detecting the first slide gesture in the screen area corresponding to the left virtual sub-interface and the second slide gesture in the screen area corresponding to the right virtual sub-interface, wherein the first slide gesture and the second slide gesture are each indicative of an upward sliding or a downward sliding; and

controlling the virtual object to drift in the virtual interface, according to a height difference between respective projections of the first finger landing point and the second finger landing point on a central axis of the screen; and

controlling the virtual object in the virtual interface to perform an action in response to detecting the gesture operation in the screen area corresponding to the left virtual sub-interface and the gesture operation in the screen area corresponding to the right virtual sub-interface.

2. The method according to claim 1 , wherein:

the first slide gesture includes an upward slide gesture and the second slide gesture includes a downward slide gesture, and wherein the virtual object moves in a direction of the downward slide gesture.

3. The method according to claim 1 , further comprising wherein:

the virtual object is controlled to drift in the virtual interface in response to determining the height difference is greater than a first value.

4. The method according to claim 1 , wherein the projection of the first finger landing point on the central axis of the screen is a first height and the projection of the second finger landing point on the central axis of the screen is a second height, the method further comprising:

moving the virtual object towards the right virtual sub-interface in response to determining the first height is greater than the second height, and moving the virtual object towards the left virtual sub-interface in response to determining the second height is greater than the first height.

5. The method according to claim 1 , wherein the gesture operation performed in the screen area corresponding to the right virtual sub-interface further includes a press gesture, the press gesture imparting a third finger landing point on the screen, the method further comprising:

moving the virtual object in the virtual interface further in response to determining a height difference between respective projections of the first finger landing point and the third finger landing point to the central axis of the screen is greater than a third value.

6. An apparatus for controlling a virtual object, comprising a processor and a memory, the memory storing a computer-readable instruction that is capable of causing the processor to:

identify screen areas respectively corresponding to a left virtual sub-interface and a right virtual sub-interface in a virtual interface on a screen of the terminal device;

detect a gesture operation performed in the screen area corresponding to the left virtual sub-interface and detect a gesture operation performed in the screen area corresponding to the right virtual sub-interface, wherein the detecting comprises:

confirming a first finger landing point corresponding to a start point of a first slide gesture on the screen and a second finger landing point corresponding to a start point of a second slide gesture on the screen, in response to detecting the first slide gesture in the screen area corresponding to the left virtual sub-interface and the second slide gesture in the screen area corresponding to the right virtual sub-interface, wherein the first slide gesture and the second slide gesture are each indicative of an upward sliding or a downward sliding; and

controlling the virtual object to drift in the virtual interface, according to a height difference between respective projections of the first finger landing point and the second finger landing point on a central axis of the screen; and

control the virtual object in the virtual interface to perform an action in response to detecting the gesture operation in the screen area corresponding to the left virtual sub-interface and the gesture operation in the screen area corresponding to the right virtual sub-interface.

7. The apparatus according to claim 6 , wherein

the first slide gesture includes an upward slide gesture and the second slide gesture includes a downward slide gesture, and wherein the virtual object moves in a direction of the downward slide gesture.

8. The apparatus according to claim 6 , wherein

the virtual object is controlled to drift in the virtual interface in response to determining, by the processor, the height difference is greater than a first value.

9. The apparatus according to claim 6 , wherein the projection of the first finger landing point on the central axis of the screen is a first height and the projection of the second finger landing point on the central axis of the screen is a second height, and wherein the computer-readable instruction further is capable of causing the processor to:

move the virtual object towards the right virtual sub-interface in response to determining by the processor the first height is greater than the second height, and moving the virtual object towards the left virtual sub-interface in response to determining by the processor the second height is greater than the first height.

10. A display device including a non-transitory computer-readable storage medium, storing a computer-readable instruction, when executed by a processor, the computer readable instruction causing the processor to perform a method for controlling a virtual object comprising:

identifying screen areas corresponding to a left virtual sub-interface and a right virtual sub-interface in a virtual interface on a screen of the terminal device;

detecting a gesture operation performed in the screen area corresponding to the left virtual sub-interface and detecting a gesture operation performed in the screen area corresponding to the right virtual sub-interface, wherein the detecting comprises:

confirming a first finger landing point corresponding to a start point of a first slide gesture on the screen and a second finger landing point corresponding to a start point of a second slide gesture on the screen, in response to detecting the first slide gesture in the screen area corresponding to the left virtual sub-interface and the second slide gesture in the screen area corresponding to the right virtual sub-interface, wherein the first slide gesture and the second slide gesture are each indicative of an upward sliding or a downward sliding; and

controlling the virtual object to drift in the virtual interface, according to a height difference between respective projections of the first finger landing point and the second finger landing point on a central axis of the screen; and

controlling the virtual object in the virtual interface to perform an action in response to detecting the gesture operation in the screen area corresponding to the left virtual sub-interface and the gesture operation in the screen area corresponding to the right virtual sub-interface.

11. The method according to claim 1 , wherein the gesture operation performed in the screen area corresponding to the left virtual sub-interface further includes a press gesture, the press gesture imparting a third finger landing point on the screen, the method further comprising:

moving the virtual object in the virtual interface further in response to determining a height difference between respective projections of the second finger landing point and the third finger landing point to the central axis of the screen is greater than a third value.

12. The method according to claim 1 , wherein the first value is a value in pixels.

13. The method according to claim 1 , wherein the gesture operation performed in the screen area corresponding to the left or the right virtual sub-interface includes a click operation, the method further comprising:

turning the virtual object respectively to the left or the right in response to detecting the click operation.

14. The method according to claim 1 , wherein the gesture operation performed in the screen area corresponding to the left or the right virtual sub-interface includes a press gesture, the method further comprising:

in response to determining the press gesture is part of the gesture operation performed in the screen area corresponding to the right virtual sub-interface, determining the first slide gesture and the press gesture are performed within a first time interval; and

in response to determining the press gesture is part of the gesture operation performed in the screen area corresponding to the left virtual sub-interface, determining the second slide gesture and the press gesture are performed within a second time interval.

15. The apparatus according to claim 6 , wherein the first value is a value in pixels.

16. The apparatus according to claim 6 , wherein the gesture operation performed in the screen area corresponding to the left or the right virtual sub-interface includes a click operation, and wherein the computer-readable instruction further is capable of causing the processor to:

turn the virtual object respectively to the left or the right in response to detecting the click operation.

17. The apparatus according to claim 6 , wherein the gesture operation performed in the screen area corresponding to the left or the right virtual sub-interface includes a press gesture, and wherein the computer-readable instruction further is capable of causing the processor to:

in response to determining the press gesture is part of the gesture operation performed in the screen area corresponding to the right virtual sub-interface, determine the first slide gesture and the press gesture are performed within a first time interval; and

in response to determining the press gesture is part of the gesture operation performed in the screen area corresponding to the left virtual sub-interface, determine the second slide gesture and the press gesture are performed within a second time interval.

18. The display device according to claim 10 , wherein the first value is a value in pixels.

19. The display device according to claim 10 , wherein the gesture operation performed in the screen area corresponding to the left or the right virtual sub-interface includes a click operation, and wherein the non-transitory computer-readable storage medium further causes the processor to perform:

turning the virtual object respectively to the left or the right in response to detecting the click operation.

20. The display device according to claim 10 , wherein the gesture operation performed in the screen area corresponding to the left or the right virtual sub-interface includes a press gesture, and wherein the non-transitory computer-readable storage medium further causes the processor to perform:

in response to determining the press gesture is part of the gesture operation performed in the screen area corresponding to the right virtual sub-interface, determining the first slide gesture and the press gesture are performed within a first time interval; and

in response to determining the press gesture is part of the gesture operation performed in the screen area corresponding to the left virtual sub-interface, determining the second slide gesture and the press gesture are performed within a second time interval.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 31, 2019
From: LIU, JING; LI, LI; WANG, TAO
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 050228/0009 →
Priority Claims (1)
CN 201710817237.2 · Sep 12, 2017 · national
Continuity (2)
Continuation PCTCN2018103174 · Aug 30, 2018
Related Publication 20190381402A1 · Dec 19, 2019
Cited By (2)
US 12,246,257 US 12,420,182