Virtual object control method and device, electronic equipment, storage medium and product

By setting the common connection status of the driver control and the directional control in the virtual scene, the problem of cumbersome steering operation of virtual vehicles in mobile games is solved, and more convenient human-computer interaction and higher efficiency are achieved.

CN119499634APending Publication Date: 2025-02-25TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311078624.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-24
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In mobile games, when a player drives a virtual vehicle, he or she can turn by clicking the forward or back keys and the arrow keys at the same time. However, this operation method is too cumbersome and the convenience of interactive operation is low.

Method used

In the virtual scene, the driver controls and directional controls are displayed and controlled to be in the co-linked state in response to the co-linked instructions of these controls. In the common connection state, in response to the trigger operation of the drive control or the directional control, the virtual object is controlled to turn while traveling.

Benefits of technology

By controlling the driver control and the directional control to be in a common connection state, the steering operation is simplified, the convenience of interaction and human-computer interaction efficiency are improved, and the number of adjustment operations for users during the steering process is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119499634A_ABST
    Figure CN119499634A_ABST
Patent Text Reader

Abstract

The invention provides a virtual object control method and device, electronic equipment, a computer readable storage medium and a computer program product, and the method comprises the steps: displaying a virtual object in a virtual scene, and displaying a driving control for controlling the advancing direction of the virtual object, and a direction control; wherein the driving control is used for controlling the virtual object to advance or retreat, and the direction control is used for controlling the virtual object to turn left or right; in response to a co-connection instruction for the driving control and the direction control, controlling the driving control and the direction control to be in a co-connection state; and when the driving control and the direction control are in the common connection state, responding to a triggering operation for the driving control or the direction control, and controlling the virtual object to steer while advancing. According to the method and the device, the convenience of interactive operation and the man-machine interaction efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a control method, device, electronic device, computer-readable storage medium and computer program product for a virtual object. Background Art

[0002] In the related art, in mobile games, if a player drives a virtual vehicle, he or she can turn left or right by clicking the forward or backward key, and the left or right direction key at the same time. However, this method of repeatedly clicking the forward or backward key, and the left or right direction key to adjust the turning process of the virtual vehicle is too cumbersome, and the convenience of interactive operations is low. Summary of the invention

[0003] The embodiments of the present application provide a control method, device, electronic device, computer-readable storage medium and computer program product for a virtual object, which can improve the convenience of interactive operations and the efficiency of human-computer interaction.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application provides a method for controlling a virtual object, including:

[0006] In a virtual scene, a virtual object is displayed, and a driving control and a direction control for controlling a moving direction of the virtual object are displayed;

[0007] The driving control is used to control the virtual object to move forward or backward, and the direction control is used to control the virtual object to turn left or right;

[0008] In response to a connection instruction for the driving control and the direction control, controlling the driving control and the direction control to be in a connection state;

[0009] When the driving control and the direction control are in a connected state, in response to a trigger operation on the driving control or the direction control, the virtual object is controlled to turn while moving.

[0010] The present application provides a control device for a virtual object, including:

[0011] A display module, used to display a virtual object in a virtual scene, and display a drive control and a direction control for controlling the direction of travel of the virtual object; wherein the drive control is used to control the virtual object to move forward or backward, and the direction control is used to control the virtual object to turn left or right;

[0012] A first control module, configured to control the driving control and the direction control to be in a connected state in response to a connected instruction for the driving control and the direction control;

[0013] The second control module is used for controlling the virtual object to turn while moving in response to a trigger operation on the drive control or the direction control when the drive control and the direction control are in a connected state.

[0014] In the above scheme, the device also includes a first trigger module, which is used to respond to the trigger operation performed simultaneously on the drive control and the direction control, control the virtual object to simultaneously perform the operations indicated by the drive control and the direction control, and obtain the operation duration of the trigger operation; when the operation duration of the trigger operation reaches a duration threshold, trigger the connection instruction for the drive control and the direction control.

[0015] In the above scheme, the device also includes a second trigger module, which is used to respond to the trigger operation performed simultaneously on the drive control and the direction control, keep the current state of the virtual object unchanged, and obtain the operation duration of the trigger operation; when the operation duration of the trigger operation reaches a duration threshold, trigger the connection instruction for the drive control and the direction control.

[0016] In the above scheme, the device also includes a state switching module, which is used to display a state switching control when the drive control and the direction control are in a connected state; in response to a trigger operation on the state switching control, control the drive control and the direction control to switch from the connected state to a non-connected state; when the drive control and the direction control are in the non-connected state, in response to a trigger operation on at least one of the drive control and the direction control, control the virtual object to perform the operation indicated by the control triggered by the trigger operation.

[0017] In the above scheme, the drive control includes a first drive sub-control corresponding to the forward movement and a second drive sub-control corresponding to the backward movement, and the direction control includes a first direction sub-control corresponding to the left turn and a second direction sub-control corresponding to the right turn; the device also includes a style switching module, and the style switching module is used to switch the display style of the first drive sub-control and the first direction sub-control from the default style to the target style when the drive control targeted by the common connection instruction is the first drive sub-control and the direction control targeted is the first direction sub-control; wherein, the target style is used to distinguish the first drive sub-control and the first direction sub-control from the second drive sub-control and the second direction sub-control.

[0018] In the above scheme, the device also includes a first adjustment module, which is used to respond to a trigger operation on the drive control or the direction control, determine the control targeted by the trigger operation as a target control, and display a steering angle adjustment control in the associated area of ​​the target control; during the execution of the trigger operation, in response to the steering angle adjustment operation triggered based on the steering angle adjustment control, the steering angle of the virtual object is adjusted during the movement and turning of the virtual object.

[0019] In the above scheme, the device also includes a second display module, which is used to display a heading pointer during the execution of the trigger operation, and the heading pointer is used to indicate the current steering angle of the virtual object; in response to the steering angle adjustment operation triggered based on the steering angle adjustment control, the position of the heading pointer is changed; wherein the changed position of the heading pointer is adapted to the steering angle of the virtual object after the steering angle adjustment.

[0020] In the above scheme, the steering angle adjustment control is in a draggable state, and the device also includes a third display module, which is used to display a draggable area corresponding to the steering angle adjustment control; in response to a dragging operation on the steering angle adjustment control within the draggable area, the dragging operation is determined as the steering angle adjustment operation.

[0021] In the above scheme, the draggable area is a circular area, and the first adjustment module is also used to obtain the center angle formed by the position of the steering angle adjustment control after being dragged, the position of the steering angle adjustment control before being dragged, and the center position of the circular area; based on the center angle, the steering angle of the virtual object is adjusted.

[0022] In the above scheme, the first adjustment module is also used to obtain the current steering angle of the virtual object during the movement; when the direction corresponding to the current steering angle is the same as the direction indicated by the steering angle adjustment operation, the current steering angle and the steering angle indicated by the steering angle adjustment operation are summed to obtain the target steering angle; when the direction corresponding to the current steering angle is opposite to the direction indicated by the steering angle adjustment operation, the current steering angle and the steering angle indicated by the steering angle adjustment operation are subtracted to obtain the target steering angle; the steering angle of the virtual object is adjusted to the target steering angle.

[0023] In the above scheme, the device also includes a second adjustment module, which is used to obtain the number of steering angle adjustment operations performed on the virtual object; when the number of operations reaches a threshold, the steering angle of the virtual object is automatically adjusted so that the current steering angle of the adjusted virtual object during the moving process is consistent with the standard steering angle at which the virtual object can travel through the curve on the current road.

[0024] In the above scheme, the device also includes a third display module, which is used to display a guide line corresponding to the virtual object during the movement and turning of the virtual object; wherein the guide line is used to indicate the actual moving direction of the virtual object in the virtual scene.

[0025] In the above scheme, the third display module is also used to determine the curvature circle corresponding to the real-time position based on the real-time position of the virtual object on the current road curve during the movement and turning of the virtual object; based on the curvature circle, determine the tangent with the real-time position as the tangent point, and display the guide line corresponding to the virtual object based on the tangent.

[0026] In the above scheme, the device also includes a fourth display module, which is used to display a first prompt message when the current steering angle of the virtual object during the moving process is consistent with the standard steering angle at which the virtual object can travel through the curve on the current road during the moving and turning process of the virtual object; wherein the first prompt message is used to indicate that the virtual object can successfully turn during the moving process.

[0027] In the above scheme, the device also includes a fifth display module, which is used to display a guide line and a heading pointer; wherein the guide line is used to indicate the actual travel direction of the virtual object in the virtual scene, and the heading pointer is used to indicate the current steering angle of the virtual object; the fourth display module is also used to display the first prompt information at the associated position of the heading pointer when the steering angle corresponding to the actual travel direction indicated by the guide line is consistent with the standard steering angle at which the virtual object can travel through the curve on the current road curve.

[0028] In the above scheme, the device also includes a third adjustment module, which is used to display an automatic adjustment control when the current steering angle of the virtual object during the movement is inconsistent with the standard steering angle at which the virtual object can travel through the curve on the current road during the process of the virtual object moving and turning; wherein the automatic adjustment control is used to automatically adjust the steering angle of the virtual object during the movement; and automatically adjust the steering angle of the virtual object during the movement in response to a trigger operation on the automatic adjustment control.

[0029] In the above scheme, the device also includes a sixth display module, which is used to obtain the steering angle indicated by the direction adjustment operation when receiving a direction adjustment operation for the virtual object triggered by the drive control or the direction control during the movement and turning of the virtual object, and subtract the steering angle from the current steering angle of the virtual object to obtain a steering angle difference; when the absolute value of the steering angle difference is greater than the angle difference threshold, display danger warning information; wherein the danger warning information is used to indicate that the virtual object is currently in a dangerous state.

[0030] An embodiment of the present application provides an electronic device, including:

[0031] A memory for storing computer executable instructions;

[0032] The processor is used to implement the virtual object control method provided in the embodiment of the present application when executing the computer executable instructions stored in the memory.

[0033] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for causing a processor to execute instructions to implement a virtual object control method provided in an embodiment of the present application.

[0034] The embodiment of the present application provides a computer program product, which includes computer executable instructions, and the computer executable instructions are stored in a computer readable storage medium. The processor of the electronic device reads the computer executable instructions from the computer readable storage medium, and the processor executes the computer executable instructions, so that the electronic device executes the control method of the virtual object provided in the embodiment of the present application.

[0035] The embodiments of the present application have the following beneficial effects:

[0036] By responding to the co-connection instruction for the driving control for controlling the virtual object to move forward or backward and the direction control for controlling the virtual object to turn left or right, the driving control and the direction control are controlled to be in a co-connection state, so that when the driving control and the direction control are in the co-connection state, in response to the triggering operation for the driving control or the direction control, the virtual object is controlled to move forward and turn at the same time. In this way, compared with the method in the related art that the driving control and the direction control must be clicked repeatedly to adjust the turning process, by controlling the driving control and the direction control to be in a co-connection state, the effect of controlling the virtual object to move forward and turn at the same time can be achieved by only triggering the driving control or the direction control separately, which improves the convenience of interactive operation, reduces the number of adjustment operations of the user in the turning process, and also improves the efficiency of human-computer interaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 is a schematic diagram of the architecture of a control system 100 for a virtual object provided in an embodiment of the present application;

[0038] Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0039] Figure 3 is a flowchart of a method for controlling a virtual object provided in an embodiment of the present application;

[0040] Figure 4 is a schematic diagram of a process of displaying a virtual object provided by an embodiment of the present application;

[0041] Figure 5 is a schematic diagram of a drive control and a direction control provided in an embodiment of the present application;

[0042] Figure 6 is a schematic diagram of a trigger operation performed simultaneously in a drive control and a direction control provided in an embodiment of the present application;

[0043] Figure 7 is a schematic diagram of a first driving sub-control and a first direction sub-control in a target style provided by an embodiment of the present application;

[0044] Figure 8 is a display schematic diagram of a steering angle adjustment control provided in an embodiment of the present application;

[0045] Fig. 9 is a schematic diagram of determining the center angle of a circle based on a steering angle adjustment control provided in an embodiment of the present application;

[0046] Fig.10 is a schematic diagram of a direction pointer provided in an embodiment of the present application;

[0047] Fig.11is a schematic diagram of adjusting the steering angle of a virtual object provided in an embodiment of the present application;

[0048] Fig.12 is a schematic diagram of a guide line provided in an embodiment of the present application;

[0049] Fig.13 is a schematic diagram of a process of determining a guide line corresponding to a virtual object provided in an embodiment of the present application;

[0050] Fig.14 is a schematic diagram of the first prompt information provided in an embodiment of the present application;

[0051] Fig.15 is a schematic diagram of a state switching control provided in an embodiment of the present application;

[0052] Fig.16 This is a flow chart of a process of convenient vehicle steering in a game provided by an embodiment of the present application;

[0053] Fig.17 is a schematic diagram of the current steering angle of the vehicle provided in an embodiment of the present application;

[0054] Fig.18 It is a schematic diagram of the direction angles provided in the embodiments of the present application. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0056] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0057] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0058] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0059] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0060] 1) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.

[0061] 2) Client, also known as the user end, refers to the program corresponding to the server that provides local services to users. Except for some applications that can only run locally, it is generally installed on the terminal and needs to cooperate with the server to run, that is, it requires corresponding servers and service programs in the network to provide corresponding services. In this way, specific communication connections need to be established on the client and server sides to ensure the normal operation of the application, such as virtual scene clients (such as game clients) and video clients.

[0062] 3) Third-person perspective: the in-game camera is at a certain distance behind the player character, and the player can see the character and all combat elements in the surrounding environment.

[0063] 4) Virtual scene is a virtual scene displayed (or provided) when the application is running on the terminal. The virtual scene can be a simulation of the real world, a semi-simulation and semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene can be any of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene.

[0064] For example, the virtual scene may include the sky, land, ocean, etc., and the land may include environmental elements such as deserts and cities. The user may control the virtual object to perform activities in the virtual scene, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing. The virtual scene may be displayed from a first-person perspective (for example, the user plays the role of a virtual object in the game from his own perspective); it may also be displayed from a third-person perspective (for example, the user chases the virtual object in the game to play the game); it may also be displayed from a bird's-eye view perspective, and the above perspectives may be switched arbitrarily.

[0065] 5) Virtual objects, images of various people and objects that can interact in a virtual scene, or movable objects in a virtual scene. The movable objects can be virtual characters, virtual animals, cartoon characters, etc., such as: people, animals, plants, oil drums, walls, stones, vehicles, etc. displayed in a virtual scene. The virtual object can be a virtual image in the virtual scene that represents the user. A virtual scene can include multiple virtual objects, each of which has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene.

[0066] For example, the virtual object may be a user character controlled by an operation on the client, an artificial intelligence (AI) set in a virtual scene through training, or a non-player character (NPC) set in a virtual scene interaction. The number of virtual objects participating in the interaction in the virtual scene may be preset or dynamically determined according to the number of clients joining the interaction.

[0067] 6) Curvature circle: On the normal line of a point M on the curve, take a point D on the concave side so that DM is equal to the radius of curvature at that point. D is the center of the circle and DM is the radius. This circle is called the curvature circle of the curve at that point.

[0068] See also Figure 1 , Figure 1 It is an architectural diagram of a control system 100 for a virtual object provided in an embodiment of the present application, to realize an application scenario of control of a virtual object (for example, an application scenario of control of a virtual object may be that when a user controls a virtual vehicle in a game, the user presses the forward key and the right turn key at the same time to control the forward key and the right turn key to be in a connected state, so that when the forward key and the right turn key are in the connected state, in response to a trigger operation on the forward key or the right turn key, the virtual vehicle is controlled to move and turn right at the same time), a terminal (terminal 400 is shown as an example), the terminal 400 is connected to the server 200 via a network 300, wherein the network 300 may be a wide area network or a local area network, or a combination of the two, and data transmission is realized using wireless or wired links.

[0069] The server 200 is used to send scene data corresponding to a virtual scene including a virtual object, a driving control for controlling the moving direction of the virtual object, and a direction control to the terminal 400;

[0070] Terminal 400 is used to receive scene data corresponding to a virtual scene including a virtual object, a drive control for controlling the direction of travel of the virtual object, and a direction control; based on the scene data, display the virtual scene; in the virtual scene, display the virtual object, and display the drive control for controlling the direction of travel of the virtual object, and the direction control; wherein the drive control is used to control the virtual object to move forward or backward, and the direction control is used to control the virtual object to turn left or right; in response to a connection instruction for the drive control and the direction control, control the drive control and the direction control to be in a connection state; when the drive control and the direction control are in the connection state, in response to a trigger operation for the drive control or the direction control, control the virtual object to move while turning.

[0071] In some embodiments, the server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDN, Content Deliver Network), and big data and artificial intelligence platforms. The terminal 400 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a set-top box, an intelligent voice interaction device, a smart home appliance, a virtual reality device, a vehicle-mounted terminal, an aircraft, a portable music player, a personal digital assistant, a dedicated messaging device, a portable gaming device, an intelligent speaker, and a smart watch, but is not limited thereto. The terminal and the server may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.

[0072] Next, an electronic device that implements the virtual object control method provided in the embodiment of the present application is described. Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may be a server or a terminal. Figure 1 Take the terminal shown in as an example, Figure 2 The electronic device shown includes: at least one processor 410, a memory 450, at least one network interface 420 and a user interface 430. The various components in the terminal 400 are coupled together via a bus system 440. It is understood that the bus system 440 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 440 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 440 is not shown in FIG. Figure 2 Various buses are labeled as bus system 440 .

[0073] Processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0074] The user interface 430 includes one or more output devices 431 that enable display of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0075] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.

[0076] The memory 450 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.

[0077] In some embodiments, memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0078] Operating system 451, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0079] A network communication module 452, used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.;

[0080] a presentation module 453 for enabling display of information via one or more output devices 431 (e.g., display screen, speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripherals and displaying content and information);

[0081] The input processing module 454 is used to detect one or more user inputs or interactions from one of the one or more input devices 432 and translate the detected inputs or interactions.

[0082] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 A control device 455 of a virtual object stored in a memory 450 is shown, which may be software in the form of a program or a plug-in, and includes the following software modules: a display module 4551, a first control module 4552, and a second control module 4553. These modules are logical, and thus may be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.

[0083] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the control device of the virtual object provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the control method of the virtual object provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.

[0084] In some embodiments, the terminal or server can implement the control method of the virtual object provided in the embodiment of the present application by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a local (Native) application (APP, Application), that is, a local client, that is, a program that needs to be installed in the operating system to run, such as an instant messaging APP, a web browser APP; it can also be a small program, that is, a program that can be run only by downloading it to a browser environment; it can also be a small program that can be embedded in any APP. In short, the above-mentioned computer program can be any form of client, module or plug-in.

[0085] Based on the above description of the control system and electronic device of the virtual object provided by the embodiment of the present application, the control method of the virtual object provided by the embodiment of the present application is described below. In actual implementation, the control method of the virtual object provided by the embodiment of the present application can be implemented by the terminal or the server alone, or by the terminal and the server in collaboration, so that Figure 1 The terminal 400 in the embodiment of the present application independently executes the control method of the virtual object provided in the embodiment of the present application as an example. Figure 3 , Figure 3 is a flow chart of a method for controlling a virtual object provided in an embodiment of the present application. Next, Figure 3 The steps shown are explained.

[0086] Step 101, the terminal displays a virtual object in a virtual scene, and displays a drive control for controlling the direction of travel of the virtual object and a direction control; wherein the drive control is used to control the virtual object to move forward or backward, and the direction control is used to control the virtual object to turn left or right.

[0087] In actual implementation, an application supporting virtual scenes is installed on the terminal. The application can be any of a first-person shooter game, a third-person shooter game, a multiplayer online tactical competitive game, a virtual reality application, a three-dimensional map program, or a multiplayer gunfight survival game. The user can use the terminal to operate virtual objects in the virtual scene to carry out activities.

[0088] When the user opens the application on the terminal and the terminal runs the application, the terminal presents a screen of a virtual scene (such as a driving game scene). Here, the screen of the virtual scene is obtained by observing the virtual scene from a first-person object perspective, or by observing the virtual scene from a third-person perspective. The screen of the virtual scene includes virtual objects. The virtual object can be a player character controlled by the user account currently logged into the application. For example, the virtual object can be a player character controlled by a user entering a driving game or a simulated virtual scene; it can also be a virtual vehicle carrying a player character controlled by the user account currently logged into the application. The virtual vehicle can assist the player character in moving in the virtual scene. Common virtual vehicles include virtual cars, virtual ships, virtual airplanes, etc. Here, the virtual scene can also include other virtual objects or interactive objects, which can be controlled by other users or by a robot program. This is not limited in the embodiments of the present application.

[0089] In some embodiments, when the virtual object is a virtual vehicle, before displaying the virtual object, a player character controlled by the user account currently logged into the application and a vehicle control may also be displayed in the virtual scene, so that in response to a trigger operation on the vehicle control, the player character is controlled to enter the virtual vehicle, that is, the player character is controlled to be in a vehicle driving mode, and then the virtual object is displayed. For example, see Figure 4 , Figure 4 is a schematic diagram of a process of displaying a virtual object provided by an embodiment of the present application, based on Figure 4 , the dotted box 401 indicates the player character controlled by the user account currently logged into the application, and the dotted box 402 indicates the vehicle control, so that in response to the trigger operation of the vehicle control indicated by the dotted box 402, the player character is controlled to enter a virtual vehicle such as a car, and then the virtual object, that is, the car carrying the player character, is displayed.

[0090] In actual implementation, the terminal may also display a driving control and a direction control for controlling the direction of movement of the virtual object in the interface of the virtual scene. Figure 5 , Figure 5 is a schematic diagram of a drive control and a direction control provided in an embodiment of the present application, based on Figure 5 ,In the interface of the virtual scene, the virtual object is a virtual vehicle, i.e. a car, e.g. Figure 5 As shown, a virtual vehicle “car” in driving state as indicated by 501 , driving controls as indicated by a dotted box 502 , and direction controls as indicated by a dotted box 503 are presented.

[0091] Step 102, in response to a connection instruction for the driving control and the direction control, controlling the driving control and the direction control to be in a connection state.

[0092] In actual implementation, when the terminal controls the virtual object to travel or move, after receiving a connection instruction for the drive control and the direction control, the drive control and the direction control can be controlled to be in a connection state.

[0093] Next, the process of receiving the connection instruction for the drive control and the direction control is described.

[0094] In some embodiments, after the drive control and the direction control are displayed, in response to a trigger operation performed simultaneously on the drive control and the direction control, the virtual object is controlled to simultaneously perform the operations indicated by the drive control and the direction control, and the operation duration of the trigger operation is obtained; when the operation duration of the trigger operation reaches a duration threshold, a connection instruction for the drive control and the direction control is triggered.

[0095] It should be noted that the triggering operation for the drive control and the direction control can be a pressing operation, which is used here to indicate that the operation time difference between the triggering operation for the drive control and the triggering operation for the direction control is less than a preset time threshold, such as 1 second.

[0096] In actual implementation, when a trigger operation is received for the drive control and the direction control to be executed simultaneously, the virtual object will be controlled to turn based on the direction indicated by the execution of the drive control and the direction control, that is, the virtual object is controlled to execute the operation indicated by the drive control and the direction control simultaneously. For example, when a trigger operation is received for the forward key in the drive control and the right turn key in the direction control to be executed simultaneously, the virtual object is controlled to turn slightly to the right within the operation duration of the trigger operation, that is, before the co-linked instruction for the drive control and the direction control is triggered. Here, based on the direction indicated by the execution of the drive control and the direction control, the angle at which the virtual object is controlled to turn is positively correlated with the preset duration threshold, such as when the duration threshold is 1 second, based on the direction indicated by the execution of the drive control and the direction control, the angle at which the virtual object is controlled to turn is 10 degrees, and when the duration threshold is 2 seconds, based on the direction indicated by the execution of the drive control and the direction control, the angle at which the virtual object is controlled to turn is 20 degrees, etc.

[0097] For example, see Figure 6 , Figure 6 is a schematic diagram of a trigger operation performed simultaneously in a drive control and a direction control provided in an embodiment of the present application, based on Figure 6 , receiving the simultaneous pressing operations of the forward key in the driving control as indicated by 602 and the right turn key in the direction control as indicated by 603, controlling the virtual object indicated by 601 to turn right, and when the operation duration of the triggering operation reaches the duration threshold, triggering the joint instruction for the driving control and the direction control.

[0098] In other embodiments, after the drive controls and direction controls are displayed, in response to a trigger operation performed simultaneously on the drive controls and the direction controls, the current state of the virtual object is kept unchanged, and the operation duration of the trigger operation is obtained; when the operation duration of the trigger operation reaches a duration threshold, a joint instruction for the drive controls and the direction controls is triggered.

[0099] It should be noted that, as mentioned above, the trigger operation for the drive control and the direction control here can be a pressing operation, which is used here to indicate that the operation time difference between the trigger operation for the drive control and the trigger operation for the direction control is less than a preset duration threshold, such as 1 second.

[0100] In actual implementation, when a trigger operation is received that is executed simultaneously on the drive control and the direction control, the current state of the virtual object is kept unchanged. For example, before receiving the trigger operation that is executed simultaneously on the drive control and the direction control, the virtual object is moving in a straight line. Then, when the trigger operation that is executed simultaneously on the drive control and the direction control is received, the virtual object continues to be controlled to move in a straight line, that is, the current state of the virtual object is kept unchanged.

[0101] For example, see Figure 6 ,based on Figure 6 , receiving the simultaneous pressing operations on the forward key in the driving control as indicated by 602 and the right turn key in the direction control as indicated by 603, controlling the virtual object indicated by 601 to keep the current moving state unchanged, such as continuing to move forward in a straight line, and when the operation duration of the triggering operation reaches the duration threshold, triggering the joint instruction for the driving control and the direction control.

[0102] In some embodiments, the drive control includes a first drive sub-control corresponding to forward movement and a second drive sub-control corresponding to backward movement, and the direction control includes a first direction sub-control corresponding to left turn and a second direction sub-control corresponding to right turn; based on this, when the drive control targeted by the co-link instruction is the first drive sub-control and the direction control targeted is the first direction sub-control, the display style of the first drive sub-control and the first direction sub-control is switched from the default style to the target style; wherein, the target style is used to distinguish the first drive sub-control and the first direction sub-control from the second drive sub-control and the second direction sub-control.

[0103] It should be noted that the drive control includes a first drive sub-control corresponding to forward movement and a second drive sub-control corresponding to backward movement, that is, the forward key and the backward key in the drive control mentioned above, and the direction control includes a first direction sub-control corresponding to left turn and a second direction sub-control corresponding to right turn, that is, the left turn key and the right turn key in the direction control mentioned above; here, the target style can be pre-set, and the default style can be the style of the drive control and the direction control before they are in a connected state.

[0104] For example, see Figure 7 , Figure 7 is a schematic diagram of a first driving sub-control and a first direction sub-control in a target style provided by an embodiment of the present application, based on Figure 6 as well as Figure 7 When the driving control targeted by the co-linking instruction is the first driving sub-control indicated by 701 and the direction control targeted is the first direction sub-control indicated by 702, the display styles of the first driving sub-control and the first direction sub-control are changed from Figure 6 The default styles indicated by 602 and 603 are switched to Figure 7The target styles indicated by 701 and 702.

[0105] Step 103 : When the driving control and the direction control are in a connected state, in response to a trigger operation on the driving control or the direction control, the virtual object is controlled to move forward and turn simultaneously.

[0106] It should be noted that when the driving control and the direction control are in a connected state, in response to a trigger operation on the driving control or the direction control, the virtual object is controlled to move and turn at the same time. Controlling movement and turning at the same time means turning during the movement, i.e. turning, etc.

[0107] In actual implementation, when the driving control and the direction control are in a connected state, in response to a trigger operation on the driving control or the direction control, the control targeted by the trigger operation is determined as the target control, and the steering angle adjustment control is displayed in the associated area of ​​the target control; during the execution of the trigger operation, in response to the steering angle adjustment operation triggered based on the steering angle adjustment control, the steering angle of the virtual object is adjusted during the process of the virtual object moving and turning.

[0108] It should be noted that the associated area of ​​the target control can be any area centered on the target control, for example, it can be a circle center area with the target control as the center and the target distance as the radius, and the target distance here can be pre-set, such as 1 cm. The steering angle adjustment control displayed in the associated area of ​​the target control can be in a draggable state, so that based on the drag operation on the steering angle adjustment control, the steering angle of the virtual object is adjusted during the process of the virtual object moving and turning. Specifically, the draggable area corresponding to the steering angle adjustment control is displayed; in response to the drag operation on the steering angle adjustment control in the draggable area, the drag operation is determined as a steering angle adjustment operation.

[0109] It should be noted that when the steering angle adjustment control displayed in the associated area of ​​the target control is in a draggable state, the draggable area corresponding to the steering angle adjustment control may be the same area as the associated area displayed by the steering angle adjustment control, or the draggable area corresponding to the steering angle adjustment control may be larger than the associated area displayed by the steering angle adjustment control, or the draggable area corresponding to the steering angle adjustment control may be smaller than the associated area displayed by the steering angle adjustment control, and the embodiments of the present application do not limit this. Here, when the draggable area corresponding to the steering angle adjustment control may be the same area as the associated area displayed by the steering angle adjustment control, the dragging operation performed on the steering angle adjustment control within the draggable area is, that is, the dragging operation performed on the steering angle adjustment control within the range of the associated area.

[0110] For example, see Figure 8 , Figure 8 is a display schematic diagram of the steering angle adjustment control provided in an embodiment of the present application, based on Figure 8 , when the driving control and the direction control are in a co-connected state, in response to a triggering operation on the driving control indicated by 801 in a, the driving control indicated by 801 is determined as a target control, and a steering angle adjustment control as indicated by a dotted box 802 is displayed in an associated area of ​​the target control, i.e., a circular area indicated by 801, so that in response to a steering angle adjustment operation triggered by the steering angle adjustment control indicated by the dotted box 802, the steering angle of the virtual object is adjusted during the process of the virtual object moving and turning;

[0111] Alternatively, in response to a trigger operation on the direction control indicated by 803 in b, the direction control indicated by 803 is determined as the target control, and a steering angle adjustment control as indicated by the dotted box 804 is displayed in the associated area of ​​the target control, i.e., the circular area indicated by 803, thereby responding to the steering angle adjustment operation triggered by the steering angle adjustment control indicated by the dotted box 804, the steering angle of the virtual object is adjusted during the process of the virtual object moving and turning.

[0112] In some embodiments, the draggable area may be a circular area, so that when the virtual object moves and turns, the process of adjusting the steering angle of the virtual object may be to obtain the center angle formed by the position of the steering angle adjustment control after being dragged, the position of the steering angle adjustment control before being dragged, and the center position of the circular area; and adjust the steering angle of the virtual object based on the center angle.

[0113] It should be noted that when the position of the steering angle adjustment control before being dragged is the center position of the circular area, a vertical line is drawn compared to the center position, and the center position of the circular area, the position of the steering angle adjustment control after being dragged, and the center angle formed by the vertical line are obtained, so as to adjust the steering angle of the virtual object based on the center angle. For example, see Fig. 9 , Fig. 9 is a schematic diagram of determining the center angle of a circle based on a steering angle adjustment control provided in an embodiment of the present application, based on Fig. 9 , 901 indicates a vertical line relative to the center position of the circle, 902 indicates a steering angle adjustment control, the location of the steering angle adjustment control indicated by 902 is the location after the steering angle adjustment control is dragged, and 903 indicates the center position of the circle, thereby obtaining the center position of the circular area indicated by 903, the location after the steering angle adjustment control indicated by 902 is dragged, and the center angle formed by the vertical line indicated by 901, and then adjusting the steering angle of the virtual object based on the center angle.

[0114] In some embodiments, during the execution of a trigger operation, a heading pointer is displayed, and the heading pointer is used to indicate the current steering angle of the virtual object; in response to a steering angle adjustment operation triggered based on a steering angle adjustment control, the position of the heading pointer is changed; wherein the position of the changed heading pointer is adapted to the steering angle of the virtual object after the steering angle adjustment.

[0115] It should be noted that the heading pointer is located on the pointer dial on the virtual interface, and the angle formed by the heading pointer and the vertical line of the pointer dial is the current turning angle of the virtual object. When the current steering angle is equal to zero, it indicates that the virtual object is currently moving in a straight line. When the current steering angle is greater than zero (that is, the heading pointer is to the right of the vertical line of the pointer dial), it indicates that the virtual object is currently turning right. When the current steering angle is less than zero (that is, the heading pointer is to the left of the vertical line of the pointer dial), it indicates that the virtual object is currently turning left.

[0116] At the same time, the position of the heading pointer and the steering angle of the virtual object also correspond in real time. For example, in response to a right turn adjustment operation triggered by a steering angle adjustment control, the position of the heading pointer is turned right, which indicates that the virtual object turns right; wherein the position of the changed heading pointer is adapted to the steering angle of the virtual object after the steering angle is adjusted, and is used to indicate that the position of the changed heading pointer and the angle formed by the position of the heading pointer before the change are consistent with the steering angle of the virtual object after the steering angle is adjusted.

[0117] For example, see Fig.10 , Fig.10 is a schematic diagram of a directional pointer provided in an embodiment of the present application, based on Fig.10 In response to the adjustment operation of turning right triggered by the steering angle adjustment control as indicated by 1002, the position of the pointer as indicated by 1001 is turned right, that is, the virtual object is instructed to turn right by 15 degrees.

[0118] In some embodiments, the process of adjusting the steering angle of a virtual object while the virtual object is moving and turning may be as follows: obtaining the current steering angle of the virtual object during its movement; when the direction corresponding to the current steering angle is the same as the direction indicated by the steering angle adjustment operation, summing the current steering angle and the steering angle indicated by the steering angle adjustment operation to obtain a target steering angle; when the direction corresponding to the current steering angle is opposite to the direction indicated by the steering angle adjustment operation, subtracting the current steering angle from the steering angle indicated by the steering angle adjustment operation to obtain the target steering angle; and adjusting the steering angle of the virtual object to the target steering angle.

[0119] It should be noted that the direction corresponding to the current steering angle here is indicated in the same direction as the direction indicated by the steering angle adjustment operation. When the virtual object turns left during travel, in response to the steering angle adjustment operation, the virtual object is controlled to turn left, or when the virtual object turns right during travel, in response to the steering angle adjustment operation, the virtual object is controlled to turn right; the direction corresponding to the current steering angle is indicated in the opposite direction to the direction indicated by the steering angle adjustment operation. When the virtual object turns left during travel, in response to the steering angle adjustment operation, the virtual object is controlled to turn right, or when the virtual object turns right during travel, in response to the steering angle adjustment operation, the virtual object is controlled to turn left.

[0120] It should be noted that, as mentioned above, the steering angle adjustment operation may be a dragging operation performed on the steering angle adjustment control in the draggable area. When the position of the steering angle adjustment control after being dragged is on the right side of the vertical line compared to the circular position, and the virtual object turns right during the movement, if the direction corresponding to the current steering angle is the same as the direction indicated by the steering angle adjustment operation, the current steering angle and the steering angle indicated by the steering angle adjustment operation are summed to obtain the target steering angle.

[0121] When the position of the steering angle adjustment control after being dragged is on the left side of the vertical line compared to the circular position, and the virtual object turns right during movement, if the direction corresponding to the current steering angle is opposite to the direction indicated by the steering angle adjustment operation, the current steering angle and the steering angle indicated by the steering angle adjustment operation are subtracted to obtain the target steering angle.

[0122] In actual implementation, the steering angles in this application (such as the current steering angle, the steering angle indicated by the steering angle adjustment operation) include a left steering angle and a right steering angle. When the virtual object goes straight, the steering angle is zero. When the virtual object turns right, the steering angle is greater than zero. When the virtual object turns left, the steering angle is less than zero.

[0123] Based on this, since there is a steering angle less than zero, when the direction corresponding to the current steering angle is the same as the direction indicated by the steering angle adjustment operation, the current steering angle and the steering angle indicated by the steering angle adjustment operation are summed to indicate that their absolute values ​​are summed; when the direction corresponding to the current steering angle is opposite to the direction indicated by the steering angle adjustment operation, the current steering angle and the steering angle indicated by the steering angle adjustment operation are subtracted to indicate that their absolute values ​​are subtracted.

[0124] It should be noted that if the direction corresponding to the current steering angle is the same as the direction indicated by the steering angle adjustment operation, the steering angle of the virtual object is adjusted to the target steering angle obtained by summing the direction corresponding to the current steering angle or the direction indicated by the steering angle adjustment operation; if the direction corresponding to the current steering angle is opposite to the direction indicated by the steering angle adjustment operation, the absolute values ​​of the current steering angle and the steering angle of the virtual object indicated by the steering angle adjustment operation are obtained, and the final steering direction of the virtual object corresponds to the direction indicated by the larger absolute value. Based on this, the steering angle of the virtual object is adjusted to the target steering angle obtained by subtraction based on the direction indicated by the larger absolute value.

[0125] It should be noted that the target steering angles here are all greater than zero, and the target steering angles only indicate the size of the adjusted angle, not the direction.

[0126] For example, see Fig.11 , Fig.11 is a schematic diagram of adjusting the steering angle of a virtual object provided in an embodiment of the present application, based on Fig.11 , the direction corresponding to the current steering angle in a (turning right) is opposite to the direction indicated by the steering angle adjustment operation indicated by the dotted box 1102 (turning left), and the absolute value of the current steering angle, such as 15 degrees, and the absolute value of the steering angle indicated by the steering angle adjustment operation, such as -30 degrees, are subtracted to obtain a target steering angle of 15 degrees, and based on the direction indicated by the larger absolute value, i.e., turning left, the steering angle of the virtual object indicated by 1101 is adjusted to the target steering angle of 15 degrees obtained by the subtraction, that is, the steering angle of the virtual object is adjusted to turn left 15 degrees;

[0127] Alternatively, the direction corresponding to the current steering angle in a (turn right) is the same as the direction indicated by the steering angle adjustment operation indicated by the dotted box 1104 (turn right), and the absolute value of the current steering angle, such as 15 degrees, and the absolute value of the steering angle indicated by the steering angle adjustment operation, such as 30 degrees, are subtracted to obtain a target steering angle, i.e., 45 degrees. Based on the direction corresponding to the current steering angle or the direction indicated by the steering angle adjustment operation, i.e., turn right, the steering angle of the virtual object indicated by 1103 is adjusted to the target steering angle of 45 degrees obtained by the subtraction, that is, the steering angle of the virtual object is adjusted to turn right 45 degrees.

[0128] In some embodiments, in response to a steering angle adjustment operation triggered based on a steering angle adjustment control, after the steering angle of the virtual object is adjusted during the movement and turning of the virtual object, the number of steering angle adjustment operations performed on the virtual object can be obtained; when the number of operations reaches a threshold, the steering angle of the virtual object is automatically adjusted so that the current steering angle of the adjusted virtual object during the movement is consistent with the standard steering angle at which the virtual object can travel through the curve on the current road.

[0129] It should be noted that consistency is used to indicate that the absolute value of the difference between the current steering angle of the adjusted virtual object during the movement and the standard steering angle at which the virtual object can travel through a bend on the current road curve is less than a preset difference threshold. For example, the preset difference threshold is 5 degrees. When the current steering angle of the adjusted virtual object during the movement is a right steering angle of 15 degrees, the standard steering angle at which the virtual object can travel through a bend on the current road curve is a right steering angle of 12 degrees, and the absolute value of the difference between the two is 3 degrees, the current steering angle of the adjusted virtual object during the movement is consistent with the standard steering angle at which the virtual object can travel through a bend on the current road curve; when the current steering angle of the adjusted virtual object during the movement is a right steering angle of 20 degrees, the standard steering angle at which the virtual object can travel through a bend on the current road curve is a right steering angle of 10 degrees, and the absolute value of the difference between the two is 10 degrees, the current steering angle of the adjusted virtual object during the movement is inconsistent with the standard steering angle at which the virtual object can travel through a bend on the current road curve.

[0130] It should be noted that, in the process of the virtual object moving and turning, after the steering angle of the virtual object is adjusted, the steering angle of the virtual object can be automatically adjusted according to the relationship between the number of operations of the steering angle adjustment operation performed on the virtual object and the number threshold. The terminal obtains the number of operations of the steering angle adjustment operation performed on the virtual object within a preset time period, and compares the size of the historical adjustment number with the number threshold. When the number of operations reaches the preset number threshold, the terminal automatically adjusts the steering angle of the virtual object. Here, for games with steering angle adjustment operations as the dominant behavior, in order to ensure the fairness and rationality of the game, the terminal's automatic adjustment of the steering angle of the virtual object is conditionally restricted, such as allocating free automatic adjustment times corresponding to the player's level to the player, or paying for the adjustment times for toys, etc.

[0131] In some embodiments, during the process of the virtual object moving and turning, a guide line corresponding to the virtual object may also be displayed; wherein the guide line is used to indicate the actual moving direction of the virtual object in the virtual scene.

[0132] It should be noted that the guide line is displayed in front of the virtual object. For example, when the virtual object is a virtual car, the guide line is displayed in front of the middle position of the car body. When the virtual object is a player character, the guide line is displayed in front of the player's feet in the middle position. At the same time, the style of the guide line can be pre-set, for example, it can be a laser guide. For example, see Fig.12 , Fig.12 is a schematic diagram of a guide line provided in an embodiment of the present application, based on Fig.12 When the virtual object is a virtual car indicated by 1202, the guide line indicated by 1201 is displayed in front of the middle position of the car body.

[0133] In actual implementation, the steering angle of the virtual object is the angle between the actual direction of travel of the virtual object and the direction of the road at a certain safety distance ahead (pre-configured, for example, 50 meters); when the guide line is displayed, the steering angle of the virtual object is, that is, the angle between the guide line and the direction of the road at a certain safety distance ahead, that is, when the direction pointer is displayed, the current steering angle of the virtual object indicated by the direction pointer.

[0134] In actual implementation, the process of displaying the guide line corresponding to the virtual object while the virtual object is moving and turning may be, based on the real-time position of the virtual object on the current road curve, determining the curvature circle corresponding to the real-time position; based on the curvature circle, determining the tangent with the real-time position as the tangent point, and displaying the guide line corresponding to the virtual object based on the tangent.

[0135] It should be noted that, during the movement and turning of the virtual object, the real-time position of the virtual object changes, and therefore, the curvature circle corresponding to the real-time position also changes accordingly, and thus, based on the curvature circle, the tangent line with the real-time position as the tangent point, i.e., the guide line corresponding to the virtual object, also changes in real time. Fig.13 , Fig.13 is a schematic diagram of a process of determining a guide line corresponding to a virtual object provided by an embodiment of the present application, based on Fig.13 In the figure, number 1 shows the travel path of the virtual object, A is the current real-time position of the virtual object, and circle O is the curvature circle corresponding to the real-time position. Therefore, based on circle O, the tangent line AB with the real-time position A as the tangent point is determined, that is, the guide line corresponding to the virtual object.

[0136] In some embodiments, during the process of a virtual object moving and turning, when the current steering angle of the virtual object during the moving process is consistent with the standard steering angle at which the virtual object can travel through a curve on the current road curve, a first prompt message is displayed; wherein the first prompt message is used to indicate that the virtual object can successfully turn during the moving process.

[0137] It should be noted that the first prompt information is pre-set and can be text information, image information, animation information, etc. When the first prompt information is text information, the text content can be "Turn successful"; when the first prompt information is image information, the image can be a check mark image logo, such as "√".

[0138] In actual implementation, a guide line and a heading pointer can also be displayed while the virtual object is moving and turning; wherein, as mentioned above, the guide line is used to indicate the actual moving direction of the virtual object in the virtual scene, and the heading pointer is used to indicate the current turning angle of the virtual object; thus, the process of displaying the first prompt information can be that when the steering angle corresponding to the actual moving direction indicated by the guide line and / or the current steering angle of the virtual object indicated by the heading pointer is consistent with the standard steering angle at which the virtual object can travel through the curve on the current road curve, the first prompt information is displayed at the associated position of the heading pointer.

[0139] It should be noted that the associated position may be one of the upper position, the lower position, the left position and the right position of the pointer; the absolute value of the difference between the steering angle corresponding to the actual direction of travel of the virtual object and the standard steering angle at which the virtual object can travel through a bend on the current road curve is less than a preset difference threshold, for example, the preset difference threshold is 5 degrees. When the steering angle corresponding to the actual direction of travel of the virtual object is a right steering angle of 15 degrees, the standard steering angle at which the virtual object can travel through a bend on the current road curve is a right steering angle of 12 degrees, and the absolute value of the difference between the two is 3 degrees, the steering angle corresponding to the actual direction of travel of the virtual object is consistent with the standard steering angle at which the virtual object can travel through a bend on the current road curve; when the steering angle corresponding to the actual direction of travel of the virtual object is a right steering angle of 20 degrees, the standard steering angle at which the virtual object can travel through a bend on the current road curve is a right steering angle of 10 degrees, and the absolute value of the difference between the two is 10 degrees, the steering angle corresponding to the actual direction of travel of the virtual object is inconsistent with the standard steering angle at which the virtual object can travel through a bend on the current road curve.

[0140] For example, see Fig.14 , Fig.14 is a schematic diagram of the first prompt information provided in the embodiment of the present application, based on Fig.14 , while the virtual object indicated by 1404 is moving and turning, the guide line indicated by 1401 and the direction pointer indicated by 1402 are displayed; when the steering angle corresponding to the actual direction of travel indicated by the guide line is consistent with the standard steering angle that the virtual object can drive through the curve on the current road curve, the first prompt information indicated by 1403 is displayed above the direction pointer.

[0141] In some embodiments, during the process of a virtual object moving and turning, when the current steering angle of the virtual object during the moving process is inconsistent with the standard steering angle at which the virtual object can travel through a curve on the current road curve, an automatic adjustment control is displayed; wherein the automatic adjustment control is used to automatically adjust the steering angle of the virtual object during the moving process; in response to a trigger operation on the automatic adjustment control, the steering angle of the virtual object during the moving process is automatically adjusted.

[0142] It should be noted that the automatic adjustment control is different from the direction control and the drive control, and can be an independently displayed control, so as to automatically adjust the steering angle of the virtual object during the travel process in response to the trigger operation of the automatic adjustment control. In practical applications, the process of automatically adjusting the steering angle of the virtual object during the travel process in this application specifically includes first obtaining the standard steering angle at which the virtual object can travel through the bend on the current road bend, and then adjusting the current steering angle of the virtual object during the travel process to the standard steering angle, so that the adjusted current steering angle of the virtual object during the travel process is consistent with the standard steering angle at which the virtual object can travel through the bend on the current road bend.

[0143] It should be noted that the consistency here is as described above, which is used to indicate that the absolute value of the difference between the current steering angle of the adjusted virtual object during the travel process and the standard steering angle that the virtual object can travel through the curve on the current road curve is less than the preset difference threshold. This embodiment of the application will not be elaborated on this.

[0144] In some embodiments, the traveling state of the virtual object may also be detected. Specifically, when the virtual object is traveling and turning, when a direction adjustment operation for the virtual object is received based on a driving control or a direction control, the steering angle indicated by the direction adjustment operation is obtained, and the steering angle is subtracted from the current steering angle of the virtual object to obtain a steering angle difference; when the absolute value of the steering angle difference is greater than the angle difference threshold, a danger prompt information is displayed; wherein the danger prompt information is used to indicate that the virtual object is currently in a dangerous state. Here, the dangerous state is used to indicate that the virtual object will make a sharp turn.

[0145] It should be noted that, since the steering angle indicated by the direction adjustment operation is determined by the user at the moment of performing the direction adjustment operation, it is instantaneous, and when a direction adjustment operation for a virtual object is received based on a drive control or a direction control, the current steering angle of the virtual object will not be instantly changed according to the steering angle indicated by the direction adjustment operation. Therefore, when a direction adjustment operation for a virtual object is received based on a drive control or a direction control, it can be predicted whether the virtual object will be in danger when turning while moving based on the direction adjustment operation; at the same time, as mentioned above, based on the left and right differences, the steering angle and the current steering angle may be less than zero, so the steering angle is subtracted from the current steering angle of the virtual object, that is, the steering angle is subtracted from the current steering angle of the virtual object, and then the absolute value of the difference is compared with the angle difference threshold, where the angle difference threshold can be pre-set, such as 60 degrees.

[0146] In actual implementation, the danger warning information can be text information, image information, animation information, etc.; for example, when the danger warning information is text information, the text content can be "Beware of danger"; when the danger warning information is image information, the image content can be a red exclamation mark.

[0147] In some embodiments, when the absolute value of the steering angle difference is not greater than the angle difference threshold, a safety prompt message may also be displayed, and the safety prompt message is used to indicate that the virtual object is currently in a safe state, that is, a normal turning state. Similarly, the safety prompt message may be text information, image information, animation information, etc.; for example, when the safety prompt message is text information, the text content may be "Safe Ahead", and when the safety prompt message is image information, the image content may be a smiling face. In this way, the virtual object is warned of danger prompt information when the virtual object is moving and turning, thereby improving the safety of the virtual object during control.

[0148] In some embodiments, when the drive control and the direction control are in a co-connected state, a state switching control may also be displayed; in response to a trigger operation on the state switching control, the drive control and the direction control are controlled to switch from a co-connected state to a non-co-connected state; when the drive control and the direction control are in a non-co-connected state, in response to a trigger operation on at least one of the drive control and the direction control, the virtual object is controlled to perform the operation indicated by the control triggered by the trigger operation.

[0149] It should be noted that when the driving control and the direction control are in a non-coordinated state, when the virtual object moves straight, the virtual object is controlled to move in a straight line in response to the trigger operation of the driving control; when the virtual object turns, the virtual object is controlled to turn in response to the trigger operation of the direction control; when the virtual object turns while moving, the virtual object is controlled to turn while moving in response to the trigger operation of the driving control and the direction control.

[0150] For example, see Fig.15 , Fig.15 is a schematic diagram of a state switching control provided in an embodiment of the present application, based on Fig.15 In a, when the driving control and the direction control are in a co-connected state, the state switching control indicated by 1501 can also be displayed; in response to the triggering operation of the state switching control indicated by 1501, the driving control and the direction control are controlled to switch from a co-connected state to a non-co-connected state, as shown in b, so that when the driving control and the direction control are in a non-co-connected state, when the virtual object indicated by 1503 goes straight, then in response to the triggering operation of the driving control indicated by 1502, the virtual object is controlled to go straight.

[0151] By using the above-mentioned embodiment of the present application, by responding to the co-connection instruction for the drive control for controlling the virtual object to move forward or backward, and the direction control for controlling the virtual object to turn left or right, the drive control and the direction control are controlled to be in a co-connected state, so that when the drive control and the direction control are in the co-connected state, in response to the triggering operation for the drive control or the direction control, the virtual object is controlled to move forward and turn at the same time. In this way, compared with the method in the related art that the drive control and the direction control must be clicked repeatedly to adjust the turning process, by controlling the drive control and the direction control to be in a co-connected state, only the drive control or the direction control is triggered separately, the effect of controlling the virtual object to move forward and turn at the same time can be achieved, which improves the convenience of interactive operation, reduces the number of adjustment operations of the user in the turning process, and improves the efficiency of human-computer interaction.

[0152] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.

[0153] With the development of technology and the improvement of mobile device performance, the operation direction of the human-computer interface is bound to develop towards a more convenient and efficient control method, so that users can have a more pleasant human-computer interaction method. Therefore, the present application provides a solution for convenient vehicle steering in the game. For example, in a mobile game, if the player drives the vehicle through a corner, the conventional left hand presses forward and the right hand presses left and right to turn, and it is not possible to turn smoothly. In the present application, when the player drives the vehicle through a corner, the skill can be interactively changed to achieve a one-handed convenient turning operation, which is quick and convenient to operate and provides a better user experience.

[0154] Next, the technical solution of this application is described from the product side. Figure 4 As shown, in the virtual scene, the player character controlled by the user account currently logged into the application and the vehicle control are displayed, so that in response to the trigger operation on the vehicle control, the player character is controlled to enter the virtual vehicle, that is, the player character is controlled to be in the vehicle driving mode. Figure 5 As shown, the left hand operates the driving control, i.e. the forward and backward keys, and the right hand operates the direction control, i.e. the left turn direction or the right turn direction. Figure 6 and Figure 7 As shown in the figure, when the road turns right, the player can press the forward button with the left hand and the right turn button with the right hand in advance, so that the forward button and the right turn button will be triggered to form a joint state. Figure 8 As shown, in the linked state, the virtual vehicle can be turned by either the left hand or the right hand. For example, when the forward key and the right turn key are in the linked state, in response to a trigger operation on the forward key, the virtual vehicle can be controlled to move forward and turn right at the same time, or in response to a trigger operation on the right turn key, the virtual vehicle can be controlled to move forward and turn right at the same time.

[0155] In actual implementation, Fig.10 As shown in the figure, in the joint connection state, a virtual direction pointer will appear on the screen, and the pointer angle corresponds to the turning angle of the player's finger operating button. Fig.12 As shown in the figure, in the co-connected state, the vehicle will also trigger the road curvature prompt, that is, display the laser guide line (guide line) to indicate the actual direction of the vehicle. Fig.14 As shown in the figure, in the joint state, the player controls the steering with one hand, so that the direction pointer on the screen and the laser guide are roughly consistent with the road curve in the actual scene at the angle that can be turned, and a prompt mark (first prompt information) will appear to indicate that the turn can be made. If this angle is maintained, the turn can be made perfectly. If this mark does not appear, the player needs to adjust the control angle.

[0156] Finally, when the virtual vehicle successfully turns, Fig.15As shown, in response to a trigger operation on a control for canceling the co-connection (state switching control), the drive control and the direction control are controlled to switch from a co-connected state to a non-co-connected state, that is, the normal state, and in response to a trigger operation on the drive control indicated by 1502, the virtual object is controlled to move in a straight line.

[0157] Next, the technical solution of this application is described from a technical perspective. Fig.16 As shown, Fig.16 is a flowchart of the process of convenient vehicle steering in the game provided by the embodiment of the present application, based on Fig.16 , the present application provides steps 1601 to 1606 to implement, specifically, when the player enters the game, it detects whether the player character controlled by the user enters the vehicle driving state, and in response to the player's click operation on the boarding button (vehicle control), the character's carrier is switched from the ground to a drivable vehicle (the drivable vehicle is hereinafter referred to as a vehicle), and each frame detects whether the character's current carrier is a vehicle, so that it can be determined that the player state enters the vehicle driving mode. If in driving mode, the interface interaction button is changed to get off the vehicle, and the player can exit the driving mode by clicking the get off button, and the interaction button enters the normal mode. After entering the vehicle state, the drive control that controls the forward and backward driving force and the direction control that controls the left and right directions are independently controlled, that is, the left-hand button controls the forward and backward drive, and the right-hand button controls the left and right directions. This control method is an independent control mode. Here, when the player enters the vehicle, the independent control mode is entered by default. When there is a curve ahead, determine whether it is necessary to turn ahead, that is, turn. If not, continue to execute the click operation on the drive controls such as the forward key to control the vehicle to go straight; if necessary, mix the drive controls and direction controls to achieve turning. In the present application, in the independent control mode, long press operations on the drive controls and the direction controls are performed at the same time, then the joint control mode is entered, such as pressing the forward key in the drive control and the right turn key in the direction control, and keeping the pressing operation for three seconds, then the joint control mode is entered; in the joint control mode, a trigger operation is executed on the drive control or one of the direction controls in the joint state, so as to control the steering of the vehicle. For example, when the forward key and the right turn key are in the joint state, in response to the trigger operation on the forward key, the virtual vehicle can be controlled to move forward and turn right at the same time, or in response to the trigger operation on the right turn key, the virtual vehicle can be controlled to move forward and turn right at the same time. At the same time, in the process of controlling the vehicle's steering, the laser line and the direction pointer used to indicate the vehicle's actual direction of travel are displayed to determine whether the vehicle can successfully turn. When the laser line and the direction pointer are always parallel to the lane, the vehicle can successfully turn. In addition, in the joint control mode, a button to cancel the joint connection will also be displayed, so that when the control does not need to be in the joint state, in response to the click operation on the button to cancel the joint connection, it will return to the independent control mode.

[0158] It should be noted that if Fig.17 As shown, Fig.17 is a schematic diagram of the current steering angle of the vehicle provided in the embodiment of the present application, based on Fig.17 In the joint control mode, a front wheel rotation angle pointer will be displayed on the top of the interface. The angle value is the current steering angle of the vehicle. When the angle value > 0, it means the vehicle is turning right, and when the angle value < 0, it means the vehicle is turning left.

[0159] In some embodiments, in the shared mode, the drive control and the direction control can control the direction of the vehicle individually or simultaneously. Specifically, the steering angle indicated by the drive control is called Angle_L, and the steering angle indicated by the direction control is called Angle_R. Based on this, the actual direction of travel of the vehicle, that is, the current steering angle of the vehicle is Angle_direction = Angle_R + Angle_L, that is, the final wheel direction is the sum of the steering angles indicated by the drive control and the direction control.

[0160] Exemplarily, when the direction control alone controls the direction of the vehicle, Angle_direction = Angle_R, that is, the steering angle is determined by the right hand; when the drive control alone controls the direction of the vehicle, Angle_direction = Angle_L, that is, the steering angle is determined by the left hand; when the drive control and the direction control control simultaneously control the direction of the vehicle, if the left and right directions are in the same direction, the steering angles indicated by the two controls are superimposed to make the steering range larger, such as Angle_direction = Angle_R (>0) + Angle_L (>0). If the left and right directions are opposite, for example, the direction control slides 60 degrees to the right and the drive control slides 45 degrees to the left, they will weaken each other and ultimately take the direction with the larger absolute value, that is, Angle_direction = Angle_R (60 degrees) + Angle_L (-45 degrees) = 15 degrees, which means that the vehicle is controlled to turn 15 degrees to the right.

[0161] It should be noted that if Fig.18 As shown, Fig.18 is a schematic diagram of the direction angle provided in the embodiment of the present application, based on Fig.18In the joint control mode, a laser guide line (dashed line in the figure) will be displayed in front of the vehicle. The guide line is the actual direction of travel of the vehicle. The angle between the guide line and the direction of the road at a certain safety distance in front (pre-set, such as 200 meters) is Angle_road. When the vehicle is driving on the road, we can obtain the actual direction of travel of the vehicle direction_car, and according to the vehicle position and map configuration, as well as the planned safety distance, obtain the direction of the road ahead direction_forward corresponding to the safety distance, then Angle_road = direction_forward-direction_car.

[0162] In some embodiments, in the joint control mode, the difference between Angle_road and Angle_direction is tested. When the test result indicates that the difference exceeds the difference threshold, it is considered to enter the dangerous mode, otherwise it is the safe mode. Here, the difference threshold is pre-set, called Angle_safe. Specifically, when |(Angle_road-Angle_direction)|>Angle_safe, it warns of danger, otherwise it prompts safety.

[0163] In this way, operations that originally required multiple steps to achieve can be completed quickly and efficiently, which can significantly improve the player's operating experience and provide more gaming fun.

[0164] By using the above-mentioned embodiment of the present application, by responding to the co-connection instruction for the drive control for controlling the virtual object to move forward or backward, and the direction control for controlling the virtual object to turn left or right, the drive control and the direction control are controlled to be in a co-connected state, so that when the drive control and the direction control are in the co-connected state, in response to the triggering operation for the drive control or the direction control, the virtual object is controlled to move forward and turn at the same time. In this way, compared with the method in the related art that the drive control and the direction control must be clicked repeatedly to adjust the turning process, by controlling the drive control and the direction control to be in a co-connected state, only the drive control or the direction control is triggered separately, the effect of controlling the virtual object to move forward and turn at the same time can be achieved, which improves the convenience of interactive operation, reduces the number of adjustment operations of the user in the turning process, and improves the efficiency of human-computer interaction.

[0165] The following is a description of an exemplary structure of a virtual object control device 455 provided in an embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the virtual object control device 455 of the memory 450 may include:

[0166] Display module 4551, used to display a virtual object in a virtual scene, and display a driving control and a direction control for controlling the direction of travel of the virtual object; wherein the driving control is used to control the virtual object to move forward or backward, and the direction control is used to control the virtual object to turn left or right;

[0167] A first control module 4552, configured to control the driving control and the direction control to be in a connected state in response to a connected instruction for the driving control and the direction control;

[0168] The second control module 4553 is used to control the virtual object to move and turn at the same time in response to a trigger operation on the drive control or the direction control when the drive control and the direction control are in a connected state.

[0169] In some embodiments, the device also includes a first trigger module, which is used to control the virtual object to simultaneously perform the operations indicated by the drive control and the direction control in response to a trigger operation performed simultaneously on the drive control and the direction control, and obtain the operation duration of the trigger operation; when the operation duration of the trigger operation reaches a duration threshold, trigger a connection instruction for the drive control and the direction control.

[0170] In some embodiments, the device also includes a second trigger module, which is used to respond to the trigger operation performed simultaneously on the drive control and the direction control, keep the current state of the virtual object unchanged, and obtain the operation duration of the trigger operation; when the operation duration of the trigger operation reaches a duration threshold, trigger the connection instruction for the drive control and the direction control.

[0171] In some embodiments, the device also includes a state switching module, which is used to display a state switching control when the drive control and the direction control are in a connected state; in response to a trigger operation on the state switching control, control the drive control and the direction control to switch from the connected state to a non-connected state; when the drive control and the direction control are in the non-connected state, in response to a trigger operation on at least one of the drive control and the direction control, control the virtual object to perform the operation indicated by the control triggered by the trigger operation.

[0172] In some embodiments, the drive control includes a first drive sub-control corresponding to the forward movement and a second drive sub-control corresponding to the backward movement, and the direction control includes a first direction sub-control corresponding to the left turn and a second direction sub-control corresponding to the right turn; the device also includes a style switching module, and the style switching module is used to switch the display style of the first drive sub-control and the first direction sub-control from a default style to a target style when the drive control targeted by the co-linked instruction is the first drive sub-control and the direction control targeted is the first direction sub-control; wherein the target style is used to distinguish the first drive sub-control and the first direction sub-control from the second drive sub-control and the second direction sub-control.

[0173] In some embodiments, the device also includes a first adjustment module, which is used to respond to a trigger operation on the drive control or the direction control, determine the control targeted by the trigger operation as a target control, and display a steering angle adjustment control in the associated area of ​​the target control; during the execution of the trigger operation, in response to the steering angle adjustment operation triggered based on the steering angle adjustment control, the steering angle of the virtual object is adjusted during the process of the virtual object moving and turning.

[0174] In some embodiments, the device also includes a second display module, which is used to display a heading pointer during the execution of the trigger operation, and the heading pointer is used to indicate the current steering angle of the virtual object; in response to the steering angle adjustment operation triggered based on the steering angle adjustment control, the position of the heading pointer is changed; wherein the changed position of the heading pointer is adapted to the steering angle of the virtual object after the steering angle adjustment.

[0175] In some embodiments, the steering angle adjustment control is in a draggable state, and the device also includes a third display module, which is used to display a draggable area corresponding to the steering angle adjustment control; in response to a dragging operation on the steering angle adjustment control within the draggable area, the dragging operation is determined as the steering angle adjustment operation.

[0176] In some embodiments, the draggable area is a circular area, and the first adjustment module is further used to obtain the center angle formed by the position of the steering angle adjustment control after being dragged, the position of the steering angle adjustment control before being dragged, and the center position of the circular area; based on the center angle, the steering angle of the virtual object is adjusted.

[0177] In some embodiments, the first adjustment module is also used to obtain the current steering angle of the virtual object during the movement; when the direction corresponding to the current steering angle is the same as the direction indicated by the steering angle adjustment operation, the current steering angle and the steering angle indicated by the steering angle adjustment operation are summed to obtain a target steering angle; when the direction corresponding to the current steering angle is opposite to the direction indicated by the steering angle adjustment operation, the current steering angle and the steering angle indicated by the steering angle adjustment operation are subtracted to obtain the target steering angle; the steering angle of the virtual object is adjusted to the target steering angle.

[0178] In some embodiments, the device also includes a second adjustment module, which is used to obtain the number of steering angle adjustment operations performed on the virtual object; when the number of operations reaches a threshold, the steering angle of the virtual object is automatically adjusted so that the current steering angle of the virtual object during the movement after adjustment is consistent with the standard steering angle at which the virtual object can travel through the curve on the current road.

[0179] In some embodiments, the device also includes a third display module, which is used to display a guide line corresponding to the virtual object during the movement and turning of the virtual object; wherein the guide line is used to indicate the actual moving direction of the virtual object in the virtual scene.

[0180] In some embodiments, the third display module is also used to determine the curvature circle corresponding to the real-time position based on the real-time position of the virtual object on the current road curve during the movement and turning of the virtual object; based on the curvature circle, determine the tangent with the real-time position as the tangent point, and display the guide line corresponding to the virtual object based on the tangent.

[0181] In some embodiments, the device also includes a fourth display module, which is used to display a first prompt message when the current steering angle of the virtual object during the movement is consistent with the standard steering angle at which the virtual object can travel through the curve on the current road during the movement of the virtual object; wherein the first prompt message is used to indicate that the virtual object can successfully turn during the movement.

[0182] In some embodiments, the device also includes a fifth display module, which is used to display a guide line and a heading pointer; wherein the guide line is used to indicate the actual travel direction of the virtual object in the virtual scene, and the heading pointer is used to indicate the current steering angle of the virtual object; the fourth display module is also used to display the first prompt information at the associated position of the heading pointer when the steering angle corresponding to the actual travel direction indicated by the guide line is consistent with the standard steering angle at which the virtual object can travel through the curve on the current road.

[0183] In some embodiments, the device also includes a third adjustment module, which is used to display an automatic adjustment control when the current steering angle of the virtual object during the movement and turning of the virtual object is inconsistent with the standard steering angle at which the virtual object can travel through the curve on the current road; wherein the automatic adjustment control is used to automatically adjust the steering angle of the virtual object during the movement; and automatically adjust the steering angle of the virtual object during the movement in response to a trigger operation on the automatic adjustment control.

[0184] In some embodiments, the device also includes a sixth display module, which is used to obtain the steering angle indicated by the direction adjustment operation when receiving a direction adjustment operation for the virtual object triggered by the drive control or the direction control during the movement and turning of the virtual object, and subtract the steering angle from the current steering angle of the virtual object to obtain a steering angle difference; when the absolute value of the steering angle difference is greater than an angle difference threshold, display danger warning information; wherein the danger warning information is used to indicate that the virtual object is currently in a dangerous state.

[0185] The embodiment of the present application provides a computer program product, which includes computer executable instructions, and the computer executable instructions are stored in a computer readable storage medium. The processor of the electronic device reads the computer executable instructions from the computer readable storage medium, and the processor executes the computer executable instructions, so that the electronic device executes the control method of the virtual object described in the embodiment of the present application.

[0186] The present application embodiment provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the processor will execute the control method of the virtual object provided by the present application embodiment, for example, Figure 3 A method for controlling a virtual object is shown.

[0187] In some embodiments, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disk, or a CD-ROM; or it may be various devices including one or any combination of the above memories.

[0188] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0189] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0190] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0191] In summary, the embodiments of the present application have the following beneficial effects:

[0192] (1) Compared with the method in the related art where the driving control and the direction control must be clicked repeatedly to adjust the steering process, by controlling the driving control and the direction control to be in a connected state, only the driving control or the direction control needs to be triggered separately to achieve the effect of controlling the movement of the virtual object and steering at the same time, thereby improving the convenience of interactive operations, reducing the number of adjustment operations performed by the user during the steering process, and improving the efficiency of human-computer interaction.

[0193] (2) Operations that previously required multiple steps can now be completed quickly and efficiently, which can significantly improve the player's operating experience and provide more gaming fun.

[0194] It should be noted that in the embodiments of the present application, it involves obtaining user operation data and other related data. When the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0195] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A method for controlling a virtual object, characterized in that: The method comprises: In a virtual scene, a virtual object is displayed, and a driving control and a direction control for controlling a moving direction of the virtual object are displayed; The driving control is used to control the virtual object to move forward or backward, and the direction control is used to control the virtual object to turn left or right; In response to a connection instruction for the driving control and the direction control, controlling the driving control and the direction control to be in a connection state; When the driving control and the direction control are in a co-connected state, in response to a trigger operation on the driving control or the direction control, the virtual object is controlled to move and turn at the same time.

2. The method according to claim 1, characterized in that The method further comprises: In response to a trigger operation performed simultaneously on the drive control and the direction control, controlling the virtual object to simultaneously perform the operations indicated by the drive control and the direction control, and acquiring an operation duration of the trigger operation; When the operation duration of the trigger operation reaches a duration threshold, a connection instruction for the drive control and the direction control is triggered.

3. The method according to claim 1, characterized in that The method further comprises: In response to a trigger operation performed simultaneously on the drive control and the direction control, keeping the current state of the virtual object unchanged, and obtaining an operation duration of the trigger operation; When the operation duration of the trigger operation reaches a duration threshold, a connection instruction for the drive control and the direction control is triggered.

4. The method according to claim 1, characterized in that The method further comprises: When the driving control and the direction control are in a connected state, a state switching control is displayed; In response to a trigger operation on the state switching control, controlling the driving control and the direction control to switch from the connected state to the non-connected state; When the driving control and the direction control are in the non-co-connected state, in response to a trigger operation on at least one of the driving control and the direction control, the virtual object is controlled to perform an operation indicated by the control triggered by the trigger operation.

5. The method according to claim 1, characterized in that The driving control includes a first driving sub-control corresponding to the forward movement and a second driving sub-control corresponding to the backward movement, and the direction control includes a first direction sub-control corresponding to the left turn and a second direction sub-control corresponding to the right turn; The method further comprises: When the driving control targeted by the co-linking instruction is the first driving sub-control and the direction control targeted by the co-linking instruction is the first direction sub-control, switching the display styles of the first driving sub-control and the first direction sub-control from a default style to a target style; The target style is used to distinguish the first driving sub-control and the first direction sub-control from the second driving sub-control and the second direction sub-control.

6. The method according to claim 1, characterized in that The method further comprises: In response to a trigger operation on the driving control or the direction control, determining the control targeted by the trigger operation as a target control, and displaying a steering angle adjustment control in an associated area of ​​the target control; During the execution of the trigger operation, in response to the steering angle adjustment operation triggered based on the steering angle adjustment control, the steering angle of the virtual object is adjusted during the movement and turning of the virtual object.

7. The method according to claim 6, characterized in that The method further comprises: During the execution of the trigger operation, a heading pointer is displayed, where the heading pointer is used to indicate a current turning angle of the virtual object; In response to a steering angle adjustment operation triggered by the steering angle adjustment control, changing a position of the heading pointer; The changed position of the orientation pointer is adapted to the steering angle of the virtual object after the steering angle is adjusted.

8. The method according to claim 6, characterized in that The steering angle adjustment control is in a draggable state, and the method further includes: Displaying the draggable area corresponding to the steering angle adjustment control; In response to a drag operation on the steering angle adjustment control within the draggable area, the drag operation is determined as the steering angle adjustment operation.

9. The method according to claim 8, characterized in that The draggable area is a circular area, and the turning angle of the virtual object is adjusted during the movement and turning of the virtual object, including: Obtaining a center angle formed by the position of the steering angle adjustment control after being dragged, the position of the steering angle adjustment control before being dragged, and the center position of the circular area; Based on the center angle, the steering angle of the virtual object is adjusted.

10. The method according to claim 6, characterized in that The step of adjusting the turning angle of the virtual object during the virtual object's movement and turning process includes: Acquire a current steering angle of the virtual object during its movement; When the direction corresponding to the current steering angle is the same as the direction indicated by the steering angle adjustment operation, the current steering angle and the steering angle indicated by the steering angle adjustment operation are summed to obtain a target steering angle; When the direction corresponding to the current steering angle is opposite to the direction indicated by the steering angle adjustment operation, performing a difference process on the current steering angle and the steering angle indicated by the steering angle adjustment operation to obtain a target steering angle; The steering angle of the virtual object is adjusted to the target steering angle.

11. The method according to claim 6, characterized in that In response to the steering angle adjustment operation triggered by the steering angle adjustment control, after adjusting the steering angle of the virtual object during the virtual object's movement and turning, the method further includes: Acquire the number of steering angle adjustment operations performed on the virtual object; When the number of operations reaches a threshold number, the steering angle of the virtual object is automatically adjusted so that the current steering angle of the virtual object during the movement is consistent with the standard steering angle at which the virtual object can travel through the curve on the current road.

12. The method according to claim 1, characterized in that The method further comprises: During the process of the virtual object moving and turning, displaying a guide line corresponding to the virtual object; The guide line is used to indicate the actual moving direction of the virtual object in the virtual scene.

13. The method according to claim 12, characterized in that The step of displaying a guide line corresponding to the virtual object during the process of the virtual object moving and turning includes: In the process of the virtual object moving and turning, based on the real-time position of the virtual object on the current road curve, determining the curvature circle corresponding to the real-time position; Based on the curvature circle, a tangent line with the real-time position as a tangent point is determined, and a guide line corresponding to the virtual object is displayed based on the tangent line.

14. The method according to claim 1, wherein: The method further comprises: During the process of the virtual object moving and turning, when the current turning angle of the virtual object during the moving process is consistent with the standard turning angle at which the virtual object can travel through a curve on the current road curve, displaying a first prompt message; The first prompt information is used to indicate that the virtual object can successfully turn during the moving process.

15. The method according to claim 14, characterized in that The method further comprises: Display guide lines and heading pointers; Wherein, the guide line is used to indicate the actual moving direction of the virtual object in the virtual scene, and the heading pointer is used to indicate the current turning angle of the virtual object; The displaying of the first prompt information includes: When the steering angle corresponding to the actual direction of travel indicated by the guide line is consistent with the standard steering angle at which the virtual object can travel through the curve on the current road curve, the first prompt information is displayed at the associated position of the heading pointer.

16. The method according to claim 1, wherein: The method further comprises: During the process of the virtual object moving and turning, when the current steering angle of the virtual object during the moving process is inconsistent with the standard steering angle at which the virtual object can travel through a curve on the current road curve, displaying an automatic adjustment control; Wherein, the automatic adjustment control is used to automatically adjust the steering angle of the virtual object during its movement; In response to a triggering operation on the automatic adjustment control, a steering angle of the virtual object during travel is automatically adjusted.

17. The method according to claim 1, wherein: The method further comprises: When a direction adjustment operation for the virtual object is received based on the driving control or the direction control and is triggered during the movement and turning of the virtual object, a steering angle indicated by the direction adjustment operation is acquired, and the steering angle is subtracted from a current steering angle of the virtual object to obtain a steering angle difference; When the absolute value of the steering angle difference is greater than the angle difference threshold, displaying a danger warning message; The danger prompt information is used to indicate that the virtual object is currently in a dangerous state.

18. A control device for a virtual object, characterized in that: The device comprises: A display module, used to display a virtual object in a virtual scene, and display a drive control and a direction control for controlling the direction of travel of the virtual object; wherein the drive control is used to control the virtual object to move forward or backward, and the direction control is used to control the virtual object to turn left or right; A first control module, configured to control the driving control and the direction control to be in a connected state in response to a connected instruction for the driving control and the direction control; The second control module is used for controlling the virtual object to move and turn at the same time in response to a trigger operation on the drive control or the direction control when the drive control and the direction control are in a connected state.

19. An electronic device, characterized in that: include: A memory for storing computer executable instructions; A processor, configured to implement the method for controlling a virtual object according to any one of claims 1 to 17 when executing the computer executable instructions stored in the memory.

20. A computer-readable storage medium, characterized in that: Computer executable instructions are stored, which are used to cause a processor to execute and implement the control method of the virtual object described in any one of claims 1 to 17.

21. A computer program product comprising computer executable instructions, characterized in that: When the computer executable instructions are executed by a processor, the method for controlling a virtual object according to any one of claims 1 to 17 is implemented.