Virtual object control method and apparatus, electronic device, computer-readable storage medium and computer product

By jointly driving controls and directional controls in virtual scenes, the convenient travel and steering of virtual objects in virtual scenes is achieved, and the problems of cumbersome operations and waste of resources in the existing technology are solved, and the convenience and efficiency of interactive operations are improved.

WO2025039686A1PCT designated stage expired Publication Date: 2025-02-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/098723
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-08-24
Filing Date
2024-06-12
Publication Date
2025-02-27

AI Technical Summary

Technical Problem

In the prior art, when a player drives a virtual vehicle in a mobile game, the steering process is too cumbersome by clicking the forward or back keys and direction keys multiple times, resulting in low convenience of interaction and waste of hardware processing resources.

Method used

A method of controlling a virtual object is provided, by displaying the driver control and the directional control in a virtual scene and putting it in a co-linked state in response to the co-linked command, allowing the travel and steering of the virtual object to be achieved by triggering the driver control or directional control separately in the co-linked state.

Benefits of technology

It improves the convenience and efficiency of interactive operations, reduces the number of times users adjust operations during the steering process, and improves human-computer interaction efficiency and hardware resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024098723_27022025_PF_FP_ABST
    Figure CN2024098723_27022025_PF_FP_ABST
Patent Text Reader

Abstract

A virtual object control method and apparatus, an electronic device, a computer-readable storage medium and a computer program product. The method comprises: in a virtual scene, displaying a virtual object and displaying a driving control and a direction control, wherein the driving control is used for controlling the virtual object to travel forward or backward, and the direction control is used for controlling the virtual object to turn; in response to a co-connection instruction regarding the driving control and the direction control, controlling the driving control and the direction control to be in a co-connected state; and when the driving control and the direction control are in the co-connected state, in response to a trigger operation on a target control, controlling the virtual object to turn while travelling, wherein the target control is at least one of the driving control and the direction control.
Need to check novelty before this filing date? Find Prior Art

Description

Virtual object control method, device, electronic device, computer-readable storage medium, and computer product

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] The embodiments of this application are based on the Chinese patent application with application number 202311078624.0 and application date August 24, 2023, and claim the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into the embodiments of this application as a reference. Technical Field

[0003] The present application relates to the technical field of virtualization and human-computer interaction, and in particular to a method, device, electronic device, computer-readable storage medium, and computer program product for controlling a virtual object. Background Art

[0004] 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 back key, and the left or right key at the same time. However, this method of repeatedly clicking the forward or back key, and the left or right key to adjust the turning process of the virtual vehicle is too cumbersome, and the convenience of interactive operations is low. At the same time, since the turning process of the virtual vehicle can only be achieved through cumbersome operations, it also causes a waste of hardware processing resources.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a method, device, electronic device, computer-readable storage medium, and computer program product for controlling a virtual object, which can improve the convenience of interactive operations, the efficiency of human-computer interaction, and the utilization rate of hardware processing resources.

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

[0008] The present invention provides a method for controlling a virtual object, including:

[0009] In the virtual scene, display the virtual object, and display the driving control and the direction control;

[0010] 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;

[0011] 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;

[0012] When the driving control and the direction control are in a connected state, in response to a trigger operation on a target control, the virtual object is controlled to move and turn simultaneously;

[0013] Wherein, the target control is at least one of the drive control and the direction control.

[0014] An embodiment of the present application provides a device for controlling a virtual object, including:

[0015] A display module is configured to display a virtual object in a virtual scene and display a drive control 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 direction of the virtual object;

[0016] 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;

[0017] The second control module is configured to control the virtual object to move and turn simultaneously in response to a trigger operation on a target control when the drive control and the direction control are in a connected state; wherein the target control is at least one of the drive control and the direction control.

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

[0019] a memory configured to store computer-executable instructions;

[0020] The processor is configured 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.

[0021] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are executed by a processor, the virtual object control method provided in the embodiment of the present application is implemented.

[0022] The present invention provides a computer program product including computer-executable instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the electronic device to perform the virtual object control method provided in the present invention.

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

[0024] In response to a linkage instruction for a drive control for controlling the virtual object to move forward or backward and a directional control for controlling the virtual object to turn left or right, the drive control and the directional control are controlled to be in a linkage state. Thus, when the drive control and the directional control are in the linkage state, in response to a triggering operation on at least one of the drive control and the directional control, the virtual object is controlled to move forward and turn simultaneously. Thus, compared to the related art method of repeatedly clicking the drive control and the directional control to adjust the steering process, by controlling the drive control and the directional control to be in the linkage state, the effect of controlling the virtual object to move forward and turn simultaneously can be achieved by simply triggering either the drive control or the directional control, thereby improving the convenience and effectiveness of interactive operations, reducing the number of adjustment operations required by the user during the steering process, and improving the efficiency of human-computer interaction and the hardware resource utilization of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0026] FIG2 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0027] FIG3 is a flow chart of a method for controlling a virtual object according to an embodiment of the present application;

[0028] FIG4 is a schematic diagram of a process of displaying a virtual object according to an embodiment of the present application;

[0029] FIG5 is a schematic diagram of a drive control and a direction control provided in an embodiment of the present application;

[0030] FIG6 is a schematic diagram of a trigger operation performed simultaneously in a drive control and a direction control according to an embodiment of the present application;

[0031] 7 is a schematic diagram of a first driving sub-control and a first direction sub-control in a target style according to an embodiment of the present application;

[0032] FIG8 is a schematic diagram showing a steering angle adjustment control according to an embodiment of the present application;

[0033] FIG9 is a schematic diagram of determining a central angle of a circle based on a steering angle adjustment control according to an embodiment of the present application;

[0034] FIG10 is a schematic diagram of a direction pointer provided in an embodiment of the present application;

[0035] FIG11 is a schematic diagram of adjusting the steering angle of a virtual object provided in an embodiment of the present application;

[0036] FIG12 is a schematic diagram of a guide wire provided in an embodiment of the present application;

[0037] FIG13 is a schematic diagram of a process of determining a guide line corresponding to a virtual object according to an embodiment of the present application;

[0038] FIG14 is a schematic diagram of first prompt information provided in an embodiment of the present application;

[0039] FIG15 is a schematic diagram of a state switching control provided in an embodiment of the present application;

[0040] FIG16 is a flowchart of a process for convenient vehicle steering in a game provided by an embodiment of the present application;

[0041] FIG17 is a schematic diagram of the current steering angle of the vehicle provided in an embodiment of the present application;

[0042] FIG18 is a schematic diagram of the direction angles provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0044] In the following description, reference is made to “some embodiments”, which describes 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.

[0045] 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.

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

[0047] 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.

[0048] 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 can be 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.

[0049] 2) Client, also known as 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, there must be corresponding servers and service programs on the network to provide corresponding services. In this way, specific communication connections need to be established between the client and server to ensure the normal operation of the application, such as virtual scene clients (such as game clients) and video clients.

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

[0051] 4) Virtual scene: This is the virtual scene displayed (or provided) when the application is running on the terminal. This virtual scene can be a simulation of the real world, a virtual environment that is partially simulated and partially fictional, or a purely fictional virtual environment. The virtual scene can be any of two-dimensional, two-and-a-half-dimensional, or three-dimensional.

[0052] For example, a virtual scene may include the sky, land, ocean, etc., where the land may include environmental elements such as deserts and cities. Users may control virtual objects 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 (e.g., the user plays the role of a virtual object in the game from their own perspective); from a third-person perspective (e.g., the user chases the virtual object in the game); or from a bird's-eye view perspective. The aforementioned perspectives may be switched arbitrarily.

[0053] 5) Virtual objects: These are images of various people and objects that can interact in a virtual scene, or movable objects within the virtual scene. These movable objects can be virtual people, virtual animals, cartoon characters, etc., for example, people, animals, plants, oil drums, walls, rocks, vehicles, etc. displayed within the virtual scene. A virtual object can be a virtual avatar that represents the user within the virtual scene. A virtual scene can include multiple virtual objects, each with its own unique shape and volume, occupying a portion of the space within the virtual scene.

[0054] For example, the virtual object can be a user character controlled by operations on the client, an artificial intelligence (AI) trained to play in a virtual scene, or a non-player character (NPC) used in virtual scene interactions. The number of virtual objects participating in the virtual scene interaction can be pre-set or dynamically determined based on the number of clients participating in the interaction.

[0055] 6) Circle of curvature: On the normal to a point M on the curve, take a point D on the concave side such 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 circle of curvature of the curve at that point.

[0056] 7) Driving controls, used to control the player to move forward or backward, for example, a forward control used to control the player to move forward, and a backward control used to control the player to move backward.

[0057] 8) Direction controls, which are controls for controlling the player's direction of rotation. For example, they may be a left turn control for controlling the player's left turn, and a right turn control for controlling the player's right turn.

[0058] Refer to Figure 1, which is a schematic diagram of the architecture of a control system 100 of a virtual object provided in an embodiment of the present application. In order to realize the application scenario of virtual object control (for example, the application scenario of virtual object control can be when a user controls a virtual vehicle in a game, by pressing the forward key and the right turn key at the same time, the forward key and the right turn key are controlled 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 the trigger operation of 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 through a network 300, wherein the network 300 can 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.

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

[0060] Terminal 400 is configured to receive scene data corresponding to a virtual scene including a virtual object, a driving control for controlling the direction of movement of the virtual object, and a direction control; display a virtual scene based on the scene data; display a virtual object in the virtual scene, and display a driving control and a direction control; 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; in response to a connection instruction for the driving control and the direction control, control the driving control and the direction control to be in a connection state; when the driving control and the direction control are in the connection state, respond to a trigger operation for a target control, control the virtual object to move while turning; wherein the target control is at least one of the driving control and the direction control.

[0061] In some embodiments, the server 200 can 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 delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal 400 can 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, etc., but is not limited thereto. The terminal and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.

[0062] Next, an electronic device for implementing the control method of the virtual object provided by the embodiment of the present application is described. Referring to Figure 2, Figure 2 is a structural diagram of an electronic device provided by the embodiment of the present application. The electronic device can be a server or a terminal. Taking the electronic device as the terminal shown in Figure 1 as an example, the electronic device shown in Figure 2 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 through a bus system 440. It can be understood that the bus system 440 is configured 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, various buses are labeled as bus system 440 in Figure 2.

[0063] The 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.

[0064] 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.

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

[0066] The memory 450 includes volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. 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.

[0067] In some embodiments, the 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 exemplified below.

[0068] Operating system 451, including system programs configured to handle various basic system services and perform hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., configured to implement various basic services and handle hardware-based tasks;

[0069] A network communication module 452 is configured to reach other electronic devices via one or more (wired or wireless) network interfaces 420 , exemplary network interfaces 420 including Bluetooth, Wireless LAN (WiFi), and Universal Serial Bus (USB);

[0070] a presentation module 453 configured to enable display of information via one or more output devices 431 (e.g., a display screen, a speaker, etc.) associated with the user interface 430 (e.g., a user interface configured to operate peripheral devices and display content and information);

[0071] The input processing module 454 is configured to detect user input or interaction from one or more input devices 432 and to translate the detected input or interaction.

[0072] In some embodiments, the apparatus provided in the embodiments of the present application can be implemented using software. FIG2 shows a virtual object control apparatus 455 stored in memory 450. This apparatus can be software in the form of a program or 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 can be arbitrarily combined or further separated according to the functions implemented. The functions of each module will be described below.

[0073] 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.

[0074] 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 (Application, APP), 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 after 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.

[0075] Based on the above description of the control system and electronic device of the virtual object provided in the embodiment of the present application, the control method of the virtual object provided in the embodiment of the present application is described below. In actual implementation, the control method of the virtual object provided in the embodiment of the present application can be implemented separately by the terminal or the server, or by the terminal and the server in collaboration. The control method of the virtual object provided in the embodiment of the present application is described by taking the terminal 400 in Figure 1 as an example of executing the control method of the virtual object provided in the embodiment of the present application separately. Referring to Figure 3, Figure 3 is a schematic flow chart of the control method of the virtual object provided in the embodiment of the present application. Next, the steps shown in Figure 3 will be described.

[0076] In step 101, the terminal displays a virtual object in a virtual scene, and displays a drive control 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 direction of the virtual object.

[0077] In actual implementation, a terminal is installed with an application that supports virtual scenes. This 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 3D map program, or a multiplayer shooter survival game. Users can use the terminal to manipulate virtual objects in the virtual scene.

[0078] When the user opens an application on the terminal and the terminal runs the application, the terminal presents a picture of a virtual scene (such as a driving game scene). Here, the picture 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 picture 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 embodiment of the present application does not limit this.

[0079] 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 can 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 vehicle driving mode, and then the virtual object is displayed. For example, referring to Figure 4, Figure 4 is a schematic diagram of the 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 a trigger operation on 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.

[0080] It should be noted that when the player character controlled by the user account currently logged into the application and the vehicle controls are displayed, the virtual vehicle will also be displayed, and then the player character will be controlled to move toward the virtual vehicle in response to the movement instructions for the player character; when the player character moves to the sensing range of the virtual vehicle, the vehicle controls are displayed; wherein, the sensing range of the virtual vehicle can be a circular area or a rectangular area, for example, it can be a circular area with the position of the virtual vehicle as the center and the target distance as the radius, where the target distance is pre-set such as 5 meters.

[0081] Among them, the process of determining whether the player character is within the sensing range of the virtual vehicle may include: the terminal obtains the position of the player character in the virtual scene, the position of the virtual vehicle and the sensing range of the virtual vehicle, determines the distance between the player character and the virtual vehicle based on the position of the player character in the virtual scene and the position of the virtual vehicle, and determines that the player character is within the sensing range of the virtual vehicle based on the distance.

[0082] In actual implementation, after obtaining the position of the player character in the virtual scene, the position of the virtual vehicle and the sensing range of the virtual vehicle, the distance between the player character and the virtual vehicle is obtained based on the position of the player character and the position of the virtual vehicle, and the distance is compared with the target distance indicated by the sensing range of the virtual vehicle. When the distance is less than or equal to the target distance indicated by the sensing range of the virtual vehicle, it is determined that the player character is within the sensing range of the virtual vehicle; when the distance is greater than the target distance indicated by the sensing range of the virtual vehicle, it is determined that the player character is not within the sensing range of the virtual vehicle.

[0083] In actual implementation, the terminal may also display a drive control and a direction control in the virtual scene interface for controlling the direction of movement of the virtual object. The drive control is used to control the virtual object to move forward or backward, while the direction control is used to control the direction of the virtual object, meaning that the direction of the virtual object can be changed using the direction control, such as turning left, turning right, or making a U-turn.

[0084] For example, taking the game scene as an example, see Figure 5, which is a schematic diagram of the driving control and 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, that is, a car. As shown in Figure 5, a virtual vehicle "car" in a driving state as indicated by 501, a driving control as indicated by a dotted box 502, and a direction control as indicated by a dotted box 503 are presented.

[0085] 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.

[0086] 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 terminal can control the drive control and the direction control to be in a connection state.

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

[0088] In some embodiments, after the driving control and the direction control are displayed, in response to a trigger operation performed simultaneously on the driving control and the direction control, the virtual object is controlled to simultaneously perform the operations indicated by the driving 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 joint instruction for the driving control and the direction control is triggered.

[0089] 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.

[0090] In actual implementation, when a trigger operation is received for both the drive control and the direction control, the virtual object is controlled to simultaneously execute the operations indicated by the drive control and the direction control. That is, based on the direction indicated by the drive control and the direction control, the virtual object is controlled to turn while moving. For example, when a trigger operation is received for both the forward key in the drive control and the right turn key in the direction control, the virtual object is controlled to turn slightly to the right while moving, that is, to move forward right, within the operation duration of the trigger operation, that is, before the triggering of the co-instruction for the drive control and the direction control. The angle at which the virtual object is controlled to turn based on the direction indicated by the drive control and the direction control is positively correlated with a preset duration threshold. For example, when the duration threshold is 1 second, the angle at which the virtual object is controlled to turn based on the direction indicated by the drive control and the direction control is 10 degrees. When the duration threshold is 2 seconds, the angle at which the virtual object is controlled to turn based on the direction indicated by the drive control and the direction control is 20 degrees.

[0091] For example, referring to Figure 6, Figure 6 is a schematic diagram of the trigger operation performed simultaneously in the drive control and the direction control provided in an embodiment of the present application. Based on Figure 6, a press operation is received simultaneously for the forward key in the drive control as indicated by 602 and the right turn key in the direction control as indicated by 603, and the virtual object indicated by 601 is controlled to turn right, and when the operation duration of the trigger operation reaches the duration threshold, a joint instruction for the drive control and the direction control is triggered.

[0092] By applying the above embodiment, 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 simultaneously execute the operations indicated by the drive control and the direction control. That is, during the process of the drive control and the direction control being connected, the moving state of the virtual object will not be kept unchanged, thereby increasing the diversity of the interaction process in the virtual scene and the difficulty of the user connecting the drive control and the direction control during the movement.

[0093] In other embodiments, after the driving control and the direction control are displayed, in response to the trigger operation performed simultaneously on the driving control and the direction control, 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, the joint instruction for the driving control and the direction control is triggered.

[0094] It should be noted that, as mentioned above, the triggering 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 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.

[0095] 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, that is, the current moving 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.

[0096] For example, referring to Figure 6, based on Figure 6, a simultaneous press operation is received for the forward key in the driving control indicated by 602 and the right turn key in the direction control indicated by 603, and the virtual object indicated by 601 is controlled to maintain 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, a joint instruction for the driving control and the direction control is triggered.

[0097] In actual applications, when a trigger operation is received for the drive control and the direction control at the same time, the current moving state of the virtual object will remain unchanged. That is, during the connection process of the drive control and the direction control, the moving state of the virtual object will not be changed, which reduces the difficulty of connection during the user's movement and thus improves the efficiency of human-computer interaction.

[0098] In some embodiments, the drive control includes a first drive sub-control for controlling the virtual object to move forward and a second drive sub-control for controlling the virtual object to move backward, and the direction control includes a first direction sub-control for controlling the virtual object to turn left and a second direction sub-control for controlling the virtual object to turn right; based on this, when a joint instruction for a target drive sub-control and a target direction sub-control is received, the display style of the target drive sub-control and the target direction sub-control is switched from a default style to a target style; wherein the target style is used to distinguish the target drive sub-control and the target direction sub-control from other drive sub-controls and other direction sub-controls, the target drive sub-control is one of the first drive sub-control and the second drive sub-control, the target direction sub-control is one of the first direction sub-control and the second direction sub-control, the other drive sub-controls are drive sub-controls other than the target drive sub-control in the first drive sub-control and the second drive sub-control, and the other direction sub-controls are direction sub-controls other than the target direction sub-control in the first direction sub-control and the second direction sub-control;

[0099] For example, when the driving control targeted by the co-linking instruction is the first driving sub-control and the targeted direction control is the first direction sub-control, that is, when the target driving sub-control is the first driving control and the target direction sub-control is the first direction control, the display style of the first driving 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 driving sub-control and the first direction sub-control from the second driving sub-control and the second direction sub-control;

[0100] Alternatively, when the driving control targeted by the joint instruction is the second driving sub-control and the direction control targeted is the second direction sub-control, that is, when the target driving sub-control is the second driving control and the target direction sub-control is the second direction control, the display style of the second driving sub-control and the second direction sub-control is switched from the default style to the target style; wherein the target style is used to distinguish the second driving sub-control and the second direction sub-control from the first driving sub-control and the first direction sub-control.

[0101] It should be noted that the drive control includes a first drive sub-control corresponding to forward and a second drive sub-control corresponding to backward, 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.

[0102] For example, referring to Figure 7, Figure 7 is a schematic diagram of the first driving sub-control and the first direction sub-control in the target style provided in an embodiment of the present application. Based on Figures 6 and 7, when the driving control targeted by the joint 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 style of the first driving sub-control and the first direction sub-control is switched from the default style indicated by 602 and 603 in Figure 6 to the target style indicated by 701 and 702 in Figure 7.

[0103] By applying the above embodiment, the target style is used to distinguish the driving sub-controls and direction sub-controls in the co-connected state from the driving sub-controls and direction sub-controls that are not in the co-connected state, which not only facilitates user perception but also improves the hardware resource utilization of the electronic device.

[0104] Step 103 : When the driving control and the direction control are in a connected state, in response to a trigger operation on a target control, the virtual object is controlled to move and turn simultaneously; wherein the target control is at least one of the driving control and the direction control.

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

[0106] In actual implementation, when the driving control and the direction control are in a connected state, in response to a trigger operation on the target control, a 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.

[0107] 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 the center area of ​​a circle centered on the target control and with the target distance as the radius. The target distance here can be pre-set, such as 1 cm. Furthermore, since the target control includes at least one of a direction control and a drive control, when the target control is a direction control or a drive control, upon receiving a trigger operation for the target control, the steering angle adjustment control is directly displayed in the associated area of ​​the target control; when the target control is a direction control or a drive control, upon receiving a trigger operation for the target control, the steering angle adjustment control is displayed in the associated area of ​​the direction control.

[0108] In actual applications, after the direction control and the drive control are connected, the steering angle of the virtual object is adjusted through the steering angle adjustment control, which improves the diversity of the interaction process in the virtual scene, and improves the efficiency of human-computer interaction and the hardware resource utilization of electronic equipment.

[0109] In actual implementation, 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 dragging operation on the steering angle adjustment control, the steering angle of the virtual object is adjusted during the movement and turning of the virtual object. It can be that the draggable area corresponding to the steering angle adjustment control is displayed; in response to the dragging operation of the steering angle adjustment control in the draggable area, the dragging operation is determined as a steering angle adjustment operation.

[0110] 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 can be the same area as the associated area displayed by the steering angle adjustment control, that is, the associated area of ​​the target control. Alternatively, the draggable area corresponding to the steering angle adjustment control can be larger than the associated area displayed by the steering angle adjustment control, or the draggable area corresponding to the steering angle adjustment control can be smaller than the associated area displayed by the steering angle adjustment control. This embodiment of the present application does not limit this. Here, when the draggable area corresponding to the steering angle adjustment control can 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 scope of the associated area.

[0111] For example, referring to FIG8 , FIG8 is a schematic diagram of the display of a steering angle adjustment control provided in an embodiment of the present application. Based on FIG8 , when the driving control and the direction control are in a 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 the target control, and a steering angle adjustment control as indicated by a dotted box 802 is displayed in the associated area of ​​the target control, that is, the circular area indicated by 801. Thus, in response to the 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.

[0112] Alternatively, in response to the triggering operation of the direction control indicated by 803 in b, the direction control indicated by 803 is determined as the target control, and the steering angle adjustment control indicated by the dotted box 804 is displayed in the associated area of ​​the target control, that is, the circular area indicated by 803, so that in response 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.

[0113] By applying the above embodiment, the specific method of implementing the steering angle adjustment operation is clarified by limiting the draggable area, and the steering angle adjustment operation is implemented by dragging the steering angle adjustment control, which makes it convenient for users to adjust the steering angle of the object during movement, thereby improving the efficiency of human-computer interaction.

[0114] In some embodiments, the draggable area can be a circular area, so that when the virtual object moves and turns, the process of adjusting the steering angle of the virtual object can be to obtain the central 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 central angle.

[0115] It should be noted that when the position of the steering angle adjustment control before being dragged is the center of the circular area, a vertical line is drawn relative 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, thereby adjusting the steering angle of the virtual object based on the center angle. The process of adjusting the steering angle of the virtual object based on the center angle can be: if the position of the steering angle adjustment control after being dragged is to the left of the perpendicular bisector of the horizontal line containing the center position, the steering angle of the virtual object is adjusted to the left by the degree corresponding to the center angle; if the position of the steering angle adjustment control after being dragged is to the right of the perpendicular bisector of the horizontal line containing the center position, the steering angle of the virtual object is adjusted to the right by the degree corresponding to the center angle.

[0116] For example, refer to Figure 9, which 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 Figure 9, 901 indicates a vertical line relative to the center position of the circle, 902 indicates the steering angle adjustment control, the position of the steering angle adjustment control indicated by 902 is the position 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 position 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.

[0117] In actual applications, the steering angle of the virtual object is adjusted based on the central 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, thereby reducing the difficulty of the process of adjusting the steering angle of the virtual object.

[0118] In some embodiments, during the execution of the 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 the steering angle adjustment operation triggered based on the 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.

[0119] It should be noted that the heading pointer is located on the pointer dial on the virtual interface, and the angle formed between 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.

[0120] 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, indicating that the virtual object turns right. The position of the heading pointer after the change 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 heading pointer after the change 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.

[0121] For example, referring to Figure 10, Figure 10 is a schematic diagram of the heading pointer provided in an embodiment of the present application. Based on Figure 10, in response to the right turn adjustment operation triggered by the steering angle adjustment control as indicated by 1002, the position of the heading pointer as indicated by 1001 is turned to the right, that is, the virtual object is indicated to turn 15 degrees to the right.

[0122] By applying the above embodiment, the user can clearly understand the current driving angle through the displayed direction pointer, thereby improving the user's driving experience in the virtual scene, making it easier for the user to determine whether to adjust the steering angle, avoiding the situation where the user unconsciously adjusts the steering angle, and improving the human-machine angle efficiency and the hardware resource utilization of the electronic device.

[0123] 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 the moving process; 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.

[0124] 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 movement, the virtual object is controlled to turn left in response to the steering angle adjustment operation, or when the virtual object turns right during movement, the virtual object is controlled to turn right in response to the steering angle adjustment operation; 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 movement, the virtual object is controlled to turn right in response to the steering angle adjustment operation, or when the virtual object turns right during movement, the virtual object is controlled to turn left in response to the steering angle adjustment operation.

[0125] It should be noted that, as described above, the steering angle adjustment operation may be a dragging operation performed on the steering angle adjustment control within the draggable area. When the dragged position of the steering angle adjustment control is to the right of a vertical line relative to a horizontal line where the center of the circle is located, and the virtual object turns right during 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.

[0126] When the steering angle adjustment control is dragged to the left of the vertical line compared to the horizontal line where the center of the circle is located, 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.

[0127] In actual implementation, the steering angles in this application (such as the current steering angle and 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.

[0128] 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, indicating that the absolute values ​​of the two 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, indicating that the absolute values ​​of the two are subtracted.

[0129] 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 virtual object's steering angle is directly adjusted to the target steering angle obtained by summing the two directions based on 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 value of the current steering angle and the steering angle of the virtual object indicated by the steering angle adjustment operation is obtained, and the virtual object's steering direction is ultimately determined to correspond to the direction indicated by the larger absolute value. Based on this, the virtual object's steering angle is adjusted to the target steering angle obtained by subtracting the two directions based on the direction indicated by the larger absolute value.

[0130] 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. The absolute value of the current steering angle is compared with the absolute value of the steering angle of the virtual object indicated by the steering angle adjustment operation. If the direction indicated by the larger absolute value is to the left of the vertical line relative to the horizontal line where the center of the circle is located, the opposite of the target steering angle is obtained and determined as the adjusted steering angle of the virtual object, i.e., the adjusted steering angle of the virtual object is less than zero. If the direction indicated by the larger absolute value is to the right of the vertical line relative to the horizontal line where the center of the circle is located, the target steering angle obtained by the final adjustment is directly used as the adjusted steering angle of the virtual object, i.e., the adjusted steering angle of the virtual object is greater than zero.

[0131] For example, referring to FIG11 , FIG11 is a schematic diagram of adjusting the steering angle of a virtual object provided in an embodiment of the present application. Based on FIG11 , 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). 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. 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 15 degrees to the left.

[0132] Alternatively, the direction corresponding to the current steering angle in a (turn right) is the same direction as the direction indicated by the steering angle adjustment operation indicated by the dotted box 1104 (turn right). 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 the 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 difference, that is, the steering angle of the virtual object is adjusted to 45 degrees to the right.

[0133] In some embodiments, in response to a steering angle adjustment operation triggered based on a steering angle adjustment control, after adjusting the steering angle of the virtual object while the virtual object is moving and turning, 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 to a standard steering angle; wherein the standard steering angle is used to indicate the steering angle at which the virtual object can travel through a curve on the current road curve.

[0134] It should be noted that the standard steering angle can indicate an angle range, and the angles included in the angle range all enable the virtual object to drive around the curve on the current road; for example, when the current steering angle of the adjusted virtual object during movement is a right steering angle of 15 degrees, and the angle range indicated by the standard steering angle for the virtual object to drive around the curve on the current road is [10, 15], then the steering angle of the adjusted virtual object is within this angle range, that is, the virtual object can drive around the curve on the current road.

[0135] It should be noted that, during the movement and turning of the virtual object, after the steering angle of the virtual object is adjusted, the steering angle of the virtual object can be automatically adjusted based on the relationship between the number of steering angle adjustment operations performed on the virtual object and the number threshold. The terminal obtains the number of steering angle adjustment operations performed on the virtual object within a preset time period, and compares the historical number of adjustments 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. The number threshold can be pre-set, for example, 10 times, etc., and the preset time period is also pre-set, for example, 3 minutes, etc., and this is not limited in the embodiments of the present application.

[0136] In actual applications, when the user makes too many adjustments, the steering angle of the virtual object can be automatically adjusted by setting a threshold for the number of adjustments. This reduces the difficulty of user interaction, avoids frequent adjustments by the user, and improves the efficiency of human-computer interaction and the utilization of hardware resources of electronic equipment.

[0137] It should be noted that in games where steering angle adjustment is the dominant operation, 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 subject to conditional restrictions, such as allocating free automatic adjustment times corresponding to the player's level to the player, or requiring the player to pay for the adjustment times.

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

[0139] 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 middle position of the player's feet. At the same time, the style of the guide line can be pre-set, for example, it can be a laser guide. For example, referring to Figure 12, Figure 12 is a schematic diagram of the guide line provided in an embodiment of the present application. Based on Figure 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.

[0140] By applying the above embodiment, the actual direction of movement of the virtual object is displayed based on the guide line, which facilitates the user to adjust the direction of the virtual object, improves the diversity of the interaction process in the virtual scene, the efficiency of human-computer interaction and the hardware resource utilization of the electronic device.

[0141] 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, generating a curvature circle corresponding to the real-time position; based on the curvature circle, generating a tangent with the real-time position as the tangent point, and displaying the guide line corresponding to the virtual object based on the tangent.

[0142] It should be noted that, during the process of the virtual object moving and turning, the real-time position of the virtual object changes, and therefore, the curvature circle corresponding to the real-time position also changes accordingly. Therefore, based on the curvature circle, the tangent line with the real-time position as the tangent point, that is, the guide line corresponding to the virtual object, also changes in real time. Among them, the current road can be a straight road or a curved road, and this embodiment of the application does not limit this. Based on the real-time position of the virtual object on the current road, the curvature circle corresponding to the real-time position is determined with reference to the speed direction of the virtual object. Therefore, for the same position, if the speed direction is different, the corresponding curvature circle is also different. Here, the direction of the guide line corresponding to the virtual object also corresponds to the speed direction of the virtual object, that is, the speed direction of the virtual object can be directly obtained, and thus the guide line corresponding to the virtual object can be determined based on the speed direction of the virtual object.

[0143] For example, refer to Figure 13, which is a schematic diagram of the process of determining the guide line corresponding to the virtual object provided in an embodiment of the present application. Based on Figure 13, number 1 in the figure 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 AB with the real-time position A as the tangent point is determined, that is, the guide line corresponding to the virtual object.

[0144] In actual applications, the guide line corresponding to the virtual object is determined by the curvature circle corresponding to the real-time position of the virtual object, ensuring the accuracy of the guide line used to indicate the actual direction of travel of the virtual object, thereby improving the efficiency of human-computer interaction and the hardware resource utilization of electronic equipment.

[0145] 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 indicating that the virtual object can drive through a curve on the current road curve, a first prompt information is displayed; wherein, the first prompt information is used to indicate that the virtual object can successfully turn during the moving process.

[0146] It should be noted that the first prompt information may be displayed when a virtual object turns when a curve appears on the road. The fact that the virtual object can successfully turn during the movement indicates that the virtual object can move safely without colliding with surrounding objects. For example, when the virtual object is traveling on a straight road and an obstacle appears in front, the virtual object can avoid the obstacle by turning. At this time, for the standard steering angle at which the virtual object can pass the curve on the current road curve, the current road curve may refer to the current travel curve path of the virtual object, and the standard steering angle may be regarded as the steering angle at which the virtual object can avoid obstacles, that is, the steering angle at which the virtual object can pass the curve on the current road curve. When the virtual object is traveling on a curved road, the standard steering angle refers to the steering angle at which the virtual object can pass the curve on the current road curve without colliding with surrounding objects. The standard steering angles mentioned above and below may be considered in this way, and this will not be elaborated in the embodiments of the present application.

[0147] At the same time, 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 an image icon of a check mark, such as "√".

[0148] It should be noted that, as mentioned above, the standard steering angle indicates an angle range, and the current steering angle of the virtual object during movement is consistent with the standard steering angle at which the virtual object can navigate a curve on the current road curve, which means that the current steering angle of the virtual object is within the angle range indicated by the standard steering angle. For example, when the current steering angle of the virtual object during movement is a right turning angle of 15 degrees, and the angle range indicated by the standard steering angle at which the virtual object can navigate a curve on the current road curve is [10, 15], then the steering angle of the virtual object is within this angle range, that is, the current steering angle of the virtual object during movement is consistent with the standard steering angle at which the virtual object can navigate a curve on the current road curve.

[0149] Accordingly, when the current steering angle of the virtual object during its movement is a right steering angle of 20 degrees, and the angle range indicated by the standard steering angle at which the virtual object can pass a curve on the current road curve is [10, 15], the steering angle of the virtual object is not within this angle range, that is, the current steering angle of the virtual object during its movement is inconsistent with the standard steering angle at which the virtual object can pass a curve on the current road curve.

[0150] By applying the above embodiment, the user is reminded whether the virtual object can successfully turn by displaying the first prompt information indicating that the virtual object can successfully turn during the movement, so that the user can adjust the steering angle in time, thereby improving the human-computer interaction efficiency and the hardware resource utilization of the electronic device.

[0151] In actual implementation, a guide line and a heading pointer can also be displayed during the movement and turning of the virtual object; wherein, as mentioned above, the guide line is used to indicate the actual movement 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; thus, the process of displaying the first prompt information can be that when the steering angle corresponding to the actual movement 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 indicating that the virtual object can travel through the curve on the current road, the first prompt information is displayed at the associated position of the heading pointer.

[0152] It should be noted that the associated position can be one of the upper position, lower position, left position and right position of the pointer; consistency means that the current steering angle of the virtual object is within the angle range indicated by the standard steering angle. For example, when the current steering angle of the virtual object during movement is a right steering angle of 15 degrees, and the angle range indicated by the standard steering angle that the virtual object can drive through the curve on the current road is [10, 15], then the steering angle of the virtual object is within this angle range, that is, the current steering angle of the virtual object during movement is consistent with the standard steering angle that the virtual object can drive through the curve on the current road; correspondingly, when the current steering angle of the virtual object during movement is a right steering angle of 20 degrees, and the angle range indicated by the standard steering angle that the virtual object can drive through the curve on the current road is [10, 15], then the steering angle of the virtual object is not within this angle range, that is, the current steering angle of the virtual object during movement is inconsistent with the standard steering angle that the virtual object can drive through the curve on the current road.

[0153] For example, referring to Figure 14, Figure 14 is a schematic diagram of the first prompt information provided by an embodiment of the present application. Based on Figure 14, during the movement and turning of the virtual object indicated by 1404, 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.

[0154] 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 indicating that the virtual object can drive through the curve on the current road, 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 triggering operation on the automatic adjustment control, the steering angle of the virtual object during the moving process is automatically adjusted.

[0155] 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 that in response to the trigger operation for the automatic adjustment control, the steering angle of the virtual object during the movement is automatically adjusted. In actual applications, the process of automatically adjusting the steering angle of the virtual object during the movement in this application can include first obtaining the standard steering angle at which the virtual object can travel through the bend on the current road curve, and then adjusting the current steering angle of the virtual object during the movement to the standard steering angle, so that the adjusted 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 bend on the current road curve. The consistency here is as described above, and this embodiment of the application will not be elaborated on.

[0156] In actual applications, by automatically adjusting the controls, users can automatically adjust the steering angle of the virtual object during movement, avoiding the situation where users frequently adjust the steering angle, improving the human-machine angle efficiency and the hardware resource utilization of electronic equipment.

[0157] In some embodiments, the movement state of a virtual object may also be detected. When a direction adjustment operation is received for the virtual object based on a target control while the virtual object is moving and turning, the steering angle indicated by the direction adjustment operation is obtained. When the direction corresponding to the steering angle indicated by the direction adjustment operation is the same as the direction indicated by the current steering angle of the virtual object, the direction corresponding to the steering angle indicated by the direction adjustment operation is subtracted from the direction indicated by the current steering angle of the virtual object to obtain a reference steering angle. When the direction corresponding to the steering angle indicated by the direction adjustment operation is opposite to the direction indicated by the current steering angle of the virtual object, the direction corresponding to the steering angle indicated by the direction adjustment operation is summed with the direction indicated by the current steering angle of the virtual object to obtain a reference steering angle. When the reference steering angle is greater than a reference steering angle threshold, a danger warning message is displayed. The danger warning message 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.

[0158] It should be noted that since the steering angle indicated by the direction adjustment operation is determined at the moment the user performs the direction adjustment operation, it is instantaneous. However, when a direction adjustment operation is received for a virtual object based on a driving 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 is received for a virtual object based on a driving control or a direction control, it is possible to predict whether the virtual object will be in danger if it is controlled to turn while moving based on the direction adjustment operation.

[0159] At the same time, as mentioned above, due to the left-right difference, the steering angle and the current steering angle may be less than zero. When the direction corresponding to the steering angle indicated by the direction adjustment operation is the same as the direction indicated by the current steering angle of the virtual object, the direction corresponding to the steering angle indicated by the direction adjustment operation and the direction indicated by the current steering angle of the virtual object are subtracted to obtain a reference steering angle. That is, the absolute value of the steering angle and the absolute value of the current steering angle are subtracted, and the absolute value of the difference result is used as the reference steering angle.

[0160] When the direction corresponding to the steering angle indicated by the direction adjustment operation is opposite to the direction indicated by the current steering angle of the virtual object, the direction corresponding to the steering angle indicated by the direction adjustment operation and the direction indicated by the current steering angle of the virtual object are summed to obtain a reference steering angle. Specifically, the absolute value of the steering angle and the absolute value of the current steering angle are summed, and the sum is used as the reference steering angle. The reference steering angle threshold may be pre-set, for example, 60 degrees.

[0161] 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.

[0162] By applying the above embodiment, the virtual object is warned through danger prompt information when the virtual object moves and turns, which not only makes it easier for the user to readjust the turning angle of the virtual object during movement, thereby improving the human-machine angle efficiency and the hardware resource utilization of the electronic device, but also improves the safety of the control process of the virtual object.

[0163] In some embodiments, when the absolute value of the reference steering angle difference is no greater than the reference steering angle threshold, a safety prompt may be displayed to indicate that the virtual object is currently in a safe state, i.e., a normal turning state. Similarly, the safety prompt may be text, an image, an animation, or the like. For example, if the safety prompt is text, the text content may be "Safe Ahead," and if the safety prompt is an image, the image content may be a smiling face.

[0164] In some embodiments, when the driving 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 driving control and the direction control are controlled to switch from a co-connected state to a non-co-connected state; when the driving control and the direction control are in a 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 the operation indicated by the control triggered by the trigger operation.

[0165] 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 on the driving control; when the virtual object turns, the virtual object is controlled to turn in response to the trigger operation on 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 on the driving control and the direction control.

[0166] For example, refer to Figure 15, which is a schematic diagram of the state switching control provided in an embodiment of the present application. Based on Figure 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 trigger 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 moves straight, then in response to the trigger operation of the driving control indicated by 1502, the virtual object is controlled to move in a straight line.

[0167] In actual applications, the state switching control allows users to quickly switch the drive control and direction control from a connected state to a non-connected state, which not only improves the effectiveness and convenience of the interactive operations performed by the user, but also improves the diversity of the interactive process, the efficiency of human-computer interaction, and the hardware resource utilization of electronic equipment.

[0168] In some embodiments, the number of times the drive control and the direction control are connected in common can also be limited. In response to the connection instruction for the drive control and the direction control, the process of controlling the drive control and the direction control to be in a connected state can be, in response to the connection instruction for the drive control and the direction control, obtaining the number of times the drive control and the direction control are connected in common within a target time period; when the number of connections indicates that the number of times the drive control and the direction control are connected in common within the target time period does not reach a threshold number, controlling the drive control and the direction control to be in a connected state.

[0169] It should be noted that the number threshold can be pre-set, for example, twenty times, and the target time period can also be pre-set, for example, six hours. The embodiment of the present application does not limit this. In this way, the drive control and the direction control can only be co-connected when the number of co-connections does not exceed the number threshold. By limiting the number of co-connections, the balance of the interaction process in the virtual scene is ensured.

[0170] In some embodiments, the virtual scene also includes a first virtual space and a second virtual space, so that the process of displaying the first virtual object in the virtual scene can be to display the virtual object transmitted from the first virtual space of the virtual scene to the second virtual space in the second virtual space of the virtual scene; and in response to the trigger operation on the target control, after controlling the virtual object to move and turn at the same time, it is also possible to transmit the virtual object back to the first virtual space when the virtual object ends its movement in the second virtual space.

[0171] It should be noted that the virtual object ends its movement in the second virtual space when it reaches the destination, completes its movement task, and obtains a movement result. The first virtual space and the second virtual space are both pre-set and belong to the same virtual scene, wherein the first virtual space and the second virtual space can be set to virtual spaces such as deserts, oceans, castles, or jungles, and this is not limited in the embodiments of the present application.

[0172] In the above-described embodiment of the present application, by responding to a connection instruction for a drive control for controlling the forward or backward movement of the virtual object and a direction control for controlling the left or right turn of the virtual object, the drive control and the direction control are controlled to be in a connection state. Thus, when the drive control and the direction control are in the connection 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 move forward and turn simultaneously. In this way, compared to the method in the related art where the drive control and the direction control must be clicked multiple times to adjust the turning process, by controlling the drive control and the direction control to be in a connection state, the effect of controlling the virtual object to move forward and turn simultaneously can be achieved by simply triggering the drive control or the direction control alone, thereby improving the convenience and effectiveness of the interactive operation, while reducing the number of adjustment operations performed by the user during the turning process, and also improving the efficiency of human-computer interaction and the hardware resource utilization of the electronic device.

[0173] The following describes an exemplary application of the embodiments of the present application in a practical application scenario.

[0174] 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 more convenient and efficient control methods, allowing users to have a more pleasant human-computer interaction method. Therefore, this application provides a solution for convenient vehicle steering in games. For example, in mobile games, if a player drives a vehicle around a corner, the conventional left-hand forward and right-hand left-right turns will not allow for smooth cornering. In this application, when a player drives a vehicle around a corner, they can interactively change skills to achieve one-handed convenient turning operations, which is quick and convenient to operate and provides a better user experience.

[0175] Next, the technical solution of this application will be described from a product perspective. First, as shown in FIG4 , a virtual scene displays a player character controlled by the user account currently logged into the application, along with vehicle controls. In response to a trigger operation on the vehicle controls, the player character is controlled to enter the virtual vehicle, i.e., to control the player character in vehicle driving mode. Then, as shown in FIG5 , the left hand operates the drive controls, i.e., the forward and reverse keys, while the right hand operates the direction controls, i.e., the left or right turn directions. Next, as shown in FIG6 and FIG7 , when encountering a right turn, the player can simultaneously press the forward button with the left hand and the right turn button with the right hand in advance, so that the forward and right turn keys are triggered and form a linked state. Then, as shown in FIG8 , in this linked state, either the left hand or the right hand can control the direction of the virtual vehicle. For example, when the forward and right turn keys are linked, a trigger operation on the forward key can cause the virtual vehicle to simultaneously turn right and forward, or a trigger operation on the right turn key can cause the virtual vehicle to simultaneously turn right and forward.

[0176] In actual implementation, as shown in Figure 10, in the co-connected state, a virtual direction pointer will appear on the screen, and the pointer angle corresponds to the steering angle of the player's finger operating the button. At the same time, as shown in Figure 12, in the co-connected state, the vehicle will also trigger a road curvature prompt, that is, a laser lead (guide line) is displayed to indicate the actual direction of travel of the vehicle. In addition, as shown in Figure 14, in the co-connected state, the player operates the steering with one hand so that the direction pointer on the screen and the laser lead are roughly consistent with the road bend in the actual scene. A prompt mark (first prompt information) indicating that the bend can be made will appear, and maintaining this angle allows for perfect turning. If this mark does not appear, the player needs to adjust the control angle.

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

[0178] Next, the technical solution of this application will be described from a technical perspective. As shown in Figure 16, Figure 16 is a flow chart of the process of convenient vehicle steering in the game provided by an embodiment of this application. Based on Figure 16, this application provides steps 1601 to 1606. After the player enters the game, it detects whether the player character controlled by the user has entered the vehicle driving state. In response to the player clicking the get-on button (vehicle control), the character's carrier switches from the ground to a drivable vehicle (hereinafter referred to as a vehicle). Each frame detects whether the character's current carrier is a vehicle, and it can be determined whether the player state has entered the vehicle driving mode. If in driving mode, the interface interaction button changes to get off the vehicle. The player can exit driving mode by clicking the get-off button, and the interaction button enters normal mode. When entering the vehicle state, the drive control that controls the forward and reverse driving force and the direction control that controls the left and right direction are independently controlled. That is, the left-hand button controls the forward and reverse driving force, and the right-hand button controls the left and right direction. This control method is called 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, that is, turn ahead. If not, continue to execute the click operation on the drive control such as the forward key to control the vehicle to go straight; if necessary, mix the control of the drive control and the direction control to achieve turning. In this application, in the independent control mode, at the same time, perform a long press operation on the drive control and the direction control, then enter the joint control mode, such as executing a press operation on the forward key in the drive control and the right turn key in the direction control, and keep the press operation for three seconds, then enter the joint control mode; in the joint control mode, execute a trigger operation on the drive control or one of the direction controls in the joint state, then the vehicle can be controlled to turn. 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 turn right while moving forward, or in response to the trigger operation on the right turn key, the virtual vehicle can be controlled to turn right while moving forward. At the same time, during the vehicle's steering process, a laser line indicating the vehicle's actual direction of travel and a heading pointer are displayed to determine whether the vehicle can successfully turn. When the laser line and heading pointer remain parallel to the lane at all times, the vehicle can successfully turn. In addition, in the joint control mode, a button to cancel joint control is also displayed. When the control is no longer in joint control, clicking the button to cancel joint control returns to independent control mode.

[0179] It should be noted that, as shown in Figure 17, Figure 17 is a schematic diagram of the current steering angle of the vehicle provided in an embodiment of the present application. Based on Figure 17, in the co-connected control mode, a front wheel rotation angle pointer dial will be displayed directly above the interface, and the angle value is the current steering angle of the vehicle. When the angle value > 0, it indicates that the vehicle is turning right, and when the angle value < 0, it indicates that the vehicle is turning left.

[0180] In some embodiments, in the interconnected mode, the drive control and the direction control can control the direction of the vehicle individually or simultaneously. 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.

[0181] For example, 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 finally 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.

[0182] It should be noted that, as shown in Figure 18, Figure 18 is a schematic diagram of the direction angle provided in an embodiment of the present application. Based on Figure 18, in the co-connected 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 front road direction direction_forward corresponding to the safety distance, then Angle_road = direction_forward-direction_car.

[0183] In some embodiments, in the joint control mode, the difference between Angle_road and Angle_direction is measured. If the difference exceeds a difference threshold, the system is considered to be in danger mode; otherwise, it is in safe mode. Here, the difference threshold is pre-set and is called Angle_safe. When |(Angle_road - Angle_direction)|>Angle_safe, a danger warning is issued; otherwise, a safety prompt is given.

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

[0185] In the above-described embodiment of the present application, by responding to a connection instruction for a drive control for controlling the forward or backward movement of the virtual object and a direction control for controlling the left or right turn of the virtual object, the drive control and the direction control are controlled to be in a connection state. Thus, when the drive control and the direction control are in the connection 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 move forward and turn simultaneously. In this way, compared to the method in the related art where the drive control and the direction control must be clicked multiple times to adjust the turning process, by controlling the drive control and the direction control to be in a connection state, the effect of controlling the virtual object to move forward and turn simultaneously can be achieved by simply triggering the drive control or the direction control alone, thereby improving the convenience and effectiveness of the interactive operation, while reducing the number of adjustment operations performed by the user during the turning process, and also improving the efficiency of human-computer interaction and the hardware resource utilization of the electronic device.

[0186] The following further describes 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, as shown in FIG2 , the software module stored in the virtual object control device 455 in the memory 450 may include:

[0187] Display module 4551 is configured to display a virtual object in a virtual scene, and display a drive control 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 direction of the virtual object;

[0188] A first control module 4552 is configured to control the driving control and the direction control to be in a joint state in response to a joint instruction for the driving control and the direction control;

[0189] The second control module 4553 is configured to control the virtual object to move and turn simultaneously in response to a trigger operation on a target control when the drive control and the direction control are in a connected state; wherein the target control is at least one of the drive control and the direction control.

[0190] In some embodiments, the device also includes a first trigger module, which is configured 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 joint instruction for the drive control and the direction control.

[0191] In some embodiments, the device also includes a second trigger module, which is configured 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 joint instruction for the drive control and the direction control.

[0192] In some embodiments, the device also includes a state switching module, which is configured to display a state switching control when the driving control and the direction control are in a co-connected state; control the driving control and the direction control to switch from the co-connected state to a non-co-connected state in response to a trigger operation on the state switching control; and control the virtual object to perform the operation indicated by the target control in response to a trigger operation on the target control when the driving control and the direction control are in the non-co-connected state.

[0193] In some embodiments, the drive control includes a first drive sub-control for controlling the virtual object to move forward, and a second drive sub-control for controlling the virtual object to move backward, and the direction control includes a first direction sub-control for controlling the virtual object to turn left, and a second direction sub-control for controlling the virtual object to turn right; the device also includes a style switching module, and the style switching module is configured 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 joint 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.

[0194] In some embodiments, the device also includes a first adjustment module, which is configured to display a steering angle adjustment control in an associated area of ​​the target control in response to a trigger operation on 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.

[0195] In some embodiments, the device also includes a second display module, which is configured to display a heading pointer during the execution of the trigger operation, wherein 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.

[0196] In some embodiments, the steering angle adjustment control is in a draggable state, and the device also includes a third display module, which is configured 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.

[0197] In some embodiments, the draggable area is a circular area, and the first adjustment module is further configured to obtain the central 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 central angle, the steering angle of the virtual object is adjusted.

[0198] In some embodiments, the first adjustment module is further configured to obtain the current steering angle of the virtual object during 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 a target steering angle; and the steering angle of the virtual object is adjusted to the target steering angle.

[0199] In some embodiments, the device also includes a second adjustment module, which is configured 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 to a standard steering angle; wherein the standard steering angle is used to indicate that the virtual object is consistent with the standard steering angle at which it can travel through the curve on the current road.

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

[0201] In some embodiments, the third display module is further configured to generate a curvature circle corresponding to the real-time position of the virtual object on the current road curve during the process of the virtual object moving and turning; based on the curvature circle, generate a tangent with the real-time position as the tangent point, and display the guide line corresponding to the virtual object based on the tangent.

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

[0203] In some embodiments, the device also includes a fifth display module, which is configured to display a guide line and a heading pointer; wherein the guide line is used to indicate the actual direction of travel 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 further configured to display the first prompt information at the associated position of the heading pointer when the steering angle corresponding to the actual direction of travel indicated by the guide line is consistent with the standard steering angle indicating that the virtual object can travel through the curve on the current road.

[0204] In some embodiments, the device also includes a third adjustment module, which is configured to display an automatic adjustment control when the current steering angle of the virtual object during the movement and turning process of the virtual object is inconsistent with the standard steering angle indicating that 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.

[0205] In some embodiments, the device further includes a sixth display module, which is configured to, during the process of the virtual object moving and turning, when a direction adjustment operation for the virtual object triggered by the target control is received, obtain the steering angle indicated by the direction adjustment operation; when the direction corresponding to the steering angle indicated by the direction adjustment operation is the same as the direction indicated by the current steering angle of the virtual object, perform a difference processing on the direction corresponding to the steering angle indicated by the direction adjustment operation and the direction indicated by the current steering angle of the virtual object to obtain a reference steering angle; when the direction corresponding to the steering angle indicated by the direction adjustment operation is opposite to the direction indicated by the current steering angle of the virtual object, perform a sum processing on the direction corresponding to the steering angle indicated by the direction adjustment operation and the direction indicated by the current steering angle of the virtual object to obtain a reference steering angle; when the reference steering angle is greater than a reference steering angle threshold, display a danger prompt message; wherein, the danger prompt message is used to indicate that the virtual object is currently in a dangerous state.

[0206] In some embodiments, the first control module 4552 is further configured to obtain the number of times the drive control and the direction control are connected in a target time period in response to a connection instruction for the drive control and the direction control; when the number of connections indicates that the number of times the drive control and the direction control are connected in a target time period does not reach a threshold number, the drive control and the direction control are controlled to be in a connection state.

[0207] In some embodiments, the display module 4551 is further configured to display, in the second virtual space of the virtual scene, a virtual object transmitted from the first virtual space of the virtual scene to the second virtual space; the device also includes a transmission module, which is configured to transmit the virtual object back to the first virtual space when the virtual object ends its movement in the second virtual space.

[0208] The present invention provides a computer program product including computer-executable instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the electronic device to perform the virtual object control method described in the present invention.

[0209] An embodiment of the present application 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 virtual object control method provided by the embodiment of the present application, for example, the virtual object control method shown in Figure 3.

[0210] 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 various devices including one or any combination of the above memories.

[0211] 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.

[0212] 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 that stores 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 coordinating files (e.g., files storing one or more modules, subroutines, or code portions).

[0213] By way of 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 across multiple sites and interconnected by a communication network.

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

[0215] (1) Compared with the method in the related art in which 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 and effectiveness of the interactive operation, reducing the number of adjustment operations performed by the user during the steering process, and improving the efficiency of human-computer interaction and the hardware resource utilization of the electronic device.

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

[0217] It should be noted that in the embodiments of the present application, when it comes to 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 must be obtained, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

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

Claims

1. A method for controlling a virtual object, the method being executed by an electronic device, the method comprising: In the virtual scene, display the virtual object, and display the driving control and the direction control; 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; 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 a target control, the virtual object is controlled to move forward and turn simultaneously; Wherein, the target control is at least one of the drive control and the direction control.

2. The method of claim 1, wherein: 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 of claim 1, wherein: 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 any one of claims 1 to 3, wherein: 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 the target control, the virtual object is controlled to perform an operation indicated by the target control.

5. The method according to any one of claims 1 to 4, wherein: The driving control includes a first driving sub-control for controlling the virtual object to move forward, and a second driving sub-control for controlling the virtual object to move backward; the direction control includes a first direction sub-control for controlling the virtual object to turn left, and a second direction sub-control for controlling the virtual object to turn right; 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 any one of claims 1 to 5, wherein: The method further comprises: In response to a trigger operation on a target control, displaying a steering angle adjustment control in an area associated with 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 of claim 6, wherein: 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 heading pointer is consistent with the steering angle of the virtual object after the steering angle is adjusted. match.

8. The method of claim 6, wherein: 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 of claim 8, wherein: 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 of claim 6, wherein: 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 of claim 6, wherein: 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 to a standard steering angle; The standard steering angle is used to indicate the steering angle at which the virtual object can travel around a curve on the current road curve.

12. The method according to any one of claims 1 to 11, wherein: 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 of claim 12, wherein: 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, generating a 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 generated, and a guide line corresponding to the virtual object is displayed based on the tangent line.

14. The method according to any one of claims 1 to 13, 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 a standard turning angle indicating that 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 of claim 14, wherein: 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 indicating that the virtual object can travel around 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 any one of claims 1 to 15, wherein: The method further comprises: During the process of the virtual object traveling and turning, when the current steering angle of the virtual object during the traveling process is inconsistent with a standard steering angle indicating that 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 any one of claims 1 to 16, wherein: The method further comprises: In the process of the virtual object moving and turning, when a direction adjustment operation for the virtual object triggered by the target control is received, obtaining a turning angle indicated by the direction adjustment operation; When the direction corresponding to the steering angle indicated by the direction adjustment operation is the same as the direction indicated by the current steering angle of the virtual object, performing a difference processing between the direction corresponding to the steering angle indicated by the direction adjustment operation and the direction indicated by the current steering angle of the virtual object to obtain a reference steering angle; When the direction corresponding to the steering angle indicated by the direction adjustment operation is opposite to the direction indicated by the current steering angle of the virtual object, the direction corresponding to the steering angle indicated by the direction adjustment operation and the direction indicated by the current steering angle of the virtual object are summed to obtain a reference steering angle; When the reference steering angle is greater than a reference steering angle 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. The method according to any one of claims 1 to 17, wherein: The step of controlling the driving control and the direction control to be in a connected state in response to the connected instruction for the driving control and the direction control comprises: In response to a co-connection instruction for the drive control and the direction control, obtaining a co-connection number of the drive control and the direction control within a target time period; When the number of times of co-connection indicates that the number of times of co-connection of the driving control and the direction control does not reach a number threshold within a target time period, the driving control and the direction control are controlled to be in a co-connected state.

19. The method according to any one of claims 1 to 18, wherein: The virtual scene includes a first virtual space and a second virtual space, and displaying a first virtual object in the virtual scene includes: Displaying, in a second virtual space of the virtual scene, a virtual object transmitted from the first virtual space of the virtual scene to the second virtual space; After controlling the virtual object to move and turn simultaneously in response to the trigger operation on the target control, the method further includes: When the virtual object finishes traveling in the second virtual space, the virtual object is transferred back to the first virtual space.

20. A control device for a virtual object, the device comprising: A display module, configured to display a virtual object in a virtual scene, and display a drive control 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; A first control module is 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 configured to control the virtual object to move and turn simultaneously in response to a trigger operation on a target control when the drive control and the direction control are in a connected state; wherein the target control is at least one of the drive control and the direction control.

21. An electronic device, comprising: a memory configured to store computer executable instructions; The processor is configured to implement the virtual object control method according to any one of claims 1 to 19 when executing the computer executable instructions stored in the memory.

22. A computer-readable storage medium storing computer-executable instructions, wherein 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 19 is implemented.

23. A computer program product, comprising computer executable instructions or computer executable instructions, which, when executed by a processor, implement the method for controlling a virtual object according to any one of claims 1 to 19.

Citation Information

Patent Citations

  • Virtual carrier control method and device in game, equipment and storage medium

    CN109011559A

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

    CN109260702A

  • Virtual object control method and device, electronic equipment and readable medium

    CN114159787A

  • Video recording method and device in game, electronic equipment and storage medium

    CN115814405A