Control Method, Device, Equipment and Medium for Virtual Vehicle and Virtual Object

By setting up a variety of operating modes and controls on the virtual vehicle, the problem of cumbersome process of changing positions on the virtual vehicle is solved, improving human-computer interaction efficiency and maintaining the tidy interface.

CN114377395BActive Publication Date: 2025-06-20TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210038655.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-13
Publication Date
2025-06-20
Estimated Expiration
2042-01-13

AI Technical Summary

Technical Problem

In the prior art, the process of players changing positions on virtual vehicles is cumbersome, and human-computer interaction is inefficient.

Method used

By setting an operation mode to control the virtual object to drive the virtual vehicle and controlling the virtual object to move on the virtual vehicle, the first directional control and the second directional control are displayed, and the switching area is displayed in response to the trigger operation, and the quick operation of the virtual object to change positions on the virtual vehicle is realized.

Benefits of technology

It greatly improves the human-computer interaction efficiency of virtual objects when changing positions on virtual vehicles, simplifies the operation process, maintains the cleanliness of the terminal interface and the user's observation of the virtual environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114377395B_ABST
    Figure CN114377395B_ABST
Patent Text Reader

Abstract

The present application discloses a control method, device, equipment and medium for a virtual vehicle and a virtual object, belonging to the field of virtual environments. The method includes: displaying a first direction control for controlling a virtual object to drive a virtual vehicle to move; in response to the first direction control receiving a first trigger operation, displaying a first switching area; in response to receiving a second trigger operation in the first switching area, displaying a second direction control for controlling the virtual object to move on the virtual vehicle. The above method improves the human-computer interaction efficiency when the virtual object changes its position on the virtual vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of virtual environments, and particularly to a control method, device, equipment, and medium for a virtual vehicle and a virtual object. Background Art

[0002] With the gradual development of game technology, it is common for players to control game characters to drive virtual vehicles to move in virtual environments.

[0003] In related technologies, before a game character controlled by a player rides in a virtual vehicle, the player can choose to be in the driver's seat or the passenger seat. The game character in the driver's seat can control the virtual vehicle to move, and the game character in the passenger seat can perform operations such as aiming, shooting, and replenishing physical strength.

[0004] However, in related technologies, if a player wants to change the position of the game character on the virtual vehicle, the player needs to first stop the movement of the virtual vehicle, control the game character to get off the virtual vehicle, and then can re-select the seat. The process of changing the position of the game character on the virtual vehicle through related technologies is very cumbersome, and the human-computer interaction efficiency is low. Summary of the Invention

[0005] The present application provides a control method, device, equipment, and medium for a virtual vehicle and a virtual object, which improves the human-computer interaction efficiency when the virtual object changes its position on the virtual vehicle. The technical solution is as follows:

[0006] According to one aspect of the present application, a control method for a virtual vehicle and a virtual object is provided. The method includes:

[0007] Display a first direction control, where the first direction control is used to control a virtual object to drive a virtual vehicle to move in a virtual environment;

[0008] In response to a first trigger operation received by the first direction control, display a first switching area;

[0009] In response to a second trigger operation received in the first switching area, display a second direction control, where the second direction control is used to control a virtual object to move on the virtual vehicle.

[0010] According to another aspect of the present application, a control method for a virtual vehicle and a virtual object is provided. The method includes:

[0011] Display a second direction control, where the second direction control is used to control a virtual object to move on the virtual vehicle;

[0012] In response to a third trigger operation received by the second direction control, display a second switching area;

[0013] In response to receiving a fourth trigger operation in a second switching area, a first direction control is displayed, and the first direction control is used to control a virtual object to drive a virtual vehicle to move.

[0014] According to another aspect of the present application, there is provided a control device for a virtual vehicle and a virtual object, the device comprising:

[0015] A display module, configured to display a first direction control, and the first direction control is used to control a virtual object to drive a virtual vehicle to move;

[0016] The display module is further configured to display a first switching area in response to the first direction control receiving a first trigger operation;

[0017] The display module is further configured to display a second direction control in response to receiving a second trigger operation in the first switching area, and the second direction control is used to control the virtual object to move on the virtual vehicle.

[0018] According to another aspect of the present application, there is provided a control device for a virtual vehicle and a virtual object, the device comprising:

[0019] A display module, configured to display a second direction control, and the second direction control is used to control the virtual object to move on the virtual vehicle;

[0020] The display module is further configured to display a second switching area in response to the second direction control receiving a third trigger operation;

[0021] The display module is further configured to display a first direction control in response to receiving a fourth trigger operation in the second switching area, and the first direction control is used to control a virtual object to drive a virtual vehicle to move.

[0022] According to one aspect of the present application, there is provided a computer device, the computer device comprising: a processor and a memory, the memory storing a computer program, and the computer program is loaded and executed by the processor to implement the control method for the virtual vehicle and the virtual object as described above.

[0023] According to another aspect of the present application, there is provided a computer-readable storage medium, the storage medium storing a computer program, and the computer program is loaded and executed by a processor to implement the control method for the virtual vehicle and the virtual object as described above.

[0024] According to another aspect of the present application, there is provided a computer program product, the computer program product comprising computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the control method for the virtual vehicle and the virtual object provided in the above aspect.

[0025] The beneficial effects brought by the technical solution provided by the embodiment of the present application at least include:

[0026] By setting the operation mode of controlling the virtual object to drive the virtual vehicle and the operation mode of controlling the virtual object to move on the virtual vehicle, the operations that the virtual object on the virtual vehicle can perform are enriched, and the human-computer interaction efficiency when the virtual object changes positions on the virtual vehicle is greatly improved. For example, when the virtual object changes positions on the virtual vehicle, it does not have to get off the vehicle and then get on again. Moreover, by displaying the second direction control through the first direction control (or displaying the first direction control through the second direction control), the neatness and orderliness of the terminal interface are ensured, excessive area occupation of the terminal interface is avoided, and it is beneficial for the user to observe the virtual environment. Description of the Drawings

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0028] Figure 1 Shows the structural block diagram of a computer system provided by an exemplary embodiment;

[0029] Figure 2 Shows the schematic diagram of a state synchronization technology provided by an exemplary embodiment;

[0030] Figure 3 Shows the schematic diagram of a frame synchronization technology provided by an exemplary embodiment;

[0031] Figure 4 Shows the flowchart of a control method for a virtual vehicle and a virtual object provided by an exemplary embodiment;

[0032] Figure 5 Shows the schematic diagram of a first direction control provided by an exemplary embodiment;

[0033] Figure 6 Shows the schematic diagram of a first switching area provided by an exemplary embodiment;

[0034] Figure 7 Shows the schematic diagram of n first switching areas provided by another exemplary embodiment;

[0035] Figure 8 Shows the flowchart of a control method for a virtual vehicle and a virtual object provided by another exemplary embodiment;

[0036] Figure 9 Schematic diagram of a second-direction control provided by an exemplary embodiment;

[0037] Figure 10 Schematic diagram of a second switching area provided by an exemplary embodiment;

[0038] Figure 11 Schematic diagram of m second switching areas provided by another exemplary embodiment;

[0039] Figure 12 Flowchart of a control method for a virtual vehicle and a virtual object provided by another exemplary embodiment;

[0040] Figure 13 Schematic diagram of a terminal interface provided by an exemplary embodiment;

[0041] Figure 14 Schematic diagram of a control method for a virtual vehicle and a virtual object provided by an exemplary embodiment;

[0042] Figure 15 Block diagram of a control device for a virtual vehicle and a virtual object provided by an exemplary embodiment;

[0043] Figure 16 Block diagram of a control device for a virtual vehicle and a virtual object provided by another exemplary embodiment;

[0044] Figure 17 Block diagram of a computer device provided by an exemplary embodiment. Detailed implementation manners

[0045] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0046] It should be understood that the "several" mentioned herein refers to one or more, and "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.

[0047] First, a brief introduction to the nouns involved in the embodiments of the present application:

[0048] Virtual environment: It is a virtual environment displayed (or provided) when the client runs on the terminal. The virtual environment can be a simulation environment of the real world, a semi-simulated and semi-fictional environment, or a purely fictional environment. The virtual environment can be any one of a two-dimensional virtual environment, a 2.5D virtual environment, and a three-dimensional virtual environment, and the present application does not limit this. The following embodiments take the virtual environment as a three-dimensional virtual environment as an example for illustration.

[0049] Optionally, the virtual environment can provide a battle environment for virtual objects. Exemplarily, in a battle royale type game, at least one virtual object conducts a single-round battle in the virtual environment. The virtual object achieves the purpose of surviving in the virtual environment by avoiding attacks initiated by enemy units and dangers existing in the virtual environment (such as, gas circles, swamps, etc.). When the health value of the virtual object in the virtual environment is zero, the life of the virtual object in the virtual environment ends, and the last surviving virtual object is the winning party.

[0050] Virtual object: It refers to an active object in the virtual environment. The active object can be a virtual character, a virtual animal, an anime character, etc., such as: a character or an animal displayed in a three-dimensional virtual environment. Optionally, the virtual object is a three-dimensional solid model created based on animation skeleton technology. Each virtual object has its own shape and volume in the three-dimensional virtual environment and occupies a part of the space in the three-dimensional virtual environment.

[0051] Figure 1 The block diagram of the computer system provided by an exemplary embodiment of the present application is shown. The computer system 100 includes: a terminal 120 and a server 140.

[0052] The terminal 120 installs and runs a client that supports the virtual environment. A control account of the virtual object is logged in on the client. The client can be any one of a three-dimensional map program, a horizontal shooting game, a horizontal adventure game, a horizontal clearance game, a horizontal strategy game, a Virtual Reality (VR) application program, and an Augmented Reality (AR) program. The terminal 120 is the terminal used by the user. The user uses the terminal 120 to control the virtual object located in the virtual environment to perform activities, and the activities include but are not limited to: adjusting the body posture, walking, running, jumping, cycling, driving, aiming, picking up and using at least one of throwing items. Exemplarily, the virtual object is a virtual character, such as a simulation character object or an anime character object. Exemplarily, the user controls the virtual object to perform activities through the UI control on the virtual environment screen. Exemplarily, the user controls the virtual object to drive a virtual vehicle to move through the UI control on the virtual environment screen. Exemplarily, the user controls the virtual object to move on the virtual vehicle through the UI control on the virtual environment screen.

[0053] The terminal 120 is connected to the server 140 via a wireless network or a wired network.

[0054] The server 140 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Exemplarily, the server 140 includes a processor 144 and a memory 142. The memory 142 further includes a receiving module 1421, a control module 1422, and a sending module 1423. The receiving module 1421 is configured to receive requests sent by a client, such as a request to control the movement of a virtual object; the control module 1422 is configured to control the rendering of the virtual environment screen; the sending module 1423 is configured to send responses to the client, such as sending to the client that the position of the virtual object has changed. The server 140 is used to provide background services for applications that support virtual environments. Optionally, the server 140 undertakes the main computing work, and the terminal 120 undertakes the secondary computing work; or, the server 140 undertakes the secondary computing work, and the terminal 120 undertakes the main computing work; or, the server 140 and the terminal 120 undertake the computing work in a collaborative manner.

[0055] The server 140 may adopt synchronization technology to make the screen performances among multiple clients consistent. Exemplarily, the synchronization technology adopted by the server 140 includes: state synchronization technology or frame synchronization technology.

[0056] State synchronization technology

[0057] In an alternative embodiment based on Figure 1 , the server 140 uses state synchronization technology to synchronize with multiple clients. In state synchronization technology, as Figure 2 shown, the combat logic runs in the server 140. When the state of a certain virtual object in the virtual environment changes, the server 140 sends the state synchronization result to all clients, such as clients 1 to 10.

[0058] In one example, client 1 sends a request to the server 140. This request is used to request virtual object 1 to perform an operation of driving a virtual vehicle to move. Then, the server 140 determines whether virtual object 1 can perform the operation of driving a virtual vehicle to move, and when virtual object 1 performs the operation of driving a virtual vehicle to move, the virtual vehicle moves. Then, the server 140 sends the result of the virtual vehicle movement to all clients, and all clients update the local data and the interface performance according to the result of the virtual vehicle movement.

[0059] Frame synchronization technology

[0060] In an alternative embodiment based on Figure 1 , the server 140 uses frame synchronization technology to synchronize with multiple clients. In frame synchronization technology, asFigure 3 As shown, the combat logic runs in each client. Each client sends a frame synchronization request to the server, and the frame synchronization request carries the local data changes of the client. After receiving a certain frame synchronization request, the server 140 forwards the frame synchronization request to all clients. After each client receives the frame synchronization request, it processes the frame synchronization request according to the local combat logic, and updates the local data and the interface display.

[0061] Optionally, the above-mentioned client can run on different operating system platforms (Android or iOS). Optionally, the device types of the terminal 120 include at least one of a smart phone, a smart watch, a vehicle-mounted terminal, a wearable device, a smart TV, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop computer, and a desktop computer. The following embodiments take the terminal including a smart phone as an example for illustration.

[0062] Those skilled in the art can know that the number of the above-mentioned terminals can be more or less. For example, the above-mentioned terminal can be only one, or the above-mentioned terminals can be dozens or hundreds, or more. The embodiments of the present application do not limit the number and device types of the terminals.

[0063] To improve the human-computer interaction efficiency when a virtual object changes its position on a virtual vehicle, Figure 4 The flowchart of the control method for a virtual vehicle and a virtual object provided by an exemplary embodiment of the present application is shown. In this embodiment, it is illustrated by taking the method as being executed by Figure 1 the terminal 120 shown (or the client supporting the virtual environment running on the terminal 120). The method includes:

[0064] Step 420, display a first direction control;

[0065] Among them, the first direction control is used to control the virtual object to drive the virtual vehicle to move.

[0066] Virtual vehicle: In some embodiments, when the virtual vehicle is implemented as a vehicle traveling on the ground, such as a virtual racing car, virtual vehicle, virtual motorcycle, etc., the player can control operations such as turning, moving forward, moving backward, and drifting of the virtual vehicle in the virtual environment, and the virtual object controlled by the player can change seats on the virtual vehicle; when the virtual vehicle is implemented as a vehicle flying in the air, such as a virtual airplane, virtual glider, virtual hot air balloon, etc., the player can control operations such as taking off, landing, taxiing, and flying of the virtual vehicle in the virtual environment, and the virtual object controlled by the player can change seats and / or walk on the virtual vehicle; when the virtual vehicle is implemented as a vehicle traveling in water, such as a virtual ship, virtual speedboat, virtual kayak, etc., the player can control operations such as moving forward, moving backward, and turning of the virtual vehicle in the virtual environment, and the virtual object controlled by the player can walk, crawl, and / or jump on the virtual vehicle; when the virtual vehicle is implemented as a virtual mount or virtual mecha, the virtual object controlled by the player can walk, crawl, jump, and / or climb on the virtual vehicle.

[0067] In the virtual environment, a driving area is often set on the virtual vehicle to control the movement of the virtual vehicle in the virtual environment. Schematically, the virtual vehicle is a virtual vehicle traveling on the ground, and there is a driver's seat, a co-driver's seat, and two passenger seats inside the virtual vehicle. Schematically, the virtual vehicle is a virtual bamboo raft traveling on the water, and oars are set at the bow and / or stern of the virtual bamboo raft, and the area near the oars belongs to the driving area. Referring to Figure 5 , at this time, the virtual object 502 is located on the virtual vehicle 503, and an oar is set at the stern of the virtual vehicle 503. At this time, the virtual object 502 rows the oar at the stern.

[0068] In some embodiments, there is no independent driving area on the virtual vehicle, and the virtual vehicle can be driven at any position. For example, on a virtual hot air balloon with a small space range, the virtual object can control operations such as taking off and landing of the virtual hot air balloon at any position.

[0069] First direction control: A direction control for controlling the virtual object to drive the virtual vehicle to move. Optionally, the first direction control is a control that can control the virtual vehicle to move omnidirectionally; in response to the user controlling the virtual vehicle to move omnidirectionally through the first direction control, the user controls the virtual vehicle to move in the dragging direction by a dragging operation or a continuous touch operation after dragging on the first direction control. Optionally, the first direction control is a control that can control the virtual vehicle to move in four directions: up, down, left, and right; in response to the user controlling the virtual vehicle to move in four directions: up, down, left, and right through the first direction control, the user controls the virtual vehicle to move in the corresponding direction by any one of a single touch, continuous touch, pressure touch, or continuous touch operation on the first direction control.

[0070] Schematic Figure 5 Figure 5 shows a schematic diagram of a first direction control provided by an exemplary embodiment of the present application. The first direction control 501 is used to control a virtual object to drive a virtual vehicle to move omnidirectionally. At this time, the first direction control 501 has not received a trigger operation.

[0071] Step 440, in response to the first direction control receiving a first trigger operation, display a first switching area;

[0072] The first trigger operation: refers to an operation for displaying the first switching area by triggering the first direction control. Optionally, the first trigger operation includes any one of a drag operation, a continuous touch operation, a pressure touch, a double-click operation, and a single-click operation.

[0073] The first switching area: refers to an area for switching to display a second direction control. If the terminal receives a second trigger operation on the first switching area, the second direction control is displayed. The second direction control is used to control the movement of the virtual object on the virtual vehicle. Optionally, the first switching area is a circular icon. Schematically, the circular icon shows a pattern of the virtual object walking on the virtual vehicle. Optionally, the first switching area may also be divided according to the distance from the first direction control. For example, the distance between the center of the first switching area and the center of the first direction control is 20-40, that is, the first switching area is located in a partial area or all areas of the outer circle of the concentric circle with the first direction control as the center. Optionally, the inner circle of the concentric circle is used to control the movement of the virtual vehicle.

[0074] In one embodiment, in response to the first direction control receiving a first drag operation, the terminal displays a first switching area. In this embodiment, the first drag operation is simultaneously used to control the virtual object to drive the virtual vehicle to move and to display the first switching area. Optionally, the terminal controls the virtual object to drive the virtual vehicle to move along the drag direction of the first drag operation, and the terminal also displays the first switching area on the drag path of the first drag operation or the extension line of the drag path. Schematically, Figure 6 Figure 6 shows a schematic diagram of a terminal interface provided by an exemplary embodiment of the present application. At this time, the first switching area 601 is displayed as a circular icon, and a pattern of the virtual object walking on the virtual vehicle is shown on the circular icon. The first switching area 601 is located on the extension line of the drag path of the first drag operation.

[0075] It should be understood that Figure 6The position of the first switching area shown is associated with the dragging direction of the first dragging operation. For example, the user first drags to the first touch point to the right. During this dragging process, the first switching area is on the dragging path of this rightward dragging operation or on the extension of the dragging path. Then, after the user continuously touches at the first touch point for a period of time, the user drags upward to the second touch point. During this dragging process, the first switching area changes and is shown on the dragging path of this upward dragging operation or on the extension of the dragging path. That is, in this embodiment, the first switching area continuously changes as the direction of the dragging operation changes. The purpose is to control the movement of the virtual vehicle through the first dragging operation and also to display the first switching area through the first dragging operation.

[0076] In another embodiment, in response to the first direction control receiving the first dragging operation, the terminal displays n first switching areas on the dragging path of the first dragging operation or on the extension of the dragging path. The n first switching areas correspond one-to-one to n moving speeds of the virtual object on the virtual vehicle. The n first switching areas are sorted from near to far according to the distance from the first direction control, and the n moving speeds are sorted from small to large. n is a positive integer not less than 1.

[0077] Schematically, Figure 7 The figure shows a schematic diagram of a terminal interface provided by an exemplary embodiment of the present application. The first switching area 701 is displayed as a circular icon, and a pattern of the virtual object walking on the virtual vehicle is shown on the circular icon. Two first switching areas 701 are located on the extension of the dragging path of the first dragging operation. The first switching area 701 closer to the first direction control corresponds to the slow movement of the virtual object on the virtual vehicle, and the first switching area 701 farther from the first direction control corresponds to the fast movement of the virtual object on the virtual vehicle.

[0078] While the first dragging operation is used to control the movement of the virtual vehicle in the virtual environment, the first dragging operation is also used to display the first switching area. Therefore, the terminal also displays the picture of the virtual vehicle moving in the virtual environment. Optionally, the terminal controls the three-dimensional model of the virtual vehicle to move in the virtual environment with the duration of the first dragging operation as the moving duration. Optionally, the moving speed of the three-dimensional model of the virtual vehicle is pre-set, or the moving speed is associated with the first switching area (refer to the above Figure 7 description), or the moving speed is associated with the three-dimensional model of the virtual vehicle (if the three-dimensional model of the virtual vehicle is a damaged three-dimensional model of the virtual vehicle, the moving speed of the virtual vehicle is slower).

[0079] Step 460, in response to receiving a second trigger operation in the first switching area, display the second direction control.

[0080] Among them, the second direction control is used to control the movement of the virtual object on the virtual vehicle.

[0081] The second trigger operation: refers to the trigger operation received in the first switching area for displaying the second direction control. Optionally, the second trigger operation includes any one of the release operation after a drag operation, a continuous touch operation, a force touch, a double-click operation, and a single-click operation.

[0082] In one embodiment, in response to the release operation of the first drag operation received in the first switching area, the terminal displays the second direction control. The first drag operation is used to control the virtual object to drive the virtual vehicle to move, and is used to display the first switching area. Schematically, with reference to Figure 6 , if the user releases the finger after sliding to the first switching area 601, the terminal will display the second direction control.

[0083] In another embodiment, in response to the release operation of the first drag operation received in one of the n first switching areas, the terminal displays the second direction control. Schematically, with reference to Figure 7 , if the user releases the finger after sliding to any one of the two first switching areas 701, the terminal will display the second direction control.

[0084] Optionally, the terminal displays the second direction control at a preset position; optionally, the terminal displays the second direction control at the position where the first switching area is located.

[0085] Optionally, in order to keep the interface simple and not block the user from observing the virtual environment, when the terminal displays the second direction control, it cancels the display of the first direction control and the first switching area.

[0086] In summary, by setting the operation modes for controlling the virtual object to drive the virtual vehicle and for controlling the virtual object to move on the virtual vehicle, the operations that the virtual object on the virtual vehicle can perform are enriched, and the human-computer interaction efficiency when the virtual object changes its position on the virtual vehicle is greatly improved. For example, when the virtual object changes its position on the virtual vehicle, it does not have to get off the vehicle and then get on again. Moreover, by using the first direction control to display the second direction control, the terminal interface is kept clean and orderly, avoiding excessive area occupation of the terminal interface, which is beneficial for the user to observe the virtual environment.

[0087] The first switching area is displayed through the first drag operation, and the second direction control is displayed through the release operation of the first drag operation. While ensuring that the first drag operation can control the virtual object to drive the virtual vehicle, the first drag operation can also be used to display the second direction control, avoiding unnecessary trigger operations and improving the efficiency of displaying the second direction control.

[0088] By displaying a first switching area on the dragging path of the first dragging operation or on the extension line of the dragging path, redundant triggering operations are avoided, and the efficiency of displaying the second direction control is improved.

[0089] By displaying n first switching areas on the dragging path of the first dragging operation or on the extension line of the dragging path, and the n first switching areas correspond one-to-one to n moving speeds of the virtual object on the virtual vehicle, the selection of the moving speed of the virtual object on the virtual vehicle is realized through the first dragging operation, and redundant triggering operations are avoided.

[0090] By displaying the second direction control at a preset position or at the position where the first switching area is located, and canceling the display of the first direction control and the first switching area, the tidiness and orderliness of the terminal interface are ensured, excessive area occupation of the terminal interface is avoided, and it is beneficial for the user to observe the virtual environment.

[0091] To improve the human-computer interaction efficiency when the virtual object changes its position on the virtual vehicle, Figure 8 The flowchart of the control method for the virtual vehicle and the virtual object provided by an exemplary embodiment of the present application is shown. In this embodiment, it is exemplified that the method is executed by Figure 1 the terminal 120 shown (or the client supporting the virtual environment running on the terminal 120), and the method includes:

[0092] Step 820, display the second direction control;

[0093] Among them, the second direction control is used to control the movement of the virtual object on the virtual vehicle.

[0094] Virtual vehicle: In some embodiments, when the virtual vehicle is implemented as a vehicle traveling on the ground such as a virtual racing car, a virtual vehicle, or a virtual motorcycle, the player can control the turning, forward movement, backward movement, drifting, etc. of the virtual vehicle in the virtual environment, and the virtual object controlled by the player can change seats on the virtual vehicle; when the virtual vehicle is implemented as a vehicle flying in the air such as a virtual airplane, a virtual glider, or a virtual hot air balloon, the player can control the takeoff, landing, taxiing, flying, etc. of the virtual vehicle in the virtual environment, and the virtual object controlled by the player can change seats and at least one of walking on the virtual vehicle; when the virtual vehicle is implemented as a vehicle traveling in water such as a virtual ship, a virtual speedboat, or a virtual kayak, the player can control the forward movement, backward movement, turning, etc. of the virtual vehicle in the virtual environment, and the virtual object controlled by the player can perform at least one of walking, crawling, and jumping on the virtual vehicle; when the virtual vehicle is implemented as a virtual mount or a virtual mecha, the virtual object controlled by the player can perform at least one of walking, crawling, jumping, and climbing on the virtual vehicle.

[0095] In a virtual environment, a virtual vehicle often has a driving area for controlling the movement of the virtual vehicle in the virtual environment. By way of illustration, the virtual vehicle is a virtual car traveling on the ground, and there is a driver's seat, a passenger seat and two seats for passengers in the virtual car. By way of illustration, the virtual vehicle is a virtual bamboo raft traveling on water, and oars are provided at the bow and / or stern of the virtual bamboo raft, and the area near the oars belongs to the driving area. Referring to Figure 9 , at this time, the virtual object 902 is on the virtual vehicle 903, and the stern of the virtual vehicle 903 is set as the driving area. At this time, the virtual object 902 stands at the bow.

[0096] In some embodiments, there is no independent driving area on the virtual vehicle, and the virtual vehicle can be driven at any position. For example, on a virtual hot air balloon with a small space range, the virtual object can control operations such as taking off and landing of the virtual hot air balloon at any position.

[0097] Second direction control: A direction control for controlling the movement direction of a virtual object on a virtual vehicle. Optionally, the second direction control is a control for enabling the virtual object to move omnidirectionally on the virtual vehicle; when the user controls the virtual object to move omnidirectionally on the virtual vehicle through the second direction control, the user controls the virtual object to move in the dragging direction on the virtual vehicle by means of a dragging operation or a continuous touch operation after dragging on the second direction control. Optionally, the second direction control is a control for enabling the virtual object to move in four directions of up, down, left and right on the virtual vehicle; when the user controls the virtual object to move in four directions of up, down, left and right on the virtual vehicle through the second direction control, the user controls the virtual object to move in the corresponding direction on the virtual vehicle by means of any one of a single touch, a continuous touch, a pressure touch or a continuous touch operation on the second direction control.

[0098] By way of illustration, Figure 9 shows a schematic diagram of a second direction control provided by an exemplary embodiment of the present application. The second direction control 901 is used to control the virtual object to move omnidirectionally on the virtual vehicle. At this time, the second direction control 901 has not received a trigger operation.

[0099] Step 840, in response to the second direction control receiving a third trigger operation, display a second switching area;

[0100] Third trigger operation: A trigger operation for displaying a second switching area through the second direction control. Optionally, the third trigger operation includes any one of a dragging operation, a continuous touch operation, a pressure touch, a double-click operation and a single-click operation.

[0101] Second switching area: It refers to the area used to switch and display the first direction control. If the terminal receives a fourth trigger operation on the second switching area, the first direction control will be displayed. The first direction control is used to control a virtual object to drive a virtual vehicle to move. Optionally, the second switching area is a circular icon. Schematically, the circular icon shows a pattern of a virtual object driving a virtual vehicle. Optionally, the second switching area may also be divided according to the distance from the second direction control. For example, the distance between the center of the second switching area and the second direction control is 20 to 40, that is, the second switching area is located in a partial area or the entire area of the outer circle of the concentric circle with the second direction control as the center. Optionally, the inner circle of the concentric circle is used to control the movement of the virtual object on the virtual vehicle.

[0102] In one embodiment, in response to the second direction control receiving a second drag operation, the terminal displays the second switching area. In this embodiment, the second drag operation is used to control the movement of the virtual object on the virtual vehicle and to display the second switching area. Optionally, the terminal controls the virtual object to move on the virtual vehicle along the drag direction of the second drag operation, and the terminal also displays the second switching area on the drag path of the second drag operation or the extension line of the drag path. Schematically, Figure 10 shows a schematic diagram of a terminal interface provided by an exemplary embodiment of the present application. At this time, the second switching area 1001 is displayed as a circular icon, and a pattern of driving a virtual vehicle is shown on the circular icon. The second switching area 1001 is located on the extension line of the drag path of the second drag operation.

[0103] It should be understood that Figure 10 the position where the shown second switching area is located is associated with the drag direction of the second drag operation. For example, the user first drags left to the third touch point. During this drag process, the second switching area is on the drag path of this left drag operation or the extension line of the drag path; then, after the user continuously touches the third touch point for a period of time, the user drags down to the fourth touch point. During this drag process, the second switching area changes and is displayed on the drag path of this down drag operation or the extension line of the drag path. That is, in this embodiment, the second switching area changes continuously with the change of the drag operation direction. The purpose is to control the movement of the virtual object on the virtual vehicle through the second drag operation and also to display the second switching area through the second drag operation.

[0104] In another embodiment, in response to the second direction control receiving a second drag operation, the terminal displays m second switching areas on the drag path of the second drag operation or the extension line of the drag path. The m second switching areas correspond to m traveling speeds of the virtual vehicle one by one. The m second switching areas are sorted from near to far according to the distance from the second direction control, and the m traveling speeds are sorted from small to large. m is a positive integer not less than 1.

[0105] Schematic Figure 11 Figure 11 shows a schematic diagram of a terminal interface provided by an exemplary embodiment of the present application. The second switching area 1101 is displayed as a circular icon, and a pattern of a virtual object walking on a virtual vehicle is shown on the circular icon. Two second switching areas 1101 are located on the extension line of the dragging path of the second dragging operation. The second switching area 1101 closer to the second direction control corresponds to the slow movement of the virtual vehicle, and the second switching area 1101 farther from the second direction control corresponds to the fast movement of the virtual vehicle.

[0106] In another embodiment, in response to the second dragging operation received by the second direction control, the terminal displays a second switching area. The second switching area is based on the direction of the second direction control being consistent with the direction of the driving area of the virtual vehicle based on the current position of the virtual object.

[0107] For example, the virtual vehicle includes a driver's seat in the front left (abbreviated as left 1), a passenger seat in the front right (abbreviated as right 1), a rear left passenger seat (abbreviated as left 2), and a rear right passenger seat (abbreviated as right 2). If the virtual object is currently in right 1 and the second direction control receives a downward dragging operation, before the downward dragging operation is responded to, the second switching area is displayed on the left side of the second direction control on the terminal interface. After the downward dragging operation is responded to, the virtual object is in right 2, and the second switching area is displayed above the left side of the second direction control on the terminal interface.

[0108] Another example is that the virtual bamboo raft includes a driving area at the stern and an area where the virtual object can walk on the virtual bamboo raft. On the current interface, the stern is located at the leftmost side of the virtual bamboo raft, and the bow is located at the rightmost side of the virtual bamboo raft. If the current virtual object is at the bow and the second direction control receives a leftward dragging operation, before the leftward dragging operation is responded to, the second switching area is displayed on the left side of the second direction control (both the front left or the rear left are considered the left side) on the terminal interface. During the leftward dragging operation, the second switching area is always on the left side of the second direction control.

[0109] While the second dragging operation is used to control the movement of the virtual object on the virtual vehicle, the second dragging operation is also used to display the second switching area. Therefore, the terminal also displays a picture of the virtual object moving on the virtual vehicle. Optionally, the terminal controls the three-dimensional model of the virtual object to move on the three-dimensional model of the virtual vehicle for the duration of the second dragging operation. Optionally, the moving speed of the three-dimensional model of the virtual object on the three-dimensional model of the virtual vehicle is pre-set, or the moving speed is associated with the second switching area (refer to the above Figure 11(description), or the moving speed is associated with the 3D model of the virtual vehicle (if the 3D model of the virtual vehicle is the 3D model of a damaged virtual vehicle, the moving speed of the virtual vehicle is slower), or the moving speed is associated with the 3D model of the virtual object. Schematically, if the 3D model of the virtual object is a damaged 3D model, the moving speed of the virtual object on the virtual vehicle is slower. Optionally, when the virtual object is in an injured state, the 3D model of the virtual object in the virtual environment is a damaged 3D model (such as missing some limb parts).

[0110] Step 860, in response to receiving a fourth trigger operation in the second switching area, display a first direction control.

[0111] Wherein, the first direction control is used to control the virtual object to drive the virtual vehicle to move.

[0112] Fourth trigger operation: refers to the trigger operation received in the second switching area for displaying the first direction control. Optionally, the fourth trigger operation includes any one of a release operation after a drag operation, a continuous touch operation, a force touch, a double-click operation, and a single-click operation.

[0113] In an optional embodiment, in response to receiving a fourth trigger operation in the second switching area and the virtual object being located in the driving area of the virtual vehicle, display the first direction control.

[0114] Optionally, in response to receiving a release operation of a second drag operation in the second switching area and the virtual object being located in the driving area of the virtual vehicle, the terminal displays the first direction control. The second drag operation is used to control the virtual object to drive the virtual vehicle to move and to display the second switching area. Schematically, with reference to Figure 10 , if the user releases the finger after sliding to the first switching area 1001 and the virtual object is located at the stern of the virtual bamboo raft( Figure 10 At this time, the virtual object is located at the bow of the virtual bamboo raft), the terminal will display the first direction control.

[0115] Optionally, in response to receiving a release operation of a second drag operation in one of the m second switching areas and the virtual object being located in the driving area of the virtual vehicle, the terminal displays the first direction control. Schematically, with reference to Figure 11 , if the user releases the finger after sliding to any one of the two second switching areas 1101 and the virtual object is located at the stern of the virtual bamboo raft( Figure 11 At this time, the virtual object is located at the bow of the virtual bamboo raft), the terminal will display the first direction control.

[0116] Optionally, the terminal displays the first direction control at a preset position; optionally, the terminal displays the first direction control at the position where the second switching area is located.

[0117] Optionally, to keep the interface simple and not block the user's view of the virtual environment, while the terminal displays the first direction control, it cancels the display of the second direction control and the second switching area.

[0118] In summary, by setting the operation mode for controlling the virtual object to drive the virtual vehicle and the operation mode for controlling the virtual object to move on the virtual vehicle, the operations executable by the virtual object on the virtual vehicle are enriched, and the human-computer interaction efficiency when the virtual object changes its position on the virtual vehicle is greatly improved. For example, when the virtual object changes its position on the virtual vehicle, it does not need to get off the vehicle and then get on again. Moreover, by displaying the first direction control with the second direction control, the terminal interface is ensured to be clean and orderly, avoiding excessive occupation of the terminal interface area and being beneficial to the user's observation of the virtual environment.

[0119] The second switching area is displayed through the second drag operation, and the first direction control is displayed through the release operation of the second drag operation. While ensuring that the second drag operation can control the movement of the virtual object on the virtual vehicle, the second drag operation can also be used to display the first direction control, avoiding unnecessary trigger operations and improving the efficiency of displaying the first direction control.

[0120] By displaying the first switching area on the drag path of the second drag operation or the extension line of the drag path, unnecessary trigger operations are avoided, and the efficiency of displaying the second direction control is improved.

[0121] By setting the direction of the second switching area based on the second direction control to be consistent with the direction of the driving area of the virtual vehicle based on the current position of the virtual object, combined with the driving area on the virtual vehicle, the second switching area is more reasonably displayed, further ensuring the cleanliness and orderliness of the terminal interface.

[0122] By displaying m second switching areas on the drag path of the second drag operation or the extension line of the drag path, and the m second switching areas correspond to m traveling speeds of the virtual vehicle one by one, the selection of the traveling speed of the virtual vehicle is realized through the second drag operation, avoiding unnecessary trigger operations.

[0123] By displaying the first direction control at a preset position or at the position where the second switching area is located, and canceling the display of the second direction control and the second switching area, the cleanliness and orderliness of the terminal interface are ensured, avoiding excessive occupation of the terminal interface area and being beneficial to the user's observation of the virtual environment.

[0124] To improve the human-computer interaction efficiency when the virtual object changes its position on the virtual vehicle Figure 12 The flowchart of the control method for the virtual vehicle and the virtual object provided by an exemplary embodiment of the present application is shown. In this embodiment, it is assumed that the method is executed byFigure 1 The following will be described by taking the terminal 120 (or the client supporting the virtual environment running on the terminal 120) as an example. The method includes:

[0125] Step 1201, start;

[0126] The terminal starts to execute the control method of the virtual vehicle and the virtual object.

[0127] Step 1202, the terminal controls the virtual object to enter the virtual vehicle;

[0128] Optionally, before the virtual object enters the virtual vehicle, the terminal will provide a control for the virtual object to enter the virtual vehicle. Schematically, Figure 13 shows the ride control for the virtual object to ride on the virtual vehicle provided by an exemplary embodiment of the present application. In response to the trigger operation received by the ride control 1301, the terminal controls the virtual object to enter the virtual vehicle. Optionally, when the virtual object approaches the virtual vehicle, the terminal displays the ride control 1301 on the interface.

[0129] Step 1203, the terminal controls the virtual object to drive the virtual vehicle to move through the first direction control;

[0130] With reference to Figure 14 , Figure 14 (a) shows the first direction control 1401. The terminal controls the virtual object to drive the virtual vehicle to move through the first direction control 1401.

[0131] Step 1204, the terminal determines whether the virtual object can move on the virtual vehicle;

[0132] Optionally, if the virtual vehicle does not support the virtual object to walk on the virtual vehicle, it is considered that the virtual object cannot move on the virtual vehicle. Optionally, if all the positions on the virtual vehicle for the virtual object to move have been occupied, it is considered that the virtual object cannot move on the virtual vehicle. For example, when all four seats of the virtual vehicle are occupied, that is, when the virtual vehicle is full, the virtual object cannot move on the virtual vehicle.

[0133] The terminal determines whether the virtual object can move on the virtual vehicle. If so, execute step 1204. If not, execute step 1213.

[0134] Step 1205, a center point for free walking adaptively appears near the first direction control;

[0135] With reference to Figure 14 , Figure 14 (b) shows that a center point 1402 for free walking appears on the extension line of the dragging path of the first dragging operation. The center point 1402 for free walking shows the pattern of free walking.

[0136] Step 1206, whether the center point of free walking receives the release operation of the first drag operation;

[0137] The terminal determines whether the center point of free walking receives the release operation of the first drag operation. If so, step 1207 is executed; if not, step 1213 is executed.

[0138] Step 1207, switch to the operation mode of controlling the virtual object to walk on the virtual vehicle;

[0139] If the center point of free walking receives the release operation of the first drag operation, the terminal switches to the operation mode of controlling the virtual object to walk on the virtual vehicle. Optionally, the terminal cancels the display of the first direction control and the center point of free walking, and displays the second direction control at a preset position.

[0140] Combined reference Figure 14 , Figure 14 (c) shows the second direction control 1403.

[0141] Step 1208, the terminal controls the virtual object to walk on the virtual vehicle through the second direction control, and the virtual vehicle is in a managed state;

[0142] Optionally, when the terminal controls the virtual object to walk on the virtual vehicle, the virtual vehicle moves at a preset speed. For example, the speed is 0, the speed is the speed of the water flow, the speed is determined based on inertia and the water flow speed, etc.

[0143] Combined reference Figure 14 (c), at this time the terminal has controlled the virtual object to move to the bow of the virtual bamboo raft through the second direction control 1403.

[0144] Step 1209, the center point for driving the virtual vehicle appears adaptively near the second direction control;

[0145] Optionally, the terminal displays the center point for driving the virtual vehicle on the drag path of the second drag operation or the extension line of the drag path.

[0146] Optionally, the terminal displays the center point for driving the virtual vehicle, and the center point for driving the virtual vehicle is based on the direction of the second direction control being consistent with the direction of the driving area of the virtual vehicle based on the current position of the virtual object.

[0147] Combined reference Figure 14 (d), Figure 14 (d) shows the center point 1404 for driving the virtual vehicle, and the center point 1404 for driving the virtual vehicle shows the pattern of the virtual vehicle.

[0148] Step 1210, the terminal determines whether the virtual object is in the driving area of the virtual vehicle;

[0149] Optionally, the terminal determines whether the virtual object is in the driving area of the virtual vehicle. For example, the terminal determines whether the virtual object is in the driver's seat of the virtual vehicle, and the terminal determines whether the virtual object is in the area where the oar of the virtual raft is located.

[0150] The terminal determines whether the virtual object is in the driving area of the virtual vehicle. If so, step 1211 is executed; if not, step 1213 is executed.

[0151] Step 1211, whether the center point of driving the virtual vehicle receives the release operation of the second drag operation;

[0152] The terminal determines whether the center point of driving the virtual vehicle receives the release operation of the second drag operation. If so, step 1212 is executed; if not, step 1213 is executed.

[0153] Step 1212, switch to the operation mode of controlling the virtual object to drive the virtual vehicle;

[0154] If the center point of driving the virtual vehicle receives the release operation of the second drag operation, the terminal switches to the operation mode of controlling the virtual object to drive the virtual vehicle. Optionally, the terminal cancels the display of the second direction control and the center point of driving the virtual vehicle, and displays the first direction control at a preset position.

[0155] Combined reference Figure 14 , Figure 14 (a) shows the first direction control 1401.

[0156] Step 1213, end.

[0157] The terminal ends the execution of the control method for the virtual vehicle and the virtual object.

[0158] In summary, by setting the operation mode of controlling the virtual object to drive the virtual vehicle and the operation mode of controlling the virtual object to move on the virtual vehicle, the operations that the virtual object on the virtual vehicle can perform are enriched, and the human-computer interaction efficiency when the virtual object changes positions on the virtual vehicle is greatly improved. For example, when the virtual object changes positions on the virtual vehicle, it does not have to get off the vehicle and then get on again. Moreover, by displaying the second direction control through the first direction control (or displaying the first direction control through the second direction control), the neatness and orderliness of the terminal interface are ensured, the excessive area occupation of the terminal interface is avoided, and it is beneficial for the user to observe the virtual environment.

[0159] Figure 15 Shows the structural block diagram of the control device for the virtual vehicle and the virtual object provided by an exemplary embodiment of the present application. The device includes:

[0160] A display module 1501 for displaying a first direction control for controlling a virtual object to move a virtual vehicle in a virtual environment;

[0161] The display module 1501 is further configured to display a first switching area in response to the first direction control receiving a first trigger operation;

[0162] The display module 1501 is further configured to display a second direction control in response to a second trigger operation being received in the first switching area, the second direction control being used to control the virtual object to move on the virtual vehicle.

[0163] In an alternative embodiment, the display module 1501 is further configured to display a first switching area in response to the first direction control receiving a first drag operation.

[0164] In an alternative embodiment, the display module 1501 is further configured to display the second direction control in response to the release of a first drag operation being received in the first switching area.

[0165] In an alternative embodiment, the display module 1501 is further configured to display the first switching area on the drag path of the first drag operation or on the extension of the drag path.

[0166] In an alternative embodiment, the display module 1501 is further configured to display n first switching areas on the drag path of the first drag operation or on the extension of the drag path, the n first switching areas corresponding one-to-one to n moving speeds of the virtual object on the virtual vehicle, the n first switching areas being sorted from near to far according to the distance from the first direction control, and the n moving speeds being sorted from small to large.

[0167] In an alternative embodiment, the display module 1501 is further configured to display the second direction control in response to the release of a first drag operation being received in one of the n first switching areas.

[0168] In an alternative embodiment, the display module 1501 is further configured to display the second direction control at a preset position.

[0169] In an alternative embodiment, the display module 1501 is further configured to display the second direction control at the position where the first switching area is located.

[0170] In an alternative embodiment, the display module 1501 is further configured to cancel the display of the first direction control and the first switching area.

[0171] In an alternative embodiment, the display module 1501 is further configured to control the three-dimensional model of the virtual vehicle to move in the virtual environment for the duration of the first drag operation.

[0172] In an optional embodiment, the display module 1501 is further configured to display a screen of the virtual vehicle moving in the virtual environment.

[0173] In an optional embodiment, the virtual vehicle is a virtual car, and the virtual object moving on the virtual vehicle includes the virtual object changing seats on the virtual car; when the virtual vehicle is a virtual ship, the virtual object moving on the virtual vehicle includes at least one of walking, crawling, and jumping on the virtual ship; when the virtual vehicle is a virtual mount, the virtual object moving on the virtual vehicle includes at least one of walking, crawling, jumping, and climbing on the virtual mount.

[0174] In summary, by setting the operation mode for controlling the virtual object to drive the virtual vehicle and the operation mode for controlling the virtual object to move on the virtual vehicle, the above device enriches the operations that the virtual object on the virtual vehicle can perform, greatly improving the human-computer interaction efficiency when the virtual object changes positions on the virtual vehicle. For example, when the virtual object changes positions on the virtual vehicle, it does not have to get off the vehicle and then get on again. Moreover, by displaying the second direction control through the first direction control, the tidiness and orderliness of the terminal interface are ensured, avoiding excessive area occupation of the terminal interface, which is beneficial for the user to observe the virtual environment.

[0175] Figure 16 The block diagram of the control device for the virtual vehicle and the virtual object provided by an exemplary embodiment of the present application is shown. The device includes:

[0176] A display module 1601, configured to display a second direction control, where the second direction control is used to control the virtual object to move on the virtual vehicle.

[0177] The display module 1601 is further configured to display a second switching area in response to the second direction control receiving a third trigger operation.

[0178] The display module 1601 is further configured to display a first direction control in response to receiving a fourth trigger operation in the second switching area, where the first direction control is used to control the virtual object to drive the virtual vehicle to move.

[0179] In an optional embodiment, the display module 1601 is further configured to display a second switching area in response to the second direction control receiving a second drag operation.

[0180] In an optional embodiment, the display module 1601 is further configured to display the first direction control in response to the release operation of receiving the second drag operation in the second switching area.

[0181] In an optional embodiment, the display module 1601 is further configured to display the second switching area on the drag path of the second drag operation or on the extension line of the drag path.

[0182] In an optional embodiment, the display module 1601 is further configured to display a second switching area, where the direction of the second switching area is consistent with the direction of the driving area of the virtual vehicle based on the current position of the virtual object according to the direction of the second direction control.

[0183] In an optional embodiment, the display module 1601 is further configured to display m second switching areas on the dragging path of the second dragging operation or on the extension line of the dragging path, where the m second switching areas correspond to m traveling speeds of the virtual vehicle one by one, the m second switching areas are sorted in ascending order of the distance from the second direction control, and the m traveling speeds are sorted in ascending order.

[0184] In an optional embodiment, the display module 1601 is further configured to display the first direction control in response to receiving a release operation of the second dragging operation in one of the m second switching areas.

[0185] In an optional embodiment, the display module 1601 is further configured to display the first direction control in response to receiving a fourth trigger operation in the second switching area and the virtual object being located in the driving area of the virtual vehicle.

[0186] In an optional embodiment, the display module 1601 is further configured to display the first direction control at a preset position.

[0187] In an optional embodiment, the display module 1601 is further configured to display the first direction control at the position where the second switching area is located.

[0188] In an optional embodiment, the display module 1601 is further configured to cancel the display of the second direction control and the second switching area.

[0189] In an optional embodiment, the display module 1601 is further configured to control the three-dimensional model of the virtual object to move on the three-dimensional model of the virtual vehicle for the duration of the second dragging operation;

[0190] In an optional embodiment, the display module 1601 is further configured to display the picture of the virtual object moving on the virtual vehicle.

[0191] In an optional embodiment, the virtual vehicle is a virtual car, and the movement of the virtual object on the virtual vehicle includes the virtual object changing seats on the virtual car; when the virtual vehicle is a virtual ship, the movement of the virtual object on the virtual vehicle includes at least one of walking, crawling, and jumping of the virtual object on the virtual ship; when the virtual vehicle is a virtual mount, the movement of the virtual object on the virtual vehicle includes at least one of walking, crawling, jumping, and climbing of the virtual object on the virtual mount.

[0192] In summary, by setting the operation mode for controlling a virtual object to drive a virtual vehicle and the operation mode for controlling the virtual object to move on the virtual vehicle, the above-described device enriches the operations executable by the virtual object on the virtual vehicle, greatly improving the human-computer interaction efficiency when the virtual object changes positions on the virtual vehicle. For example, when the virtual object changes positions on the virtual vehicle, it does not have to get off the vehicle and then get back on. Moreover, by displaying the first direction control through the second direction control, the neatness and orderliness of the terminal interface are ensured, avoiding excessive area occupation of the terminal interface and facilitating the user's observation of the virtual environment.

[0193] Figure 17 FIG. shows a block diagram of a computer device 1700 provided by an exemplary embodiment of the present application. The computer device 1700 may be a portable mobile terminal, such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop computer, or a desktop computer. The computer device 1700 may also be referred to by other names such as a user device, a portable terminal, a laptop terminal, a desktop terminal, etc.

[0194] Generally, the computer device 1700 includes: a processor 1701 and a memory 1702.

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

[0196] The memory 1702 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 1702 may further include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1702 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 1701 to implement the control method of the virtual vehicle and the virtual object provided in the method embodiments of the present application.

[0197] In some embodiments, the computer device 1700 may further optionally include: a peripheral device interface 1703 and at least one peripheral device. The processor 1701, the memory 1702, and the peripheral device interface 1703 may be connected through a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 1703 through a bus, signal lines, or a circuit board. Exemplarily, the peripheral device may include at least one of a radio frequency circuit 1704, a display screen 1705, a camera assembly 1706, an audio circuit 1707, and a power supply 1708.

[0198] The peripheral device interface 1703 can be used to connect at least one I / O (Input / Output) related peripheral device to the processor 1701 and the memory 1702. In some embodiments, the processor 1701, the memory 1702, and the peripheral device interface 1703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1701, the memory 1702, and the peripheral device interface 1703 can be implemented on a separate chip or circuit board, and this embodiment does not limit this.

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

[0200] It should be noted that in the original text, "17G" is likely a typo and should be "5G" for the correct generations of mobile communication networks. The translation has been adjusted accordingly.The display screen 1705 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1705 is a touch display screen, the display screen 1705 also has the ability to collect touch signals on or above the surface of the display screen 1705. The touch signals can be input as control signals to the processor 1701 for processing. At this time, the display screen 1705 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1705, which is disposed on the front panel of the computer device 1700; in other embodiments, there may be at least two display screens 1705, which are respectively disposed on different surfaces of the computer device 1700 or are in a foldable design; in other embodiments, the display screen 1705 may be a flexible display screen, which is disposed on a curved surface or a folding surface of the computer device 1700. Even further, the display screen 1705 can also be set to an irregular non-rectangular shape, that is, a special-shaped screen. The display screen 1705 can be prepared using materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0201] The camera module 1706 is used to capture images or videos. Optionally, the camera module 1706 includes a front camera and a rear camera. Generally, the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth camera, a wide-angle camera, and a telephoto camera, respectively, to implement functions such as background blurring by fusing the main camera and the depth camera, panoramic shooting by fusing the main camera and the wide-angle camera, and VR (Virtual Reality) shooting functions or other fused shooting functions. In some embodiments, the camera module 1706 may further include a flash. The flash can be a single-color temperature flash or a two-color temperature flash. A two-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation under different color temperatures.

[0202] The audio circuit 1707 may include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals for input to the processor 1701 for processing, or input to the radio frequency circuit 1704 to implement voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the computer device 1700. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 1701 or the radio frequency circuit 1704 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for uses such as ranging. In some embodiments, the audio circuit 1707 may further include a headphone jack.

[0203] The power supply 1708 is used to supply power to each component in the computer device 1700. The power supply 1708 may be alternating current, direct current, a disposable battery or a rechargeable battery. When the power supply 1708 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charging technology.

[0204] In some embodiments, the computer device 1700 further includes one or more sensors 1709. The one or more sensors 1709 include but are not limited to: an acceleration sensor 1710, a gyroscope sensor 1711, a pressure sensor 1712, an optical sensor 1713, and a proximity sensor 1714.

[0205] The acceleration sensor 1710 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established with the computer device 1700. For example, the acceleration sensor 1710 can be used to detect the components of the gravitational acceleration on the three coordinate axes. The processor 1701 can control the display screen 1705 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1710. The acceleration sensor 1710 can also be used for collecting game or user's motion data.

[0206] The gyroscope sensor 1711 can detect the body direction and rotation angle of the computer device 1700. The gyroscope sensor 1711 can cooperate with the acceleration sensor 1710 to collect the 3D actions of the user on the computer device 1700. Based on the data collected by the gyroscope sensor 1711, the processor 1701 can implement the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0207] The pressure sensor 1712 can be disposed on the side frame of the computer device 1700 and / or the lower layer of the display screen 1705. When the pressure sensor 1712 is disposed on the side frame of the computer device 1700, it can detect the holding signal of the user on the computer device 1700, and the processor 1701 can perform left / right hand recognition or shortcut operations according to the holding signal collected by the pressure sensor 1712. When the pressure sensor 1712 is disposed on the lower layer of the display screen 1705, the processor 1701 can control the operable controls on the UI interface according to the pressure operation of the user on the display screen 1705. The operable controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0208] The optical sensor 1713 is used to collect the ambient light intensity. In one embodiment, the processor 1701 can control the display brightness of the display screen 1705 according to the ambient light intensity collected by the optical sensor 1713. Exemplarily, when the ambient light intensity is high, the display brightness of the display screen 1705 is increased; when the ambient light intensity is low, the display brightness of the display screen 1705 is decreased. In another embodiment, the processor 1701 can also dynamically adjust the shooting parameters of the camera assembly 1706 according to the ambient light intensity collected by the optical sensor 1713.

[0209] The proximity sensor 1714, also known as a distance sensor, is usually disposed on the front panel of the computer device 1700. The proximity sensor 1714 is used to collect the distance between the user and the front of the computer device 1700. In one embodiment, when the proximity sensor 1714 detects that the distance between the user and the front of the computer device 1700 is gradually decreasing, the processor 1701 controls the display screen 1705 to switch from the lit state to the off state; when the proximity sensor 1714 detects that the distance between the user and the front of the computer device 1700 is gradually increasing, the processor 1701 controls the display screen 1705 to switch from the off state to the lit state.

[0210] Those skilled in the art can understand that Figure 17 the structure shown in does not constitute a limitation on the computer device 1700, and it may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component layout.

[0211] This application also provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the control method of the virtual vehicle and the virtual object provided by the above method embodiment.

[0212] The present application provides a computer program product or a computer program. The computer program product or the computer program includes computer instructions which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the control method for a virtual vehicle and a virtual object provided in the above method embodiments.

[0213] The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0214] Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a magnetic disk or an optical disc, etc.

[0215] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.

Claims

1. A control method for a virtual vehicle and a virtual object, characterized in that, The method includes: Displaying a first direction control for controlling a virtual object to move a virtual vehicle in a virtual environment; In response to the first direction control receiving a first trigger operation, displaying a first switching area; In response to receiving a second trigger operation in the first switching area, displaying a second direction control for controlling the virtual object to move on the virtual vehicle; Wherein, the displaying the first switching area in response to the first direction control receiving the first trigger operation includes: in response to the first direction control receiving a first dragging operation, displaying n first switching areas on the dragging path of the first dragging operation or on the extension line of the dragging path, the n first switching areas corresponding one by one to n moving speeds of the virtual object on the virtual vehicle, the n first switching areas being sorted in ascending order of the distance from the first direction control, and the n moving speeds being sorted from small to large, where n is a positive integer not less than 1; The displaying the second direction control in response to receiving the second trigger operation in the first switching area includes: in response to receiving a release operation of the first dragging operation in one of the n first switching areas, displaying the second direction control.

2. The method according to claim 1, characterized in that, The displaying the second direction control includes: Displaying the second direction control at a preset position; Or, Displaying the second direction control at the position where the first switching area is located.

3. The method according to claim 1, characterized in that, The method further includes: Canceling the display of the first direction control and the first switching area.

4. The method according to claim 1, characterized in that, The method further includes: Controlling the three-dimensional model of the virtual vehicle to move in the virtual environment for the duration of the first dragging operation; Displaying a picture of the virtual vehicle moving in the virtual environment.

5. The method according to any one of claims 1 to 4, characterized in that, The virtual vehicle is a virtual car, and the virtual object moving on the virtual vehicle includes the virtual object changing seats on the virtual car; The virtual vehicle is a virtual ship, and the virtual object moving on the virtual vehicle includes at least one of walking, crawling, and jumping on the virtual ship; The virtual vehicle is a virtual mount, and the virtual object moving on the virtual vehicle includes at least one of walking, crawling, jumping, and climbing on the virtual mount.

6. A control method for a virtual vehicle and a virtual object, characterized in that, The method includes: Displaying a second direction control for controlling the virtual object to move on the virtual vehicle; In response to the second direction control receiving a third trigger operation, displaying a second switching area; In response to receiving a fourth trigger operation in the second switching area, displaying a first direction control for controlling the virtual object to drive the virtual vehicle to move. Among them, the step of displaying a second switching area in response to the second direction control receiving a third trigger operation includes: in response to the second direction control receiving a second dragging operation, displaying m second switching areas on the dragging path of the second dragging operation or on the extension line of the dragging path, where the m second switching areas correspond one-to-one to m traveling speeds of the virtual vehicle, the m second switching areas are sorted in ascending order of the distance from the second direction control, and the m traveling speeds are sorted in ascending order, and m is a positive integer not less than 1; The step of displaying a first direction control in response to receiving a fourth trigger operation in the second switching area includes: in response to receiving a release operation of the second dragging operation in one of the m second switching areas, displaying the first direction control.

7. The method according to claim 6, characterized in that, The step of displaying a first direction control in response to receiving a fourth trigger operation in the second switching area includes: in response to receiving the fourth trigger operation in the second switching area and the virtual object being located in the driving area of the virtual vehicle, displaying the first direction control.

8. The method according to claim 6, characterized in that, The step of displaying the first direction control includes: displaying the first direction control at a preset position; or, displaying the first direction control at the position where the second switching area is located.

9. The method according to claim 6, characterized in that,The method further includes: canceling the display of the second direction control and the second switching area.

10. The method according to claim 6, wherein, The method further includes: controlling the three-dimensional model of the virtual object to move on the three-dimensional model of the virtual vehicle for the duration of the second dragging operation; displaying a picture of the virtual object moving on the virtual vehicle.

11. The method according to any one of claims 6 to 10, wherein, When the virtual vehicle is a virtual car, the virtual object moving on the virtual vehicle includes the virtual object changing seats on the virtual car; When the virtual vehicle is a virtual boat, the virtual object moving on the virtual vehicle includes at least one of walking, crawling, and jumping of the virtual object on the virtual boat; When the virtual vehicle is a virtual mount, the virtual object moving on the virtual vehicle includes at least one of walking, crawling, jumping, and climbing of the virtual object on the virtual mount.

12. A control device for a virtual vehicle and a virtual object, wherein, The device includes: a display module, configured to display a first direction control for controlling the virtual object to drive the virtual vehicle to move in a virtual environment; The display module is further configured to display a first switching area in response to the first direction control receiving a first trigger operation; The display module is further configured to display a second direction control in response to receiving a second trigger operation in the first switching area, where the second direction control is used to control the virtual object to move on the virtual vehicle; Among them, the display module is further configured to, in response to the first direction control receiving a first trigger operation, display a first switching area, including: the display module is further configured to, in response to the first direction control receiving a first dragging operation, display n first switching areas on the dragging path of the first dragging operation or on the extension line of the dragging path, where the n first switching areas correspond one-to-one to n moving speeds of the virtual object on the virtual vehicle, the n first switching areas are sorted in ascending order of the distance from the first direction control, the n moving speeds are sorted in ascending order, and n is a positive integer not less than 1; The display module is further configured to, in response to receiving a second trigger operation in the first switching area, display a second direction control, including: the display module is further configured to, in response to receiving a release operation of the first dragging operation in one of the n first switching areas, display the second direction control.

13. A control device for a virtual vehicle and a virtual object, wherein, The device includes: A display module, configured to display a second direction control, where the second direction control is used to control the movement of the virtual object on the virtual vehicle; The display module is further configured to, in response to the second direction control receiving a third trigger operation, display a second switching area; The display module is further configured to, in response to receiving a fourth trigger operation in the second switching area, display a first direction control, where the first direction control is used to control the virtual object to drive the virtual vehicle to move; Among them, the display module is further configured to, in response to the second direction control receiving a third trigger operation, display a second switching area, including: the display module is further configured to, in response to the second direction control receiving a second dragging operation, display m second switching areas on the dragging path of the second dragging operation or on the extension line of the dragging path, where the m second switching areas correspond one-to-one to m traveling speeds of the virtual vehicle, the m second switching areas are sorted in ascending order of the distance from the second direction control, the m traveling speeds are sorted in ascending order, and m is a positive integer not less than 1; The display module is further configured to, in response to receiving a fourth trigger operation in the second switching area, display a first direction control, including: the display module is further configured to, in response to receiving a release operation of the second dragging operation in one of the m second switching areas, display the first direction control.

14. A computer device, wherein, The computer device includes: a processor and a memory, where the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the control method of the virtual vehicle and the virtual object as described in any one of claims 1 to 11.

15. A computer-readable storage medium, wherein, The computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the control method of the virtual vehicle and the virtual object as described in any one of claims 1 to 11.

16. A computer program product, wherein, The computer program product includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the control method of the virtual vehicle and the virtual object according to any one of claims 1 to 11.

Citation Information

Patent Citations

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

    CN110876849A

  • Virtual environment picture display method and device, equipment and storage medium

    CN111921194A