IP Library › Granted Patent US 12,048,878
Granted Patent B2
US 12,048,878 · App. 17/834,257 · Granted Jul 30, 2024

Method and apparatus for controlling virtual object, device, storage medium, and program product

Inventors: Zefeng Yang (Shenzhen, CN); Jiaqi Pan (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
A63F13/52A63F13/533A63F13/57G06F3/04815G06F3/0488A63F13/2145A63F2300/308A63F2300/66
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,048,878
App. No.
17/834,257
Granted
Jul 30, 2024
Kind
B2
Abstract

This application provides a method and apparatus for controlling a virtual object, a device, a computer-readable storage medium, and a computer program product. The method includes displaying, in a picture of a virtual scene, a virtual object moving in a first motion state and a switching control for switching a motion state of the virtual object; in response to a state switching operation triggered based on the switching control, controlling the virtual object to switch from the first motion state to a second motion state; and in response to a direction adjustment operation triggered based on the switching control, adjusting a motion perspective of the virtual object, and adjusting the picture of the virtual scene corresponding to the adjusted motion perspective, to control the virtual object to move in the second motion state in the adjusted picture of the virtual scene.

Claims (92)

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

displaying, by a device comprising a memory storing instructions and a processor in communication with the memory, in a picture of a virtual scene, a virtual object moving in a first motion state and a switching control, in a combined control form comprising a steering wheel and a switching button, for switching a motion state of the virtual object;

in response to a state switching operation triggered based on the switching control, controlling, by the device, the virtual object to switch from the first motion state to a second motion state; and

in response to a direction adjustment operation triggered based on the switching control, adjusting, by the device, a motion perspective of the virtual object, and adjusting the picture of the virtual scene corresponding to the adjusted motion perspective, to control the virtual object to move in the second motion state in the adjusted picture of the virtual scene.

2. The method according to claim 1 , further comprising:

displaying a direction joystick control in the picture of the virtual scene; and

controlling, according to a joystick drag operation for the direction joystick control, the virtual object to move in the second motion state in a direction indicated by the joystick drag operation.

3. The method according to claim 1 , wherein before the displaying the virtual object moving in the first motion state, the method further comprises:

displaying a direction joystick control in the picture of the virtual scene;

in response to a drag operation associated with the direction joystick control, determining a drag distance of the drag operation; and

in response to the drag distance reaching a target distance, controlling the virtual object to move in the first motion state.

4. The method according to claim 1 , wherein before the adjusting the motion perspective of the virtual object, the method further comprises:

controlling the switching control to be in a floating state; and

receiving a drag operation for the switching control in the floating state, and using the drag operation as the direction adjustment operation.

5. The method according to claim 1 , wherein:

the displaying the switching control for switching the motion state of the virtual object comprises:

displaying, in a switching button form, the switching control for switching the motion state of the virtual object; and

before the adjusting the motion perspective of the virtual object, the method further comprises:

converting the switching control from the switching button form to the combined control form comprising the steering wheel and the switching button, the steering wheel being configured to trigger the direction adjustment operation.

6. The method according to claim 1 , wherein:

before the controlling the virtual object to switch from the first motion state to the second motion state, the method further comprises:

receiving a press operation for the switching control, and using the press operation as the state switching operation; and

after the controlling the virtual object to switch from the first motion state to the second motion state, the method further comprises:

before the press operation is released, controlling the virtual object to be in the second motion state, and

in response to the press operation being released, controlling the virtual object to switch from the second motion state to the first motion state.

7. The method according to claim 1 , wherein:

before the controlling the virtual object to switch from the first motion state to the second motion state, the method further comprises:

receiving a first click operation associated with the switching control, and

using the first click operation as the state switching operation; and

after the controlling the virtual object to switch from the first motion state to the second motion state, the method further comprises:

receiving a second click operation for the switching control, and

in response to the second click operation, controlling the virtual object to switch from the second motion state to the first motion state.

8. The method according to claim 1 , wherein:

before the adjusting the motion perspective of the virtual object, the method further comprises:

receiving the direction adjustment operation triggered based on the steering wheel; and

the adjusting the motion perspective of the virtual object comprises:

obtaining a trigger position of the direction adjustment operation on the steering wheel, and

adjusting the motion perspective of the virtual object according to a direction indicated by the trigger position.

9. An apparatus for controlling a virtual object, the apparatus comprising:

a memory storing instructions; and

a processor in communication with the memory, wherein, when the processor executes the instructions, the processor is configured to cause the apparatus to perform:

displaying, in a picture of a virtual scene, a virtual object moving in a first motion state and a switching control, in a combined control form comprising a steering wheel and a switching button, for switching a motion state of the virtual object,

in response to a state switching operation triggered based on the switching control, controlling the virtual object to switch from the first motion state to a second motion state, and

in response to a direction adjustment operation triggered based on the switching control, adjusting a motion perspective of the virtual object, and adjusting the picture of the virtual scene corresponding to the adjusted motion perspective, to control the virtual object to move in the second motion state in the adjusted picture of the virtual scene.

10. The apparatus according to claim 9 , wherein, when the processor executes the instructions, the processor is configured to further cause the apparatus to perform:

displaying a direction joystick control in the picture of the virtual scene; and

controlling, according to a joystick drag operation for the direction joystick control, the virtual object to move in the second motion state in a direction indicated by the joystick drag operation.

11. The apparatus according to claim 9 , wherein, before the processor is configured to cause the apparatus to perform displaying the virtual object moving in the first motion state, the processor is configured to further cause the apparatus to perform:

displaying a direction joystick control in the picture of the virtual scene;

in response to a drag operation associated with the direction joystick control, determining a drag distance of the drag operation; and

in response to the drag distance reaching a target distance, controlling the virtual object to move in the first motion state.

12. The apparatus according to claim 9 , wherein, before the processor is configured to cause the apparatus to perform adjusting the motion perspective of the virtual object, the processor is configured to further cause the apparatus to perform:

controlling the switching control to be in a floating state; and

receiving a drag operation for the switching control in the floating state, and using the drag operation as the direction adjustment operation.

13. The apparatus according to claim 9 , wherein:

when the processor is configured to cause the apparatus to perform displaying the switching control for switching the motion state of the virtual object, the processor is configured to cause the apparatus to perform:

displaying, in a switching button form, the switching control for switching the motion state of the virtual object; and

before the processor is configured to cause the apparatus to perform adjusting the motion perspective of the virtual object, the processor is configured to further cause the apparatus to perform:

converting the switching control from the switching button form to the combined control form comprising the steering wheel and the switching button, the steering wheel being configured to trigger the direction adjustment operation.

14. The apparatus according to claim 9 , wherein:

before the processor is configured to cause the apparatus to perform controlling the virtual object to switch from the first motion state to the second motion state, the processor is configured to further cause the apparatus to perform:

receiving a press operation for the switching control, and using the press operation as the state switching operation; and

after the processor is configured to cause the apparatus to perform controlling the virtual object to switch from the first motion state to the second motion state, the processor is configured to further cause the apparatus to perform:

before the press operation is released, controlling the virtual object to be in the second motion state, and

in response to the press operation being released, controlling the virtual object to switch from the second motion state to the first motion state.

15. The apparatus according to claim 9 , wherein:

before the processor is configured to cause the apparatus to perform controlling the virtual object to switch from the first motion state to the second motion state, the processor is configured to further cause the apparatus to perform:

receiving a first click operation associated with the switching control, and

using the first click operation as the state switching operation; and

after the processor is configured to cause the apparatus to perform controlling the virtual object to switch from the first motion state to the second motion state, the processor is configured to further cause the apparatus to perform:

receiving a second click operation for the switching control, and

in response to the second click operation, controlling the virtual object to switch from the second motion state to the first motion state.

16. The apparatus according to claim 9 , wherein:

before the processor is configured to cause the apparatus to perform adjusting the motion perspective of the virtual object, the processor is configured to further cause the apparatus to perform:

receiving the direction adjustment operation triggered based on the steering wheel; and

when the processor is configured to cause the apparatus to perform adjusting the motion perspective of the virtual object, the processor is configured to cause the apparatus to perform:

obtaining a trigger position of the direction adjustment operation on the steering wheel, and

adjusting the motion perspective of the virtual object according to a direction indicated by the trigger position.

17. A non-transitory computer-readable storage medium, storing computer-readable instructions, wherein, the computer-readable instructions, when executed by a processor, are configured to cause the processor to perform:

displaying, in a picture of a virtual scene, a virtual object moving in a first motion state and a switching control, in a combined control form comprising a steering wheel and a switching button, for switching a motion state of the virtual object,

in response to a state switching operation triggered based on the switching control, controlling the virtual object to switch from the first motion state to a second motion state, and

in response to a direction adjustment operation triggered based on the switching control, adjusting a motion perspective of the virtual object, and adjusting the picture of the virtual scene corresponding to the adjusted motion perspective, to control the virtual object to move in the second motion state in the adjusted picture of the virtual scene.

18. The non-transitory computer-readable storage medium according to claim 17 , wherein, the computer-readable instructions, when executed by the processor, are configured to further cause the processor to perform:

displaying a direction joystick control in the picture of the virtual scene; and

controlling, according to a joystick drag operation for the direction joystick control, the virtual object to move in the second motion state in a direction indicated by the joystick drag operation.

19. The non-transitory computer-readable storage medium according to claim 17 , wherein, before the computer-readable instructions are configured to cause the processor to perform displaying the virtual object moving in the first motion state, the computer-readable instructions are configured to further cause the processor to perform:

displaying a direction joystick control in the picture of the virtual scene;

in response to a drag operation associated with the direction joystick control, determining a drag distance of the drag operation; and

in response to the drag distance reaching a target distance, controlling the virtual object to move in the first motion state.

20. The non-transitory computer-readable storage medium according to claim 17 , wherein, before the computer-readable instructions are configured to cause the processor to perform adjusting the motion perspective of the virtual object, the computer-readable instructions are configured to further cause the processor to perform:

controlling the switching control to be in a floating state; and

receiving a drag operation for the switching control in the floating state, and using the drag operation as the direction adjustment operation.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 7, 2022
From: YANG, ZEFENG; PAN, JIAQI
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 060123/0872 →
Priority Claims (1)
CN 202011301713.3 · Nov 19, 2020 · national
Continuity (2)
Continuation PCTCN2021125203 · Oct 21, 2021
Related Publication 20220297004A1 · Sep 22, 2022