IP Library › Granted Patent US 11,185,773
Granted Patent B2
US 11,185,773 · App. 17/030,505 · Granted Nov 30, 2021

Virtual vehicle control method in virtual scene, computer device, and storage medium

Inventors: Xinlong Huang (Shenzhen, CN); Yu Wang (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
A63F13/5258A63F13/2145A63F13/803A63F13/92A63F2300/8082
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 11,185,773
App. No.
17/030,505
Granted
Nov 30, 2021
Kind
B2
Abstract

A virtual vehicle control method in a virtual scene, performed by a terminal, is provided. The method includes providing a display interface of an application program, the display interface including a scene picture of the virtual scene, and the virtual scene including a virtual vehicle; obtaining a moving speed of the virtual vehicle; and adjusting, based on the moving speed of the virtual vehicle being greater than a moving speed threshold, the scene picture to a picture of the virtual vehicle being observed in the virtual scene by using a camera model in a predetermined viewing angle direction, the camera model being located at a position with respect to the virtual vehicle.

Claims (46)

1. A virtual vehicle control method in a virtual scene, performed by a terminal, the method comprising:

providing a display interface of an application program, the display interface comprising a scene picture of the virtual scene, and the virtual scene comprising a virtual vehicle;

obtaining a moving speed of the virtual vehicle; and

adjusting, based on the moving speed of the virtual vehicle being greater than a moving speed threshold, the scene picture to a picture of the virtual vehicle being observed in the virtual scene by using a camera model in a predetermined viewing angle direction, the camera model being located at a position with respect to the virtual vehicle,

wherein the display interface further comprises a primary virtual control that is overlaid on the scene picture, and the method further comprises:

detecting a touch and slide operation that slides to a target point on the primary virtual control:

obtaining a steering angle of the virtual vehicle according to one of a directional angle and a transverse offset distance of the target point relative to a central position of the primary virtual control;

obtaining a virtual throttle opening of the virtual vehicle according to a straight-line distance between the target point and the central position of the primary virtual control; and

controlling the virtual vehicle to move according to the steering angle and the virtual throttle opening of the virtual vehicle.

2. The method according to claim 1 ,

wherein the controlling comprises controlling the virtual vehicle to accelerate within a maximum moving speed according to the virtual throttle opening.

3. The method according to claim 1 , wherein the display interface further comprises an auxiliary virtual control that is overlaid on the scene picture, and

wherein the auxiliary virtual control comprises at least one of a longitudinal attitude control for controlling a longitudinal attitude of the virtual vehicle, a sudden acceleration control for controlling the virtual vehicle to perform sudden acceleration, a brake control for controlling the virtual vehicle to brake, or a reverse control for controlling the virtual vehicle to reverse.

4. A computer device, comprising at least one processor and at least one memory, the at least one memory storing program code executable by the at least one processor to cause the at least one processor to perform the method according to claim 1 .

5. A non-transitory computer-readable storage medium, storing program code executable by at least one processor to cause the at least one processor to perform the method according to claim 1 .

6. The method according to claim 1 , wherein the primary virtual control has a circular shape, and based on the straight-line distance reaching or exceeding a radius of the primary virtual control, a maximum value of the virtual throttle opening is obtained.

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

based on a position of the target point on the primary virtual control being located in an upper half part of the primary virtual control, controlling the virtual vehicle to move forward, and based on the position of the target point on the primary virtual control being located in a lower half part of the primary virtual control, controlling the virtual vehicle to move backward.

8. The method according to claim 1 , further comprising, prior to displaying the primary virtual control on the display interface:

displaying a control mode selection interface including a double control mode option for controlling the steering angle and the virtual throttle opening through two virtual controls, and a single control mode option for controlling the steering angle and the virtual throttle opening through a single virtual control; and

displaying the primary virtual control for controlling the steering angle and the virtual throttle opening based on a selection of the single control mode option.

9. A virtual vehicle control method in a virtual scene, performed by a terminal, the method comprising:

providing a display interface of an application program, the display interface comprising a scene picture of the virtual scene and a primary virtual control, the virtual scene comprising a virtual vehicle and the primary virtual control being overlaid on the scene picture;

detecting a touch and slide operation that slides to a target point on the primary virtual control:

obtaining a steering angle of the virtual vehicle according to one of a directional angle and a transverse offset distance of the target point relative to a central position of the primary virtual control;

obtaining a virtual throttle opening of the virtual vehicle according to a straight-line distance between the target point and the central position of the primary virtual control; and

controlling the virtual vehicle to move according to the steering angle and the virtual throttle opening of the virtual vehicle.

10. The method according to claim 9 , wherein the controlling comprises:

controlling the virtual vehicle to move in a moving direction of the virtual vehicle according to the steering angle of the virtual vehicle; and

controlling the virtual vehicle to accelerate within a maximum moving speed of the virtual vehicle according to the virtual throttle opening of the virtual vehicle.

11. The method according to claim 9 , wherein the display interface further comprises an auxiliary virtual control, and the auxiliary virtual control comprises at least one of a longitudinal attitude control for controlling a longitudinal attitude of the virtual vehicle, a sudden acceleration control for controlling the virtual vehicle to perform sudden acceleration, a brake control for controlling the virtual vehicle to brake, or a reverse control for controlling the virtual vehicle to reverse.

12. The method according to claim 9 , further comprising:

obtaining a moving speed of the virtual vehicle; and

adjusting, based on the moving speed of the virtual vehicle being greater than a moving speed threshold, the scene picture to a picture of the virtual vehicle being observed in the virtual scene by using a camera model in a predetermined viewing angle direction, the camera model being located at a position with respect to the virtual vehicle.

13. A non-transitory computer-readable storage medium, storing program code executable by at least one processor to cause the at least one processor to perform the method according to claim 9 .

14. A terminal, 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:

interface providing code configured to cause at least one of the at least one processor to provide a display interface of an application program, the display interface comprising a scene picture of a virtual scene and a primary virtual control, the virtual scene comprising a virtual vehicle and the primary virtual control being overlaid on the scene picture;

detection code configured to cause at least one of the at least one processor to detect a touch and slide operation that slides to a target point on the primary virtual control;

first obtaining code configured to cause at least one of the at least one processor to obtain a steering angle of the virtual vehicle according to one of a directional angle and a transverse offset distance of the target point relative to a central position of the primary virtual control;

second obtaining code configured to cause at least one of the at least one processor to obtain a virtual throttle opening of the virtual vehicle according to a straight-line distance between the target point and the central position of the primary virtual control; and

controlling code configured to cause at least one of the at least one processor to control the virtual vehicle to move according to the steering angle and the virtual throttle opening of the virtual vehicle.

15. The terminal according to claim 14 , wherein the program code further comprises:

third obtaining code configured to cause at least one of the at least one processor to obtain a moving speed of the virtual vehicle; and

adjusting code configured to cause at least one of the at least one processor to adjust, based on the moving speed of the virtual vehicle being greater than a moving speed threshold, the scene picture to a picture of the virtual vehicle being observed in the virtual scene by using a camera model in a predetermined viewing angle direction, the camera model being located at a position with respect to the virtual vehicle.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 24, 2020
From: HUANG, XINLONG; WANG, YU
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 053871/0436 →
Priority Claims (1)
CN 201811009156.0 · Aug 30, 2018 · national
Continuity (2)
Continuation PCTCN2019102160 · Aug 23, 2019
Related Publication 20210016172A1 · Jan 21, 2021
Cited By (2)
US 12,246,257 US 12,311,266