Virtual vehicle control method and device, equipment and medium
Through the sequential triggering operations of brake, energy and throttle control components in virtual racing games, cornering skills are released, solving the problem of difficulty in speeding up when virtual vehicles drifting in curves, and improving the rationality of driving trajectory and speed-up effect.
Patent Information
- Application Number
- CN202510428660.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-20
- Publication Date
- 2025-05-16
AI Technical Summary
In virtual racing games, virtual vehicles are difficult to effectively speed up when drifting in curves, resulting in unreasonable driving trajectory.
Through the sequential triggering operations on the brake control component, energy control component and throttle control component, the curve skill is released, so that the virtual vehicle is in an accelerated state within the skill release time.
It realizes effective speed increase of virtual vehicles during drifting out of corners, reduces the rear sliding distance, and improves the rationality of driving trajectory and speed-up effect.
Smart Images

Figure CN120001045A_ABST
Abstract
Description
[0001] This application is a divisional application with application number 202210557035.X, application date May 20, 2022, and invention name “Virtual vehicle control method, device, equipment and medium”. Technical Field
[0002] The present application relates to the field of virtual worlds, and in particular to a control method, device, equipment and medium for a virtual vehicle. Background Art
[0003] In online games with virtual environments, players can control a virtual object and control the activities and behaviors of the virtual object in the virtual world of the game. For example, in virtual racing, players can control a virtual vehicle to race or roam on a virtual road.
[0004] During the driving process, the virtual vehicle will encounter a curve, and a series of operations such as turning, passing the curve and exiting the curve need to be completed. During this process, the virtual vehicle may enter a drifting state, resulting in a drastic deceleration. Therefore, after drifting through the curve, the virtual vehicle needs to speed up. Summary of the invention
[0005] The embodiment of the present application provides a control method, device, equipment and medium for a virtual vehicle, which releases a cornering skill through triggering operations on an energy control component and a throttle control component to control the virtual vehicle to be in an accelerated driving state during the skill release time, thereby meeting the speed-up requirement of the virtual vehicle during the process of drifting out of a corner. The technical solution is as follows:
[0006] According to one aspect of the present application, a control method for a virtual vehicle is provided, the method comprising:
[0007] Displaying a virtual scene, wherein the virtual scene includes a virtual vehicle in a drifting state in a curve;
[0008] In response to a first trigger operation on the brake control component, controlling the speed of the virtual vehicle to decrease;
[0009] In response to a second trigger operation on the energy control component, displaying a prompt message for consuming acceleration energy;
[0010] In response to the third trigger operation on the throttle control component, the cornering skill is released, and the virtual vehicle is controlled to be in an accelerated driving state within the skill release duration of the cornering skill. The skill release duration of the cornering skill is used to indicate the duration of the virtual vehicle's acceleration. The skill release duration of the cornering skill is greater than the duration of the virtual vehicle using acceleration energy to accelerate when it is not in a drifting state.
[0011] According to one aspect of the present application, a control device for a virtual vehicle is provided, the device comprising:
[0012] A display module, used for displaying a virtual scene, wherein the virtual scene includes a virtual vehicle in a drifting state in a curve;
[0013] A response module, configured to control the speed of the virtual vehicle to decrease in response to a first trigger operation on the brake control component;
[0014] The response module is further used to display prompt information of consuming acceleration energy in response to the second trigger operation on the energy control component;
[0015] The response module is also used to respond to the third trigger operation on the throttle control component, release the cornering skill, and control the virtual vehicle to be in an accelerated driving state within the skill release duration of the cornering skill. The skill release duration of the cornering skill is used to indicate the duration of the virtual vehicle's acceleration. The skill release duration of the cornering skill is greater than the duration of the virtual vehicle using acceleration energy to accelerate when it is not in a drifting state.
[0016] According to one aspect of the present application, a computer device is provided, the computer device comprising a memory and a processor;
[0017] A processor for displaying a virtual scene, wherein the virtual scene includes a virtual vehicle in a drifting state in a curve;
[0018] In response to a first trigger operation on the brake control component, controlling the speed of the virtual vehicle to decrease;
[0019] In response to a second trigger operation on the energy control component, displaying a prompt message for consuming acceleration energy;
[0020] In response to the third trigger operation on the throttle control component, the cornering skill is released, and the virtual vehicle is controlled to be in an accelerated driving state within the skill release duration of the cornering skill. The skill release duration of the cornering skill is used to indicate the duration of the virtual vehicle's acceleration. The skill release duration of the cornering skill is greater than the duration of the virtual vehicle using acceleration energy to accelerate when it is not in a drifting state.
[0021] According to one aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is used to be executed by a processor to implement the control method of the virtual vehicle as described above.
[0022] According to one aspect of the present application, a chip is provided, which includes a programmable logic circuit and / or program instructions. When the chip is running, it is used to implement the control method of the virtual vehicle as described above.
[0023] According to one aspect of the present application, a computer program product is provided, which includes computer instructions stored in a computer-readable storage medium. A processor reads and executes the computer instructions from the computer-readable storage medium to implement the control method of the virtual vehicle as described above.
[0024] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0025] The cornering skill is released by sequentially triggering the brake control component, the energy control component, and the throttle control component to control the virtual vehicle to be in an accelerated driving state within the skill release time, thereby meeting the speed-up demand of the virtual vehicle during the drifting process. Among them, the first triggering operation on the brake control component is used to improve the grip of the virtual vehicle; when the virtual vehicle has a high grip, the drifting speed of the virtual vehicle is improved, and the cornering skill is released by the second triggering operation on the energy control component and the third triggering operation on the throttle control component to achieve the acceleration of the virtual vehicle, reducing the sliding distance of the rear end of the virtual vehicle, so that the body of the virtual vehicle can be quickly straightened, so that the driving trajectory of the virtual vehicle during the cornering process is more reasonable and the acceleration effect is better. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] 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.
[0027] Figure 1 is a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application;
[0028] Figure 2 is a structural block diagram of a computer system provided by an exemplary embodiment of the present application;
[0029] Figure 3 is a schematic diagram of an interface of a method for controlling a virtual vehicle provided by an exemplary embodiment of the present application;
[0030] Figure 4 is a schematic diagram of an interface of a method for controlling a virtual vehicle provided by an exemplary embodiment of the present application;
[0031] Figure 5 is a flow chart of a control method of a virtual vehicle provided by an exemplary embodiment of the present application;
[0032] Figure 6is a flow chart of a control method of a virtual vehicle provided by an exemplary embodiment of the present application;
[0033] Figure 7 is a schematic diagram of calculating a drift angle provided by an exemplary embodiment of the present application;
[0034] Figure 8 is a schematic diagram of calculating a drift angle provided by an exemplary embodiment of the present application;
[0035] Fig. 9 is a schematic diagram of an interface of a method for controlling a virtual vehicle provided by an exemplary embodiment of the present application;
[0036] Fig.10 is a schematic diagram of an interface of a method for controlling a virtual vehicle provided by an exemplary embodiment of the present application;
[0037] Fig.11 is a flow chart of a control method of a virtual vehicle provided by an exemplary embodiment of the present application;
[0038] Fig.12 is a schematic diagram of an interface of a method for controlling a virtual vehicle provided by an exemplary embodiment of the present application;
[0039] Fig.13 is a flow chart of a control method of a virtual vehicle provided by an exemplary embodiment of the present application;
[0040] Fig.14 is a schematic diagram of an interface of a method for controlling a virtual vehicle provided by an exemplary embodiment of the present application;
[0041] Fig.15 is a flow chart of a control method of a virtual vehicle provided by an exemplary embodiment of the present application;
[0042] Fig.16 is a flow chart of a control method of a virtual vehicle provided by an exemplary embodiment of the present application;
[0043] Fig.17 is a schematic diagram of an interface of a method for controlling a virtual vehicle provided by an exemplary embodiment of the present application;
[0044] Fig.18 is a flow chart of a control device for a virtual vehicle provided by an exemplary embodiment of the present application;
[0045] Fig.19 It is a structural block diagram of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0046] 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.
[0047] The method provided in the present application can be applied to an application with a virtual environment and a virtual character. Exemplarily, an application that supports a virtual environment is an application in which a user can control the movement of a virtual character in a virtual environment. Exemplarily, the method provided in the present application can be applied to any one of: Virtual Reality (VR) applications, Augmented Reality (AR) programs, three-dimensional 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).
[0048] For example, a game in a virtual environment is composed of one or more maps of the game world. The virtual environment in the game simulates 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. The interactivity is strong, and multiple users can form teams online to play competitive games.
[0049] In some embodiments, the above application programs may be shooting games, 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.
[0050] For example, the virtual vehicle control 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.
[0051] In some embodiments, the client is an application developed based on a 3D engine, such as the 3D engine is a Unity engine.
[0052] 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, and a multiplayer online tactical competitive game. Optionally, the application can be a stand-alone application, such as a stand-alone 3D game program, or a networked application.
[0053] Figure 1 1 is a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application. The terminal includes a processor 101, a touch screen 102 and a memory 103.
[0054] The processor 101 may be at least one of a single-core processor, a multi-core processor, an embedded chip, and a processor with instruction execution capability.
[0055] The touch screen 102 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 102 ; the pressure-sensitive touch screen can measure the pressing force applied to the touch screen 102 .
[0056] The memory 103 stores the executable program of the processor 101. Schematically, the memory 103 stores a virtual environment program A, an application B, an application C, a touch pressure sensing module 18, and a kernel layer 19 of the operating system. Among them, the virtual environment program A is an application developed based on the three-dimensional virtual environment module 17. 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) 17. 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.
[0057] The three-dimensional virtual environment module 17 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 17. In the following embodiment, the three-dimensional virtual environment module 17 is taken as an example of a module developed using the Unity engine.
[0058] The touch (and pressure) sensing module 18 is a module for receiving touch events (and pressure touch events) reported by the touch screen driver 191. Optionally, the touch sensing module may not have a pressure sensing function and does not receive pressure touch events. A touch event includes: the type and coordinate value of a touch event. The types of touch events include, but are not limited to, a touch start event, a touch move event, and a touch drop event. A pressure touch event includes: a pressure value and a coordinate value of a pressure touch event. The coordinate value is used to indicate the touch position of a pressure touch operation on the display screen. Optionally, a horizontal coordinate axis is established in the horizontal direction of the display screen, and a vertical coordinate axis is established in the vertical direction of the display screen to obtain a two-dimensional coordinate system.
[0059] Schematically, the kernel layer 19 includes a touch screen driver 191 and other drivers 192. The touch screen driver 191 is a module for detecting a pressure touch event. When the touch screen driver 191 detects a pressure touch event, it transmits the pressure touch event to the pressure sensing module 18.
[0060] The other drivers 192 may be drivers related to the processor 101 , drivers related to the memory 103 , drivers related to a network component, drivers related to a sound component, and the like.
[0061] 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 a gravity acceleration sensor, a gyroscope sensor, a power supply, and the like.
[0062] Figure 2 A structural block diagram of a computer system provided by an exemplary embodiment of the present application is shown. The computer system 200 includes: a terminal 210 and a server cluster 220 .
[0063] The terminal 210 is installed and runs a client 211 that supports a virtual environment, and the client 211 can be an application that supports a virtual environment. When the terminal runs the client 211, the user interface of the client 211 is displayed on the screen of the terminal 210. The client can be any one of an FPS game, a TPS game, a MOBA game, a competitive game, and an SLG game. In this embodiment, the client is a racing game as an example. The terminal 210 is a terminal used by a first user 212, and the first user 212 uses the terminal 210 to control the first virtual character in the virtual environment to carry out activities. The first virtual character can be referred to as the first virtual character of the first user 212. The activities of the first virtual character include, but are not limited to: adjusting body posture, crawling, walking, running, riding, flying, jumping, driving, picking up, shooting, attacking, and throwing. Schematically, the first virtual character is a first virtual character, such as a simulated character or an anime character.
[0064] The device type of the terminal 210 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.
[0065] Figure 2 Only one terminal is shown in the figure, but in different embodiments, there are multiple other terminals 240. In some embodiments, there is at least one other terminal 240 corresponding to the developer, and a development and editing platform of the client of the virtual environment is installed on the other terminal 240. The developer can edit and update the client on the other terminal 240, and transmit the updated client installation package to the server cluster 220 through a wired or wireless network. The terminal 210 can download the client installation package from the server cluster 220 to update the client.
[0066] The terminal 210 and other terminals 240 are connected to the server cluster 220 via a wireless network or a wired network.
[0067] The server cluster 220 includes at least one of a server, multiple servers, a cloud computing platform, and a virtualization center. The server cluster 220 is used to provide background services for clients that support a three-dimensional virtual environment. Optionally, the server cluster 220 undertakes the main computing work, and the terminal undertakes the secondary computing work; or, the server cluster 220 undertakes the secondary computing work, and the terminal undertakes the main computing work; or, the server cluster 220 and the terminal adopt a distributed computing architecture for collaborative computing.
[0068] Optionally, the above-mentioned terminal and server are both computer devices.
[0069] In an illustrative example, the server cluster 220 includes a server 221 and a server 226, and the server 221 includes a processor 222, a user account database 223, a battle service module 224, and a user-oriented input / output interface (I / O interface) 225. The processor 222 is used to load instructions stored in the server 221 and process data in the user account database 223 and the battle service module 224; the user account database 223 is used to store data of user accounts used by the terminal 210 and other terminals 240, such as the user account's avatar, the user account's nickname, the user account's combat power index, and the service area where the user account is located; the battle service module 224 is used to provide multiple battle rooms for users to fight; and the user-oriented I / O interface 225 is used to establish communication and exchange data with the terminal 210 through a wireless network or a wired network.
[0070] In combination with the above introduction to the virtual environment and the description of the implementation environment, the control method of the virtual vehicle provided in the embodiment of the present application will be described below.
[0071] Illustratively, the control method of the virtual vehicle provided in the present application can be implemented through the player's operation on the terminal, or through the player's operation on a handle, operating console, etc. connected to the terminal.
[0072] Among them, in the case of being implemented through operations on the terminal, the multiple control components involved in the control method of the virtual vehicle provided in the embodiment of the present application can be implemented as controls in the display interface of the terminal; in the case of being implemented through operations on a handle, operating console, etc. connected to the terminal, the multiple control components involved in the control method of the virtual vehicle provided in the embodiment of the present application can be implemented as a component of the handle or operating console. For example, the direction control component can be implemented as a moving button or joystick on the handle; for another example, the throttle control component can be implemented as a throttle pedal on the operating console, and the direction control component can be displayed as a steering wheel on the operating console.
[0073] Taking the control method of the virtual vehicle provided in this application as an example, the control method is implemented by the player's operation on the terminal. Figure 3 A schematic diagram of an interface of a virtual vehicle control method provided by an exemplary embodiment of the present application is shown.
[0074] A virtual vehicle 320 is displayed in the display interface 310 , and the virtual vehicle 320 travels in the virtual scene displayed in the display interface 310 .
[0075] Illustratively, the display interface 310 includes at least one of the following controls: a brake control 301, an energy control 302, a throttle control 303, a direction control 304, a handbrake control 305, and a reset control 306. Each control is described as follows:
[0076] The brake control 301 is used to control the grip of the virtual vehicle 320, where the grip of the virtual vehicle 320 refers to the friction between the tires of the virtual vehicle 320 and the ground. In response to the trigger operation on the brake control 301, the speed of the virtual vehicle 320 is controlled to decrease.
[0077] It should be understood that the reduction in the speed of the virtual vehicle 320 is achieved by enhancing the grip of the virtual vehicle 320, and the reduction in the speed of the virtual vehicle 320 can be set according to actual needs. For example, when the player clicks the brake control 301, in response to the single click operation on the brake control 301, the friction between the tires of the virtual vehicle 320 and the ground increases, and the grip of the virtual vehicle is enhanced, so that the speed of the virtual vehicle 320 is reduced.
[0078] The energy control 302 is used to indicate the storage of acceleration energy of the virtual vehicle 320; in response to the trigger operation on the energy control 302, one unit of acceleration energy can be consumed to speed up the virtual vehicle 320. Optionally, the energy control 302 is surrounded by a storage control 01 of acceleration energy, which is used to indicate the storage of acceleration energy corresponding to the virtual vehicle 320.
[0079] Taking the acceleration energy as nitrogen as an example, the energy control 302 is used to indicate the stock of nitrogen that can be used to accelerate the virtual vehicle 320, for example, the energy control 302 is used to indicate the stock of a bottle of nitrogen. Among them, the storage control 01 is used to indicate the number of nitrogen bottles corresponding to the virtual vehicle 320. In response to the trigger operation on the energy control 302, a bottle of nitrogen is consumed to provide acceleration service for the virtual vehicle 320, and a prompt message of consuming a bottle of nitrogen is displayed in the display interface 310.
[0080] The throttle control 303 is used to increase the speed of the virtual vehicle 320. In response to the trigger operation on the throttle control 303, the virtual vehicle 320 is controlled to accelerate. The trigger operation on the throttle control 303 can be at least one of a single-click operation, a double-click operation, a touch operation, and a continuous pressing operation. In the embodiment of the present application, in response to the trigger operation on the throttle control 303, the throttle corresponding to the virtual vehicle 320 will automatically remain in a pressed state, so that the virtual vehicle 320 maintains a continuous acceleration state. For example, the player clicks the throttle control 303 and then releases it, and the virtual vehicle 320 enters a state of continuous acceleration.
[0081] Optionally, when the virtual vehicle 320 is in a state of continuous acceleration, the brake control 301 is also used to implement at least one of the functions of stopping acceleration, decelerating and reversing of the virtual vehicle 320 .
[0082] Optionally, after the virtual vehicle enters the continuous acceleration state, in response to the trigger operation on the brake control 301, the virtual vehicle 320 is controlled to stop accelerating, so as to simulate the state of the throttle being bounced. Wherein, in the case where the trigger operation on the brake control 301 is a single-click operation, the virtual vehicle 320 is controlled to stop accelerating and enter the natural deceleration state, which refers to the continuous deceleration state entered by the virtual vehicle 320 due to resistance factors, and the resistance factors include at least one of road resistance, air resistance and mechanical loss; in the case where the trigger operation on the brake control 301 is a continuous pressing operation, the virtual vehicle 320 is controlled to stop accelerating and enter the continuous deceleration state, which refers to the storage deceleration state entered by the virtual vehicle 320 due to resistance factors and brake resistance, and the resistance factors include at least one of road resistance, air resistance and mechanical loss, and the brake resistance is generated according to the continuous pressing operation on the brake control 301. Among them, road resistance refers to the friction between the tires of the virtual vehicle 320 and the ground, air resistance refers to the air resistance encountered by the virtual vehicle 320 during driving, mechanical loss refers to the kinetic energy loss in the transmission device of the virtual vehicle 320, 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 greater. 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 320 to decelerate to 0km / h, while it only takes 2.5 seconds in the continuous deceleration state. Optionally, when the virtual vehicle 320 is in a continuous deceleration state, if the speed of the virtual vehicle 320 drops to 0 and the continuous pressing on the brake control 301 still exists, the virtual vehicle 320 is controlled to enter the reverse state.
[0083] It should be understood that the brake control 301 and the throttle control 303 cannot be used at the same time.
[0084] The direction control 304 is used to realize the steering of the virtual vehicle 320. The direction control 304 may include a left steering control and a right steering control, which are used to realize the left and right steering of the virtual vehicle 320.
[0085] The handbrake control 305 is used to brake the virtual vehicle 320. In the flat running state, in response to the trigger operation on the handbrake control 305, the speed of the virtual vehicle 320 is controlled to decrease. Optionally, in response to the simultaneous trigger operation on the direction control 304 and the handbrake control 305, the virtual vehicle 320 enters a drifting state in a curve. Optionally, in the drifting state, in response to the trigger operation on the handbrake control 305, the front of the virtual vehicle 320 is controlled to rotate inward, and the reduction range of the speed of the virtual vehicle 320 is greater than the reduction range of the virtual vehicle 320 in the flat running state.
[0086] The reset control 306 is used to restart the virtual vehicle 320. In response to the trigger operation on the reset control 306, the virtual vehicle 320 is controlled to be displayed on the open road on the surrounding side, and the virtual vehicle 320 is controlled to restart. The reset control 306 is usually used in the process of the virtual vehicle 32 getting out of trouble.
[0087] Figure 4 The following is a schematic diagram of an interface of a virtual vehicle control method provided by an exemplary embodiment of the present application. Figure 3 Similarly, a virtual vehicle 420 is displayed in the display interface 410. The virtual vehicle 420 is in a drifting state in a curve, and the drifting state can also be called a tail-swinging state. The virtual vehicle 420 is sliding sideways in an oversteering manner in the drifting state.
[0088] The control method of the virtual vehicle provided in the embodiment of the present application includes:
[0089] In response to a first trigger operation on the brake control component, controlling the speed of the virtual vehicle to decrease;
[0090] In response to a second trigger operation on the energy control component, displaying a prompt message for consuming acceleration energy;
[0091] In response to the third trigger operation on the throttle control component, the cornering skill is released, and the virtual vehicle is controlled to be in an accelerated driving state within the skill release duration of the cornering skill. The skill release duration of the cornering skill is used to indicate the duration of the virtual vehicle's acceleration. The skill release duration of the cornering skill is greater than the duration of the virtual vehicle using acceleration energy to accelerate when it is not in a drifting state.
[0092] Taking the control method of the virtual vehicle provided in this application as an example, which is implemented by the player's operation on the terminal, refer to Figure 4 The brake control component, energy control component and throttle control component can be displayed in the style of controls in the display interface 410. The display interface 410 displays a brake control 401, an energy control 402, a throttle control 403, a left turn control 4041, a right turn control 4042 and a handbrake control 405 respectively.
[0093] Indicatively, in response to the first trigger operation on the brake control 401, the speed of the virtual vehicle 420 is displayed to decrease. The display interface 410 also displays a vehicle condition display area 02, which is used to display the driving state of the virtual vehicle 420, including at least numerical information of the speed of the virtual vehicle 420 and / or a speed display bar.
[0094] The first trigger operation may be at least one of the following operations: a single click operation, a double click operation, a touch operation, a single press operation, and a continuous press operation. For example, the player clicks the brake control 401 to control the speed of the virtual vehicle 420 to decrease, and the speed value of the virtual vehicle 420 displayed in the vehicle condition display area 02 decreases, and the speed display bar shortens.
[0095] According to the foregoing content, the brake control 401 is used to control the grip of the virtual vehicle 420 , where the grip of the virtual vehicle 420 refers to the friction between the tires of the virtual vehicle 420 and the ground.
[0096] refer to Figure 4 , the virtual vehicle 420 is in a drifting state of turning left in the curve of the virtual scene. It should be understood that the friction between the two left wheels of the virtual vehicle 420 and the ground is larger, and the friction between the two right wheels and the ground is smaller. At this time, the front direction and the speed direction of the virtual vehicle 420 are not in the same direction, and there is an angle between the two, which can be called a drift angle.
[0097] Subsequently, in response to the first trigger operation on the brake control 401 , the friction between the wheels of the virtual vehicle 420 and the ground increases, thereby enhancing the grip of the virtual vehicle 420 , which is displayed in the display interface 410 as a decrease in the speed of the virtual vehicle 420 .
[0098] The control method of the virtual vehicle provided in the embodiment of the present application is used to release the cornering skill. In order to facilitate the release of the cornering skill, so that the virtual vehicle 420 can achieve de-drifting from the drifting state in the curve and enter the flat running state, it is necessary to enhance the grip of the virtual vehicle 420 before triggering the cornering skill, so that the virtual vehicle 420 can achieve faster de-drifting, faster acceleration and longer acceleration in the process of cornering with greater grip, so that the driving trajectory of the virtual vehicle 420 is more reasonable, and the acceleration effect of the virtual vehicle 420 is better.
[0099] It should be noted that, through the first trigger operation on the brake control 401, the virtual vehicle 420 can increase the speed of the drift, reduce the sliding distance of the rear end of the virtual vehicle 420, and quickly straighten the body of the virtual vehicle 420, so that the front direction and speed direction of the virtual vehicle 420 are consistent as soon as possible. If the brake control 401 is not triggered, the grip of the virtual vehicle 420 is low, and the time for the front direction and speed direction of the virtual vehicle 420 to be consistent will be relatively extended, so that the duration of the drift state of the virtual vehicle 420 in the curve will also be extended, resulting in a longer exit process of the virtual vehicle 420, and the virtual vehicle 420 will continue to decelerate in the drift state, and the speed of the virtual vehicle 420 will drop significantly after exiting the curve. At this time, the player can only accelerate the virtual vehicle 420 by triggering other controls again.
[0100] After the brake control 401 is triggered, the grip of the virtual vehicle 420 is enhanced; then, in response to the second trigger operation on the energy control 402, a prompt message for consuming acceleration energy is displayed. The acceleration energy is used to provide acceleration services for the virtual vehicle 420, and the prompt message for consuming acceleration energy can be at least one of text effects, animation effects, and sound effects.
[0101] Taking the acceleration energy as nitrogen as an example, in response to the second trigger operation on the energy control 402, a bottle of nitrogen is consumed to provide acceleration service for the virtual vehicle 420, and at the same time, a prompt message of consuming acceleration energy is displayed in the display interface 410. The prompt message can be at least one of text special effects, highlight special effects, flash special effects, aperture special effects and sound special effects.
[0102] Optionally, the prompt information may be displayed on the periphery of the energy control 402. For example, the prompt information is an aperture effect on the energy control 402. In response to the second trigger operation on the energy control 402, an aperture effect is displayed on the energy control 402 to prompt that one unit of acceleration energy is consumed to provide acceleration service for the virtual vehicle 420.
[0103] The second trigger operation may be at least one of the following operations: a single click operation, a double click operation, a touch operation, a single press operation, and a continuous press operation. For example, the player clicks the energy control 402 to display a prompt message for consuming acceleration energy.
[0104] Illustratively, during the consumption of acceleration energy, in response to the third trigger operation on the throttle control 403, the cornering skill is released, and the virtual vehicle 420 is controlled to be in an accelerated driving state within the skill release duration of the cornering skill.
[0105] Among them, the skill release duration of the cornering skill is used to indicate the duration of the virtual vehicle 420 during acceleration. The skill release duration of the cornering skill is greater than the duration of the virtual vehicle 420 using acceleration energy to accelerate when not in a drifting state.
[0106] Illustratively, the player triggers the energy control 402, and the triggering moment is the starting moment of the preparation time for consuming one unit of acceleration energy to provide acceleration service for the virtual vehicle 420; before the end moment of the preparation time, if the player triggers the throttle control 403, the cornering skill is displayed to control the virtual vehicle 420 to be in an accelerated driving state within the skill release time of the cornering skill.
[0107] Taking the acceleration energy as nitrogen as an example, the preparation time can be understood as the time for nitrogen to enter the engine and fill up the engine, and the time for nitrogen filling can be set according to actual needs. For example, the time for nitrogen filling is 0.3-1 second. During the time for nitrogen filling, if the player triggers the throttle control 403, the cornering skill is released to control the virtual vehicle 420 to be in an accelerated driving state during the skill release time of the cornering skill; if the player does not trigger the throttle control 403, the nitrogen is ejected after the time for nitrogen filling ends, and the virtual vehicle 420 is controlled to accelerate in the initial setting mode.
[0108] According to the above content, the virtual vehicle 420 in the drifting state in the curve has a certain drift angle. According to the different drift angles, the released curve exit skills are also different.
[0109] Optionally, when the drift angle of the virtual vehicle 420 is not greater than the first angle, in response to a third trigger operation on the throttle control 403, the first cornering skill is released, the virtual vehicle 420 is controlled to be in an accelerated driving state within the skill release duration of the first cornering skill, and exit the drifting state after the first de-drifting duration;
[0110] When the drift angle of the virtual vehicle 420 is greater than the first angle, in response to the third trigger operation on the throttle control 403, the second cornering skill is released, the virtual vehicle 420 is controlled to be in an accelerated driving state within the skill release duration of the second cornering skill, and exits the drifting state after the second drift exiting duration;
[0111] The first de-drifting time is shorter than the second de-drifting time, and the first angle can be set according to actual needs. Optionally, the value range of the first angle is between 30-60 degrees, for example, the first angle can be 45 degrees.
[0112] Schematically, the drift angle of the virtual vehicle 420 is used to indicate the angle between the front direction and the speed direction of the virtual vehicle 420. It should be understood that the larger the drift angle, the higher the degree of body deviation of the virtual vehicle 420, which will result in a longer time required for the virtual vehicle 420 to exit the drift state. Based on this, there is a difference between the first de-drifting time and the second de-drifting time.
[0113] Optionally, before releasing the cornering skill, it is also necessary to calculate the drift angle of the virtual vehicle 420. The drift angle is affected by the grip of the virtual vehicle 420. The control method of the virtual vehicle provided in the embodiment of the present application also includes: determining the drift angle of the virtual vehicle 420 according to the grip, front direction and speed direction of the virtual vehicle 420.
[0114] Exemplarily, the iterative calculation of the speed direction of the virtual vehicle 420 may be performed by the following formula:
[0115] v(t+Δt)=grip×(d(t+Δt)-v(t))+v(t);
[0116] v(t+2×Δt)=grip×(d(t+2×Δt)-v(t+Δt))+v(t+Δt);
[0117] …
[0118] v(t+n×Δt)=grip×[d(t+n×Δt)-v(t+(n-1)×Δt)]+v(t+(n-1)×Δt).
[0119] Among them, the speed direction of the virtual vehicle 420 at the initial time t is v(t), the front direction of the vehicle at the initial time t is d(t), and the unit time is Δt. Then the drift angle of the virtual vehicle 420 at the initial time t is d(t)-v(t), the speed direction of the virtual vehicle 420 at time t+Δt is v(t+Δt), and the front direction of the virtual vehicle 420 at time t+Δt is d(t+Δt); then, the drift angle of the virtual vehicle 420 at time t+Δt can be calculated by d(t+Δt)-v(t+Δt), and the remaining information can be deduced by analogy.
[0120] Optionally, the drift angle of the virtual vehicle at the i-th moment is the difference between the head direction of the virtual vehicle at the i-th moment and the speed direction of the virtual vehicle at the i-th moment. For example, the drift angle of the virtual vehicle 420 at the initial moment t is d(t)-v(t).
[0121] In addition, the speed direction of the virtual vehicle at the second moment can be determined according to the grip, the vehicle head direction at the second moment, and the speed direction at the first moment. The second moment is the moment after the first moment by a unit time, and the vehicle head direction of the virtual vehicle at the second moment is the sum of the vehicle head direction of the virtual vehicle at the first moment and the rotation angle of the virtual vehicle in the unit time.
[0122] Exemplarily, the speed direction of the virtual vehicle at the second moment is the sum of the speed direction at the first moment plus the difference between the vehicle head direction at the second moment and the speed direction at the first moment multiplied by the grip and the ground force. For example, the speed direction of the virtual vehicle 420 at the moment t+Δt is v(t+Δt), which can be calculated by v(t+Δt)=grip×(d(t+Δt)-v(t))+v(t).
[0123] Optionally, the unit time Δt may be calculated as 1 frame, and the grip force is a fixed function.
[0124] For example, assuming that the grip of the virtual vehicle 420 is constant at 0.5, the starting direction of the head of the virtual vehicle 420 is toward the front, assuming d(t) = 90°, and the starting speed direction of the virtual vehicle 420 v(t) = 15°, the drift angle of the virtual vehicle 420 at time t (which is the starting time) is 90°-15° = 75°. Subsequently, the head of the virtual vehicle 420 turns left by 15° within Δt, that is, d(t+Δt) = 105°.
[0125] Based on the above formula, assuming Δt=1, the speed direction of the virtual vehicle 420 can be calculated by the above formula v(t+Δt)=0.5×(105°-15°)+15°=60°, then the drift angle of the virtual vehicle 420 at time t+Δt is 105°–60°=45°.
[0126] It should be understood that the first trigger operation on the brake control 401 can superimpose a part of the value on the grip when calculating the drift angle, thereby further accelerating the change in the speed direction of the virtual vehicle 420, so that the time required for the virtual vehicle 420 to complete the de-drifting from the drifting state can be shortened, thereby achieving the purpose of quickly exiting the corner, and the speed reduction of the virtual vehicle 420 is relatively small.
[0127] For example, after the brake control 401 is triggered, the grip of the virtual vehicle 420 becomes 0.8, and the front direction of the virtual vehicle 420 turns left by 15° within the time Δt, assuming that Δt = 1. According to the above formula, the speed direction of the virtual vehicle 420 can be calculated to be v(t+Δt) = 0.8×(105°-15°)+15° = 87°, and the drift angle of the virtual vehicle 420 at time t+Δt is 105°-87° = 18°.
[0128] Based on the above comparison, it can be clearly seen that: when the grip is changed, the change in speed direction of the virtual vehicle 420 is further accelerated, thereby shortening the time required for the virtual vehicle 420 to complete the de-drifting from the drifting state, achieving the purpose of fast cornering.
[0129] Optionally, when the angle between the front direction and the speed direction of the virtual vehicle 420 is less than the de-drifting angle, it is determined that the virtual vehicle 420 has completed de-drifting, and then the virtual vehicle 420 is controlled to enter a flat running state. The de-drifting angle can be set according to actual needs, for example, the de-drifting angle is 13 degrees.
[0130] Illustratively, the third trigger operation may be at least one of the following operations: a single-click operation, a double-click operation, a touch operation, a single press operation, and a continuous press operation. For example, the player single-clicks the throttle control 403 to release the cornering skill, and controls the virtual vehicle 420 to be in an accelerated driving state within the skill release time of the cornering skill.
[0131] In the control method of the virtual vehicle provided in the embodiment of the present application, the release of other skills can also be triggered depending on the specific operation of the third trigger operation.
[0132] Optionally, the third trigger operation is a continuous pressing operation on the throttle control 403. When the pressing time on the throttle control 403 exceeds the first pressing time, the full throttle skill is triggered to extend the skill release time of the cornering skill. At the same time, if the acceleration of the virtual vehicle 420 in this case does not reach the maximum value, the acceleration of the virtual vehicle 420 can also be increased so that the virtual vehicle 420 can quickly complete the acceleration under the full throttle skill.
[0133] Optionally, within the energy triggering duration after releasing the cornering skill, in response to the fourth triggering operation on the energy control 402, the energy overload skill is triggered to extend the skill release duration of the cornering skill. At the same time, if the acceleration of the virtual vehicle 420 in this case does not reach the maximum value, the acceleration of the virtual vehicle 420 can also be increased so that the virtual vehicle 420 can quickly complete the acceleration under the energy overload skill.
[0134] Optionally, after the energy triggering duration has expired, the energy control 402 is controlled to be in an untriggerable state, and the end time of the untriggerable state is the same as the end time of the skill release duration of the cornering skill. That is, if the player triggers the energy control 402 again within the energy triggering duration, the acceleration energy can be reused to provide acceleration service for the virtual vehicle 420 again, so as to meet the acceleration demand of the virtual vehicle 420 and extend the acceleration duration of the virtual vehicle 420.
[0135] Among them, the energy triggering duration can be set according to actual needs, for example, the energy triggering duration is 0.3-1 second.
[0136] For example, the acceleration energy is nitrogen. Within the energy triggering duration after releasing the cornering skill, the player triggers the energy control 402. When the nitrogen storage amount corresponding to the virtual vehicle 420 is not zero, a bottle of nitrogen is consumed again to accelerate the virtual vehicle 420, triggering the energy overload skill, so that the skill release duration of the cornering skill can be extended, providing an operation scheme for consuming multiple units of acceleration energy in a short time, thereby improving the availability of acceleration energy.
[0137] Optionally, after each skill is released, a prompt message indicating that the skill is released successfully may be displayed in the display interface 410. The prompt message may be at least one of a text special effect, an animation special effect, and a sound special effect.
[0138] Optionally, the virtual vehicle 420 may be placed in a drifting state in a curve by: responding to simultaneous triggering operations on the left turn control 4041 and the handbrake control 405 , controlling the virtual vehicle 420 to enter a drifting state in the curve.
[0139] Figure 5 A flowchart of a control method for a virtual vehicle provided by an exemplary embodiment of the present application is shown. The method is applied to a terminal supporting a virtual environment, and includes the following steps:
[0140] Step 501: Display a virtual scene.
[0141] Illustratively, the virtual scene includes a virtual vehicle in a drifting state on a curve.
[0142] Among them, the drift state can also be called the tail-swinging state. In the drift state, the virtual vehicle slides sideways in an oversteering manner to facilitate the virtual vehicle to drive out of the curve.
[0143] Optionally, the virtual scene may also include a virtual road and virtual road signs. The virtual vehicle travels on the virtual road. Slow-down signs, turn signs, etc. are displayed on both sides of the virtual road, and the virtual vehicle is in a drifting state in the curve of the virtual road.
[0144] The virtual vehicle can enter a drift state by triggering the direction control component and the handbrake control component at the same time. Optionally, the control method of the virtual vehicle provided in the embodiment of the present application further includes:
[0145] In response to the simultaneous triggering operations on the steering control component and the handbrake control component, the virtual vehicle is controlled to enter a drifting state in the curve.
[0146] The direction control component and the handbrake control component can be implemented as controls in the display interface of the terminal, or as a handle connected to the terminal or a component on the operating console. For example, the direction control component and the handbrake control component can be implemented as a direction control and a handbrake control on the terminal, respectively; for another example, the direction control component can be implemented as a movement button or a rocker on the handle, and the handbrake control component can be implemented as a confirmation button on the handle; for another example, the direction control component and the handbrake control component can be implemented as a steering wheel and a brake hand lever on the operating console, respectively.
[0147] Step 502: In response to a first trigger operation on a brake control component, control the speed of the virtual vehicle to decrease.
[0148] The brake control component can be implemented as a control in the display interface of the terminal, or as a component on a handle or operating console connected to the terminal. For example, the brake control component can be implemented as a brake control on the terminal; or as a control button on the handle.
[0149] Illustratively, the first trigger operation may be at least one of the following operations: a single click operation, a double click operation, a touch operation, a single press operation, and a continuous press operation. For example, the player clicks the brake control component to control the speed of the virtual vehicle to decrease.
[0150] Optionally, the display interface where the virtual vehicle is located further displays a vehicle condition display area, which is used to display the driving state of the virtual vehicle, and at least includes numerical information of the speed of the virtual vehicle and / or a speed display bar. For example, in response to the first trigger operation on the brake control component, the speed of the virtual vehicle is controlled to decrease, and the numerical value of the speed of the virtual vehicle displayed in the vehicle condition display area decreases, and the speed display bar is shortened.
[0151] According to the above content, the brake control component is used to control the grip of the virtual vehicle, and the grip of the virtual vehicle refers to the friction between the tires of the virtual vehicle and the ground. When the brake control component is triggered, the friction between the wheels of the virtual vehicle and the ground increases, thereby increasing the grip of the virtual vehicle, which is visually displayed as a decrease in the speed of the virtual vehicle.
[0152] In the embodiment of the present application, the control method of the virtual vehicle is used to release the cornering skill so that the virtual vehicle can drive out of the curve. In order to facilitate the release of the cornering skill, it is necessary to enhance the grip of the virtual vehicle before triggering the cornering skill, so that the virtual vehicle can achieve faster drifting, faster acceleration and longer acceleration during the cornering process with greater grip, thereby making the driving trajectory of the virtual vehicle more reasonable and the acceleration effect of the virtual vehicle better.
[0153] It should be understood that, through the first trigger operation on the brake control component, the virtual vehicle can increase the drift speed, reduce the sliding distance of the rear end of the virtual vehicle, and quickly straighten the body of the virtual vehicle so that the front direction and speed direction of the virtual vehicle are kept consistent as soon as possible.
[0154] If the brake control component is not triggered, the virtual vehicle's grip is low, and the time it takes for the virtual vehicle's head direction and speed direction to return to the same state will be relatively long, which will extend the duration of the virtual vehicle's drift state in the curve, resulting in a longer virtual vehicle exit process, and the virtual vehicle will continue to decelerate in the drift state, and the speed of the virtual vehicle will drop significantly after exiting the curve. At this time, the player can only accelerate the virtual vehicle by triggering other control components again.
[0155] Among them, the specific description of the impact of grip on cornering skills can be found in the above content and will not be repeated here.
[0156] Step 503: In response to the second trigger operation on the energy control component, a prompt message for consuming acceleration energy is displayed.
[0157] Similar to the brake control component, the energy control component can be implemented as a control in the display interface of the terminal, or as a component on a handle or operating console connected to the terminal. For example, the energy control component can be implemented as an energy control on the terminal; or as a confirmation button on the handle.
[0158] Illustratively, the acceleration energy is used to provide acceleration services for the virtual vehicle, and the prompt information for consuming the acceleration energy may be at least one of text effects, animation effects, and sound effects.
[0159] Taking the acceleration energy as nitrogen as an example, in response to the second trigger operation on the energy control component, a bottle of nitrogen is consumed to provide acceleration service for the virtual vehicle 420, and at the same time, a prompt message of consuming acceleration energy is displayed in the display interface. The prompt message can be at least one of text special effects, highlight special effects, flash special effects, aperture special effects and sound special effects.
[0160] Optionally, the prompt information may be displayed on the side of the energy control component. For example, the prompt information is an aperture effect on the energy control component. In response to the second trigger operation of the player on the energy control component, an aperture effect is displayed on the energy control component to prompt the consumption of one unit of acceleration energy to provide acceleration service for the virtual vehicle; and a sound effect is used to remind the player that the consumption of acceleration energy has been completed.
[0161] The second trigger operation may be at least one of the following operations: a single click operation, a double click operation, a touch operation, a single press operation, and a continuous press operation. For example, the player clicks the energy control component to display a prompt message for consuming acceleration energy.
[0162] Step 504: In response to the third trigger operation on the throttle control component, the cornering skill is released, and the virtual vehicle is controlled to be in an accelerated driving state within the skill release duration of the cornering skill.
[0163] Indicatively, the skill release duration of the cornering skill is used to indicate the duration of acceleration of the virtual vehicle, and the skill release duration of the cornering skill is greater than the duration of acceleration of the virtual vehicle using acceleration energy when not in a drifting state.
[0164] According to step 503, the acceleration energy consumption process can be understood as a preparation process of consuming one unit of acceleration energy to provide acceleration services for the virtual vehicle, and the preparation process has a preparation duration. In this process, in response to the third trigger operation on the throttle control component, the cornering skill can be released, so that the virtual vehicle is in an accelerated driving state within the skill release duration. Among them, the triggering moment of the energy control component is the starting moment of the preparation duration. Before the acceleration energy consumption process ends (that is, the end moment of the preparation duration), the throttle control component is required so that the acceleration energy can provide more effective acceleration services for the virtual vehicle.
[0165] Taking the acceleration energy as nitrous as an example, the preparation time can be understood as the time it takes for nitrous to enter the engine and fill up the engine. The nitrous filling time can be set according to actual needs. For example, the nitrous filling time is 0.3-1 second. During the nitrous filling time, if the player triggers the throttle control component, the cornering skill is released to control the virtual vehicle to accelerate during the skill release time of the cornering skill; if the player does not trigger the throttle control component, the nitrous will be ejected after the nitrous filling time ends, and the virtual vehicle will be accelerated in the initial setting method.
[0166] It should be understood that the acceleration of the virtual vehicle in the initial setting mode is less than the acceleration of the virtual vehicle in the cornering skill.
[0167] Similar to the brake control component and the energy control component, the throttle control component can be implemented as a control in the display interface of the terminal, or as a component on a handle connected to the terminal or on an operating console. For example, the throttle control component can be implemented as a throttle control on the terminal; another example, the throttle control component can be implemented as a confirmation button on the handle; another example, the throttle control component can be implemented as an accelerator pedal on the operating console.
[0168] Optionally, after step 504 is executed, after the skill release time of the cornering skill ends, the acceleration of the virtual vehicle is controlled to return to the state before the cornering skill is released.
[0169] To sum up, in the control method of the virtual vehicle provided in the embodiment of the present application, the cornering skill is released through the sequential triggering operations on the brake control component, the energy control component and the throttle control component to control the virtual vehicle to be in an accelerated driving state within the skill release time, thereby meeting the speed-up requirements of the virtual vehicle during the drifting corner process.
[0170] Among them, the first trigger operation on the brake control component is used to improve the grip of the virtual vehicle. When the virtual vehicle has a high grip, the drift speed of the virtual vehicle is improved, and the second trigger operation on the energy control component and the third trigger operation on the throttle control component are used to release the cornering skill to achieve the acceleration of the virtual vehicle, reducing the sliding distance of the rear end of the virtual vehicle, so that the body of the virtual vehicle can be quickly straightened, so that the driving trajectory of the virtual vehicle in the cornering process is more reasonable and the acceleration effect is better.
[0171] According to the foregoing content, a virtual vehicle in a drifting state in a curve has a certain drift angle, and depending on the drift angle, the cornering skills released are also different.
[0172] refer to Figure 5 , Figure 6 A flowchart of a control method for a virtual vehicle provided by an exemplary embodiment of the present application is shown. Step 504 can be implemented as step 5041 or step 5042, which is used to determine the released cornering skill according to the difference between the drift angle and the first angle; step 5041 or step 5042 may also optionally include step 505, which is used to determine the drift angle of the virtual vehicle before releasing the cornering skill. Steps 5041, 5042 and 505 are specifically as follows:
[0173] Step 505: Determine the drift angle of the virtual vehicle according to the grip, the vehicle head direction and the speed direction of the virtual vehicle.
[0174] Schematically, the drift angle is used to indicate the angle between the front direction and the speed direction of the virtual vehicle.
[0175] The larger the drift angle, the higher the degree of body deviation of the virtual vehicle, which will result in a longer time required for the virtual vehicle to exit the drift state. In addition, the drift angle is affected by the grip of the virtual vehicle, and the change of grip is achieved through the trigger operation on the brake control component.
[0176] It should be understood that when the virtual vehicle is in a level running state, the speed direction of the virtual vehicle is substantially consistent with the direction of the vehicle head, and at this time the drift angle of the virtual vehicle can be determined to be 0 degrees.
[0177] When the virtual vehicle is in a reversing state, the speed direction of the virtual vehicle is opposite to the direction of the front of the vehicle. At this time, the drift angle of the virtual vehicle can be determined to be 180 degrees.
[0178] When the virtual vehicle is in a drifting state, the speed direction of the virtual vehicle is inconsistent with the vehicle head direction. That is, the speed direction of the virtual vehicle is the first direction, and the vehicle head direction is the second direction. The first direction and the second direction are different directions. There is a certain deviation angle between the first direction and the second direction, and the deviation angle is the drift angle. Similarly, it is precisely because of the existence of the drift angle that the virtual vehicle presents a drifting body posture.
[0179] Indicatively, the speed direction of the virtual vehicle can be gradually rotated toward the front of the vehicle to achieve a gripping effect of the virtual vehicle, and finally the virtual vehicle can be de-drifted to return to a flat running state.
[0180] For example, the speed direction of the virtual vehicle at the initial time t is v(t), the direction of the vehicle head at the initial time t is d(t), and the unit time is Δt. Figure 7 A schematic diagram of calculating a drift angle provided by an exemplary embodiment of the present application is shown.
[0181] Exemplarily, the iterative calculation of the speed direction of the virtual vehicle may be performed by the following formula:
[0182] v(t+Δt)=grip×(d(t+Δt)-v(t))+v(t);
[0183] v(t+2×Δt)=grip×(d(t+2×Δt)-v(t+Δt))+v(t+Δt);
[0184] …
[0185] v(t+n×Δt)=grip×[d(t+n×Δt)-v(t+(n-1)×Δt)]+v(t+(n-1)×Δt).
[0186] Among them, the speed direction of the virtual vehicle 420 at the initial time t is v(t), the front direction of the vehicle at the initial time t is d(t), and the unit time is Δt. Then the drift angle of the virtual vehicle 420 at the initial time t is d(t)-v(t), the speed direction of the virtual vehicle 420 at time t+Δt is v(t+Δt), and the front direction of the virtual vehicle 420 at time t+Δt is d(t+Δt); then, the drift angle of the virtual vehicle 420 at time t+Δt can be calculated by d(t+Δt)-v(t+Δt), and the remaining information can be deduced by analogy.
[0187] Optionally, the drift angle of the virtual vehicle at the i-th moment is the difference between the head direction of the virtual vehicle at the i-th moment and the speed direction of the virtual vehicle at the i-th moment. For example, the drift angle of the virtual vehicle 420 at the initial moment t is d(t)-v(t).
[0188] In addition, the speed direction of the virtual vehicle at the second moment can be determined according to the grip, the vehicle head direction at the second moment, and the speed direction at the first moment. The second moment is the moment after the first moment by a unit time, and the vehicle head direction of the virtual vehicle at the second moment is the sum of the vehicle head direction of the virtual vehicle at the first moment and the rotation angle of the virtual vehicle in the unit time.
[0189] Exemplarily, the speed direction of the virtual vehicle at the second moment is the sum of the speed direction at the first moment plus the difference between the vehicle head direction at the second moment and the speed direction at the first moment multiplied by the grip and the ground force. For example, the speed direction of the virtual vehicle 420 at the moment t+Δt is v(t+Δt), which can be calculated by v(t+Δt)=grip×(d(t+Δt)-v(t))+v(t).
[0190] Optionally, the unit time Δt may be calculated as 1 frame, and the grip force is a fixed function.
[0191] According to the above formula, the drift angle of the virtual vehicle at the initial time t is d(t)-v(t), the speed direction of the virtual vehicle at time t+Δt is v(t+Δt), the front direction of the virtual vehicle 420 at time t+Δt is d(t+Δt), and the remaining information can be deduced by analogy.
[0192] Taking the drift angle of the virtual vehicle 420 at the initial time t as d(t)-v(t), and the speed direction of the virtual vehicle 420 at the time t+Δt as v(t+Δt) as an example, the drift angle of the virtual vehicle 420 at the time t+Δt can be calculated by d(t+Δt)-v(t+Δt).
[0193] refer to Figure 7, assuming that the grip of the virtual vehicle is constant at 0.5, the starting direction of the virtual vehicle's head is facing straight ahead, assuming d(t) = 90°, and the starting speed direction of the virtual vehicle v(t) = 15°, then the drift angle of the virtual vehicle at time t (this time is the starting time) is 90°–15° = 75°. Subsequently, the virtual vehicle's head direction turned 15° to the left within Δt time, that is, d(t+Δt) = 105°.
[0194] Based on the above formula, assuming Δt = 1, the speed direction of the virtual vehicle can be calculated by the above formula: v(t+Δt) = 0.5×(105°-15°)+15° = 60°, and the drift angle of the virtual vehicle at time t+Δt is 105°–60° = 45°. Similarly, the drift angle of the virtual vehicle at the next moment can be iteratively calculated according to the above formula.
[0195] According to the above content, through the first trigger operation on the brake control component, the grip of the virtual vehicle can be improved, thereby affecting the change of the drift angle of the virtual vehicle. Among them, the improvement of grip can accelerate the speed of reducing the drift angle, thereby accelerating the virtual vehicle to retreat from the drift state and enter the flat running state.
[0196] That is, through the first trigger operation on the brake control component, a part of the value can be superimposed on the grip when calculating the drift angle, so that the change in the speed direction of the virtual vehicle is further accelerated, so that the time required for the virtual vehicle to complete the back drift is shortened, so as to achieve the purpose of fast exit from the corner, and the speed reduction of the virtual vehicle is small.
[0197] refer to Figure 7 , Figure 8 A schematic diagram of calculating the drift angle provided by an exemplary embodiment of the present application is shown, taking the first trigger operation on the brake control component to increase the grip from 0.5 to 0.8 as an example.
[0198] After the brake control is triggered, the grip of the virtual vehicle becomes 0.8, and the front direction of the virtual vehicle 420 turns left by 15° within the Δt time, assuming that Δt = 1. According to the above formula, the speed direction of the virtual vehicle can be calculated to be v(t+Δt) = 0.8×(105°-15°)+15° = 87°, and the drift angle of the virtual vehicle at the time t+Δt is 105°–87° = 18°. Similarly, the drift angle of the virtual vehicle at the next moment can be iteratively calculated according to the above formula.
[0199] according to Figure 7 and Figure 8By comparing the above data, it can be clearly seen that: when the grip is changed, the change in the direction of the virtual vehicle's speed is further accelerated, thereby shortening the time required for the virtual vehicle to complete the back drift and achieving the purpose of fast cornering. Therefore, in the skill triggering time of the cornering skill, the time taken for cornering is reduced, and more time is left for speeding up, thereby relatively providing a certain amount of power for the virtual vehicle, causing the speed of the virtual vehicle to increase.
[0200] At the same time, it should be understood that the de-drifting time of the virtual vehicle is affected by the drift angle. The larger the drift angle, the longer the time required for the virtual vehicle to de-drift.
[0201] Optionally, the control method of the virtual vehicle provided in the embodiment of the present application further includes:
[0202] When the angle between the front direction and the speed direction of the virtual vehicle is smaller than the retreat angle, the virtual vehicle is controlled to enter a level running state.
[0203] The back drift angle can be set according to actual needs. Optionally, the back drift angle has a value range of 10-20 degrees, for example, the back drift angle is 13 degrees.
[0204] refer to Figure 8 As mentioned above, take the back drift angle of 13 degrees as an example.
[0205] When the grip is 0.5, the drift angle of the virtual vehicle at time t+Δt is calculated to be 45°. Since the drift angle at this time is greater than the retreat angle, the virtual vehicle is still in a drifting state and the next iterative calculation is required.
[0206] When the grip is 0.8, the drift angle of the virtual vehicle at time t+Δt is calculated to be 18°. Since the drift angle at this time is greater than the retreat angle, the virtual vehicle is still in a drifting state, and the next iterative calculation is still required.
[0207] It should be understood that when the grip is 0.8, the drift angle of the virtual vehicle is already very close to the retreat drift angle, and it is very likely that a drift angle smaller than the retreat drift angle will be obtained after the next iterative calculation, and the virtual vehicle can complete the retreat drift at the next moment. When the grip is 0.5, the gap between the drift angle of the virtual vehicle and the retreat drift angle is still large, and it may take multiple iterative calculations to obtain a drift angle smaller than the retreat drift angle, that is, the moment when the virtual vehicle completes the retreat drift must be later than the virtual vehicle when the grip is 0.8.
[0208] According to step 505, the drift angle of the virtual vehicle may be determined according to the grip, the vehicle head direction and the speed direction of the virtual vehicle, so as to determine the cornering skill that needs to be released.
[0209] Step 5041: When the drift angle of the virtual vehicle is not greater than the first angle, in response to the third trigger operation on the throttle control component, the first cornering skill is released, and the virtual vehicle is controlled to be in an accelerated driving state within the skill release duration of the first cornering skill, and exit the drifting state after the first de-drifting duration.
[0210] Step 5042: When the drift angle of the virtual vehicle is greater than the first angle, in response to the third trigger operation on the throttle control component, the second cornering skill is released, and the virtual vehicle is controlled to be in an accelerated driving state within the skill release duration of the second cornering skill, and exit the drifting state after the second de-drifting duration.
[0211] Illustratively, the first drift-de-settling time length is shorter than the second drift-de-settling time length.
[0212] The first angle can be set according to actual needs. Optionally, the value range of the first angle is between 30-60 degrees, for example, the first angle can be 45 degrees.
[0213] According to the foregoing, the de-drifting duration of the virtual vehicle is affected by the drift angle. The larger the drift angle, the longer the de-drifting duration of the virtual vehicle. Among them, the calculation method of the drift angle of the virtual vehicle in real time can refer to the relevant description of step 505 and will not be repeated. It should be understood that in order to enrich the release process of the virtual vehicle's cornering skills, different cornering skills can be released according to different drift angles. Among them, when the drift angle of the virtual vehicle is not greater than the first angle, the first cornering skill is released to control the virtual vehicle to exit the drifting state after a shorter de-drifting duration; when the drift angle of the virtual vehicle is greater than the first angle, the second cornering skill is released to control the virtual vehicle to exit the drifting state after a longer drifting duration.
[0214] At the same time, it should be understood that the skill release duration of the first cornering skill and the skill release duration of the second cornering skill can be the same or different, and this application does not limit this; the specific duration of the skill release duration of the first cornering skill and the skill release duration of the second cornering skill can be set according to actual needs.
[0215] Under the first exit-turning skill, the virtual vehicle exits the drifting state after the first de-drifting duration, and at this time it is still in the accelerated driving state for a period of acceleration duration (i.e. the time duration of the skill release of the first exit-turning skill minus the time duration of the first de-drifting duration); similarly, under the second exit-turning skill, the virtual vehicle exits the drifting state after the second de-drifting duration, and at this time it is still in the accelerated driving state for a period of acceleration duration (i.e. the time duration of the skill release of the second exit-turning skill minus the time duration of the second de-drifting duration).
[0216] Taking the example that the skill release duration of the first cornering skill and the skill release duration of the second cornering skill are the same, the acceleration durations corresponding to the first cornering skill and the second cornering skill are different, and the acceleration duration corresponding to the first cornering skill should be greater than the acceleration duration corresponding to the second cornering skill.
[0217] Fig. 9 A schematic diagram of an interface of a control method for a virtual vehicle provided by an exemplary embodiment of the present application is shown. The brake control component, the energy control component, and the throttle control component can be displayed in the style of controls in the display interface 910. The display interface 910 displays a brake control 901, an energy control 902, and a throttle control 903, respectively.
[0218] Schematically, in response to the first trigger operation on the brake control 901, the speed of the virtual vehicle 920 is displayed to decrease and the grip of the virtual vehicle 920 is enhanced; then, in response to the second trigger operation on the energy control 902, a prompt message for consuming acceleration energy is displayed; during the consumption of acceleration energy, in response to the third trigger operation on the throttle control 903, the cornering skill is released, and the virtual vehicle 920 is controlled to be in an accelerated driving state within the skill release duration of the cornering skill.
[0219] According to the above content, different cornering skills can be released according to the different drift angles of the virtual vehicle 920. Among them, the drift angle of the virtual vehicle 920 can be Fig. 9 The angle formed by the arrows shown in .
[0220] Taking the first angle of 45 degrees as an example, when the drift angle of the virtual vehicle is not greater than 45 degrees, in response to the third trigger operation on the throttle control 903, the first cornering skill is released, and the virtual vehicle 920 is controlled to be in an accelerated driving state within the skill release time of the first cornering skill, and exit the drift state after the first de-drifting time; when the drift angle of the virtual vehicle is greater than 45 degrees, in response to the third trigger operation on the throttle control 903, the second cornering skill is released, and the virtual vehicle 920 is controlled to be in an accelerated driving state within the skill release time of the second cornering skill, and exit the drift state after the second de-drifting time. Among them, the first de-drifting time is less than the second de-drifting time.
[0221] For example, the first cornering skill can also be called a supercharged cornering skill, and the second cornering skill can also be called a supercharged skill.
[0222] Fig.10The interface schematic diagram of a control method for a virtual vehicle provided by an exemplary embodiment of the present application is shown. Among them, the brake control component, the energy control component and the throttle control component can be displayed in the style of the controls in the display interface 1010. Among them, the display interface 1010 displays a brake control 1001, an energy control 1002, a throttle control 1003, a left turn control 10041, a right turn control 10042, and a handbrake control 1005.
[0223] Exemplarily, in response to the simultaneous triggering operations on the left turn control 10041 and the handbrake control 1005, the virtual vehicle 1020 is controlled to enter a drifting state in the curve.
[0224] Subsequently, in response to the first trigger operation on the brake control 1001, the speed of the virtual vehicle 1020 is displayed to decrease, and the grip of the virtual vehicle 1020 is enhanced; in response to the second trigger operation on the energy control 1002, a prompt message for consuming acceleration energy is displayed; during the consumption of acceleration energy, in response to the third trigger operation on the throttle control 1003, the cornering skill is released, and the virtual vehicle 1020 is controlled to be in an accelerated driving state within the skill release duration of the cornering skill. Among them, the cornering skill can be determined according to the different drift angles of the virtual vehicle 1020, and the details can be referred to the above content, which will not be repeated here.
[0225] Taking the acceleration energy as nitrogen as an example, in response to the second trigger operation on the energy control 1002, a bottle of nitrogen is consumed to provide acceleration service for the virtual vehicle 1020; then, in response to the third trigger operation on the throttle control 1003, the first cornering skill or the second cornering skill is released according to the drift angle of the virtual vehicle 1020 to increase the acceleration duration of the virtual vehicle 1020.
[0226] According to the above content, the virtual vehicle 1020 has a drift angle, and the larger the drift angle, the higher the body offset of the virtual vehicle 1020, which will result in a longer time required for the virtual vehicle 1020 to exit the drift state.
[0227] To sum up, in the control method of the virtual vehicle provided in the embodiment of the present application, at different drift angles of the virtual vehicle, different cornering skills can be released in response to the third trigger operation on the throttle control component, so that the cornering process of the virtual vehicle is more in line with the actual situation; and according to the different drift angles of the virtual vehicle, the corresponding de-drifting time is also different, the longer the drift angle, the longer the de-drifting time.
[0228] refer to Figure 5 , Fig.11A flowchart of a control method for a virtual vehicle provided by an exemplary embodiment of the present application is shown. When the third trigger operation is a continuous pressing operation on the throttle control component, the method further includes step 506, which is as follows:
[0229] Step 506: When the pressing time on the throttle control component exceeds the first pressing time, the full throttle skill is triggered, and the skill release time of the cornering skill is extended.
[0230] The first pressing time can be set according to actual needs. Optionally, the first pressing time ranges from 0.3 to 1.5 seconds, for example, the first pressing time is 0.5 seconds.
[0231] Fig.12 The interface diagram of a control method for a virtual vehicle provided by an exemplary embodiment of the present application is shown. In the display interface 1210, a virtual vehicle 1220 is displayed, and the virtual vehicle 1220 is currently in an accelerated driving state, which is presented by releasing a cornering skill in response to a trigger operation on the throttle control 1203.
[0232] Taking the first pressing time of 0.5 seconds as an example, the player continues to press the throttle control 1203 after triggering the cornering skill, and the pressing time on the throttle control 1203 exceeds 0.5 seconds. At this time, the full throttle skill can be triggered, extending the skill release time of the cornering skill, providing the virtual vehicle 1220 with a longer acceleration service time, so that the acceleration effect of the virtual vehicle 1220 is enhanced.
[0233] Optionally, when releasing the full throttle skill, the display interface 1210 may also display an indication message 03 indicating that the full throttle skill has been successfully released. The indication message 03 may be at least one of a text special effect, an animation special effect, and a sound special effect. It should be understood that the indication message 03 may be displayed in the display interface 1210. Fig.12 It is presented in the form of text special effects, but it does not limit this application.
[0234] Optionally, when the acceleration of the virtual vehicle 1220 has not reached the maximum value and the full throttle skill is triggered, the acceleration of the virtual vehicle 1220 is increased. In order to further enhance the acceleration effect of the virtual vehicle 1220, when the full throttle skill is released, if the acceleration of the virtual vehicle 1220 has not reached the maximum value, the acceleration of the virtual vehicle 1220 can be increased so that the speed of the virtual vehicle 1220 is increased in a short time.
[0235] To sum up, in the control method of the virtual vehicle provided in the embodiment of the present application, through the continuous pressing operation on the throttle control component, when the pressing time on the throttle control component exceeds the first pressing time, the full throttle skill is triggered to extend the skill release time of the cornering skill, thereby enhancing the acceleration effect of the virtual vehicle.
[0236] Optionally, when the acceleration of the virtual vehicle has not reached the maximum value and the full throttle skill is triggered, the acceleration of the virtual vehicle may be increased so that the acceleration effect of the virtual vehicle is further enhanced.
[0237] refer to Figure 5 , Fig.13 A flowchart of a control method for a virtual vehicle provided by an exemplary embodiment of the present application is shown. The method further includes step 5071 and step 5072, which are specifically as follows:
[0238] Step 5071: within the energy triggering duration after releasing the cornering skill, in response to the fourth triggering operation on the energy control component, the energy overload skill is triggered to extend the skill release duration of the cornering skill.
[0239] The energy triggering time can be set according to actual needs. Optionally, the energy triggering time is 0.3-1 seconds. That is, within 0.3-1 seconds after releasing the cornering skill, if the player triggers the energy control component again, the energy overload skill can be triggered, extending the skill release time of the cornering skill.
[0240] Illustratively, the fourth trigger operation may be at least one of the following operations: a single-click operation, a double-click operation, a touch operation, a single press operation, and a continuous press operation. For example, within the energy triggering duration after releasing the out-of-bend skill, the player single-clicks the energy control to trigger the energy overload skill, thereby extending the skill release duration of the out-of-bend skill.
[0241] Step 5072: After exceeding the energy triggering time after releasing the curve skill, the energy control component is controlled to be in an untriggerable state.
[0242] Indicatively, the end time point of the untriggerable state is the same as the end time point of the skill release duration of the exiting skill; the energy triggering duration can refer to the aforementioned content and will not be repeated here.
[0243] The end time point of the untriggerable state is set to avoid functional confusion during the release of the skill. If the player triggers the energy control component again within the energy triggering time after releasing the skill, multiple units of acceleration energy can be consumed multiple times in a short period of time to accelerate the virtual vehicle; if the player does not trigger the energy control component within the energy triggering time after releasing the skill, the energy control component needs to be locked so that it cannot be used before the end time point of the skill release time of the skill to avoid functional confusion.
[0244] It should be understood that step 5071 and step 5072 can be executed one by one and cannot be executed at the same time.
[0245] Fig.14 The interface diagram of a control method for a virtual vehicle provided by an exemplary embodiment of the present application is shown. In the display interface 1410, a virtual vehicle 1420 is displayed, and the virtual vehicle 1420 is currently in an accelerated driving state, which is presented by releasing a cornering skill in response to a trigger operation on the throttle control 1403.
[0246] Within the energy triggering duration after releasing the bending skill, the player can choose whether to trigger the energy control 1402 again.
[0247] If the player triggers the energy control 1402 again, the acceleration energy can be used again to provide acceleration service for the virtual vehicle 1420. At this time, the energy overload skill is released to extend the skill release time of the cornering skill to meet the acceleration demand of the virtual vehicle 1420, so that the acceleration duration of the virtual vehicle 1420 is increased, thereby enhancing the acceleration effect of the virtual vehicle 1420.
[0248] If the player does not trigger the energy control 1402, the energy control 1402 is controlled to be in an untriggerable state to prevent the energy control 1402 from being triggered again during the release of the current cornering skill.
[0249] Optionally, when releasing the energy overload skill, the display interface 1410 may also display an indication message 04 indicating that the energy overload skill has been successfully released. The indication message 04 may be at least one of a text special effect, an animation special effect, and a sound special effect. It should be understood that the indication message 04 may be displayed in the display interface 1410. Fig.14 It is presented in the form of text special effects, but it does not limit this application.
[0250] Optionally, when the acceleration of the virtual vehicle 1420 has not reached the maximum value and the energy overload skill is triggered, the acceleration of the virtual vehicle 1420 is increased. In order to further enhance the acceleration effect of the virtual vehicle 1420, when the energy overload skill is released, if the acceleration of the virtual vehicle 1420 has not reached the maximum value, the acceleration of the virtual vehicle 1420 can be increased so that the speed of the virtual vehicle 1420 is increased in a short time.
[0251] In summary, in the control method of the virtual vehicle provided in the embodiment of the present application, different controls of the virtual vehicle can be realized within the energy triggering duration after releasing the cornering skill. Among them, the energy overload skill can be triggered in response to the fourth triggering operation on the energy control component, and the skill release duration of the cornering skill can be extended, so that the acceleration effect of the virtual vehicle is enhanced; if the energy triggering duration is exceeded, the energy control component can be controlled to be in an untriggerable state, so as to avoid triggering the energy control component again during the release process of the cornering skill.
[0252] Optionally, when the acceleration of the virtual vehicle has not reached the maximum value and the energy overload skill is triggered, the acceleration of the virtual vehicle may be increased so that the acceleration effect of the virtual vehicle is further enhanced.
[0253] refer to Figure 5 , Fig.15 A flowchart of a virtual vehicle control method provided by an exemplary embodiment of the present application is shown. The method further includes step 5081 and step 5082, which are specifically as follows:
[0254] Step 5081: In response to a single-click operation on the throttle control component, the virtual vehicle is controlled to enter a continuous acceleration state.
[0255] Illustratively, the throttle control component provided in the embodiment of the present application is used to increase the speed of the virtual vehicle. In response to a trigger operation on the throttle control component, the virtual vehicle can be controlled to accelerate. The trigger operation on the throttle control component can be at least one of a single-click operation, a double-click operation, a touch operation, a continuous press operation, and the like.
[0256] In the case where the trigger operation on the throttle control component is a single-click operation, in response to the single-click operation on the throttle control component, the throttle corresponding to the virtual vehicle will automatically remain in a pressed state, so that the virtual vehicle maintains a continuous acceleration state. For example, the player clicks the throttle control in the display interface of the terminal and then releases it, and the virtual vehicle enters a state of continuous acceleration.
[0257] It should be noted that step 5081 can also be executed before the cornering skill is released. The embodiment of the present application only takes the execution of step 5081 after the cornering skill is released as an example, and does not limit the present application.
[0258] Step 5082: After the virtual vehicle enters the continuous acceleration state, in response to the fifth trigger operation on the brake control component, the virtual vehicle is controlled to stop accelerating.
[0259] Illustratively, the throttle control component provided in the embodiment of the present application can also be used to implement at least one of the stop acceleration, deceleration and reversing functions of the virtual vehicle.
[0260] According to step 5081, in response to the single click operation on the throttle control component, the virtual vehicle is controlled to enter a continuous acceleration state. At this time, if the player triggers the brake control component again, the virtual vehicle can be controlled to stop accelerating, which is used to simulate the state of the throttle bouncing up.
[0261] The fifth trigger operation may be at least one of the following operations: a single click operation, a double click operation, a touch operation, a single press operation, and a continuous press operation. Depending on the fifth trigger operation, step 5082 may be implemented in different ways.
[0262] Optionally, in the case where the fifth trigger operation is a single-click operation on the brake control component, step 5082 can also be implemented as follows: after the virtual vehicle enters the continuous acceleration state, in response to the fifth trigger operation, the virtual vehicle is controlled to stop accelerating and enter a natural deceleration state, the natural deceleration state refers to the continuous deceleration state entered by the virtual vehicle due to resistance factors, and the resistance factors include at least one of road resistance, air resistance and mechanical loss.
[0263] Optionally, in the case where the fifth trigger operation is a continuous pressing operation on the brake control component, step 5082 can also be implemented as follows: after the virtual vehicle enters the continuous acceleration state, in response to the fifth trigger operation, the virtual vehicle is controlled to stop accelerating and enter a continuous deceleration state, and the continuous deceleration state refers to the savings deceleration state entered by the virtual vehicle due to resistance factors and brake resistance, the resistance factors include at least one of road resistance, air resistance and mechanical loss, and the brake resistance is generated according to the continuous pressing operation on the brake control component.
[0264] Among them, road resistance refers to the friction between the tires of the virtual vehicle and the ground, air resistance refers to the air resistance encountered by the virtual vehicle during driving, mechanical loss refers to the kinetic energy loss in the transmission device of the virtual vehicle, and the size of the braking resistance can be set according to actual needs.
[0265] 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 greater. For example, taking the initial vehicle speed as 100km / h, in the natural deceleration state, it takes 60 seconds for the virtual vehicle to decelerate to 0km / h, while it only takes 2.5 seconds in the continuous deceleration state.
[0266] Optionally, in the control method of the virtual vehicle provided in the embodiment of the present application, after the virtual vehicle enters a continuous deceleration state, it also includes: when the speed of the virtual vehicle drops to 0 and the fifth trigger operation still exists, controlling the virtual vehicle to enter a reversing state.
[0267] In summary, the control method of the virtual vehicle provided in the embodiment of the present application provides the function and use method of the throttle control component. In response to a single click operation on the throttle control component, the virtual vehicle is controlled to enter a continuous acceleration state, avoiding the situation where the player needs to press the throttle control component for a long time, and relatively reducing the control difficulty of the virtual vehicle.
[0268] Optionally, according to the difference of the fifth trigger operation on the throttle control component, through the coordinated use of the throttle control component and the brake control component, the embodiment of the present application also provides a method for implementing deceleration and reversing of the virtual vehicle.
[0269] It should be understood that the multiple embodiments given above can be used in combination.
[0270] For example, in response to the first trigger operation on the brake control component, the speed of the virtual vehicle is controlled to decrease; in response to the second trigger operation on the energy control component, a prompt message of consuming acceleration energy is displayed; when the drift angle of the virtual vehicle is not greater than the first angle, in response to the third trigger operation on the throttle control component, the first cornering skill is released, and the virtual vehicle is controlled to be in an accelerating driving state within the skill release duration of the first cornering skill, and exit the drifting state after the first drift exit duration; the third trigger operation is a continuous pressing operation on the throttle control component. When the pressing time on the throttle control component exceeds the first pressing time, the full throttle skill is triggered to extend the skill release time of the cornering skill; within the energy trigger time after releasing the cornering skill, in response to the fourth trigger operation on the energy control component, the energy overload skill is triggered to extend the skill release time of the cornering skill again.
[0271] Illustratively, other combinations not listed are within the protection scope of this application and will not be described in detail.
[0272] Fig.16 A flowchart of a virtual vehicle control method provided by an exemplary embodiment of the present application is shown. Taking the virtual vehicle control method provided by the present application as an example, the control method is implemented by the player on the terminal. Fig.17The interface diagram of a control method for a virtual vehicle provided by an exemplary embodiment of the present application is shown, and the brake control component, energy control component and throttle control component can be displayed in the style of controls in the display interface 1710. Among them, the display interface 1710 displays a brake control 1701, an energy control 1702, a throttle control 1703, a direction control 1704 and a handbrake control 1705.
[0273] Taking the acceleration energy as nitrogen as an example, the control method of the virtual vehicle provided in the embodiment of the present application includes the following steps:
[0274] Step 1601: Click the direction control and the handbrake control to control the virtual vehicle to drift.
[0275] Indicatively, in response to the simultaneous triggering operation on the steering control and the handbrake control, the virtual vehicle is controlled to enter a drifting state, wherein the drifting state can also be referred to as a tail-swinging state, in which the virtual vehicle slides sideways in an oversteering manner.
[0276] Step 1602: Release the parking brake control.
[0277] Indicatively, the handbrake control is released to prevent the speed of the virtual vehicle from decreasing rapidly, thereby indirectly ensuring the speed of the virtual vehicle.
[0278] Step 1603: Click the brake control.
[0279] Among them, the brake control is used to control the grip of the virtual vehicle. The grip of the virtual vehicle refers to the friction between the tires of the virtual vehicle and the ground. The reduction of the speed of the virtual vehicle is achieved by enhancing the grip of the virtual vehicle.
[0280] Illustratively, in response to a first trigger operation on a brake control, the speed of the virtual vehicle is controlled to decrease.
[0281] The first trigger operation may be at least one of the following operations: a single-click operation, a double-click operation, a touch operation, a single-press operation, and a continuous-press operation.
[0282] Step 1604: Click the energy control.
[0283] Indicatively, in response to a second trigger operation on the energy control, a prompt message for consuming acceleration energy is displayed, wherein the second trigger operation may be at least one of the following operations: a single-click operation, a double-click operation, a touch operation, a single-press operation, and a continuous-press operation.
[0284] Step 1605: Trigger the throttle control.
[0285] The throttle control is used to increase the speed of the virtual vehicle, and the triggering operation on the throttle control 303 may be at least one of a single-click operation, a double-click operation, a touch operation, a continuous pressing operation, and the like.
[0286] Optionally, in response to a single click on the throttle control, the virtual vehicle is controlled to enter a continuous acceleration state. The player can click the throttle control and then release it. At this time, the virtual vehicle is still in a continuous acceleration state, avoiding the situation where the player continues to press the throttle control.
[0287] Optionally, when the virtual vehicle is in a continuous acceleration state, the brake control is also used to implement at least one of the virtual vehicle's stop acceleration, deceleration and reversing functions. For example, after the virtual vehicle enters the continuous acceleration state, in response to a single click operation on the brake control, the virtual vehicle is controlled to stop accelerating and enter a natural deceleration state, which refers to a continuous deceleration state in which the virtual vehicle is affected by resistance factors, and the resistance factors include at least one of road resistance, air resistance and mechanical loss; for another example, in response to a continuous pressing operation on the brake control, the virtual vehicle is controlled to stop accelerating and enter a continuous deceleration state, which refers to a storage deceleration state in which the virtual vehicle is affected by resistance factors and brake resistance, and the resistance factors include at least one of road resistance, air resistance and mechanical loss, and the brake resistance is generated according to the continuous pressing operation on the brake control.
[0288] Among them, road resistance refers to the friction between the tires of the virtual vehicle and the ground, air resistance refers to the air resistance encountered by the virtual vehicle during driving, mechanical loss refers to the kinetic energy loss in the transmission device of the virtual vehicle, and the size of the braking resistance can be set according to actual needs.
[0289] Optionally, when the virtual vehicle is in a state of continuous deceleration, if the speed of the virtual vehicle drops to 0 and the brake control is still pressed continuously, the virtual vehicle is controlled to enter a reversing state.
[0290] Step 1606: Determine whether the drift angle of the virtual vehicle is not greater than 45 degrees.
[0291] Schematically, the drift angle is used to indicate the angle between the front direction and the speed direction of the virtual vehicle.
[0292] The larger the drift angle, the higher the degree of body deviation of the virtual vehicle, which will result in a longer time required for the virtual vehicle to exit the drift state. In addition, the drift angle is affected by the grip of the virtual vehicle, and the change of grip is achieved through the trigger operation on the brake control component.
[0293] Optionally, before executing step 1606, the drift angle of the virtual vehicle needs to be calculated.
[0294] According to the above content, the drift angle of the virtual vehicle can be determined according to the grip, front direction and speed direction of the virtual vehicle. The calculation method of the drift angle can refer to the above content and will not be repeated here.
[0295] When the drift angle of the virtual vehicle is not greater than 45 degrees, step 16071 is executed; when the drift angle of the virtual vehicle is greater than 45 degrees, step 16072 is executed. It should be understood that step 16071 and step 16072 can be executed one by one, but not at the same time.
[0296] Step 16071: When the drift angle of the virtual vehicle is not greater than 45 degrees, trigger the boosted nitrous cornering skill.
[0297] Step 16072: When the drift angle of the virtual vehicle is greater than 45 degrees, the boosted nitrous skill is triggered.
[0298] In schematic form, when the boosted nitrous cornering skill is released, the virtual vehicle is controlled to be in an accelerated driving state within the skill release duration of the boosted nitrous cornering skill, and exits the drifting state after a first de-drifting duration; when the boosted nitrous skill is released, the virtual vehicle is controlled to be in an accelerated driving state within the skill release duration of the boosted nitrous cornering skill, and exits the drifting state after a second de-drifting duration, and the first de-drifting duration is less than the second de-drifting duration.
[0299] Step 1608: Determine whether the throttle control is continuously pressed.
[0300] If the throttle control is continuously pressed, step 1609 is executed; if the throttle control is not continuously pressed, step 1612 is executed. It should be understood that step 1609 and step 1612 are executed one by one, and cannot be executed at the same time.
[0301] Step 1609: Determine whether the pressing time of the throttle control is not less than 0.5 seconds.
[0302] Indicatively, the player triggers the throttle control, and different cornering skills can be triggered according to the drift angle of the virtual vehicle. Subsequently, it can be determined whether the triggering operation on the throttle control is a single-click operation or a continuous pressing operation. In the case where the triggering operation on the throttle control is a continuous pressing operation, it is again determined whether the pressing time on the throttle control is greater than 0.5 seconds.
[0303] If the throttle control is pressed for no less than 0.5 seconds, step 1610 is executed; if the throttle control is pressed for less than 0.5 seconds, step 1611 is executed. It should be understood that step 1610 and step 1611 can be executed one at a time and cannot be executed at the same time.
[0304] Step 1610: When the throttle control is pressed for no less than 0.5 seconds, the full throttle skill is triggered.
[0305] Step 1611: When the throttle control is pressed for less than 0.5 seconds, the full throttle skill is not triggered.
[0306] Indicatively, after triggering the cornering skill, the player continues to press the accelerator control, and the pressing time on the accelerator control exceeds 0.5 seconds. At this time, the full throttle skill can be triggered, and the skill release time of the cornering skill can be extended, providing the virtual vehicle with a longer acceleration service time, so that the acceleration effect of the virtual vehicle is enhanced.
[0307] Optionally, when the acceleration of the virtual vehicle has not reached the maximum value and the full throttle skill is triggered, the acceleration of the virtual vehicle is increased. In order to further enhance the acceleration effect of the virtual vehicle, when the full throttle skill is released, if the acceleration of the virtual vehicle has not reached the maximum value, the acceleration of the virtual vehicle can be increased so that the speed of the virtual vehicle can be further increased in a short time.
[0308] Step 1612: Determine whether the energy control is clicked again within 0.3-1 seconds.
[0309] Indicatively, within the energy triggering duration after releasing the bending skill, the player can choose whether to trigger the energy control again, and the energy triggering duration is 0.3-1 seconds. Based on this, it can be judged whether the player clicks the energy control again within 0.3-1 seconds.
[0310] If the energy control is clicked again, step 1613 is executed; if the energy control is not clicked again, step 1614 is executed. It should be understood that step 1613 and step 1614 can be executed one by one, and cannot be executed at the same time.
[0311] Step 1613: By clicking the energy control again, the reserve of one bottle of nitrogen is consumed and the nitrogen overload skill is triggered.
[0312] Step 1614: When the energy control is not clicked again, the energy control is controlled to be in an untriggerable state.
[0313] Indicatively, within 0.3-1 seconds of the energy triggering time, if the player triggers the energy control again, the acceleration energy can be reused to provide acceleration service for the virtual vehicle again. At this time, the energy overload skill is released to extend the skill release time of the cornering skill to meet the acceleration needs of the virtual vehicle, so that the duration of the virtual vehicle acceleration can be increased, thereby enhancing the acceleration effect of the virtual vehicle.
[0314] Within the energy triggering time of 0.3-1 second, if the player does not trigger the energy control, the energy control will be controlled to be in an untriggerable state to prevent the energy control from being triggered again during the release of the current cornering skill.
[0315] Optionally, the energy control being in an untriggerable state may be presented by the energy control turning gray in the display interface.
[0316] refer to Fig.17 , a virtual vehicle 1720 is displayed in the display interface 1710, and the control method of the virtual vehicle provided in the embodiment of the present application can be implemented by the following steps:
[0317] Step 1: In response to the simultaneous triggering operations on the direction control 1704 and the handbrake control 1705, the virtual vehicle 1720 is controlled to enter a drifting state in the curve.
[0318] Step 2: In response to the first trigger operation on the brake control 1701, the speed of the virtual vehicle 1720 is controlled to decrease, and the grip of the virtual vehicle 1720 at this time increases.
[0319] Step 3: In response to the second trigger operation on the energy control 1702, a bottle of nitrogen is consumed to provide acceleration service for the virtual vehicle 1720, and a prompt message of consuming a bottle of nitrogen can be displayed in the display interface 1710; during the consumption of nitrogen, in response to the third trigger operation on the throttle control 1703, the corresponding cornering skill is released according to the drift angle of the virtual vehicle 1720, and the virtual vehicle is controlled to be in an accelerated driving state within the skill release duration of the cornering skill. Optionally, the display interface 1710 also displays an indication message 061 that the cornering skill is successfully released.
[0320] Step 4: In the case where the trigger operation on the throttle control 1703 is a continuous pressing operation, if the pressing time on the throttle control 1703 exceeds the first pressing time, the full throttle skill is released, the skill release time of the cornering skill is extended, and a longer acceleration service time is provided for the virtual vehicle 1720, so that the acceleration effect of the virtual vehicle 1720 is enhanced. At the same time, if the acceleration of the virtual vehicle 1720 has not reached the maximum value, the acceleration of the virtual vehicle 1720 is increased, so that the speed of the virtual vehicle 1720 is further increased in a short time. Optionally, the display interface 1710 also displays the indication information 062 that the full throttle skill is successfully released.
[0321] Step 5:Within the energy triggering duration after releasing the cornering skill, in response to the fourth triggering operation on the energy control 1702, the energy overload skill is triggered, the skill release duration of the cornering skill is extended, and a longer acceleration service time is provided to the virtual vehicle 1720, so that the acceleration effect of the virtual vehicle 1720 is enhanced. At the same time, if the acceleration of the virtual vehicle 1720 has not reached the maximum value, the acceleration of the virtual vehicle 1720 is increased, so that the speed of the virtual vehicle 1720 is further improved in a short time. Optionally, the display interface 1710 also displays the indication information 063 that the energy overload skill is successfully released.
[0322] Step 6: After the skill release time of the cornering skill ends, the acceleration of the virtual vehicle 1720 is controlled to return to the state before the cornering skill is released.
[0323] To sum up, in the control method of the virtual vehicle provided in the embodiment of the present application, the cornering skill is released through the sequential triggering operations on the brake control, energy control and throttle control to control the virtual vehicle to be in an accelerated driving state within the skill release time, thereby meeting the acceleration demand of the virtual vehicle during the drifting corner process.
[0324] Among them, the first trigger operation on the brake control is used to improve the grip of the virtual vehicle. When the virtual vehicle has a high grip, the drift speed of the virtual vehicle is improved, and the second trigger operation on the energy control and the third trigger operation on the throttle control are used to release the cornering skill to accelerate the virtual vehicle, reducing the sliding distance of the rear end of the virtual vehicle, so that the body of the virtual vehicle can be quickly straightened, so that the driving trajectory of the virtual vehicle during the cornering process is more reasonable and the acceleration effect is better.
[0325] The following is an embodiment of the device of the present application. For details not described in detail in the embodiment of the device, reference can be made to the corresponding records in the above method embodiment, and they will not be repeated herein.
[0326] Fig.18 A schematic diagram of a control device for a virtual vehicle provided by an exemplary embodiment is shown, the device comprising:
[0327] The display module 1820 is used to display a virtual scene, wherein the virtual scene includes a virtual vehicle in a drifting state in a curve;
[0328] A response module 1840, configured to control the speed of the virtual vehicle to decrease in response to a first trigger operation on the brake control component;
[0329] The response module 1840 is further used to display prompt information of consuming acceleration energy in response to the second trigger operation on the energy control component;
[0330] The response module 1840 is also used to respond to the third trigger operation on the throttle control component, release the cornering skill, and control the virtual vehicle to be in an accelerated driving state within the skill release duration of the cornering skill. The skill release duration of the cornering skill is used to indicate the duration of the virtual vehicle's acceleration. The skill release duration of the cornering skill is greater than the duration of the virtual vehicle using acceleration energy to accelerate when it is not in a drifting state.
[0331] Optionally, response module 1840 is used to release the first exit-turning skill in response to a third trigger operation when the drift angle of the virtual vehicle is not greater than the first angle, control the virtual vehicle to be in an accelerated driving state within the skill release duration of the first exit-turning skill, and exit the drift state after a first de-drifting duration; when the drift angle of the virtual vehicle is greater than the first angle, release the second exit-turning skill in response to the third trigger operation, control the virtual vehicle to be in an accelerated driving state within the skill release duration of the second exit-turning skill, and exit the drift state after a second de-drifting duration; wherein the first de-drifting duration is less than the second de-drifting duration.
[0332] Optionally, the device further includes a determination module 1860 for determining a drift angle according to the grip, front direction and speed direction of the virtual vehicle.
[0333] Optionally, the response module 1840 is further used to control the virtual vehicle to enter a level running state when the angle between the vehicle head direction and the speed direction is smaller than the back-drift angle.
[0334] Optionally, the third trigger operation is a continuous pressing operation on the throttle control component. The response module 1840 is also used to trigger the full throttle skill when the pressing time on the throttle control component exceeds the first pressing time, thereby extending the skill release time of the cornering skill.
[0335] Optionally, the response module 1840 is further configured to increase the acceleration of the virtual vehicle when the acceleration of the virtual vehicle has not reached a maximum value and the full throttle skill is triggered.
[0336] Optionally, the response module 1840 is also used to trigger the energy overload skill in response to the fourth trigger operation on the energy control component within the energy triggering duration after the release of the cornering skill, thereby extending the skill release duration of the cornering skill.
[0337] Optionally, the response module 1840 is also used to control the energy control component to be in an untriggerable state after the energy triggering time is exceeded, and the end time point of the untriggerable state is the same as the end time point of the skill release time of the cornering skill.
[0338] Optionally, the response module 1840 is further used to increase the acceleration of the virtual vehicle when the acceleration of the virtual vehicle has not reached a maximum value and the energy overload skill is triggered.
[0339] Optionally, the response module 1840 is further configured to control the virtual vehicle to enter a continuous acceleration state in response to a single-click operation on the throttle control component.
[0340] Optionally, the response module 1840 is further configured to control the virtual vehicle to stop accelerating in response to a fifth trigger operation on the brake control component after the virtual vehicle enters a continuous acceleration state.
[0341] Optionally, the fifth trigger operation is a single-click operation on the brake control component. The response module 1840 is used to respond to the fifth trigger operation to control the virtual vehicle to stop accelerating and enter a natural deceleration state. The natural deceleration state refers to a continuous deceleration state entered by the virtual vehicle due to resistance factors, and the resistance factors include at least one of road resistance, air resistance and mechanical loss.
[0342] Optionally, the fifth trigger operation is a continuous pressing operation on the brake control component. The response module 1840 is used to respond to the fifth trigger operation to control the virtual vehicle to stop accelerating and enter a continuous deceleration state. The continuous deceleration state refers to the savings deceleration state entered by the virtual vehicle 320 due to resistance factors and brake resistance. The resistance factors include at least one of road resistance, air resistance and mechanical loss. The brake resistance is generated according to the continuous pressing operation on the brake control 301.
[0343] Optionally, the response module 1840 is further configured to control the virtual vehicle to enter a reversing state when the speed of the virtual vehicle drops to 0 and the fifth trigger operation still exists.
[0344] Optionally, the response module 1840 is further used to control the virtual vehicle to enter a drift state in a curve in response to simultaneous triggering operations on the steering control component and the handbrake control component.
[0345] Fig.19 The structure block diagram of a terminal 1900 provided by an exemplary embodiment of the present application is shown. The terminal 1900 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) player, a laptop computer or a desktop computer. The terminal 1900 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0346] Typically, the terminal 1900 includes: a processor 1901 and a memory 1902 .
[0347] The processor 1901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1901 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 1901 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 1901 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 1901 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0348] The memory 1902 may include one or more computer-readable storage media, which may be non-transitory. The memory 1902 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 1902 is used to store at least one instruction, which is used to be executed by the processor 1901 to implement the control method of the virtual vehicle provided in the method embodiment of the present application.
[0349] In some embodiments, the terminal 1900 may also optionally include: a peripheral device interface 1903 and at least one peripheral device. The processor 1901, the memory 1902 and the peripheral device interface 1903 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1903 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1904, a touch display screen 1905, a camera assembly 1906, an audio circuit 1907 and a power supply 1908.
[0350] The peripheral device interface 1903 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1901 and the memory 1902. In some embodiments, the processor 1901, the memory 1902, and the peripheral device interface 1903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1901, the memory 1902, and the peripheral device interface 1903 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0351] The radio frequency circuit 1904 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1904 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1904 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1904 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 1904 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 1904 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0352] The touch display screen 1905 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1905 also has the energy to collect touch signals on the surface or above the surface of the touch display screen 1905. The touch signal may be input as a control signal to the processor 1901 for processing. At this time, the touch display screen 1905 may also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the touch display screen 1905 may be one, and the front panel of the terminal 1900 is set; in other embodiments, the touch display screen 1905 may be at least two, which are respectively set on different surfaces of the terminal 1900 or are folded; in still other embodiments, the touch display screen 1905 may be a flexible display screen, which is set on a curved surface or a folded surface of the terminal 1900. Even, the touch display screen 1905 may also be set to a non-rectangular irregular figure, that is, a special-shaped screen. The touch display screen 1905 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0353] The camera assembly 1906 is used to capture images or videos. Optionally, the camera assembly 1906 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, 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 with VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1906 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.
[0354] The audio circuit 1907 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 1901 for processing, or input them into the radio frequency circuit 1904 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 1900. 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 1901 or the radio frequency circuit 1904 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 1907 may also include a headphone jack.
[0355] The power supply 1908 is used to power various components in the terminal 1900. The power supply 1908 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1908 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.
[0356] In some embodiments, the terminal 1900 further includes one or more sensors 1909 . The one or more sensors 1909 include, but are not limited to: an acceleration sensor 1910 , a gyroscope sensor 1911 , a pressure sensor 1912 , an optical sensor 1913 , and a proximity sensor 1914 .
[0357] The acceleration sensor 1910 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1900. For example, the acceleration sensor 1910 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1901 can control the touch display screen 1905 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1910. The acceleration sensor 1910 can also be used for collecting game or user motion data.
[0358] The gyro sensor 1911 can detect the body direction and rotation angle of the terminal 1900, and the gyro sensor 1911 can cooperate with the acceleration sensor 1910 to collect the user's 3D actions on the terminal 1900. The processor 1901 can implement the following functions based on the data collected by the gyro sensor 1911: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0359] The pressure sensor 1912 can be set on the side frame of the terminal 1900 and / or the lower layer of the touch display screen 1905. When the pressure sensor 1912 is set on the side frame of the terminal 1900, it can detect the user's holding signal of the terminal 1900, and the processor 1901 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1912. When the pressure sensor 1912 is set on the lower layer of the touch display screen 1905, the processor 1901 controls the operability controls on the UI interface according to the user's pressure operation on the touch display screen 1905. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0360] The optical sensor 1913 is used to collect the ambient light intensity. In one embodiment, the processor 1901 can control the display brightness of the touch display screen 1905 according to the ambient light intensity collected by the optical sensor 1913. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1905 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1905 is reduced. In another embodiment, the processor 1901 can also dynamically adjust the shooting parameters of the camera assembly 1906 according to the ambient light intensity collected by the optical sensor 1913.
[0361] The proximity sensor 1914, also called a distance sensor, is usually arranged on the front panel of the terminal 1900. The proximity sensor 1914 is used to collect the distance between the user and the front of the terminal 1900. In one embodiment, when the proximity sensor 1914 detects that the distance between the user and the front of the terminal 1900 is gradually decreasing, the processor 1901 controls the touch display screen 1905 to switch from the screen-on state to the screen-off state; when the proximity sensor 1914 detects that the distance between the user and the front of the terminal 1900 is gradually increasing, the processor 1901 controls the touch display screen 1905 to switch from the screen-off state to the screen-on state.
[0362] Those skilled in the art will understand that Fig.19 The structure shown in the figure does not constitute a limitation on the terminal 1900, and the terminal 1900 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0363] The present application also provides a computer device, which includes a memory and a processor; the processor is used to display a virtual scene, the virtual scene including a virtual vehicle in a drifting state in a curve; in response to a first trigger operation on a brake control component, the speed of the virtual vehicle is controlled to decrease; in response to a second trigger operation on an energy control component, a prompt message for consuming acceleration energy is displayed; in response to a third trigger operation on a throttle control component, a cornering skill is released, and the virtual vehicle is controlled to be in an accelerated driving state within the skill release duration of the cornering skill, the skill release duration of the cornering skill is used to indicate the duration of the virtual vehicle in acceleration, and the skill release duration of the cornering skill is greater than the duration of the virtual vehicle when using acceleration energy to accelerate when it is not in a drifting state.
[0364] The present application also provides a computer-readable storage medium, in which a computer program is stored. The computer program is used to be executed by a processor to implement the control method of the virtual vehicle as described above.
[0365] The present application also provides a chip, which includes a programmable logic circuit and / or program instructions. When the chip is running, it is used to implement the control method of the virtual vehicle as described above.
[0366] The present application also provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. A processor reads and executes the computer instructions from the computer-readable storage medium to implement the control method of the virtual vehicle as described above.
[0367] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0368] 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 storage medium may be a read-only memory, a disk or an optical disk, etc.
[0369] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, 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 control method for a virtual vehicle, characterized in that: The method comprises: Displaying a virtual scene, wherein the virtual scene includes a virtual vehicle in a drifting state in a curve; In response to a first operation, controlling the speed of the virtual vehicle to decrease; In response to the second operation, displaying prompt information for consuming acceleration energy; In response to the third operation, the cornering skill is released, and the virtual vehicle is controlled to be in an accelerated driving state within the skill release duration of the cornering skill. The skill release duration of the cornering skill is used to indicate the duration of the virtual vehicle's acceleration. The skill release duration of the cornering skill is greater than the duration of the virtual vehicle using the acceleration energy to accelerate when it is not in the drifting state.
2. The method according to claim 1, characterized in that The step of releasing the cornering skill in response to the third operation and controlling the virtual vehicle to be in an accelerated driving state within the skill release duration of the cornering skill includes: When the drift angle of the virtual vehicle is not greater than the first angle, in response to the third operation, the first cornering skill is released, the virtual vehicle is controlled to be in an accelerated driving state within the skill release duration of the first cornering skill, and the virtual vehicle exits the drifting state after a first de-drifting duration; When the drift angle of the virtual vehicle is greater than the first angle, in response to the third operation, a second cornering skill is released, the virtual vehicle is controlled to be in an accelerated driving state within the skill release duration of the second cornering skill, and exits the drifting state after a second de-drifting duration; The first drift-de-drifting time is shorter than the second drift-de-drifting time.
3. The method according to claim 2, characterized in that The method further comprises: The drift angle is determined according to the grip, the front direction and the speed direction of the virtual vehicle.
4. The method according to claim 3, characterized in that: The method further comprises: When the angle between the vehicle head direction and the speed direction is smaller than the back-drifting angle, the virtual vehicle is controlled to enter a level running state.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: When the pressing time corresponding to the third operation exceeds the first pressing time, the full throttle skill is triggered, and the skill release time of the cornering skill is extended.
6. The method according to claim 5, characterized in that The method further comprises: When the acceleration of the virtual vehicle has not reached a maximum value and the full-throttle skill is triggered, the acceleration of the virtual vehicle is increased.
7. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Within the energy triggering duration after releasing the cornering skill, in response to a fourth operation, the energy overload skill is triggered to extend the skill release duration of the cornering skill.
8. The method according to claim 7, characterized in that The method further comprises: After exceeding the energy triggering duration, the fourth operation is controlled to be in an untriggerable state, and the end time point of the untriggerable state is the same as the end time point of the skill release duration of the cornering skill.
9. The method according to claim 7, characterized in that: The method further comprises: When the acceleration of the virtual vehicle has not reached a maximum value and the energy overload skill is triggered, the acceleration of the virtual vehicle is increased.
10. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: In response to the third operation, the accelerator corresponding to the virtual vehicle automatically remains in a pressed state, and the virtual vehicle is controlled to enter a continuous acceleration state.
11. The method according to claim 10, characterized in that The method further comprises: After the virtual vehicle enters the continuous acceleration state, in response to a fifth operation, the virtual vehicle is controlled to stop accelerating.
12. The method according to claim 11, characterized in that In response to the fifth operation, controlling the virtual vehicle to stop accelerating includes: In response to the fifth operation, the virtual vehicle is controlled to stop accelerating and enter a natural deceleration state, wherein the natural deceleration state refers to a continuous deceleration state entered by the virtual vehicle due to resistance factors, wherein the resistance factors include at least one of road resistance, air resistance and mechanical loss, wherein the road resistance refers to the friction between the tires of the virtual vehicle and the ground, the air resistance refers to the air resistance encountered by the virtual vehicle during driving, and the mechanical loss refers to the kinetic energy loss in the transmission device of the virtual vehicle.
13. The method according to claim 11, characterized in that In response to the fifth operation, controlling the virtual vehicle to stop accelerating includes: In response to the fifth operation, the virtual vehicle is controlled to stop accelerating and enter a continuous deceleration state, wherein the continuous deceleration state refers to a continuous deceleration state entered by the virtual vehicle due to resistance factors and brake resistance, the resistance factors include at least one of road resistance, air resistance and mechanical loss, the road resistance refers to the friction between the tires of the virtual vehicle and the ground, the air resistance refers to the air resistance encountered by the virtual vehicle during driving, the mechanical loss refers to the kinetic energy loss in the transmission device of the virtual vehicle, and the brake resistance is generated according to the fifth operation.
14. The method according to claim 13, characterized in that The method further comprises: When the speed of the virtual vehicle drops to 0 and the fifth operation still exists, the virtual vehicle is controlled to enter a reverse state.
15. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: In response to the sixth operation and the seventh operation being triggered simultaneously, the virtual vehicle is controlled to enter the drift state in the curve.
16. A control device for a virtual vehicle, characterized in that: The device comprises: A display module, used for displaying a virtual scene, wherein the virtual scene includes a virtual vehicle in a drifting state in a curve; A response module, configured to control the speed of the virtual vehicle to decrease in response to a first operation; The response module is further configured to display prompt information for consuming acceleration energy in response to the second operation; The response module is further used to release the cornering skill in response to a third operation, and control the virtual vehicle to be in an accelerated driving state within the skill release duration of the cornering skill, the skill release duration of the cornering skill is used to indicate the duration of the virtual vehicle's acceleration, and the skill release duration of the cornering skill is greater than the duration of the virtual vehicle using the acceleration energy to accelerate when it is not in the drifting state.
17. A terminal, characterized in that: The terminal includes a memory and a processor; The processor is used to display a virtual scene, wherein the virtual scene includes a virtual vehicle in a drifting state in a curve; In response to a first operation, controlling the speed of the virtual vehicle to decrease; In response to the second operation, displaying prompt information for consuming acceleration energy; In response to the third operation, the cornering skill is released, and the virtual vehicle is controlled to be in an accelerated driving state within the skill release duration of the cornering skill. The skill release duration of the cornering skill is used to indicate the duration of the virtual vehicle's acceleration. The skill release duration of the cornering skill is greater than the duration of the virtual vehicle using the acceleration energy to accelerate when it is not in the drifting state.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to be executed by a processor to implement the control method of the virtual vehicle as claimed in any one of claims 1 to 15.
19. A chip, characterized in that: The chip comprises a programmable logic circuit and / or program instructions, and when the chip is running, it is used to implement the control method of the virtual vehicle as described in any one of claims 1 to 15.
20. A computer program product, characterized in that The computer program product comprises computer instructions, which are stored in a computer-readable storage medium. A processor reads and executes the computer instructions from the computer-readable storage medium to implement the control method of a virtual vehicle according to any one of claims 1 to 15.