Virtual carrier gear shifting method and device, equipment and storage medium

By using terminal motion sensors to respond to user tapping operations in virtual vehicle games, the gear control of virtual vehicles is realized, which solves the problem that users cannot manually control gears and improves the accuracy and experience of game operations.

CN118892652APending Publication Date: 2024-11-05TENCENT TECHNOLOGY (SHENZHEN) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310489031.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-28
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

In the existing virtual vehicle games, users cannot manually control the gear of the virtual vehicle, resulting in the inability to achieve precise control.

Method used

By integrating motion sensors on the terminal, obtaining user tap operation data, and responsive to user tap operations to increase or lower the gear of the virtual vehicle, realizing manual gear control.

Benefits of technology

Users can accurately control the gear of the virtual vehicle through tapping operations to improve the accuracy and experience of game operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118892652A_ABST
    Figure CN118892652A_ABST
Patent Text Reader

Abstract

The invention discloses a gear shifting method, device and equipment of a virtual carrier and a storage medium, and belongs to the field of application programs supporting a virtual environment. The method comprises the following steps: displaying a virtual environment and a virtual carrier in a driving state in the virtual environment in a user interface; in the process of displaying the user interface, obtaining terminal motion data collected by a motion sensor in the terminal; knock operation for the terminal is determined according to the terminal motion data; and in response to a gear shifting instruction triggered by the knocking operation, displaying at least one of a gear for lifting the virtual carrier and a gear for lowering the virtual carrier according to the gear shifting instruction. The knocking operation is different from the touch operation for the display screen of the terminal, does not influence the touch operation of the user on the display screen, and has relatively high operation precision. Therefore, the user can accurately control the gear of the virtual carrier through the knocking operation, and accurate control over the virtual carrier is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of application programs supporting virtual environments, and in particular to a virtual vehicle shifting method, device, equipment and storage medium. Background Art

[0002] In racing games, users can control virtual vehicles to drive in a virtual environment.

[0003] The user's control of the virtual vehicle includes controlling the direction of the virtual vehicle (e.g., forward, backward, left turn, right turn), driving speed, and virtual props used (e.g., nitrogen acceleration props). For vehicles in the real world, there is a situation of gear switching during driving. The gear is inversely proportional to the acceleration ability of the vehicle and directly proportional to the maximum speed of the vehicle. In related technologies, virtual vehicles usually adopt an automatic gear shifting mode, that is, the gear of the virtual vehicle is automatically switched by the client.

[0004] The gear position of the virtual vehicle is automatically controlled through the automatic gear mode, but there is a situation where the user cannot manually control the gear position of the virtual vehicle, resulting in an inability to accurately control the virtual vehicle. Summary of the invention

[0005] The present application provides a virtual vehicle shifting method, device, equipment and storage medium, which can realize precise control of the virtual vehicle. The technical solution is as follows:

[0006] According to one aspect of the present application, a virtual vehicle shifting method is provided, the method being applied to a client on a terminal, the method comprising:

[0007] Displaying a virtual environment and the virtual vehicle in a driving state in the virtual environment in a user interface, wherein the virtual vehicle corresponds to at least two gears;

[0008] In the process of displaying the user interface, obtaining terminal motion data collected by a motion sensor in the terminal;

[0009] Determining a tapping operation on the terminal according to the terminal motion data, where the tapping operation is an operation of tapping a surface of the terminal;

[0010] In response to a gear shift instruction triggered by the tapping operation, at least one of raising the gear position of the virtual vehicle and lowering the gear position of the virtual vehicle is displayed according to the gear shift instruction.

[0011] According to another aspect of the present application, a gear shifting device for a virtual vehicle is provided, the device comprising:

[0012] A display module, used for displaying a virtual environment and the virtual vehicle in a driving state in the virtual environment in a user interface, wherein the virtual vehicle corresponds to at least two gear positions;

[0013] An acquisition module, used to acquire terminal motion data collected by a motion sensor in the terminal during the process of displaying the user interface;

[0014] a determination module, configured to determine a tapping operation on the terminal according to the terminal motion data, wherein the tapping operation is an operation of tapping a surface of the terminal;

[0015] The display module is also used to respond to a gear shift instruction triggered by the tapping operation, and display at least one of raising the gear position of the virtual vehicle and lowering the gear position of the virtual vehicle according to the gear shift instruction.

[0016] In an optional design, the display module is used to:

[0017] In response to a first gear shift instruction triggered by a first tapping operation, a display is provided to increase the gear position of the virtual vehicle; and / or, in response to a second gear shift instruction triggered by a second tapping operation, a display is provided to decrease the gear position of the virtual vehicle.

[0018] In an optional design, the determination module is used to determine that the first gear shift instruction is triggered in response to the first tapping operation in which the tapping position is located on the first side of the back of the terminal and the tapping direction is toward the inside of the terminal; the display module is used to display the gear position of the virtual vehicle in response to the first gear shift instruction;

[0019] The determination module is further used to determine the triggering of the second gear shift instruction in response to the second tapping operation in which the tapping position is located on the second side of the back side of the terminal and the tapping direction is toward the inside of the terminal; the display module is further used to display the lowering of the gear position of the virtual vehicle in response to the second gear shift instruction.

[0020] In an optional design, the determining module is used to:

[0021] Acquiring, by the motion sensor, the acceleration of the terminal generated by the tapping operation;

[0022] Determine an acceleration component of the acceleration at each virtual sampling point among a plurality of virtual sampling points, wherein the direction of the acceleration component is a direction perpendicular to the back side of the terminal, and the plurality of virtual sampling points are distributed in a dot matrix form on a plane parallel to the back side of the terminal;

[0023] Among the virtual sampling points located on the first side, a first virtual sampling point whose acceleration component satisfies a knocking condition is determined; among the virtual sampling points located on the second side, a second virtual sampling point whose acceleration component satisfies the knocking condition is determined; the knocking condition is used to indicate that the virtual sampling point is struck along a knocking direction, and the knocking direction is a direction perpendicularly pointing from the back of the terminal to the inside of the terminal;

[0024] When the first number is greater than the second number, the tapping operation is determined to be the first tapping operation; when the first number is less than the second number, the tapping operation is determined to be the second tapping operation; the first number is the number of the first virtual sampling points, and the second number is the number of the second virtual sampling points.

[0025] In an optional design, each virtual sampling point corresponds to an identifier, the identifiers corresponding to the virtual sampling points located on the first side have the same first feature, and the identifiers corresponding to the virtual sampling points located on the second side have the same second feature; the determining module is used to:

[0026] Determine, among the plurality of virtual sampling points, a target virtual sampling point at which the acceleration component satisfies the knocking condition;

[0027] When the identifier corresponding to the target virtual sampling point has the first feature, the target virtual sampling point is determined to be the first virtual sampling point; when the identifier corresponding to the target virtual sampling point has the second feature, the target virtual sampling point is determined to be the second virtual sampling point.

[0028] In an optional design, the determining module is used to:

[0029] When the absolute value of the acceleration component of the virtual sampling point is greater than a first threshold and less than a second threshold, and the direction of the acceleration component of the virtual sampling point is the tapping direction, it is determined that the virtual sampling point meets the tapping condition.

[0030] In an optional design, the display module is used to:

[0031] In response to the first gear shift instruction triggered by the first tapping operation for m consecutive times, displaying that the gear of the virtual vehicle is increased by one gear, where m is a positive integer;

[0032] In response to the second gear shift instruction triggered by n consecutive second tapping operations, the gear of the virtual vehicle is displayed to be reduced by one gear, where n is a positive integer.

[0033] In an optional design, the determination module is used to determine that the first gear shift instruction is triggered in response to the first tapping operation in which the tapping position is located on the frame of the third side of the terminal and the tapping direction is toward the inside of the terminal; the display module is used to display the gear position of the virtual vehicle in response to the first gear shifting instruction;

[0034] The determination module is further used to determine the triggering of the second gear shift instruction in response to the second tapping operation in which the tapping position is located on the border on the fourth side of the terminal and the tapping direction is toward the inside of the terminal; the display module is further used to display the lowering of the gear position of the virtual vehicle in response to the second gear shifting instruction.

[0035] In an optional design, the display module is used to:

[0036] In response to a first two-finger sliding operation along a first direction in the user interface, displaying a gear position for raising the virtual vehicle, wherein two sliding tracks of the first two-finger sliding operation are respectively located on two sides of the user interface;

[0037] and / or,

[0038] In response to a second two-finger sliding operation along a second direction in the user interface, a display is provided for lowering the gear of the virtual vehicle, and two sliding tracks of the second two-finger sliding operation are respectively located on two sides of the user interface.

[0039] In an optional design, the display module is used to:

[0040] In at least one of the following situations, a gear shift control is displayed in the user interface:

[0041] The distance between the virtual vehicle and the opponent virtual vehicle in the virtual environment is less than a first distance threshold;

[0042] The distance between the virtual vehicle and the curved road section in the virtual environment is less than a second distance threshold;

[0043] Wherein, the gear shift control is used to trigger at least one of lowering the gear of the virtual vehicle and raising the gear of the virtual vehicle.

[0044] In an optional design, the display module is used to:

[0045] When the shift mode of the virtual vehicle is in the automatic shift mode, in response to a continuous tapping operation, displaying in the user interface that the shift mode of the virtual vehicle is switched to the manual shift mode, wherein the continuous tapping operation is an operation of tapping the terminal continuously x times, where x is a positive integer;

[0046] When the gear shifting mode of the virtual vehicle is in the manual gear mode, in response to the gear shifting instruction triggered by the tapping operation, at least one of raising the gear position of the virtual vehicle and lowering the gear position of the virtual vehicle is displayed according to the gear shifting instruction.

[0047] According to another aspect of the present application, a computer device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the virtual vehicle shifting method as described above.

[0048] According to another aspect of the present application, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the computer-readable storage medium, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the virtual vehicle shifting method as described above.

[0049] According to another aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the virtual vehicle shifting method provided in various optional implementations of the above aspects.

[0050] The beneficial effects of the technical solution provided by this application include at least:

[0051] By tapping the terminal, the gear of the virtual vehicle (virtual vehicle) can be triggered, that is, the gear of the virtual vehicle can be raised and / or lowered. This tapping operation is different from the touch operation on the terminal display screen, and will not affect the user's touch operation on the display screen, and has a high operating accuracy. Therefore, the user can accurately control the gear of the virtual vehicle through the tapping operation, realizing precise control of the virtual vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0053] Figure 1is a schematic diagram of the relationship between vehicle speed and engine speed provided by an exemplary embodiment of the present application;

[0054] Figure 2 is a schematic diagram of a state of an object in a three-dimensional space provided by an exemplary embodiment of the present application;

[0055] Figure 3 is a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application;

[0056] Figure 4 is a structural block diagram of a computer system provided by an exemplary embodiment of the present application;

[0057] Figure 5 is a schematic diagram of a process of shifting gears of a virtual vehicle provided by an exemplary embodiment of the present application;

[0058] Figure 6 is a flowchart of a virtual vehicle shifting method provided by an exemplary embodiment of the present application;

[0059] Figure 7 is a schematic diagram of a user interface provided by an exemplary embodiment of the present application;

[0060] Figure 8 is a flowchart of a virtual vehicle shifting method provided by an exemplary embodiment of the present application;

[0061] Fig. 9 is a schematic diagram of a user interface provided by an exemplary embodiment of the present application;

[0062] Fig.10 is a schematic diagram of a virtual sampling point provided by an exemplary embodiment of the present application;

[0063] Fig.11 is a schematic diagram of a racing steering wheel provided by an exemplary embodiment of the present application;

[0064] Fig.12 is a schematic diagram of a virtual sampling point provided by an exemplary embodiment of the present application;

[0065] Fig.13 is a schematic diagram of an operation process of shifting gears provided by an exemplary embodiment of the present application;

[0066] Fig.14 is a structural schematic diagram of a gear shifting device of a virtual vehicle provided by an exemplary embodiment of the present application;

[0067] Fig.15 It is a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application.

[0068] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application. DETAILED DESCRIPTION

[0069] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0070] First, the terms involved in the embodiments of the present application are introduced:

[0071] Virtual environment: is a virtual environment displayed (or provided) when an application is running on a terminal. The virtual environment can be a simulation of the real world, a semi-simulation and semi-fictitious environment, or a purely fictitious environment. The virtual environment can be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment, which is not limited in the embodiments of the present application.

[0072] Virtual vehicle: refers to at least one movable object controlled by a user in a virtual environment. The virtual vehicle can be a vehicle that simulates a vehicle in the real world, or a semi-simulated and semi-fictitious vehicle, or a completely fictitious vehicle. The virtual vehicle includes at least one of an airborne vehicle, a water vehicle, and a land vehicle. Each virtual vehicle has its own shape and volume in the virtual environment and occupies a part of the space in the virtual environment. This application is mainly explained by taking the virtual vehicle as an example.

[0073] User Interface (UI) controls: refers to any visual controls or elements that can be seen on the user interface of an application, such as images, input boxes, text boxes, buttons, labels, etc. Some UI controls respond to user operations.

[0074] Manual transmission: Manual transmission in the real world refers to a manual shift mechanical transmission (also known as MT) used in cars. For manual transmission cars, the driver can use the shift lever to change the gear meshing position in the transmission to change the transmission ratio, thereby achieving the purpose of vehicle speed change. Manual transmission in this application refers to an operating mode in which the gear position of a virtual vehicle (virtual vehicle) is changed through user operation, thereby changing the transmission ratio of the virtual vehicle to adjust the speed of the virtual vehicle output (e.g., the speed of the virtual vehicle).

[0075] Gearbox (transmission): The function of the gearbox can be expressed by the following formula:

[0076]

[0077] Where, N represents the speed and r represents the reduction ratio. wheelIndicates the wheel speed, N eng Indicates the speed of the engine crankshaft end (engine speed), r trans Indicates the variable (different gear) reduction ratio of the gearbox, r final It is the other unchangeable reduction ratio part in the powertrain. The higher the gear, the higher the speed. trans The smaller it is, the same N wheel Required N eng It will also be smaller.

[0078] Upshift / downshift: If the vehicle (virtual vehicle) does not step on the accelerator after downshifting, it will slow down. If the vehicle steps on the accelerator after downshifting, it can increase the speed faster to achieve the effect of acceleration. Downshifting can increase torque and improve acceleration. Upshifting can increase the vehicle's top speed.

[0079] For example, Figure 1 FIG. 1 is a schematic diagram of the relationship between vehicle speed and engine speed provided by an exemplary embodiment of the present application. Figure 1 As shown in the figure, the higher the gear of the vehicle, the faster the vehicle speed at the same engine speed, so the main purpose of upshifting is to increase the vehicle's top speed. The lower the gear of the vehicle, the faster the engine speed at the same speed, so the main purpose of downshifting is to improve the vehicle's acceleration ability.

[0080] Six-dimensional (6D) detection: Figure 2 FIG. 1 is a schematic diagram of the state of an object in a three-dimensional space provided by an exemplary embodiment of the present application. Figure 2 As shown, an object in 3D space (such as a mobile phone) can be divided into 6 directions based on the spatial coordinate axis, such as Figure 2 Based on this, the hardware device can obtain its current spatial direction information and develop some related interactive operation applications, such as "tap" and "flip".

[0081] The method provided in this application can be applied to an application with a virtual environment and a virtual vehicle. Exemplarily, an application that supports a virtual environment is an application in which a user can control a virtual vehicle to move within a virtual environment. Exemplarily, the method provided in this application can be applied to any of the following programs: Virtual Reality (VR) applications, Augmented Reality (AR) programs, 3D map programs, Virtual Reality games, Augmented Reality games, First-Person Shooting Games (FPS), Third-Person Shooting Games (TPS), Multiplayer Online Battle Arena Games (MOBA), and Simulation Games (SLG).

[0082] Exemplarily, a game in a virtual environment is composed of one or more maps of the game world. The virtual environment in the game can simulate scenes in the real world. Users can control the virtual characters in the game to walk, run, jump, shoot, fight, drive, etc. in the virtual environment. They can also control virtual vehicles to travel in the virtual environment. The game has strong interactivity, and multiple users can form teams online to play competitive games.

[0083] In some embodiments, the above application programs may be shooting games, racing games, car racing games, role-playing games, adventure games, sandbox games, tactical competitive games, etc. The client may support at least one operating system among Windows operating system, Apple operating system, Android operating system, IOS operating system and LINUX operating system, and clients of different operating systems may be interconnected. In some embodiments, the above client is a program suitable for use on a mobile terminal with a touch screen.

[0084] For example, the virtual vehicle shifting method provided in the embodiments of the present application can be applied to applications that support racing games, and players can control the virtual vehicle to participate in virtual racing competitions. For another example, the virtual vehicle control method provided in the embodiments of the present application can be applied to applications that support role-playing games, and players can control the virtual vehicle to move in the virtual scene to meet the players' roaming and sightseeing needs.

[0085] In some embodiments, the client is an application developed based on a 3D engine, such as the 3D engine is the Unity engine.

[0086] The terminal in the present application can be a desktop computer, a laptop, a mobile phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) player, etc. A client that supports a virtual environment is installed and running in the terminal, such as a client that supports an application for a three-dimensional virtual environment. The application can be any one of a tactical competitive survival (Battle Royale, BR) game, a virtual reality application, an augmented reality program, a three-dimensional map program, a third-person shooter game, a first-person shooter game, a multiplayer online tactical competitive game, a racing game, and a racing game. Optionally, the application can be a stand-alone application, such as a stand-alone 3D game program, or it can be a networked application.

[0087] Figure 3 3 is a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application. The terminal includes a processor 301, a touch screen 302 and a memory 303.

[0088] The processor 301 may be at least one of a single-core processor, a multi-core processor, an embedded chip, and a processor with instruction execution capability.

[0089] The touch screen 302 includes a common touch screen or a pressure-sensitive touch screen. The common touch screen can measure a pressing operation or a sliding operation applied to the touch screen 302 ; the pressure-sensitive touch screen can measure the pressing force applied to the touch screen 302 .

[0090] The memory 303 stores the executable program of the processor 301. Schematically, the memory 303 stores a virtual environment program A, an application B, an application C, a touch (and pressure) sensing module 38, and a kernel layer 39 of the operating system. Among them, the virtual environment program A is an application developed based on the three-dimensional virtual environment module 37. Optionally, the virtual environment program A includes but is not limited to at least one of a game program, a virtual reality program, a three-dimensional map program, and a three-dimensional demonstration program developed by the three-dimensional virtual environment module (also referred to as the virtual environment module) 37. For example, when the operating system of the terminal adopts the Android operating system, the virtual environment program A is developed using the Java programming language and the C# language; for another example, when the operating system of the terminal adopts the IOS operating system, the virtual environment program A is developed using the Object-C programming language and the C# language.

[0091] The three-dimensional virtual environment module 37 is a module that supports multiple operating system platforms. Schematically, the three-dimensional virtual environment module can be used for program development in multiple fields such as game development, virtual reality (VR) and three-dimensional map. The embodiment of the present application does not limit the specific type of the three-dimensional virtual environment module 37.

[0092] The touch (and pressure) sensing module 38 is a module for receiving touch events (and pressure touch events) reported by the touch screen driver 391. Optionally, the touch sensing module may not have a pressure sensing function and does not receive pressure touch events. The touch event includes: the type and coordinate value of the touch event. The type of the touch event includes but is not limited to: a touch start event, a touch move event, and a touch drop event. The pressure touch event includes: the pressure value and coordinate value of the pressure touch event. The coordinate value is used to indicate the touch position of the pressure touch operation on the display screen.

[0093] Illustratively, the kernel layer 39 includes a touch screen driver 391 and other drivers 392. The touch screen driver 391 is a module for detecting pressure touch events. When the touch screen driver 391 detects a pressure touch event, it transmits the pressure touch event to the touch (and pressure) sensing module 38.

[0094] Other drivers 392 may be drivers related to the processor 301 , drivers related to the memory 303 , drivers related to network components, drivers related to sound components, drivers related to acceleration measurement components, and the like.

[0095] Those skilled in the art will appreciate that the above is only a general illustration of the structure of the terminal. In different embodiments, the terminal may have more or fewer components. For example, the terminal may also include an acceleration sensor, a gyroscope sensor, a power supply, and the like.

[0096] Figure 4 It is a structural block diagram of a computer system provided by an exemplary embodiment of the present application. The computer system 400 includes: a terminal 410 and a server cluster 420.

[0097] The terminal 410 is installed and runs a client 411 that supports a virtual environment, and the client 411 can be an application that supports a virtual environment. When the terminal runs the client 411, the user interface of the client 411 is displayed on the screen of the terminal 410. The client can be any one of an FPS game, a TPS game, a MOBA game, a competitive game, an SLG game, a racing game, and a car game. In this embodiment, the client 411 is an example of a car game. The terminal 410 is a terminal used by a first user 412, and the first user 412 uses the terminal 410 to control the travel of a virtual vehicle in the virtual environment. The first user 412 controls the virtual vehicle including moving forward, moving backward, turning left, turning right, shifting up, shifting down, throttle, braking, and accelerating with virtual props.

[0098] The device type of the terminal 410 includes at least one of a smart phone, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop computer, and a desktop computer.

[0099] Figure 4 Only one terminal is shown in the figure, but in different embodiments, there are multiple other terminals 440. In some embodiments, there is at least one other terminal 440 corresponding to the developer, and a development and editing platform of the client of the virtual environment is installed on the other terminal 440. The developer can edit and update the client on the other terminal 440, and transmit the updated client installation package to the server cluster 420 through a wired or wireless network. The terminal 410 can download the client installation package from the server cluster 420 to update the client.

[0100] The terminal 410 and other terminals 440 are connected to the server cluster 420 via a wireless network or a wired network.

[0101] The server cluster 420 includes at least one of a server, multiple servers, a cloud computing platform, and a virtualization center. The server cluster 420 is used to provide background services for clients that support a three-dimensional virtual environment. Optionally, the server cluster 420 undertakes the main computing work, and the terminal undertakes the secondary computing work; or, the server cluster 420 undertakes the secondary computing work, and the terminal undertakes the main computing work; or, the server cluster 420 and the terminal adopt a distributed computing architecture for collaborative computing.

[0102] Optionally, the above-mentioned terminal and server are both computer devices.

[0103] In an illustrative example, the server cluster 420 includes a server 421 and a server 426, and the server 421 includes a processor 422, a user account database 423, a battle service module 424, and a user-oriented input / output interface (I / O interface) 425. The processor 422 is used to load the instructions stored in the server 421, and process the data in the user account database 423 and the battle service module 424; the user account database 423 is used to store the data of the user account used by the terminal 410 and other terminals 440, such as the user account's avatar, the user account's nickname, the virtual vehicle owned by the user account, and the service area where the user account is located; the battle service module 424 is used to provide multiple battle rooms for users to fight; the user-oriented I / O interface 425 is used to establish communication and exchange data with the terminal 410 through a wireless network or a wired network.

[0104] In combination with the above introduction to the virtual environment and the description of the implementation environment, the gear shifting method of the virtual vehicle provided in the embodiment of the present application will be described below.

[0105] Figure 5 FIG. 1 is a schematic diagram of a process of shifting a virtual vehicle provided by an exemplary embodiment of the present application. Figure 5 As shown in (a), the client displays a user interface 501, in which a virtual environment 502 and a virtual vehicle 503 in a driving state are displayed, and the user interface 501 also displays the current gear position 504 of the virtual vehicle 503. For example, the virtual vehicle 503 is currently in the 4th gear.

[0106] like Figure 5 As shown in (b), when the shift mode of the virtual vehicle 503 is in the manual shift mode, in response to the first tapping operation of the tapping position being located at the first side of the back of the terminal and the tapping direction being toward the inside of the terminal for m consecutive times, the client determines that a first shifting instruction is triggered. Figure 5 As shown in (c), in response to a first gear shift instruction, the client displays that the gear position 504 of the virtual vehicle 503 is increased by one gear. For example, the gear position 504 of the virtual vehicle 503 is increased from the 4th gear to the 5th gear.

[0107] like Figure 5 As shown in (b), when the shift mode of the virtual vehicle 503 is in the manual shift mode, in response to the second tapping operation with the tapping position located at the second side of the back of the terminal and the tapping direction toward the inside of the terminal for n consecutive times, the client determines to trigger a second shift instruction. Figure 5 As shown in (d), in response to a second gear shift instruction, the client displays that the gear position 504 of the virtual vehicle 503 is reduced by one gear. For example, the gear position 504 of the virtual vehicle 503 is reduced from 4th gear to 3rd gear.

[0108] Exemplarily, the back side of the terminal refers to the side of the terminal opposite to the surface where the display screen is located. Figure 5 In (b), the first side of the back of the terminal (the left side in (b)) corresponds to the right side of the surface where the display screen is located (mirror image relationship), and the second side of the back of the terminal (the right side in (b)) corresponds to the left side of the surface where the display screen is located. m and n are both 2.

[0109] Optionally, when the shift mode of the virtual vehicle is in the automatic mode, in response to the continuous tapping operation, the client will display the virtual vehicle's shift mode switched to the manual mode in the user interface 501. The continuous tapping operation is an operation of tapping the terminal continuously x times, and optionally, x is 3.

[0110] By tapping the terminal, the gear of the virtual vehicle can be triggered to switch, that is, to increase the gear of the virtual vehicle and / or decrease the gear of the virtual vehicle. This tapping operation is different from the touch operation on the terminal display screen, and will not affect the user's touch operation on the display screen, and has high operation accuracy. Therefore, the user can accurately control the gear of the virtual vehicle by tapping, realizing precise control of the virtual vehicle.

[0111] Figure 6 FIG. 1 is a flow chart of a virtual vehicle shifting method provided by an exemplary embodiment of the present application. The method can be used for Figure 4 The terminal or the client on the terminal is shown. Figure 6 As shown, the method includes:

[0112] Step 602: Displaying a virtual environment and a virtual vehicle in a driving state in the virtual environment in a user interface.

[0113] The user interface refers to any interface in the client that can provide the function of controlling the driving of a virtual vehicle. For example, the user interface is an interface displayed when a user account controls a virtual vehicle to race with a virtual vehicle controlled by another user account, or an interface displayed when a user account completes a game task by controlling the driving of a virtual vehicle, or an interface displayed when a user account controls a virtual vehicle to race with a non-player character (NPC) virtual vehicle controlled by a client / server.

[0114] The virtual environment includes any one of a simulation environment of the real world, a semi-simulation and semi-fictional environment, and a purely fictional environment. The virtual environment is any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment. The virtual environment displays an area that supports the travel of virtual vehicles, and the virtual vehicle can travel in the area. Optionally, the virtual environment also displays areas that do not support the travel of virtual vehicles. For example, for virtual streams, virtual lakes, virtual oceans and other areas where virtual vehicles cannot travel. Exemplarily, for virtual vehicles, the areas that support the travel of virtual vehicles include virtual roads and non-virtual roads. Virtual roads are used to simulate roads in the real world, such as for simulating roads, highways, racetracks, etc. Optionally, the surrounding side of the virtual road also displays prompt elements such as shoulders, signs, and driving direction guide lines. Non-virtual roads are areas outside virtual roads, such as virtual lawns, virtual sidewalks, virtual woods, and other areas.

[0115] A virtual vehicle refers to at least one movable object controlled by a user account in a virtual environment. The virtual vehicle can be a vehicle that simulates a vehicle in the real world, or it can be a semi-simulated and semi-fictitious vehicle, or it can be a completely fictitious vehicle. A virtual vehicle is a virtual vehicle that supports gear shifting, and the virtual vehicle corresponds to at least two gears. For example, the virtual vehicle is a virtual vehicle, and the gears corresponding to the virtual vehicle are 1st gear, 2nd gear, 3rd gear, 4th gear, 5th gear, and 6th gear, respectively. Optionally, the virtual vehicle includes at least one of a vehicle traveling (flying) in airspace, a vehicle traveling (sailing) in water, and a vehicle traveling on land. Exemplarily, in the case where the virtual vehicle is a virtual vehicle, the virtual vehicle includes a virtual car, a sports car, a Formula One car, a kart, a bus, an electric car, a motorcycle, and the like.

[0116] Optionally, the user account controls the driving of the virtual vehicle by controlling the behavior of the driver of the virtual vehicle. Alternatively, the user account directly controls the driving of the virtual vehicle. Exemplarily, the user account's control of the virtual vehicle includes controlling the virtual vehicle to move forward, backward, turn left, turn right, shift up, shift down, throttle, brake, drift, use virtual props (such as acceleration props), etc.

[0117] For example, Figure 7 is a schematic diagram of a user interface provided by an exemplary embodiment of the present application. Figure 7 As shown, a virtual vehicle 720 is displayed in the user interface 710, and the virtual vehicle 720 travels in the virtual environment displayed in the user interface 710. The user interface 710 includes at least one of the following controls: a brake control 701, an energy control 702, a throttle control 703, a direction control 704, a handbrake control 705, and a reset control 706. The functions of each control are described as follows:

[0118] The brake control 701 is used to provide a function of controlling the speed reduction of the virtual vehicle 720. In response to the trigger operation on the brake control 701, the client will control the speed reduction of the virtual vehicle 720. For example, in response to a single click operation on the brake control 701, the speed of the virtual vehicle 720 will be reduced. And, in the case of keeping the brake control 701 pressed for a long time, the speed of the virtual vehicle 720 will continue to decrease. In addition, the speed reduction speed of the virtual vehicle 720 can be determined according to the touch force and / or touch duration of the brake control 701. For example, the greater the touch force, the faster the speed of the virtual vehicle 720 will be reduced, and the longer the touch duration, the faster the speed of the virtual vehicle 720 will be reduced.

[0119] The energy control 702 is used to indicate the stock of acceleration energy of the virtual vehicle 720. In response to the trigger operation on the energy control 702, the client can consume one unit of acceleration energy to provide the virtual vehicle 720 with an additional acceleration function (different from accelerating by stepping on the accelerator). Optionally, the storage control 707 of the acceleration energy is displayed on the peripheral side of the energy control 702, and the storage control 707 is used to indicate the storage of the acceleration energy corresponding to the virtual vehicle 720. Taking the acceleration energy as nitrogen as an example, the energy control 702 is used to indicate the stock of nitrogen that can be used to accelerate the virtual vehicle 720, such as the energy control 702 is used to indicate the stock of a bottle of nitrogen. Among them, the storage control 707 is used to indicate the number of nitrogen bottles corresponding to the virtual vehicle 720. In response to the trigger operation on the energy control 702, the client displays that a bottle of nitrogen is consumed to provide acceleration for the virtual vehicle 720, and displays a prompt message of consuming a bottle of nitrogen in the user interface 710.

[0120] The throttle control 703 is used to provide a function of controlling the speed (engine speed) of the virtual vehicle 720. In response to the trigger operation on the throttle control 703, the client controls the virtual vehicle 720 to accelerate. The trigger operation may be at least one of a single-click operation, a double-click operation, a touch operation, and a continuous pressing operation. Optionally, in response to the trigger operation on the throttle control 703, the throttle corresponding to the virtual vehicle 720 will automatically remain in a pressed state so that the virtual vehicle 720 maintains a continuous acceleration state. For example, the user clicks the throttle control 703 and then releases it, and the virtual vehicle 720 enters a state of continuous acceleration.

[0121] Optionally, when the virtual vehicle 720 is in a continuous acceleration state, the brake control 701 is also used to implement at least one of the functions of stopping acceleration, decelerating and reversing of the virtual vehicle 720. Optionally, after the virtual vehicle enters the continuous acceleration state, in response to the trigger operation on the brake control 701, the client controls the virtual vehicle 720 to stop accelerating, which is used to simulate the state of the throttle bouncing. Wherein, when the trigger operation on the brake control 701 is a single-click operation, the client controls the virtual vehicle 720 to stop accelerating and enter the natural deceleration state. The natural deceleration state refers to the state in which the virtual vehicle 720 is continuously decelerated by resistance factors, and the resistance factors include at least one of road resistance, air resistance and mechanical loss. When the trigger operation on the brake control 701 is a continuous pressing operation, the client controls the virtual vehicle 720 to stop accelerating and enter the continuous deceleration state, and the continuous deceleration state refers to the state in which the virtual vehicle 720 is continuously decelerated by resistance factors and brake resistance, and the brake resistance is generated according to the continuous pressing operation on the brake control 701. The above-mentioned road resistance refers to the friction between the tires of the virtual vehicle 720 and the ground, the air resistance refers to the resistance of the virtual vehicle 720 to the friction with the air during driving, the mechanical loss refers to the kinetic energy loss in the transmission device of the virtual vehicle 720, and the size of the braking resistance can be set according to actual needs. It should be understood that the natural deceleration state is related to the current vehicle speed. The greater the current vehicle speed, the greater the deceleration. Compared with the natural deceleration state, the deceleration speed in the continuous deceleration state is faster. For example, taking the initial vehicle speed of 100km / h as an example, in the natural deceleration state, it takes 60 seconds for the virtual vehicle 720 to decelerate to 0km / h, while it only takes 2.5 seconds in the continuous deceleration state. Optionally, when the virtual vehicle 720 is in a continuous deceleration state, if the speed of the virtual vehicle 720 drops to 0 and the continuous pressing on the brake control 701 still exists, the virtual vehicle 720 is controlled to enter the reverse state.

[0122] The direction control 704 is used to provide a function of controlling the driving direction (turning) of the virtual vehicle 720. Optionally, the direction control 704 includes a left turn control and a right turn control, which are used to realize the left turn and right turn of the virtual vehicle 720, respectively.

[0123] The handbrake control 705 is used to provide the braking / drifting function of the virtual vehicle 720. In the flat running state (non-drifting state, such as straight driving), in response to the trigger operation on the handbrake control 705, the client controls the speed of the virtual vehicle 720 to decrease. Optionally, in response to the operation of triggering the direction control 704 and the handbrake control 705 at the same time, the virtual vehicle 720 enters the drift (DRIFT) state. For example, in a left-turn curve, the direction control 704 is controlled to turn left and the handbrake control 705 is triggered to drift through the curve, or in a right-turn curve, the direction control 704 is controlled to turn right and the handbrake control 705 is triggered to drift through the curve.

[0124] The reset control 706 is used to provide a function of controlling the virtual vehicle 720 to restart. In response to the trigger operation on the reset control 706, the client controls the virtual vehicle 720 to be displayed again on the open road around the current virtual environment to control the virtual vehicle 720 to restart. The reset control 706 is usually used in the process of the virtual vehicle 720 getting out of trouble.

[0125] It should be noted that the above Figure 7 It is the human-computer interaction operation (signal) detected by the client through the display screen of the terminal to trigger the relevant functions of controlling the travel of the virtual vehicle. In addition, the client can also trigger the above-mentioned related functions of controlling the travel of the virtual vehicle through the control components integrated in the terminal or the signals generated by the control devices external to the terminal. For example, the travel of the virtual vehicle is controlled by signals generated by the joystick and physical buttons integrated in the terminal, and the mouse, keyboard, game controller and other devices external to the terminal. Optionally, the terminal is connected to the external device by wire or wirelessly. The embodiment of the present application does not limit the method of controlling the travel of the virtual vehicle.

[0126] Step 604: During the process of displaying the user interface, terminal motion data collected by a motion sensor in the terminal is obtained.

[0127] The motion sensor is a sensor for detecting the motion state of the terminal. For example, the motion sensor includes at least one of an acceleration sensor and a gyroscope sensor, and the embodiment of the present application does not limit the type of the motion sensor.

[0128] The motion state of the terminal includes at least one of the change in the terminal's position and the movement of the terminal (movement direction, movement speed). When the terminal is subjected to an external force that causes the motion state to change, the output data of the motion sensor in the terminal will also change accordingly to reflect the change in the motion state of the terminal.

[0129] Step 606: Determine a tapping operation on the terminal according to the terminal motion data.

[0130] The tapping operation is an operation of tapping the surface of the terminal. Optionally, the tapping operation is triggered by at least one of tapping the surface where the terminal display screen is located, tapping the back of the terminal, and tapping the frame around the terminal. The back of the terminal refers to the side of the terminal opposite to the surface where the display screen is located. That is, the tapping position of the tapping operation includes at least one of the surface where the display screen is located, the back of the terminal, and the frame around the terminal. The tapping direction of the tapping operation is toward the inside of the terminal.

[0131] It should be noted that for a foldable screen mobile phone, there may be multiple display screens. In this case, the surface where the above display screens are located includes the surface where the display screen currently used by the user is located, that is, the surface where the display screen displaying the above user interface is located.

[0132] The client determines whether there is a tapping operation and at least one of the tapping position, tapping direction and tapping force of the tapping operation through data collected by the motion sensor in the terminal. Optionally, the client periodically obtains data collected by the motion sensor to determine and obtain the tapping operation.

[0133] For example, the user taps the terminal with the tip of any finger to trigger the tapping operation; or the user taps the terminal with the pad of any finger to trigger the tapping operation; or the user taps the terminal with the knuckle of any finger to trigger the tapping operation. The user can also tap the terminal with other parts of the body or with the help of an instrument to trigger the tapping operation, which is not limited in the embodiments of the present application.

[0134] It should be noted that when the client controls the movement of the virtual vehicle through the signal generated by the control device external to the terminal, the client can also receive the above-mentioned tapping operation through the external device. For example, when the user taps the game controller, the client determines and obtains the tapping operation through the data collected by the motion sensor in the game controller.

[0135] Step 608: In response to the gear shift instruction triggered by the tapping operation, at least one of a gear position for raising the virtual vehicle and a gear position for lowering the virtual vehicle is displayed according to the gear shift instruction.

[0136] The client displays the virtual vehicle's gear position increased and / or decreased according to the gear shift instruction. Optionally, each time the first gear shift instruction is triggered, the client displays the virtual vehicle's gear position increased by one gear. And / or, each time the second gear shift instruction is triggered, the client displays the virtual vehicle's gear position decreased by one gear.

[0137] The first shift instruction and the second shift instruction are triggered by different tapping operations. Optionally, the different tapping operations include tapping operations with different tapping positions, tapping operations with different tapping directions, and tapping operations with different tapping positions and tapping directions. For example, a tapping operation on the first side of the back of the terminal can trigger the first shift instruction, and a tapping operation on the second side of the back of the terminal can trigger the second shift instruction. The first side of the back of the terminal refers to the side of the back of the terminal opposite to the right side of the display screen, and the second side of the back of the terminal refers to the side of the back of the terminal opposite to the left side of the display screen.

[0138] Optionally, a single tapping operation can trigger a shift instruction, or multiple consecutive tapping operations can trigger a shift instruction. Multiple consecutive times in the embodiment of the present application refers to multiple times within a preset duration, that is, when the client obtains multiple consecutive tapping operations within the preset duration, a shift instruction will be triggered. Optionally, the tapping operation can trigger the shift instruction only when the tapping force meets the conditions. Because if the shift instruction is triggered when the tapping force is small, there may be a false trigger. And because the tapping operation is detected by a motion sensor, the situation where the tapping force is large may be that the terminal has fallen or flipped. The conditions for the tapping force can be set by the developer or the user based on actual usage. Optionally, the client can also trigger the shift instruction in other ways, such as triggering the shift instruction through the human-computer interaction operation detected on the terminal display screen, which is not limited in the embodiment of the present application.

[0139] Only when the shift mode of the virtual vehicle is in the manual shift mode will the client respond to the tapping operation to trigger the shift instruction. The shift mode of the virtual vehicle also includes the automatic shift mode. The client can switch the shift mode of the virtual vehicle between the manual shift mode and the automatic shift mode according to the user's operation. For example, the manual shift mode is set by default, and then switched to the automatic shift mode according to the user's operation. Or the automatic shift mode is set by default, and then switched to the manual shift mode according to the user's operation. Optionally, when the shift mode of the virtual vehicle is in the automatic shift mode, in response to the continuous tapping operation on the terminal, the client will display that the shift mode of the virtual vehicle is switched to the manual shift mode. The continuous tapping operation is an operation of tapping the terminal continuously x times, where x is a positive integer.

[0140] In summary, the method provided in this embodiment can trigger the switching of the gear of the virtual vehicle by tapping the terminal, that is, raising the gear of the virtual vehicle and / or lowering the gear of the virtual vehicle. This tapping operation is different from the touch operation on the terminal display screen, and will not affect the user's touch operation on the display screen, and has high operation accuracy. Therefore, the user can accurately control the gear of the virtual vehicle through the tapping operation, thereby achieving precise control of the virtual vehicle.

[0141] Figure 8 FIG. 1 is a flow chart of a virtual vehicle shifting method provided by an exemplary embodiment of the present application. The method can be used for Figure 4 The terminal or the client on the terminal is shown. Figure 8 As shown, the method includes:

[0142] Step 802: Displaying a virtual environment and a virtual vehicle in a driving state in the virtual environment in a user interface.

[0143] The user interface is any interface in the client that can provide the function of controlling the driving of the virtual vehicle. The user interface is a horizontal user interface or a vertical user interface. A horizontal user interface is a user interface whose horizontal length is greater than the vertical length, and a vertical user interface is a user interface whose horizontal length is less than the vertical length.

[0144] The virtual environment displays an area that supports the driving of a virtual vehicle, and the virtual vehicle can drive in the area. The virtual vehicle can be a vehicle that simulates a vehicle in the real world, or a semi-simulated and semi-fictional vehicle, or a completely fictional vehicle. Exemplarily, the user account's control of the virtual vehicle includes controlling the virtual vehicle to move forward, backward, turn left, turn right, shift up, shift down, throttle, brake, drift, use virtual props (such as acceleration props), etc.

[0145] Step 804: During the process of displaying the user interface, terminal motion data collected by a motion sensor in the terminal is obtained.

[0146] The motion sensor is a sensor used to detect the motion state of the terminal. When the motion state of the terminal changes due to an external force, the output data of the motion sensor in the terminal will also change accordingly to reflect the change in the motion state of the terminal.

[0147] Step 806: Determine a tapping operation on the terminal according to the terminal motion data.

[0148] The tapping operation is an operation of tapping the surface of the terminal. Optionally, the tapping operation is triggered by at least one of tapping the surface where the terminal display screen is located, tapping the back of the terminal, and tapping the frame around the terminal. The back of the terminal refers to the side of the terminal opposite to the surface where the display screen is located.

[0149] The client uses the data collected by the motion sensor in the terminal to determine whether there is a tapping operation currently, thereby receiving the tapping operation. For example, when the data collected by the motion sensor changes, that is, when the position and posture of the terminal changes, the client receives the tapping operation. Based on the data collected by the motion sensor, the terminal can further determine at least one of the position of the tapping, the direction of the tapping, and the force of the tapping, thereby executing subsequent steps. Exemplarily, the above-mentioned motion sensor includes at least one of an acceleration sensor and a gyroscope sensor. Optionally, the client periodically obtains the data collected by the motion sensor, thereby determining and obtaining the tapping operation.

[0150] Optionally, for a virtual vehicle in a driving state, the client will receive a tapping operation, thereby triggering the execution of the following steps of switching the gear shift mode and switching the gear of the virtual vehicle according to the tapping operation. For a virtual vehicle in a non-driving state, the client will not judge and receive the tapping operation. Alternatively, for a virtual vehicle in a non-driving state, the client will also judge and receive the tapping operation to trigger the execution of the following steps. Exemplarily, the driving state is a state in which the virtual vehicle is not stationary.

[0151] Step 808: When the gear shifting mode of the virtual vehicle is in the automatic gear shifting mode, in response to a continuous tapping operation, the gear shifting mode of the virtual vehicle is displayed in the user interface as being switched to the manual gear shifting mode.

[0152] Automatic mode refers to a mode in which the client / server automatically controls the gear position of the virtual vehicle according to the speed (acceleration / deceleration) of the virtual vehicle. Manual mode refers to a mode in which the client / server switches the gear position of the virtual vehicle according to the user's operation. The client can switch the gear shift mode of the virtual vehicle between manual mode and automatic mode according to the user's operation.

[0153] The above-mentioned continuous tapping operation is an operation of tapping the terminal continuously for x times, where x is a positive integer. Continuous tapping for x times means that x tapping is detected within a first preset time length. Among them, the first preset time length is set by the developer or user, and x is set by the developer or user. Exemplarily, x is 3. The tapping position of each tap in the continuous tapping operation is the same or different, and the tapping position includes at least one of the surface where the terminal display screen is located, the back of the terminal, and the frame of the terminal. For example, the continuous tapping operation refers to the operation of tapping the back of the terminal continuously for 3 times. Optionally, in addition to being able to switch the automatic gear mode to the manual gear mode, the continuous tapping operation can also switch the manual gear mode back to the automatic gear mode.

[0154] For example, Fig. 9 is a schematic diagram of a user interface provided by an exemplary embodiment of the present application. Fig. 9 As shown in (a), the user interface 901 displayed by the client includes a virtual environment 902 and a virtual vehicle 903 in a driving state in the virtual environment 902. At this time, the shift mode of the virtual vehicle 903 is an automatic shift mode. Optionally, the client will display information in the user interface 901 to indicate the current shift mode, such as Fig. 9 The "automatic" in (a) is Fig. 9 As shown in (b), in response to receiving three consecutive tapping operations on the back of the terminal, the client switches the shift mode of the virtual vehicle 903 to the manual mode. Fig. 9As shown in (c), the client displays the switching information 904 of the gear shift mode in the user interface 901 to indicate that the gear shift mode of the virtual vehicle 903 has changed. Optionally, the client may display information for prompting the current gear shift mode in the user interface 901, such as Fig. 9 in (c) “Manual”.

[0155] Optionally, the tapping operation is determined to be valid only when the client determines that the force of the tapping operation meets certain conditions, thereby triggering the virtual vehicle's shift mode to switch to a manual mode or switching the gear of the virtual vehicle through the tapping operation. The detection of the tapping operation is described in detail below.

[0156] It is understandable that tapping the terminal will cause changes in the data of the motion sensor (accelerometer and / or gyroscope sensor) in the terminal. To determine the tapped state of the terminal, the stable state of the terminal must first be defined. The purpose of confirming the stable state is to reduce misjudgment and improve the accuracy of interactive operation judgment. The specific judgment process can be achieved through virtual sampling points.

[0157] For example, Fig.10 FIG. 1 is a schematic diagram of a virtual sampling point provided by an exemplary embodiment of the present application. Fig.10 As shown, in order to facilitate the determination of the stable state of the terminal 1001, the terminal 1001 can be understood as a plane in the 3D space (i.e., the thickness of the terminal is not considered, such as a plane perpendicular to the back of the terminal). A plurality of (e.g., 100, the number is configurable) virtual sampling points 1002 are arranged on the plane, and the virtual sampling points 1002 can be regarded as being used to transmit data (e.g., the acceleration of a single point) to the motion sensor built into the terminal 1001, thereby obtaining the output data of the motion sensor. In other words, by determining the component of the output data of the motion sensor at the position of each virtual sampling point 1002, the data collected by the motion sensor for the position of each virtual sampling point 1002, such as acceleration, can be obtained.

[0158] Assuming that the number of virtual sampling points is max(A), when the absolute value of the acceleration of a virtual sampling point changes, it means that the terminal may have interacted. For example, when the user clicks the screen on the front of the terminal, the terminal will also generate a weak acceleration in space. Optionally, based on the results of actual tests, developers can set the trigger interval a1 to b1 in the client to confirm the tapping interaction (i.e., the tapping operation is valid). a1 and b1 are positive numbers, representing the interval of the absolute value of the acceleration of the valid tapping operation.

[0159] Continue to refer to Fig.10, when the user holds the terminal, the usual tapping interaction usually occurs on the Z-axis (the direction perpendicular to the back of the terminal). Set the acceleration of the virtual sampling point on the Z-axis to Z, and the absolute value to |Z|. For the acceleration of a certain virtual sampling point, it is divided into the following situations:

[0160] When |Z| < a1, the terminal may have had a more subtle interaction such as a click.

[0161] When a1 ≤ |Z| ≤ b1, the terminal is in the tapping range and may have had an effective tapping operation.

[0162] When |Z| > b1, the terminal may have had an interaction such as a fall or a flip.

[0163] When |Z| > 0 for a certain virtual sampling point, it can be considered that an interaction has occurred at the virtual sampling point of the device. Conversely, when |Z| = 0 for all virtual sampling points, it can be considered that the terminal has reached a stable state.

[0164] The client can determine the acceleration component of the acceleration output by the motion sensor at each virtual sampling point, and thus determine the acceleration component of each virtual sampling point in the Z-axis direction. When the absolute value of the acceleration component is within the trigger range and the direction is the positive direction of the Z-axis, the client determines that it has received an effective tapping operation on the back of the terminal. It should be noted that for the detection principle of tapping operations on the front of the terminal and the terminal frame, reference can be made to the above description, and the embodiments of the present application will not be elaborated here.

[0165] Optionally, the client can also switch the gear shift mode of the virtual vehicle through the human-computer interaction operation on the display screen. For example, the client displays a gear shift mode control in the user interface, and the current gear shift mode of the virtual vehicle is displayed in this control. In response to a touch operation on this gear shift mode control, the client switches the current gear shift mode. For example, if the current is the automatic gear mode, it is switched to the manual gear mode, or if the current is the manual gear mode, it is switched to the automatic gear mode. Optionally, the client displays this gear shift mode control in a set scenario, such as a scenario where the user may need to manually control the gear. This set scenario includes at least one of the distance between the virtual vehicle and the opponent virtual vehicle in the virtual environment being less than the first distance threshold and the distance between the virtual vehicle and the curved road section in the virtual environment being less than the second distance threshold.

[0166] Optionally, the client can also predict the moment of displaying the shift mode control through a machine learning model. The machine learning model is trained by manually annotated data. The manually annotated data includes manually annotated game parameters for the time period when the manual gear mode needs to be executed, and the game parameters are used to reflect the operation of the game, such as the current game mode (qualifying mode, regular matching mode, task completion mode, etc.), the speed of the virtual vehicle, the type of road the virtual vehicle is currently on (straight road, curve, U-shaped curve, continuous curve), the distance between the virtual vehicle and other virtual vehicles, etc. During operation, the client will periodically obtain game parameters and predict whether it is necessary to enter the manual gear mode under the game parameters through a machine learning model. In the case where the prediction result is that the manual gear mode needs to be entered, the client displays the shift mode control, or directly switches to the manual gear mode. In the case where the prediction result is that there is no need to enter the manual gear mode and the current manual gear mode is in the manual gear mode, the client displays the shift mode control, or directly switches to the automatic gear mode. It should be noted that this solution and the aforementioned tapping to switch the shift mode solution can exist at the same time.

[0167] Step 810: When the shift mode of the virtual vehicle is in the manual shift mode, in response to a shift instruction triggered by a tapping operation, at least one of raising the gear position of the virtual vehicle and lowering the gear position of the virtual vehicle is displayed according to the shift instruction.

[0168] The client will only respond to the tapping operation to trigger the shifting instruction when the shifting mode of the virtual vehicle is in the manual shifting mode. Optionally, in response to the first shifting instruction triggered by the first tapping operation, the client displays the gear position of the virtual vehicle. And / or, in response to the second shifting instruction triggered by the second tapping operation, the client displays the gear position of the virtual vehicle. Among them, at least one of the tapping position, tapping direction and tapping force of the first tapping operation and the second tapping operation is different.

[0169] In response to a first gear shift instruction triggered by m consecutive first tap operations, the client displays that the gear of the virtual vehicle is increased by one gear. That is, if the client detects m first tap operations within the second preset time, it will trigger a first gear shift instruction, thereby increasing the gear of the virtual vehicle by one gear. Wherein, m is a positive integer. m and the second preset time are set by the developer or user.

[0170] In response to a second gear shift instruction triggered by n consecutive second tapping operations, the gear of the virtual vehicle is displayed to be lowered by one gear. That is, when the client detects n second tapping operations within the third preset time, it will trigger a second gear shift instruction, thereby lowering the gear of the virtual vehicle by one gear. Wherein, n is a positive integer. n and the third preset time are set by the developer or user.

[0171] For tapping the back of the terminal:

[0172] In response to a first tapping operation in which the tapping position is located on a first side of the back of the terminal and the tapping direction is toward the inside of the terminal, the client determines that a first gear shift instruction is triggered. Thereafter, in response to the first gear shift instruction, the client displays a gear position for raising the virtual vehicle. In response to a second tapping operation in which the tapping position is located on a second side of the back of the terminal and the tapping direction is toward the inside of the terminal, the client determines that a second gear shift instruction is triggered. Thereafter, in response to the second gear shift instruction, the client displays a gear position for lowering the virtual vehicle.

[0173] Optionally, the first side of the back of the terminal refers to the side of the back of the terminal opposite to the right side of the front of the terminal (the surface where the display screen is located); the second side of the back of the terminal refers to the side of the back of the terminal opposite to the left side of the front of the terminal. Alternatively, the first side of the back of the terminal refers to the side of the back of the terminal opposite to the left side of the front of the terminal; the second side of the back of the terminal refers to the side of the back of the terminal opposite to the right side of the front of the terminal. Alternatively, the first side of the back of the terminal refers to the side of the back of the terminal opposite to the upper side of the front of the terminal; the second side of the back of the terminal refers to the side of the back of the terminal opposite to the lower side of the front of the terminal. Alternatively, the first side of the back of the terminal refers to the side of the back of the terminal opposite to the lower side of the front of the terminal; the second side of the back of the terminal refers to the side of the back of the terminal opposite to the upper side of the front of the terminal. It should be noted that the front of the terminal and the back of the terminal are in a mirror image relationship.

[0174] In the case where the upshift is realized by tapping the back panel (back) corresponding to the right side of the front of the terminal, and the downshift is realized by tapping the back panel corresponding to the left side of the front of the terminal, the user can conveniently shift gears manually by tapping the back panel of the terminal. This experience is similar to the shifting experience of the shift paddles on the steering wheel of a racing car. Fig.11 FIG. 1 is a schematic diagram of a racing steering wheel provided by an exemplary embodiment of the present application. Fig.11 As shown, a right shift paddle 1101 and a left shift paddle 1102 are provided on the back of the racing steering wheel. Tapping the right shift paddle 1101 is for upshifting, and tapping the left shift paddle 1102 is for downshifting, and the tapping process is to tap from the side of the shift paddle away from the steering wheel to the direction close to the steering wheel. The above-mentioned shifting method provided in the embodiment of the present application is intuitive and allows users to operate the racing game more simply and obtain a better gaming experience. Compared with automatic acceleration (automatic gear mode), users can experience the fun of decision-making in each gear shift, making the game more playable. The above-mentioned interactive operation innovatively designed for manual shifting provided in the embodiment of the present application concisely solves the pain point of the lack of concise manual shifting interaction in current racing games, and meets the various demands of users in racing games.

[0175] Similar to the description in step 806 above, optionally, the client needs to detect the received tapping operation to determine whether the tapping operation is valid (whether it can trigger a gear shift instruction) and whether the first gear shift instruction or the second gear shift instruction is triggered.

[0176] Optionally, a motion sensor is provided in the terminal. The client obtains the acceleration generated by the terminal under the tapping operation through the motion sensor, and determines the acceleration component of the acceleration at each virtual sampling point in the multiple virtual sampling points. The direction of the acceleration component is perpendicular to the direction of the back of the terminal, and the multiple virtual sampling points are distributed in a dot matrix on a plane parallel to the back of the terminal. For the virtual sampling points, refer to Fig.10 Description in .

[0177] Among the virtual sampling points located on the first side, the client determines a first virtual sampling point whose acceleration component satisfies a tapping condition. Among the virtual sampling points located on the second side, the client determines a second virtual sampling point whose acceleration component satisfies a tapping condition. The tapping condition is used to indicate that the virtual sampling point is tapped along a tapping direction, which is a direction from the back of the terminal vertically pointing to the inside of the terminal. Afterwards, when the first number is greater than the second number, the client determines that the tapping operation is a first tapping operation, thereby triggering a first shift instruction. When the first number is less than the second number, the client determines that the tapping operation is a second tapping operation, thereby triggering a second shift instruction. The first number is the number of the first virtual sampling points, and the second number is the number of the second virtual sampling points.

[0178] Optionally, each virtual sampling point has a corresponding identifier, and the identifiers corresponding to the virtual sampling points on the first side have the same first feature, and the identifiers corresponding to the virtual sampling points on the second side have the same second feature. Optionally, the identifier includes the number of the virtual sampling point and / or the coordinates of the virtual sampling point (coordinates on the distribution plane). For example, in the case where the identifier is the number of the virtual sampling point, the same feature refers to one or more digits of the number being the same. For example, the unit digit of the number on the first side is 1-5, and the unit digit of the number on the second side is 6-10 (0). In the case where the identifier is the coordinates of the virtual sampling point, the same feature refers to the horizontal coordinates of the virtual sampling points on the first side are all greater than a certain value, and the horizontal coordinates of the virtual sampling points on the second side are all less than a certain value. Alternatively, the horizontal coordinates of the virtual sampling points on the first side are all less than a certain value, and the horizontal coordinates of the virtual sampling points on the second side are all greater than a certain value. Alternatively, the vertical coordinates of the virtual sampling points on the first side are all greater than a certain value, and the vertical coordinates of the virtual sampling points on the second side are all less than a certain value. Alternatively, the vertical coordinates of the virtual sampling points on the first side are all greater than a certain value, and the vertical coordinates of the virtual sampling points on the second side are all less than a certain value. Alternatively, the vertical coordinates of the virtual sampling points on the first side are all less than a certain value, and the vertical coordinates of the virtual sampling points on the second side are all greater than a certain value. For example, the units digit of the numbering on the first side is 1-5, and the units digit of the numbering on the second side is 6-10 (0). For example, the horizontal coordinates on the first side are all less than 50, and the horizontal coordinates on the second side are all greater than 50.

[0179] When determining the number of the first virtual sampling point and the second virtual sampling point, the client determines a target virtual sampling point whose acceleration component satisfies the tapping condition among the multiple virtual sampling points. Then, when the identifier corresponding to the target virtual sampling point has the first feature, the client determines the target virtual sampling point to be the first virtual sampling point. When the identifier corresponding to the target virtual sampling point has the second feature, the client determines the target virtual sampling point to be the second virtual sampling point.

[0180] Optionally, when the absolute value of the acceleration component of the virtual sampling point is greater than the first threshold and less than the second threshold, and the direction of the acceleration component of the virtual sampling point is the tapping direction, it is determined that the virtual sampling point meets the tapping condition. For example, taking the direction perpendicular to the back of the terminal pointing to the inside of the terminal as the positive direction, when the absolute value of the acceleration component is greater than the first threshold and less than the second threshold, and the acceleration component is positive, the client determines that the virtual sampling point meets the tapping condition. Exemplarily, the first threshold is the above-mentioned a1, and the second threshold is the above-mentioned b1.

[0181] For example, Fig.12 FIG. 1 is a schematic diagram of a virtual sampling point provided by an exemplary embodiment of the present application. Fig.12 As shown, it is assumed that the number of virtual sampling points 1202 corresponding to the terminal 1201 is max(A)=50. At this time, all virtual sampling points 1202 can be numbered. That is, the numbers from 1 to 50 in the figure. When the terminal 1201 has a tapping interaction, such as Fig.12 As shown in (a), when there are more virtual sampling points 1202 with the unit digits of 1, 2, 3, 4, and 5 among the virtual sampling points 1202 that generate acceleration (satisfy the tapping condition), the position where the tapping operation occurs is biased to the right. Fig.12 As shown in (b), when there are more virtual sampling points 1202 with the unit digits of 6, 7, 8, 9, and 10, the tapping operation occurs on the left side. Due to the posture characteristics of the human hand holding the terminal, the probability of interaction close to the middle is low, so it can be determined that most tapping operations have obvious bias, that is, biased to the left or right.

[0182] It should be noted that the detection of the tapping operation by the client and the detection of the tapping position and whether the tapping operation is valid (ie, identifying whether it is the first tapping operation / the second tapping operation) can be implemented as two steps or combined into one step.

[0183] For the case of tapping the terminal border:

[0184] In response to a first tapping operation in which the tapping position is located on the frame of the third side of the terminal and the tapping direction is toward the inside of the terminal, the client determines that a first gear shift instruction is triggered. Then, in response to the first gear shift instruction, the client displays a gear position for raising the virtual vehicle.

[0185] In response to a second tapping operation in which the tapping position is located at the frame of the fourth side of the terminal and the tapping direction is toward the inside of the terminal, the client determines that a second gear shift instruction is triggered. Then, in response to the second gear shift instruction, a gear position of the virtual vehicle is displayed to be lowered.

[0186] Optionally, the third side refers to the left side, and the fourth side refers to the right side. Alternatively, the third side refers to the right side, and the fourth side refers to the left side. Alternatively, the third side refers to the upper side, and the fourth side refers to the lower side. Alternatively, the third side refers to the lower side, and the fourth side refers to the upper side. It should be noted that the client will also detect the validity of the tapping operation on the terminal frame. For the specific detection process of the tapping operation on the terminal frame, reference can be made to the aforementioned detection process of the tapping operation on the back of the terminal, and the embodiments of the present application will not be repeated here.

[0187] For situations where the gear shift command is triggered by other means:

[0188] In response to a first two-finger sliding operation along a first direction in the user interface, the client displays a gear position for raising the virtual vehicle. And / or, in response to a second two-finger sliding operation along a second direction in the user interface, the client displays a gear position for lowering the virtual vehicle. The two sliding tracks of the first two-finger sliding operation are respectively located on two sides of the user interface, and the two sliding tracks of the second two-finger sliding operation are respectively located on two sides of the user interface.

[0189] Optionally, the two sliding tracks of the first two-finger sliding operation and the second two-finger sliding operation are respectively located on the left and right sides of the user interface. The first direction is opposite to the second direction, for example, the first direction is upward and the second direction is downward. Since the user usually uses both hands to operate on the left and right sides of the user interface respectively, when the user switches gears through the above scheme, the user can use the thumbs of both hands to slide up at the same time, thereby triggering the gear of the virtual vehicle to be increased by one gear. And / or, use the thumbs of both hands to slide down at the same time, thereby triggering the gear of the virtual vehicle to be reduced by one gear. Since the gear switching is triggered by a two-finger operation, and other operations in the game are usually single-finger operations, the probability of misjudgment by the client is low, and the gear of the virtual vehicle can be accurately controlled.

[0190] Optionally, the client displays a gear shift control in the user interface in at least one of the following situations:

[0191] The distance between the virtual vehicle and the opponent's virtual vehicle in the virtual environment is less than a first distance threshold;

[0192] The distance between the virtual vehicle and the curved road section in the virtual environment is less than a second distance threshold (in this case, the virtual vehicle is a virtual car).

[0193] The opponent virtual vehicle is a virtual vehicle controlled by other users or clients / servers. The first distance threshold and the second distance threshold are set by the client or the user. The gear shift control is used to trigger at least one of lowering the gear of the virtual vehicle and raising the gear of the virtual vehicle. Optionally, the gear shift control includes a first control and a second control, the first control is used to trigger raising the gear of the virtual vehicle by one gear, and the second control is used to trigger lowering the gear of the virtual vehicle by one gear. The user can set the position of the gear shift control in the user interface for user operation.

[0194] It should be noted that the above-mentioned scheme of triggering the gear shift instruction not by tapping in the embodiment of the present application can be run simultaneously with the scheme of triggering the gear shift instruction by tapping.

[0195] Through the method provided in the embodiment of the present application, users can use manual gear to operate virtual vehicles easily and smoothly on mobile devices, and the shifting process can be implemented in a way that fits the operation of car shift paddles in the real world, making the interaction method more diverse. At the same time, due to the introduction of the manual gear design, racing games can be more fun to operate and the gaming experience is improved. Users can switch between low gear and high gear conveniently and smoothly, which also increases the upper limit of operation and increases the fun of the game. In addition, in the game using the method provided in the embodiment of the present application, for the experience of controlling the virtual vehicle through a curve, since the user can control the gear of the virtual vehicle, the uncertainty of the game can be increased, and the gaming experience of advanced players can be improved.

[0196] In summary, the method provided in this embodiment can trigger the switching of the gear of the virtual vehicle by tapping the terminal, that is, raising the gear of the virtual vehicle and / or lowering the gear of the virtual vehicle. This tapping operation is different from the touch operation on the terminal display screen, and will not affect the user's touch operation on the display screen, and has high operation accuracy. Therefore, the user can accurately control the gear of the virtual vehicle through the tapping operation, thereby achieving precise control of the virtual vehicle.

[0197] The method provided in this embodiment also triggers raising or lowering the gear of the virtual vehicle through different tapping operations, thereby achieving precise control of the gear of the virtual vehicle.

[0198] The method provided in this embodiment also triggers the operation of raising or lowering the gear of the virtual vehicle by tapping different positions on the back of the terminal. The user can selectively switch the gear of the virtual vehicle by tapping different positions on the back of the terminal, thereby realizing precise control of the gear of the virtual vehicle.

[0199] The method provided in this embodiment also determines the gear shift instruction triggered by the tapping operation through the acceleration at the virtual sampling point, and provides a solution for accurately identifying the tapping operation and thus triggering the gear shift instruction.

[0200] The method provided in this embodiment also provides a solution for conveniently determining the location of the tapping operation by determining whether the tapping operation is located on the first side or the second side according to the identifier of the virtual sampling point.

[0201] The method provided in this embodiment can also avoid erroneous triggering of the gear shift instruction by triggering the gear shift instruction when the force and direction of the tapping operation meet the conditions.

[0202] The method provided in this embodiment can also effectively avoid misrecognition of the tapping operation by triggering the gear shift instruction through continuous multiple tapping.

[0203] The method provided in this embodiment also triggers the gear shift instruction by tapping the terminal border, providing a convenient and accurate solution for triggering the gear shift instruction.

[0204] The method provided in this embodiment also triggers the gear shift command by sliding two fingers in different directions, providing a scheme that is different from the conventional operation of controlling the virtual vehicle and can trigger the gear shift command. That is, it avoids conflicts with conventional operations and also realizes accurate control of the gear switching of the virtual vehicle.

[0205] The method provided in this embodiment also realizes precise control of the virtual vehicle by displaying a gear shift control in a scenario where manual control of the gear of the virtual vehicle may be required, so that the user can manually control the gear of the virtual vehicle through the gear shift control in this scenario.

[0206] The method provided in this embodiment also enables the user to flexibly switch the gear mode of the virtual vehicle according to their own needs by triggering the switch to the manual gear mode through continuous tapping operations when the virtual vehicle is in the automatic gear mode, thereby improving the user experience.

[0207] It should be noted that before collecting relevant user data (such as motion sensor data) and during the process of collecting relevant user data, this application can display a prompt interface, pop-up window or output voice prompt information. The prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining user-related data after obtaining the user's confirmation operation on the prompt interface or pop-up window, otherwise (that is, when the user's confirmation operation on the prompt interface or pop-up window is not obtained), the relevant steps of obtaining user-related data are terminated, that is, the user's relevant data is not obtained. In other words, all user data collected by this application are collected with the user's consent and authorization, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of relevant countries and regions.

[0208] It should be noted that the sequence of the method steps provided in the embodiments of the present application can be appropriately adjusted, and the steps can be increased or decreased accordingly according to the circumstances. Any technician familiar with the technical field can easily think of the changed methods within the technical scope disclosed in the present application, and they should be included in the protection scope of the present application, so they will not be repeated here.

[0209] In a specific example, Fig.13 FIG. 1 is a schematic diagram of the operation process of switching gears provided by an exemplary embodiment of the present application. Fig.13As shown, in step A1, the user taps the back panel of the device (terminal) three times. In step A2, the client detects whether the device is in a stable state, that is, whether the tapping operation is valid. In step A3, when the device is in a stable state, the client does not enter the manual gear mode. In step A4, when the device is not in a stable state, the client activates the manual gear mode. In step A5, the client maintains the manual gear mode. In step A6, the user taps the back panel of the device twice. In step A7, the client detects whether the acceleration of the tapping meets the set interval. In step A8, if the interval is not met, the tapping operation is determined to be invalid. In step A9, if the interval is met, the tapping operation is determined to be valid and there is a tapping interaction. In step A10, the client determines whether the right side is the majority of the virtual sampling points where there is interaction. In step A11, if the right side is the majority, the client determines it as a tapping operation on the right side. In step A12, the client controls the virtual vehicle to complete a shift up. In step A13, if the right side is not the majority, the client determines whether the left side is the majority among the virtual sampling points with interaction. In step A14, if the left side is the majority, the client determines that it is a tapping operation on the left side. In step A15, the client controls the virtual vehicle to complete a downshift.

[0210] The detection process of the aforementioned tapping operation is described below:

[0211] 1. Distribution of virtual sampling points:

[0212] Virtual sampling points are not actual hardware, but a data analysis model for the device acceleration sensor. Virtual sampling points are evenly distributed in the 3D plane where the device is located to form a surface. In a stable state, the acceleration of each virtual sampling point is zero. If there is an acceleration deviation at one or more virtual sampling points, the terminal stability can be determined.

[0213] 2. Tap recognition (whether the tap is effective):

[0214] By using the device's motion sensor combined with 3D space coordinates, the acceleration generated by the tapping is processed to determine whether the tapping is valid. First, the client processes the parameters of the motion sensor to obtain the absolute value of the acceleration at the virtual sampling point. If the absolute value is determined to be an unstable state, it can be considered that the device is indeed affected by a force, and a specific determination of the tapping can be made. If the absolute value of the acceleration is in the tapping interval a1≤|Z|≤b1 defined above, it can be determined that there is a tapping interaction (tapping operation) on the device.

[0215] 3. Identification of the tapping position (left or right):

[0216] Combined with the virtual sampling points mentioned in the first point, by numbering several virtual sampling points, in order to ensure the accuracy of recognition, the number of virtual sampling points cannot be too small. Fig.12 As shown, assuming that there are 50 sampling points, when the device has a tapping interaction, the sampling points with the units digit of the serial number being 1-5 can be defined as the right sampling points representing the right side of the device according to their positions in space; conversely, the sampling points with the units digit of the serial number being 6-10 are the left sampling points.

[0217] Combination Fig.10 , since current mobile devices can usually be regarded as a rigid body as a whole, and the rigid body will not undergo obvious deformation, the device will usually undergo spatial displacement as a whole, and the displacement direction (knock direction) can be determined by the positive and negative values ​​of the acceleration in space. When the device is in the spatial coordinates, and the left sampling point generates a positive acceleration on the Z axis, it can be considered that the left side of the device is hit, and it is determined to be a left-side knock. When the device is in the spatial coordinates, and the left sampling point generates a negative acceleration on the Z axis, it can be considered that the right side of the device is hit, and it is determined to be a right-side knock.

[0218] Fig.14 FIG. 1 is a schematic diagram of a gear shifting device of a virtual vehicle provided by an exemplary embodiment of the present application. Fig.14 As shown, the device comprises:

[0219] A display module 1401 is used to display the virtual environment and the virtual vehicle in a driving state in the virtual environment in a user interface, wherein the virtual vehicle corresponds to at least two gear positions;

[0220] An acquisition module 1402 is used to acquire terminal motion data collected by a motion sensor in the terminal during the process of displaying the user interface;

[0221] A determination module 1403, configured to determine a tapping operation on the terminal according to the terminal motion data, wherein the tapping operation is an operation of tapping on a surface of the terminal;

[0222] The display module 1401 is further configured to respond to a gear shift instruction triggered by the tapping operation, and display at least one of raising the gear position of the virtual vehicle and lowering the gear position of the virtual vehicle according to the gear shift instruction.

[0223] In an optional design, the display module 1401 is used to:

[0224] In response to a first gear shift instruction triggered by a first tapping operation, a display is provided to increase the gear position of the virtual vehicle; and / or, in response to a second gear shift instruction triggered by a second tapping operation, a display is provided to decrease the gear position of the virtual vehicle.

[0225] In an optional design, the determination module 1403 is used to determine that the first gear shift instruction is triggered in response to the first tapping operation in which the tapping position is located on the first side of the back of the terminal and the tapping direction is toward the inside of the terminal; the display module 1401 is used to display the gear position of the virtual vehicle in response to the first gear shifting instruction;

[0226] The determination module 1403 is further used to determine the triggering of the second gear shift instruction in response to the second tapping operation in which the tapping position is located on the second side of the back side of the terminal and the tapping direction is toward the inside of the terminal; the display module 1401 is further used to display the lowering of the gear position of the virtual vehicle in response to the second gear shift instruction.

[0227] In an optional design, the determining module 1403 is used to:

[0228] Acquiring, by the motion sensor, the acceleration of the terminal generated by the tapping operation;

[0229] Determine an acceleration component of the acceleration at each virtual sampling point among a plurality of virtual sampling points, wherein the direction of the acceleration component is a direction perpendicular to the back side of the terminal, and the plurality of virtual sampling points are distributed in a dot matrix form on a plane parallel to the back side of the terminal;

[0230] Among the virtual sampling points located on the first side, a first virtual sampling point whose acceleration component satisfies a knocking condition is determined; among the virtual sampling points located on the second side, a second virtual sampling point whose acceleration component satisfies the knocking condition is determined; the knocking condition is used to indicate that the virtual sampling point is struck along a knocking direction, and the knocking direction is a direction perpendicularly pointing from the back of the terminal to the inside of the terminal;

[0231] When the first number is greater than the second number, the tapping operation is determined to be the first tapping operation; when the first number is less than the second number, the tapping operation is determined to be the second tapping operation; the first number is the number of the first virtual sampling points, and the second number is the number of the second virtual sampling points.

[0232] In an optional design, each virtual sampling point corresponds to an identifier, the identifiers corresponding to the virtual sampling points located on the first side have the same first feature, and the identifiers corresponding to the virtual sampling points located on the second side have the same second feature; the determining module 1403 is used to:

[0233] Determine, among the plurality of virtual sampling points, a target virtual sampling point at which the acceleration component satisfies the knocking condition;

[0234] When the identifier corresponding to the target virtual sampling point has the first feature, the target virtual sampling point is determined to be the first virtual sampling point; when the identifier corresponding to the target virtual sampling point has the second feature, the target virtual sampling point is determined to be the second virtual sampling point.

[0235] In an optional design, the determining module 1403 is used to:

[0236] When the absolute value of the acceleration component of the virtual sampling point is greater than a first threshold and less than a second threshold, and the direction of the acceleration component of the virtual sampling point is the tapping direction, it is determined that the virtual sampling point meets the tapping condition.

[0237] In an optional design, the display module 1401 is used to:

[0238] In response to the first gear shift instruction triggered by the first tapping operation for m consecutive times, displaying that the gear of the virtual vehicle is increased by one gear, where m is a positive integer;

[0239] In response to the second gear shift instruction triggered by n consecutive second tapping operations, the gear of the virtual vehicle is displayed to be reduced by one gear, where n is a positive integer.

[0240] In an optional design, the determination module 1403 is used to determine that the first gear shift instruction is triggered in response to the first tapping operation in which the tapping position is located on the frame of the third side of the terminal and the tapping direction is toward the inside of the terminal; the display module 1401 is used to display the gear position of the virtual vehicle in response to the first gear shift instruction;

[0241] The determination module 1403 is further used to determine the triggering of the second gear shift instruction in response to the second tapping operation in which the tapping position is located on the border on the fourth side of the terminal and the tapping direction is toward the inside of the terminal; the display module 1401 is further used to display the lowering of the gear position of the virtual vehicle in response to the second gear shifting instruction.

[0242] In an optional design, the display module 1401 is used to:

[0243] In response to a first two-finger sliding operation along a first direction in the user interface, displaying a gear position for raising the virtual vehicle, wherein two sliding tracks of the first two-finger sliding operation are respectively located on two sides of the user interface;

[0244] and / or,

[0245] In response to a second two-finger sliding operation along a second direction in the user interface, a display is provided for lowering the gear of the virtual vehicle, and two sliding tracks of the second two-finger sliding operation are respectively located on two sides of the user interface.

[0246] In an optional design, the display module 1401 is used to:

[0247] In at least one of the following situations, a gear shift control is displayed in the user interface:

[0248] The distance between the virtual vehicle and the opponent virtual vehicle in the virtual environment is less than a first distance threshold;

[0249] The distance between the virtual vehicle and the curved road section in the virtual environment is less than a second distance threshold;

[0250] Wherein, the gear shift control is used to trigger at least one of lowering the gear of the virtual vehicle and raising the gear of the virtual vehicle.

[0251] In an optional design, the display module 1401 is used to:

[0252] When the shift mode of the virtual vehicle is in the automatic shift mode, in response to a continuous tapping operation, displaying in the user interface that the shift mode of the virtual vehicle is switched to the manual shift mode, wherein the continuous tapping operation is an operation of tapping the terminal continuously x times, where x is a positive integer;

[0253] When the gear shifting mode of the virtual vehicle is in the manual gear mode, in response to the gear shifting instruction triggered by the tapping operation, at least one of raising the gear position of the virtual vehicle and lowering the gear position of the virtual vehicle is displayed according to the gear shifting instruction.

[0254] It should be noted that the shifting device for a virtual vehicle provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the shifting device for a virtual vehicle provided in the above embodiment and the shifting method embodiment of a virtual vehicle belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0255] An embodiment of the present application also provides a computer device, which includes: a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the virtual vehicle shifting method provided in the above-mentioned method embodiments.

[0256] For example, Fig.15 It is a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application.

[0257] Typically, the terminal 1500 includes a processor 1501 and a memory 1502 .

[0258] The processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0259] The memory 1502 may include one or more computer-readable storage media, which may be non-transitory. The memory 1502 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1502 is used to store at least one instruction, which is used to be executed by the processor 1501 to implement the virtual vehicle shifting method provided in the method embodiment of the present application.

[0260] In some embodiments, the terminal 1500 may also optionally include: a peripheral device interface 1503 and at least one peripheral device. The processor 1501, the memory 1502 and the peripheral device interface 1503 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1503 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1504, a display screen 1505, a camera assembly 1506, an audio circuit 1507 and a power supply 1508.

[0261] The peripheral device interface 1503 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1501 and the memory 1502. In some embodiments, the processor 1501, the memory 1502, and the peripheral device interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1501, the memory 1502, and the peripheral device interface 1503 may be implemented on a separate chip or circuit board, which is not limited in the embodiments of the present application.

[0262] The radio frequency circuit 1504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1504 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1504 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1504 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1504 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0263] The display screen 1505 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1505 is a touch display screen, the display screen 1505 also has the ability to collect touch signals on the surface or above the surface of the display screen 1505. The touch signal can be input to the processor 1501 as a control signal for processing. At this time, the display screen 1505 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1505 can be one, and the front panel of the terminal 1500 is set; in other embodiments, the display screen 1505 can be at least two, which are respectively set on different surfaces of the terminal 1500 or are folded; in some other embodiments, the display screen 1505 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 1500. Even, the display screen 1505 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1505 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0264] The camera assembly 1506 is used to capture images or videos. Optionally, the camera assembly 1506 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal 1500, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1506 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0265] The audio circuit 1507 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1501 for processing, or input them into the radio frequency circuit 1504 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1500. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1501 or the radio frequency circuit 1504 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1507 may also include a headphone jack.

[0266] The power supply 1508 is used to power various components in the terminal 1500. The power supply 1508 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1508 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0267] In some embodiments, the terminal 1500 further includes one or more sensors 1509 , including but not limited to: an acceleration sensor 1510 , a gyroscope sensor 1511 , a pressure sensor 1512 , an optical sensor 1513 , and a proximity sensor 1514 .

[0268] The acceleration sensor 1510 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1500. For example, the acceleration sensor 1510 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1501 can control the touch display screen 1505 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1510. The acceleration sensor 1510 can also be used for collecting game or user motion data.

[0269] The gyro sensor 1511 can detect the body direction and rotation angle of the terminal 1500, and the gyro sensor 1511 can cooperate with the acceleration sensor 1510 to collect the user's 3D actions on the terminal 1500. The processor 1501 can implement the following functions based on the data collected by the gyro sensor 1511: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0270] The pressure sensor 1512 can be set on the side frame of the terminal 1500 and / or the lower layer of the touch display screen 1505. When the pressure sensor 1512 is set on the side frame of the terminal 1500, it can detect the user's holding signal of the terminal 1500, and the processor 1501 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1512. When the pressure sensor 1512 is set on the lower layer of the touch display screen 1505, the processor 1501 controls the operability controls on the UI interface according to the user's pressure operation on the touch display screen 1505. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0271] The optical sensor 1513 is used to collect the ambient light intensity. In one embodiment, the processor 1501 can control the display brightness of the touch display screen 1505 according to the ambient light intensity collected by the optical sensor 1513. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1505 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1505 is reduced. In another embodiment, the processor 1501 can also dynamically adjust the shooting parameters of the camera assembly 1506 according to the ambient light intensity collected by the optical sensor 1513.

[0272] The proximity sensor 1514, also called a distance sensor, is usually arranged on the front panel of the terminal 1500. The proximity sensor 1514 is used to collect the distance between the user and the front of the terminal 1500. In one embodiment, when the proximity sensor 1514 detects that the distance between the user and the front of the terminal 1500 is gradually decreasing, the processor 1501 controls the touch display screen 1505 to switch from the screen-on state to the screen-off state; when the proximity sensor 1514 detects that the distance between the user and the front of the terminal 1500 is gradually increasing, the processor 1501 controls the touch display screen 1505 to switch from the screen-off state to the screen-on state.

[0273] Those skilled in the art will understand that Fig.15 The structure shown in the figure does not constitute a limitation on the terminal 1500, and the terminal 1500 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0274] A computer-readable storage medium is also provided in an embodiment of the present application, in which at least one instruction, at least one program, code set or instruction set is stored. When the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor of a computer device, the virtual vehicle shifting method provided by the above-mentioned method embodiments is implemented.

[0275] The present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the virtual vehicle shifting method provided by each of the above method embodiments.

[0276] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned readable storage medium may be a read-only memory, a disk or an optical disk, etc.

[0277] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent switching, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A virtual vehicle shifting method, characterized in that: The method is applied to a client on a terminal, and the method comprises: Displaying a virtual environment and the virtual vehicle in a driving state in the virtual environment in a user interface, wherein the virtual vehicle corresponds to at least two gears; In the process of displaying the user interface, obtaining terminal motion data collected by a motion sensor in the terminal; Determining a tapping operation on the terminal according to the terminal motion data, where the tapping operation is an operation of tapping a surface of the terminal; In response to a gear shift instruction triggered by the tapping operation, at least one of raising the gear position of the virtual vehicle and lowering the gear position of the virtual vehicle is displayed according to the gear shift instruction.

2. The method according to claim 1, characterized in that The step of responding to the shift instruction triggered by the tapping operation and displaying at least one of raising the gear position of the virtual vehicle and lowering the gear position of the virtual vehicle according to the shift instruction comprises: In response to a first gear shift instruction triggered by a first tapping operation, a display is provided to increase the gear position of the virtual vehicle; and / or, in response to a second gear shift instruction triggered by a second tapping operation, a display is provided to decrease the gear position of the virtual vehicle.

3. The method according to claim 2, characterized in that The step of displaying a gear position of the virtual vehicle in response to the first gear shift instruction triggered by the first tapping operation comprises: In response to the first tapping operation in which the tapping position is located on the first side of the back of the terminal and the tapping direction is toward the inside of the terminal, determining that the first gear shift instruction is triggered; in response to the first gear shift instruction, displaying a gear position for raising the virtual vehicle; The step of displaying a lowering of the gear position of the virtual vehicle in response to the second gear shift instruction triggered by the second tapping operation comprises: In response to the second tapping operation in which the tapping position is located on the second side of the back side of the terminal and the tapping direction is toward the inside of the terminal, it is determined that the second gear shift instruction is triggered; in response to the second gear shift instruction, a lowering of the gear position of the virtual vehicle is displayed.

4. The method according to claim 3, characterized in that The method further comprises: Acquiring, by the motion sensor, the acceleration of the terminal generated by the tapping operation; Determine an acceleration component of the acceleration at each virtual sampling point among a plurality of virtual sampling points, wherein the direction of the acceleration component is a direction perpendicular to the back side of the terminal, and the plurality of virtual sampling points are distributed in a dot matrix form on a plane parallel to the back side of the terminal; Among the virtual sampling points located on the first side, a first virtual sampling point whose acceleration component satisfies a knocking condition is determined; among the virtual sampling points located on the second side, a second virtual sampling point whose acceleration component satisfies the knocking condition is determined; the knocking condition is used to indicate that the virtual sampling point is struck along a knocking direction, and the knocking direction is a direction perpendicularly pointing from the back of the terminal to the inside of the terminal; When the first number is greater than the second number, the tapping operation is determined to be the first tapping operation; when the first number is less than the second number, the tapping operation is determined to be the second tapping operation; the first number is the number of the first virtual sampling points, and the second number is the number of the second virtual sampling points.

5. The method according to claim 4, characterized in that Each of the virtual sampling points has a corresponding identifier, the identifiers corresponding to the virtual sampling points located on the first side have the same first feature, and the identifiers corresponding to the virtual sampling points located on the second side have the same second feature; Determining, among the virtual sampling points located on the first side, a first virtual sampling point where the acceleration component satisfies a knocking condition; Determining, among the virtual sampling points located on the second side, a second virtual sampling point where the acceleration component satisfies the knocking condition, comprises: Determine, among the plurality of virtual sampling points, a target virtual sampling point at which the acceleration component satisfies the knocking condition; When the identifier corresponding to the target virtual sampling point has the first feature, the target virtual sampling point is determined to be the first virtual sampling point; when the identifier corresponding to the target virtual sampling point has the second feature, the target virtual sampling point is determined to be the second virtual sampling point.

6. The method according to claim 4, characterized in that The method further comprises: When the absolute value of the acceleration component of the virtual sampling point is greater than a first threshold and less than a second threshold, and the direction of the acceleration component of the virtual sampling point is the tapping direction, it is determined that the virtual sampling point meets the tapping condition.

7. The method according to claim 2, characterized in that The step of displaying a gear position of the virtual vehicle in response to the first gear shift instruction triggered by the first tapping operation comprises: In response to the first gear shift instruction triggered by the first tapping operation for m consecutive times, displaying that the gear of the virtual vehicle is increased by one gear, where m is a positive integer; The step of displaying a lowering of the gear position of the virtual vehicle in response to the second gear shift instruction triggered by the second tapping operation comprises: In response to the second gear shift instruction triggered by n consecutive second tapping operations, the gear of the virtual vehicle is displayed to be reduced by one gear, where n is a positive integer.

8. The method according to any one of claims 2 to 7, characterized in that: The step of displaying a gear position of the virtual vehicle in response to the first gear shift instruction triggered by the first tapping operation comprises: In response to the first tapping operation in which the tapping position is located at the frame of the third side of the terminal and the tapping direction is toward the inside of the terminal, determining that the first gear shift instruction is triggered; in response to the first gear shift instruction, displaying a gear position for raising the virtual vehicle; The step of displaying a lowering of the gear position of the virtual vehicle in response to the second gear shift instruction triggered by the second tapping operation comprises: In response to the second tapping operation in which the tapping position is located on the frame on the fourth side of the terminal and the tapping direction is toward the inside of the terminal, it is determined that the second gear shift instruction is triggered; in response to the second gear shift instruction, a display is provided to lower the gear position of the virtual vehicle.

9. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In response to a first two-finger sliding operation along a first direction in the user interface, displaying a gear position for raising the virtual vehicle, wherein two sliding tracks of the first two-finger sliding operation are respectively located on two sides of the user interface; and / or, In response to a second two-finger sliding operation along a second direction in the user interface, a display is provided for lowering the gear of the virtual vehicle, and two sliding tracks of the second two-finger sliding operation are respectively located on two sides of the user interface.

10. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In at least one of the following situations, a gear shift control is displayed in the user interface: The distance between the virtual vehicle and the opponent virtual vehicle in the virtual environment is less than a first distance threshold; The distance between the virtual vehicle and the curved road section in the virtual environment is less than a second distance threshold; Wherein, the gear shift control is used to trigger at least one of lowering the gear of the virtual vehicle and raising the gear of the virtual vehicle.

11. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: When the shift mode of the virtual vehicle is in the automatic shift mode, in response to a continuous tapping operation, displaying in the user interface that the shift mode of the virtual vehicle is switched to the manual shift mode, wherein the continuous tapping operation is an operation of tapping the terminal continuously x times, where x is a positive integer; The step of responding to the shift instruction triggered by the tapping operation and displaying at least one of raising the gear position of the virtual vehicle and lowering the gear position of the virtual vehicle according to the shift instruction comprises: When the gear shifting mode of the virtual vehicle is in the manual gear mode, in response to the gear shifting instruction triggered by the tapping operation, at least one of raising the gear position of the virtual vehicle and lowering the gear position of the virtual vehicle is displayed according to the gear shifting instruction.

12. A gear shifting device for a virtual vehicle, characterized in that: The device comprises: A display module, used for displaying a virtual environment and the virtual vehicle in a driving state in the virtual environment in a user interface, wherein the virtual vehicle corresponds to at least two gear positions; An acquisition module, used to acquire terminal motion data collected by a motion sensor in the terminal during the process of displaying the user interface; a determination module, configured to determine a tapping operation on the terminal according to the terminal motion data, wherein the tapping operation is an operation of tapping a surface of the terminal; The display module is also used to respond to a gear shift instruction triggered by the tapping operation, and display at least one of raising the gear position of the virtual vehicle and lowering the gear position of the virtual vehicle according to the gear shift instruction.

13. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the virtual vehicle shifting method as described in any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The readable storage medium stores at least one program, and the at least one program is loaded and executed by the processor to implement the virtual vehicle shifting method as described in any one of claims 1 to 11.

15. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. The processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the virtual vehicle shifting method as described in any one of claims 1 to 11.