Method, device, computer device, and program for controlling virtual objects

The method and device facilitate efficient virtual object control in three-dimensional environments by using shortcut operations within a designated area of the user interface, addressing the inefficiencies of traditional UI widget-based control methods.

JP7589695B2Active Publication Date: 2024-11-26TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2021555308
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-08-23
Filing Date
2020-07-20
Publication Date
2024-11-26
Estimated Expiration
2040-07-20

AI Technical Summary

Technical Problem

Existing methods for controlling virtual objects in three-dimensional virtual environments require users to remember and manually trigger multiple UI widgets, leading to inefficient and delayed actions due to the need to recall widget functions and positions.

Method used

A method and device that utilize a user interface with a virtual environment screen and an interactive panel area, allowing shortcut operations within a designated target area to control virtual objects, eliminating the need to trigger specific UI widgets directly.

Benefits of technology

Enables rapid and intuitive control of virtual objects by allowing users to perform actions through shortcut operations, reducing the cognitive burden of remembering widget functions and positions, thereby enhancing control efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007589695000001
    Figure 0007589695000001
  • Figure 0007589695000002
    Figure 0007589695000002
  • Figure 0007589695000003
    Figure 0007589695000003
Patent Text Reader

Abstract

A method for controlling a virtual object and a related device are provided. The method includes: a step (401) of displaying a user interface including a virtual environment screen and an interactive panel area, where the virtual environment screen is a screen for observing a virtual environment from the viewpoint of a virtual object; a step (402) of accepting a shortcut operation in a target area of ​​the user interface, where the target area includes an area that belongs to the virtual environment screen but does not belong to the interactive panel area; and a step (403) of controlling the virtual object to perform a corresponding action in the virtual environment according to the shortcut operation. By setting the target area in the user interface, a user can perform a shortcut operation in the target area to control the virtual object to perform the corresponding action, thereby eliminating the need to trigger a UI widget corresponding to the action or to memorize the function and position of the UI widget, thereby realizing the control of the virtual object to perform the corresponding action in the virtual environment according to the shortcut operation.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention claims priority to a Chinese patent application filed on August 23, 2019, bearing application number 201910784863.5 and entitled "Method, device, equipment and medium for controlling virtual objects," the entire contents of which are incorporated herein by reference.

[0002] The present invention relates to the field of computers, and more particularly to controlling virtual objects. [Background technology]

[0003] In an application program based on a three-dimensional virtual environment, such as a first-person shooter game, a user can manipulate virtual objects in the virtual environment to perform actions such as walking, running, climbing, shooting, fighting, etc. When a user controls the virtual objects to perform various actions, the user needs to trigger corresponding user interface (UI) widgets in the user interface.

[0004] The user interface has UI widgets corresponding to various actions performed by the virtual object, and the UI widgets corresponding to various actions are located at different positions in the user interface. For example, the direction button is located at the left part of the user interface, and the running button is located at the right part of the user interface. When the virtual object performs many actions, the number of UI widgets corresponding to the actions in the user interface also increases, so that the user needs to remember the actions or functions corresponding to each UI widget and the position corresponding to each UI widget. Summary of the Invention

[0005] The embodiment of the present invention provides a method and a related device for controlling a virtual object, which can solve the problem that a user cannot quickly control a virtual object to perform various actions because a UI widget corresponding to the action needs to be triggered when controlling the virtual object to perform various actions in the related method. The technical means are as follows:

[0006] In one aspect of the present invention, a method for controlling a virtual object executed by a terminal is provided, the method including the steps of: displaying a user interface including a virtual environment screen and an interactive panel area, the virtual environment screen being a screen for observing a virtual environment from the viewpoint of a virtual object; accepting a shortcut operation in a target area of ​​the user interface, the target area including an area that belongs to the virtual environment screen and that does not belong to the interactive panel area; and controlling the virtual object to perform a corresponding action in the virtual environment in accordance with the shortcut operation.

[0007] In another aspect of the present invention, there is provided a control device for a virtual object, the device including: a display module that displays a user interface including a virtual environment screen and an interactive panel area, the virtual environment screen being a screen for observing a virtual environment from the viewpoint of a virtual object; a reception module that receives a shortcut operation in a target area of ​​the user interface, the target area including an area that belongs to the virtual environment screen and that does not belong to the interactive panel area; and a control module that controls the virtual object to perform a corresponding action in the virtual environment in accordance with the shortcut operation.

[0008] In another aspect of the present invention, there is provided a computing device including a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to realize the above-mentioned method for controlling a virtual object.

[0009] Another aspect of the present invention provides a storage medium having a computer program stored thereon, the computer program being used to execute the above-described method for controlling a virtual object.

[0010] In another aspect of the invention, there is provided a computer program product comprising instructions which, when executed on a computer, cause the computer to perform the method for controlling a virtual object as described above.

[0011] The technical solutions according to the embodiments of the present invention have at least the following advantageous effects:

[0012] By setting a target area in the user interface, a user can perform a shortcut operation in the target area to control a virtual object to perform a corresponding action, thereby eliminating the need to trigger a UI widget corresponding to the action and the need to remember the function and position of the UI widget, and realizing the control of a virtual object to perform a corresponding action in a virtual environment according to a shortcut operation. [Brief description of the drawings]

[0013] In order to more clearly describe the technology according to the embodiments of the present invention, the following briefly introduces drawings necessary for the description of the embodiments. Note that the drawings in the following description are merely some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without creative work. [Figure 1] FIG. 1 is a schematic diagram of an interface for controlling a virtual object to turn on a scope in a related art according to one exemplary embodiment of the present invention. [Diagram 2] FIG. 1 is a schematic diagram of an interface for controlling a virtual object to turn on scope according to one exemplary embodiment of the present invention. [Diagram 3] FIG. 1 is a block diagram of an implementation environment according to one exemplary embodiment of the present invention. [Figure 4] 1 is a flowchart of a virtual object control method according to an exemplary embodiment of the present invention. [Diagram 5] FIG. 2 is a schematic diagram of a camera model corresponding to a viewpoint of a virtual object according to one exemplary embodiment of the present invention. [Figure 6] FIG. 2 is a schematic diagram of an interface for establishing a Cartesian coordinate system in a user interface according to one exemplary embodiment of the present invention. [Figure 7] FIG. 2 is a schematic diagram of an interface for controlling a virtual object to stand up according to one exemplary embodiment of the present invention. [Figure 8] FIG. 2 is a schematic diagram of an interface for controlling a virtual object to activate a virtual item in the related art according to one exemplary embodiment of the present invention. [Figure 9] FIG. 2 is a schematic diagram of an interface for controlling a virtual object to activate a virtual item according to one exemplary embodiment of the present invention. [Figure 10] FIG. 2 is a schematic diagram of an interface for controlling a virtual object to throw a virtual item according to one exemplary embodiment of the present invention. [Figure 11] 1 is a flowchart of a method for controlling a virtual object to turn on a scope according to an exemplary embodiment of the present invention. [Figure 12] 1 is a flowchart of a method for controlling a virtual object to turn off scope according to an exemplary embodiment of the present invention. [Figure 13]1 is a flowchart of a method for controlling a virtual object to shoot according to an exemplary embodiment of the present invention. [Figure 14] 1 is a flowchart of a method for controlling a virtual object to stand up and throw a virtual item according to an exemplary embodiment of the present invention. [Figure 15] FIG. 11 is a block diagram of a virtual object control device according to another embodiment of the present invention. [Figure 16] FIG. 1 is a schematic diagram of a configuration of a computer device according to one embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] In order to make the objectives, technical means and advantages of the present invention clearer, the following describes the embodiments of the present invention in more detail with reference to the drawings.

[0015] First, some terminology related to the embodiment of the present invention will be introduced.

[0016] Virtual environment: A virtual environment that is displayed (or provided) when an application program is executed on a terminal. The virtual environment may be a simulation environment for the real world, a semi-simulation and semi-fictional environment, or a purely fictional environment. The virtual environment may be any of a 2D virtual environment, a 2.5D virtual environment, and a 3D virtual environment, but the present invention is not limited thereto. In the following embodiment, the virtual environment is described as a 3D virtual environment.

[0017] Virtual object: refers to a movable object in a virtual environment. The movable object may be a virtual character, a virtual animal, a cartoon or animation character, etc., such as a character, an animal, a plant, a barrel, a wall, a stone, etc. displayed in a three-dimensional virtual environment. Preferably, the virtual object is a three-dimensional model created based on skeletal animation 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.

[0018] Virtual item: refers to an item that a virtual object can use in a virtual environment. Virtual items include virtual weapons used by virtual objects and accessories corresponding to virtual weapons, virtual food, virtual medicine, clothing, decorations, etc. In the embodiment of the present invention, a description will be given taking as an example that the virtual item is a virtual weapon. Virtual weapons include general firearms such as pistols, rifles, and sniper rifles, bows and arrows, crossbows, spears, daggers, swords, knives, axes, bombs, missiles, etc.

[0019] First-person Shooting (FPS) game: refers to a shooting game that a user can play from a first-person perspective. A screen of a virtual environment in a game is a screen that observes the virtual environment from the perspective of a first virtual object. In the game, at least two virtual objects play a single-round battle mode game in the virtual environment. The virtual objects avoid attacks made by other virtual objects and dangers in the virtual environment (e.g., poison gas, swamps, etc.) in order to survive in the virtual environment. When the life value of a virtual object in a virtual environment becomes zero, the life of the virtual object in the virtual environment ends, and the virtual object that finally lives in the virtual environment becomes the winner. Preferably, the battle begins when a first client joins the battle and ends when a last client leaves the battle, and each client can control one or more virtual objects in the virtual environment. Preferably, the competitive mode of the battle may include a single-player battle mode, a double-player team battle mode, or a multiplayer team battle mode, but the embodiment of the present invention is not limited to the battle mode.

[0020] Trigger widget: Refers to a user interface (UI), and refers to any visual widget or element that appears in the user interface of an application program, including widgets such as images, input boxes, text boxes, buttons, labels, etc. The UI widget responds to user operations, and for example, when a user triggers an attack widget corresponding to a gun, the UI widget controls a virtual object to attack using the gun.

[0021] In the present invention, a "equipped, carried, or worn" virtual item refers to a virtual item that is owned by a virtual object, such as a virtual object carrying a bag, a bag having a pouch, a virtual item stored in the virtual object's bag, or a virtual object using a virtual item.

[0022] The method according to the present invention may be applied to a virtual reality application program, a three-dimensional map program, a military simulation program, a First-person Shooting (FPS) game, a Multiplayer Online Battle Arena (MOBA) game, etc. In the following embodiment, an in-game application is taken as an example.

[0023] Games based on virtual environments are often composed of one or more maps of the game world. The virtual environment in the game simulates a scene in the real world. The user operates the virtual object in the game to perform actions such as walking, running, jumping, shooting, fighting, driving, throwing, standing up, and lying on one's stomach. In a highly interactive game, multiple users can team up to play a competitive game online. In an application program corresponding to the game, UI widgets are set in the user interface, and the user controls the virtual object to perform various actions in the virtual environment by triggering various UI widgets. For example, when the user triggers a UI widget (direction button) corresponding to a movement function, the user controls the virtual object to move in the virtual environment. If the virtual object uses a pistol, the user controls the virtual object to attack in the virtual environment using the pistol when touching a UI widget (shoot button) corresponding to a shooting function (a function of attacking using a virtual weapon). Because the UI widgets are distributed in various areas of the user interface, the user needs to remember the function of each UI widget and the area in which it is located so that the user can quickly control the virtual object to perform the corresponding action.

[0024] The related art proposes a method for controlling a virtual object to turn on a scope. FIG. 1 is a schematic diagram of an interface for controlling a virtual object to turn on a scope in the related art according to one exemplary embodiment of the present invention. As shown in FIG. 1(a), an interface 10 for turning on a scope displays an aiming widget 101, an attack widget 103, and a movement widget 104. For example, the aiming widget 101 is located in the right part area of ​​the interface 10 for turning on a scope, and is located below the corresponding mini-map of the virtual environment. Preferably, the number of aiming widgets 101 in the interface 10 is one. In some embodiments, the number of aiming widgets 101 is two or more, but the present invention is not limited to the number and positions of the aiming widgets 101. Preferably, a user may customize the positions and numbers of the aiming widgets 101. For example, the number of aiming widgets 101 located in the right part area of ​​the interface 10 for turning on a scope set by a user is three. Preferably, when using a virtual item such as a firearm that needs to be aimed at a target, the user controls the virtual object to turn on the scope 105 by triggering the aim widget 101 .

[0025] The attack widget 103 is located in the left part area and the right part area of ​​the interface 10 for turning on the scope, respectively, and the attack widget 103 located in the left part area of ​​the interface 10 is located to the upper left of the movement widget 104. Preferably, the number of attack widgets 103 in the interface 10 is two. In some embodiments, the number of attack widgets 103 may be one or more than two, but the present invention is not limited to the number and positions of the attack widgets 103. Preferably, the user may customize the positions and the number of the attack widgets 103. For example, the number of attack widgets 103 set by the user is three, and the attack widgets 103 are located in the left part area, the right part area, and the center area of ​​the interface 10 for turning on the scope, respectively.

[0026] The movement widget 104 is located in the area of ​​the left part of the interface 10 for turning on the scope, and is located to the right below the attack widget 103. Preferably, the user can trigger the movement widget 104 to control the virtual object to move in the virtual environment.

[0027] After the virtual object turns on the scope 105, the user interface is as shown in FIG. 1B, where the off widget 102 is further displayed in the scope-on interface 11. The off widget 102 is located at the location of the original aiming widget 101, that is, the display style of the aiming widget 101 is switched to the display style of the off widget 102. At this time, the user controls the scope 105 corresponding to the firearm used by the virtual object to be turned on, and the firearm changes from being displayed in the left part area of ​​the user interface to being displayed in the center of the user interface. The scope 105 is displayed in the center of the scope-on interface 11 and is in an aiming state. When the user triggers the off widget 102, the scope 105 is turned off, and the scope-on interface 11 changes to the interface 10 for turning on the scope shown in FIG. 1A.

[0028] In the method according to the above embodiment, when the user controls the virtual object to perform a corresponding action, the user needs to trigger the corresponding UI widget. For example, when the user controls the virtual object to turn on the scope 105, the user needs to trigger the aiming widget 101, and when the user controls the virtual object to stop the action, the user needs to trigger the corresponding off widget 102. This procedure is cumbersome, and the user needs to remember the function corresponding to each UI widget and the location where it is located. If the user forgets the UI widget corresponding to the action and the location corresponding to the UI widget, the virtual object will be delayed from performing the corresponding action.

[0029] The present invention provides a method for controlling a virtual object. Figure 2 is a schematic diagram of an interface for controlling a virtual object to turn on a scope according to one exemplary embodiment of the present invention.

[0030] An example is taken to describe a user controlling a virtual object to turn on an accessory corresponding to a virtual item in a virtual environment. In one example, the virtual item used by the virtual object is a sniper rifle, and the accessory corresponding to the virtual item is a scope 113. As shown in FIG. 1, a aiming widget 101 and an off widget 102 are displayed in the user interface, whereas the scope-on interface 110 in FIG. 2 does not display any widget for turning on the scope 113. A user may control a virtual object to quickly turn on the scope 113 by a shortcut operation. Preferably, the shortcut operation is a double tap operation. Preferably, a target area 131 is set in the user interface, and the target area 131 includes an area that belongs to the virtual environment screen and does not belong to the interactive panel area 112. For example, the target area 131 is a right part area in the user interface, and the right part area is an area that does not belong to the interactive panel area 112. Preferably, after the user performs a double-tap operation on the target area 131, the user interface displays the scope-on interface 110, and the scope 113 of the virtual item (sniper rifle) 111 used by the virtual object is located in the center of the user interface and in an aiming state, where the scope 113 is already turned on, similar to the effect of the user turning on the scope 105 by tapping the aiming widget 101 as shown in (b) of FIG. 1.

[0031] Preferably, when turning off the scope 113, the user may use a shortcut operation to turn on the scope 113. For example, the shortcut operation for turning off the scope 113 is a double tap operation. Preferably, the target area 131 for turning off the scope 113 and the target area 131 for turning on the scope 113 may be the same area or different areas. When the user performs a double tap operation on the target area 131, the virtual object controls to turn off the scope 113. Preferably, the virtual item (sniper rifle) used by the virtual object changes to a state before turning on the scope 113.

[0032] Preferably, the user may set the range of the target area. For example, the user sets a circular area with a radius of 10 units as the target area, with the center of the user interface as the center of the circle. When the user performs a shortcut operation within the range of the target area 131, the user can control the virtual object to perform an operation corresponding to the shortcut operation. Preferably, the shortcut operation may be at least one of a single tap operation, a double tap operation, a swipe operation, a drag operation, a long press operation, a double tap and long press operation, and a two-finger swipe operation. Preferably, the user may set a corresponding operation widget when the virtual object performs an operation. For example, when the user controls a virtual object using a shortcut operation, the user may disable the display of a widget corresponding to the operation in the user interface, or set the position and number of widgets corresponding to the operation. Note that the user controls the virtual object to perform a corresponding operation by performing different shortcut operations in the target area 131.

[0033] 3 shows a block diagram of a computer system configuration according to one exemplary embodiment of the present invention. The computer system 100 includes a first terminal 120, a server 140, and a second terminal 160.

[0034] The first terminal 120 installs and executes an application program that supports the virtual environment. The application program may be any of a virtual reality application program, a three-dimensional map program, a military simulation program, an FPS game, a MOBA game, and a multiplayer gun battle survival game. The first terminal 120 is a terminal used by a first user, and the first user uses the first terminal 120 to control a virtual object in the virtual environment to perform an action. The action includes, but is not limited to, adjusting a body posture, crawling, walking, running, riding, jumping, driving, shooting, throwing, and using any of virtual items. For example, the virtual object is a virtual character such as a simulated character object or an animated character object.

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

[0036] The server 140 includes at least one of one server, multiple servers, a cloud computing platform, and a virtualization center. For example, the server 140 includes a processor 144 and a memory 142, and the memory 142 further includes a display module 1421, a control module 1422, and a receiving module 1423. The server 140 is used to provide background services to application programs supporting a three-dimensional virtual environment. Preferably, the server 140 performs primary computing tasks, and the first terminal 120 and the second terminal 160 perform secondary computing tasks, or the server 140 performs secondary computing tasks, and the first terminal 120 and the second terminal 160 perform primary computing tasks, or the server 140, the first terminal 120, and the second terminal 160 adopt a distributed computing architecture to perform collaborative computing.

[0037] The second terminal 160 installs and executes an application program that supports the virtual environment. The application program may be any of a virtual reality application program, a three-dimensional map program, a military simulation program, an FPS game, a MOBA game, and a multiplayer gun battle survival game. The second terminal 160 is a terminal used by a second user, and the second user uses the second terminal 160 to control a virtual object in the virtual environment to perform an action. The action includes, but is not limited to, adjusting a body posture, crawling, walking, running, riding, jumping, driving, shooting, throwing, and using any of virtual items. For example, the virtual object is a virtual character such as a simulated character object or an animated character object.

[0038] Preferably, the virtual object controlled by the first user and the virtual object controlled by the second user are in the same virtual environment. Preferably, the virtual object controlled by the first user and the virtual object controlled by the second user may belong to the same team, the same organization, have a friendship relationship, or have temporary communication permissions.

[0039] Preferably, the application programs installed on the first terminal 120 and the second terminal 160 are the same, or the application programs installed on the two terminals are the same type of application programs on different control system platforms. The first terminal 120 may generally mean one of a plurality of terminals, and the second terminal 160 may generally mean one of a plurality of terminals, and in this embodiment, the first terminal 120 and the second terminal 160 are simply taken as an example to describe. The device types of the first terminal 120 and the second terminal 160 may be the same or different. The device types include at least one of a smartphone, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop computer, and a desktop computer. In the following embodiment, the terminal includes a smartphone as an example to describe.

[0040] As will be appreciated by those skilled in the art, the number of the above terminals may be more or less than the above number. For example, the number of the above terminals may be only one, or may be tens or hundreds, or more. The embodiment of the present invention is not limited to the number and device types of the terminals.

[0041] 4 is a flowchart of a virtual object control method according to an exemplary embodiment of the present invention. The method may be applied to the first terminal 120, the second terminal 160, or other terminals in the computer system shown in FIG. 3. The method includes the following steps.

[0042] A user interface including a virtual environment screen and an interactive panel area is displayed in step 401. The virtual environment screen is a screen for observing the virtual environment from the viewpoint of a virtual object.

[0043] Preferably, the virtual environment screen is a screen for observing the virtual environment from a viewpoint of a virtual object. The viewpoint (viewing angle) means a viewpoint when observing a virtual object in the virtual environment from a first person viewpoint or a third person viewpoint. Preferably, in an embodiment of the present invention, the viewpoint is a viewpoint when observing a virtual object in the virtual environment by a camera model.

[0044] Preferably, the camera model automatically follows the virtual object in the virtual environment, i.e. when the position of the virtual object in the virtual environment changes, the camera model changes simultaneously to follow the position of the virtual object in the virtual environment, and the camera model is always within a predetermined distance range of the virtual object in the virtual environment. Preferably, in the automatic following process, the relative position between the camera model and the virtual object does not change.

[0045] The camera model means a three-dimensional model of the surroundings of a virtual object in a virtual environment. When a first-person viewpoint is adopted, the camera model is located near the head of the virtual object or at the head of the virtual object. When a third-person viewpoint is adopted, the camera model is located behind the virtual object and may be fixed relative to the virtual object or may be located at any position at a predetermined distance away from the virtual object. The camera model may be used to observe a virtual object located in a virtual environment from various angles. Preferably, when the third-person viewpoint is a first-person over-the-shoulder viewpoint, the camera model is located behind the virtual object (e.g., the head and shoulders of the virtual object). Preferably, in addition to the first-person viewpoint and the third-person viewpoint, the viewpoint further includes other viewpoints such as a top-view viewpoint. When a top-view viewpoint is adopted, the camera model may be located in the air above the head of the virtual object. The top-view viewpoint is a viewpoint for observing the virtual environment as if viewed planarly from the air. Preferably, the camera model is not actually displayed in the virtual environment, that is, the camera model is not displayed in the virtual environment displayed in the user interface.

[0046] An example will be described in which the camera model is located at an arbitrary position at a predetermined distance from the virtual object. Preferably, one virtual object corresponds to one camera model, and the camera model may rotate with the virtual object as the center of rotation. For example, the camera model is rotated with an arbitrary point of the virtual object as the center of rotation, and during the rotation of the camera model, not only does it rotate by angle, but it also shifts by displacement. During the rotation, the distance between the camera model and the center of rotation is maintained as it is, that is, the camera model rotates on the surface of the sphere with the center of rotation as the center of the sphere. Here, the arbitrary point of the virtual object may be the head, the torso, or any point around the virtual object, but the embodiment of the present invention is not limited thereto. Preferably, when the camera model observes the virtual object, the orientation of the center of the viewpoint (viewing angle) of the camera model is the direction in which the point on the spherical surface where the camera model is located faces the center of the sphere.

[0047] Preferably, the camera model may view the virtual object at angles in different directions of the virtual object.

[0048] For example, as shown in Fig. 5, one point of a virtual object 11 is determined as a rotation center 12, and the camera model rotates around the rotation center 12. Preferably, an initial position is set for the camera model, and the initial position is a position behind and above the virtual object (for example, a position behind the head). For example, as shown in Fig. 5, when the initial position is position 13 and the camera model rotates to position 14 or position 15, the viewpoint direction of the camera model changes with the rotation of the camera model.

[0049] Preferably, the virtual environment displayed on the virtual environment screen includes at least one element of a mountain, a plain, a river, a lake, an ocean, a desert, a sky, a plant, a building, and a vehicle.

[0050] Preferably, the user interface includes an interactive panel area 112, as shown in FIG. 2. In the interactive panel area 112, UI widgets for controlling a virtual object to perform an action, a message sending widget, a voice widget, a facial expression widget, a setting widget, and the like are arranged. By using the above widgets, a user can control a virtual object to perform a corresponding action in a virtual environment, send a message (including a text message, a voice message, and an emoji message) to a teammate in the same team, set an action attribute (e.g., a running speed) of a virtual object in a virtual environment or an attribute (e.g., a sensitivity, an attack range, a damage, and the like of a firearm) of a virtual weapon, or display a position in the virtual environment of a virtual object controlled by a user (e.g., a miniature map of the virtual environment is displayed in the user interface). The user can know the current state of the virtual object in real time through the interactive panel area 112, and can control the virtual object to perform a corresponding action in real time through the interactive panel area 112. In some embodiments, the shape of the interactive panel area is rectangular or circular, or the shape of the interactive panel area corresponds to the shape of a UI widget in the user interface, but the present invention is not limited to the shape of the interactive panel area.

[0051] In step 402, a shortcut operation is accepted in a target area of ​​a user interface, the target area including an area belonging to a virtual environment screen and not belonging to an interactive panel area.

[0052] Preferably, the shortcut operation includes at least one of a double tap operation, a long double tap operation, a horizontal two-finger swipe operation, and a vertical two-finger swipe operation.

[0053] Preferably, the area to which the virtual environment screen belongs is area A, and the interactive panel area is area B. The target area includes the following forms.

[0054] In the first embodiment, the target region is a region corresponding to region A.

[0055] The target area includes an area that belongs to the virtual environment screen and does not belong to the interactive panel area. For example, as shown in FIG. 2, a user may perform a shortcut operation in an area that does not include UI widgets and a mini map, such as an area between a movement widget and an attack widget, which is an area that belongs to the virtual environment screen and does not belong to the interactive panel area.

[0056] In the second embodiment, the target region is a region corresponding to region A and region B.

[0057] The target area includes an area corresponding to the virtual environment screen and the interactive panel area. For example, as shown in FIG. 2, the user may perform a shortcut operation in both the virtual environment screen and the corresponding area of ​​the interactive panel area, for example, the user may perform a shortcut operation in the area where the UI widget and the mini map are located, that is, the user may perform a shortcut operation at any position of the user interface 110.

[0058] In the third embodiment, the target region is a sub-region of region A and a region corresponding to region B.

[0059] The target region includes a region corresponding to a part of the virtual environment screen and a region corresponding to an interactive panel region. For example, as shown in FIG. 2, a user may perform a shortcut operation in the right part region of the virtual environment screen and the interactive panel region, that is, a user may perform a shortcut operation in the interactive panel region corresponding to a UI widget in the right part region of the user interface 110 and the left part region of the user interface 110. Preferably, the region corresponding to the part of the virtual environment screen may be any of the left part region, the right part region, the upper part region, and the lower part region of the virtual environment screen.

[0060] In the fourth embodiment, the target region is a subregion of region B and a region corresponding to region A.

[0061] The target area is an area corresponding to the virtual environment screen and an area corresponding to a part of the interactive panel area. As shown in Fig. 2, the user may perform a shortcut operation in the area corresponding to the virtual environment screen and the right interactive panel area, that is, the user may perform a shortcut operation in an area not including the left interactive panel area of ​​the user interface 110. Preferably, the part of the interactive panel area may be any of the left interactive panel area, the right interactive panel area, the upper interactive panel area, and the lower interactive panel area.

[0062] In the fifth embodiment, the target region is a region corresponding to a partial region of region A and a partial region of region B.

[0063] The target area is an area corresponding to a part of the virtual environment screen and an area corresponding to a part of the interactive panel area. As shown in FIG. 2, the user may perform a shortcut operation in an area corresponding to the left virtual environment screen and the left interactive panel area, i.e., the user may perform a shortcut operation in an area in the left part of the user interface 110. For example, the user may perform a shortcut operation in an area corresponding to the right virtual environment screen and the left interactive panel area, i.e., the user may perform a shortcut operation in an area not including the area corresponding to the right interactive panel area and the area corresponding to the left virtual environment screen. The user may perform a shortcut operation in a movement widget and an attack widget, or in an area corresponding to the right virtual environment screen.

[0064] Preferably, depending on the form of the expression of the target region, the interactive panel region may not be displayed on the user interface, that is, the interactive panel region may be hidden.

[0065] 6 is a schematic diagram of an interface for establishing a Cartesian coordinate system in a user interface according to an exemplary embodiment of the present invention. For example, the Cartesian coordinate system is established with the center of the user interface 130 as the origin, and the target area 131 is disposed in the right part of the user interface 130 between the first and fourth quadrants of the Cartesian coordinate system. The shape of the target area 131 is elliptical. In one example, when the user performs a double tap operation in the target area 131, the virtual object controls to turn on an accessory corresponding to a virtual item.

[0066] Preferably, the target area 131 may be any area other than the interactive panel area in the user interface 130, for example, the upper area of ​​the user interface 130, which means the area corresponding to the part between the left end and the UI widget in the right part of the user interface 130. Alternatively, the target area 131 may be an area corresponding to the position of a virtual item used by a virtual object, for example, the target area 131 is an area corresponding to a virtual weapon (sniper rifle) used by a virtual object.

[0067] For example, the user performs different shortcut operations in the target area 131 to control the virtual object to perform different actions. For example, the user performs a double-tap operation in the target area 131 to control the virtual object to turn on an accessory corresponding to a virtual item (e.g., a scope of a sniper rifle used by the virtual object).

[0068] In step 403, according to the shortcut operation, the virtual object is controlled to perform a corresponding action in the virtual environment.

[0069] Preferably, when the body posture of the virtual object satisfies a first condition, the virtual object is controlled to adjust the body posture in the virtual environment according to the shortcut operation. Preferably, the first condition includes that the body posture of the virtual object is in a crouching state, and the shortcut operation includes a two-finger vertical swipe operation. The virtual object may perform actions such as running, jumping, climbing, standing up, crawling, etc. in the virtual environment. The body posture of the virtual object in the virtual environment may be lying on the stomach, crouching, standing up, sitting, lying down, kneeling, etc. For example, an example of a virtual object standing up in the virtual environment will be described. FIG. 7 is a schematic diagram of an interface for controlling a virtual object to stand up according to one exemplary embodiment of the present invention.

[0070] When the body posture of the virtual object is in a crouching state, the user interface 150 displays the upward viewpoint of the virtual object, i.e., a screen corresponding to the sky, since the virtual environment screen is a screen for observing the virtual environment from the viewpoint of the virtual object. Preferably, the user's fingers simultaneously slide upward on the user interface 150 (as shown by the arrow in FIG. 7), and the virtual environment screen in the user interface 150 changes with the user's swipe operation, and the proportion of the area occupied by the screen corresponding to the sky in the user interface 150 decreases. Then, the viewpoint of the virtual object becomes horizontal, and the user interface 150 includes the ground and scenery of the virtual environment, and the user controls the virtual object to stand up in the virtual environment by a vertical swipe operation with two fingers.

[0071] In some embodiments, a user may use a two-finger vertical swipe to control a virtual object to jump or climb in the virtual environment, or a user may use a double-tap or other shortcut to control a virtual object to stand up in the virtual environment (if the virtual object has a crouching body posture in the virtual environment), but the present invention is not limited thereto.

[0072] Preferably, when the use state of the virtual item satisfies a second condition, the virtual object is controlled to turn on the accessory corresponding to the virtual item in the virtual environment according to the shortcut operation. Preferably, the second condition includes that the virtual item is in an automatically enabled state, and the shortcut operation includes a double tap operation. The automatically enabled state means that the virtual item can be automatically enabled (activated) without triggering an operation. For example, a submachine gun automatically attacks or shoots when the scope 113 is turned on without the user needing to trigger an attack widget or a shoot widget. As shown in FIG. 2, an example is taken to describe that the virtual item is a virtual weapon and the accessory corresponding to the virtual item is a scope. For example, the virtual weapon 111 used by the virtual object controlled by the user is a submachine gun. When the virtual item is in an automatically enabled state, the user performs a double tap operation in the target area to turn on the scope 113 corresponding to the submachine gun in the virtual environment. The submachine gun is displayed in the center of the user interface 110, and the scope 113 is also displayed in the center of the user interface 110.

[0073] Preferably, when the virtual item is a virtual weapon, the accessory corresponding to the virtual item may be a clip. For example, take the virtual weapon as an example of a firearm. When the virtual weapon is in an automatically activated state, the user performs a double tap operation on the target area to control the virtual object to equip the firearm with a clip in the virtual environment.

[0074] In some embodiments, a user may control a virtual object to equip a virtual item accessory by a double tap operation, or a user may control a virtual object to turn on an accessory corresponding to a virtual item in a virtual environment by a double tap and hold operation or other shortcut operation, but the present invention is not limited thereto.

[0075] Preferably, when the use state of the virtual item satisfies a third condition, the shortcut operation is performed to control the virtual object to turn on the virtual item in the virtual environment. Preferably, the third condition includes that the virtual item is in a state of manual activation, and the shortcut operation includes a double tap and long press operation. The state of manual activation means that the user needs to trigger an operation to activate the virtual item. For example, the user needs to trigger an attack widget to control the virtual object to use a virtual weapon to attack. FIG. 8 is a schematic diagram of an interface for controlling a virtual object to activate a virtual item in the related art according to one exemplary embodiment of the present invention. The attack interface 12 displays two attack widgets 103 located in the left and right areas of the user interface, respectively. For example, the virtual item used by the virtual object controlled by the user is a submachine gun, and the user needs to trigger at least one of the two attack widgets 103 to control the virtual object to attack (i.e., shoot with the submachine gun).

[0076] FIG. 9 is a schematic diagram of an interface for controlling a virtual object to activate a virtual item according to one exemplary embodiment of the present invention. The attack interface 170 displays a target area 131 and an attack widget 114. A user may control a virtual object to activate a virtual item by performing a double tap and long press operation in the target area 131. For example, an example is taken in which the virtual item is a sniper rifle and the target area 131 is an elliptical area in the right part of the attack interface 170. When a user performs a double tap and long press operation in the target area 131, the user controls the virtual object to attack (i.e., shoot) using the sniper rifle. Preferably, the user may control the virtual object to attack using the sniper rifle by triggering the attack widget 114. Preferably, the user may set the number of attack widgets 114. For example, the number of attack widgets 114 in the user interface may be 2, or may be the number of attack widgets 114 set as default in the application program corresponding to the game, or may be the number of attack widgets 114 intelligently set by the back-end server based on the user's usage habits and history records, but the present invention is not limited thereto. Preferably, the user may adjust the position of the attack widget 114 in the user interface. For example, the position of the attack widget 114 in the user interface may be adjusted in real time according to the actual game situation, so that the position of the attack widget 114 does not cause visual obstruction to the user.

[0077] In some embodiments, a user may control a virtual object to run continuously in the virtual environment by performing a double tap and hold operation, or a user may control a virtual object to activate a virtual item in the virtual environment by performing a double tap operation or other shortcut operation, but the present invention is not limited thereto.

[0078] Preferably, when the use state of the virtual item satisfies a fourth condition, the virtual object is controlled to throw the virtual item in the virtual environment according to the shortcut operation. Preferably, the fourth condition includes that the virtual object is holding the virtual item, and the shortcut operation includes a two-finger lateral swipe operation. The virtual object holding the virtual item means that the virtual object is equipped with the virtual item. The virtual item is in a pouch of the bag of the virtual object, or is used by the virtual object. For example, the virtual item is a bomb as an example.

[0079] 10 is a schematic diagram of an interface for controlling a virtual object to throw a virtual item according to one exemplary embodiment of the present invention. A bomb 115 owned by the virtual object is displayed in the throwing interface 190. Preferably, when a user's fingers simultaneously slide to the right in the target area and the user's sliding stops, the virtual object controls to throw the bomb owned by the user. Preferably, the user may control the virtual object to throw the bomb by triggering the weapon widget 115. Preferably, when the virtual object is in a crouching state, the user controls the virtual object to stand up and throw the bomb by a two-finger lateral swipe operation.

[0080] In some embodiments, a user may control a virtual object to pick up a virtual item in the virtual environment or detach a virtual item equipped to the virtual object by using a two-finger vertical swipe gesture, and a user may control a virtual object to throw a virtual item in the virtual environment by using a two-finger horizontal swipe gesture or other shortcut gesture, but the present invention is not limited thereto.

[0081] As described above, by setting a target area in the user interface, a user can perform a shortcut operation in the target area to control a virtual object to perform a corresponding operation, thereby eliminating the need to trigger a UI widget corresponding to the operation and the need to remember the function and position of the UI widget, and realizing the control of a virtual object to perform a corresponding operation in a virtual environment according to a shortcut operation.

[0082] 11 is a flowchart of a method for controlling a virtual object to turn on a scope according to an exemplary embodiment of the present invention. The method may be applied to the first terminal 120, the second terminal 160, or other terminals of the computer system shown in FIG. 3. The method includes the following steps:

[0083] In step 1101, the automatic shooting state is selected and a double tap operation is accepted.

[0084] For example, take the virtual item as a sniper rifle as an example. If the state of the sniper rifle selected by the user is an automatic shooting state, or the user sets the sniper rifle to an automatic shooting state, that is, if the virtual object is equipped with a sniper rifle, the sniper rifle is already in an automatic shooting state, so there is no need to set it.

[0085] In step 1102, it is determined whether or not the operation is a double tap operation.

[0086] For example, a shortcut operation for turning on a scope is a double tap operation. After a user performs a double tap operation, an application program corresponding to a game judges whether the operation is a double tap operation or not. Preferably, the application program acquires the time of a first tap operation and the time of a second tap operation by the user, and judges that the operation is a double tap operation if the time interval between the time of the first tap operation and the time of the second tap operation is smaller than a time interval threshold. For example, the time interval threshold is 500 milliseconds, and if the time interval between the time of the first tap operation and the time of the second tap operation is smaller than 500 milliseconds, the accepted operation is judged to be a double tap operation.

[0087] In step 1103, it is determined whether the double tap operation is in the rotation area.

[0088] In some embodiments, the target area is also referred to as a rotation area, and the present invention is not limited to the name of the target area. Preferably, if the area that receives the double tap operation is within the range of the rotation area, the double tap operation is determined to be within the rotation area. For example, the user interface is a rectangular area with a length of 100 units and a width of 50 units. For example, the range of the rotation area is a rectangular area formed with a length greater than 50 units and less than 100 units and a width of 50 units, that is, the area of ​​the right part when the center of the user interface is the boundary line. As shown in FIG. 6, an orthogonal coordinate system is established with the center of the user interface as the origin. The areas corresponding to the first and fourth quadrants of the orthogonal coordinate system are rotation areas, and if the target area 131 is within the range of the areas corresponding to the first and fourth quadrants, the user can perform a shortcut operation in the target area 131 to control a virtual object.

[0089] In step 1104, a scope on operation is performed.

[0090] For example, take the virtual item as a sniper rifle as an example. When the sniper rifle is in an automatic shooting state, after receiving a user's double tap operation on the target area, the application program corresponding to the game controls the virtual object to turn on the scope of the sniper rifle.

[0091] 12 is a flowchart of a method for controlling a virtual object to turn off the scope according to an exemplary embodiment of the present invention. The method may be applied to the first terminal 120, the second terminal 160 or other terminals of the computer system shown in FIG. 3. The method includes the following steps:

[0092] In step 1201, a scope off operation is accepted.

[0093] For example, take the virtual item as a sniper rifle as an example, when a user wants to turn off the scope of the sniper rifle, the user performs a shortcut operation on the rotation area of ​​the user interface, and the application program turns off the scope of the sniper rifle according to the user's shortcut operation.

[0094] In step 1202, it is determined whether or not the operation is a double tap operation.

[0095] In one example, the time interval threshold is 900 milliseconds, and the time interval between the first tap operation and the second tap operation of the user is 500 milliseconds, and if it is less than the time interval threshold, the two tap operations are determined to be double tap operations.Preferably, if the time interval between the first tap operation and the second tap operation is 1 second, the application program records this tap operation as a first tap event, and the user performs two tap operations again, and recalculates the time interval between the two tap operations based on the second tap event.

[0096] In step 1203, it is determined whether the double tap operation is in the rotation area.

[0097] For example, the length of the user interface is 100 units long and the width is 50 units long. In one example, the extent of the rotation area is a rectangular area with a length between 20 and 30 units long and a width of 45 units long. When the user performs a double tap operation within the area, the application program determines that the double tap operation is within the rotation area.

[0098] In step 1204, a scope off operation is performed.

[0099] In one example, when the scope of the sniper rifle is in an on state, the user performs a double tap operation in the rotation area to control the virtual object to turn off the scope of the sniper rifle.

[0100] 13 is a flowchart of a method for controlling a virtual object to shoot according to an exemplary embodiment of the present invention. The method may be applied to the first terminal 120, the second terminal 160, or other terminals of the computer system shown in FIG. 3. The method includes the following steps:

[0101] In step 1301, manual shooting is selected.

[0102] Preferably, the user may set the use mode of the virtual item to manual activation mode. Or, when the user selects a virtual item, the virtual item is already in manual activation mode (default setting of the virtual item). Manual activation mode means that the user needs to trigger a corresponding UI widget or perform a corresponding operation to make the virtual object turn on the virtual item. For example, take the virtual item as an example of a submachine gun. When the user selects manual shooting as the shooting mode of the submachine gun and triggers the shooting or attack widget, the user controls the virtual object to use the submachine gun to attack (i.e., fire bullets with the submachine gun).

[0103] In step 1302, it is determined whether or not the operation is a double tap operation.

[0104] In one example, if the time interval between a user's first tap operation and a second tap operation is 300 milliseconds, which is less than the time interval threshold of 500 milliseconds, the user's first tap operation and the second tap operation are determined to be a double tap operation.

[0105] In step 1303, it is determined whether the double tap operation is in the rotation area.

[0106] For example, the length of the user interface is 100 units long and the width is 50 units long. In one example, the rotation area is a rectangular area with a length greater than 50 units long and less than 100 units long and a width of 50 units long, i.e., the right part of the user interface when the center of the user interface is the boundary. The user performs a double tap operation in the rotation area.

[0107] In step 1304, it is determined whether a long press operation has been accepted.

[0108] After receiving the double tap operation in the target area, the user needs to perform a press operation in the target area (i.e., the rotation area). If the duration of the press operation is greater than the duration threshold, it is determined that a long press operation is received in the target area. For example, if the duration threshold is 200 milliseconds and the duration of the user's press operation is 300 milliseconds and is greater than the duration threshold, it is determined that the press operation performed by the user is a long press operation.

[0109] In step 1305, a shoot operation is performed.

[0110] After the user performs a double tap and a long press operation on the target area, the virtual object is controlled to perform a shooting operation according to the double tap and long press operation. In one example, the user performs a double tap and long press operation on the target area, and the virtual object is controlled to perform a shooting operation using a submachine gun.

[0111] In step 1306, it is determined whether or not to stop the long press operation.

[0112] For example, take the virtual item as a submachine gun as an example. When a user controls the virtual object to shoot using the submachine gun, the submachine gun adjusts the shooting time according to the user's long press operation time. For example, in the shooting state, if the duration of the user's long press operation is 3 seconds, the shooting time of the submachine gun is 3 seconds.

[0113] In step 1307, a stop shooting operation is executed.

[0114] Preferably, when the double tap and long press operation on the target area is stopped, the virtual object is controlled to turn off the virtual item.

[0115] In some embodiments, the double tap and long press operation is also referred to as a double tap and a long press operation, and the present invention is not limited to the name of the shortcut operation. Note that, the double tap and long press operation performed by the user in the target area is a double tap operation first, and then a long press operation. In the virtual item activation state, the long press period is the period during which the virtual item is turned on, and when the long press operation is stopped, the virtual item is turned off.

[0116] 14 is a flowchart of a method for controlling a virtual object to stand up and throw a virtual item according to an exemplary embodiment of the present invention. The method may be applied to the first terminal 120, the second terminal 160, or other terminals of the computer system shown in FIG. 3. The method includes the following steps:

[0117] In step 1401, a two-finger swipe operation is accepted.

[0118] A user performs a two-finger swipe action on the user interface, preferably comprising a two-finger horizontal swipe action and a two-finger vertical swipe action.

[0119] In step 1402, it is determined whether two fingers are on the user interface at the same time.

[0120] The application program determines whether two contact points corresponding to the user's two fingers are on the user interface at the same time, and preferably, if the two contact points are not on the user interface at the same time, it may be determined that the operation is a double tap operation.

[0121] In step 1403, it is determined whether two fingers are located in the left and right regions of the user interface, respectively.

[0122] Preferably, the target area includes a first target area and a second target area, and the application program determines whether two contact points corresponding to two fingers are located in the first target area and the second target area, respectively. Preferably, the contact points corresponding to the fingers of the user's left hand are in the first target area (i.e., the area of ​​the left part of the user interface), and the contact points corresponding to the fingers of the right hand are in the second target area (i.e., the area of ​​the right part of the user interface).

[0123] In step 1404, the sliding displacement of the two fingers is determined.

[0124] The application program determines the sliding displacement of two contact points corresponding to two fingers on the user interface. Preferably, the sliding displacement of the two contact points is a horizontal sliding displacement or a vertical sliding displacement. The horizontal sliding displacement means sliding in a direction parallel to the length direction of the user interface, and the vertical sliding displacement means sliding in a direction parallel to the width direction of the user interface.

[0125] In step 1404a, it is determined whether the abscissa displacement of the two-finger slide reaches an abscissa displacement threshold.

[0126] For example, a two-finger lateral swipe operation is taken as an example for description. Preferably, when two fingers of a user contact a target area in a user interface, a first start position coordinate of a first contact point in a first target area and a second start position coordinate of a second contact point in a second target area are obtained, when the sliding of the first contact point and the second contact point is stopped, a first end position coordinate of the first contact point in the first target area and a second end position coordinate of the second contact point in the second target area are obtained, and when the horizontal coordinate displacement of the first contact point is greater than a horizontal coordinate displacement threshold and the horizontal coordinate displacement of the second contact point is greater than a horizontal coordinate displacement threshold, it is determined that a two-finger lateral swipe operation has been accepted in the target area. In one example, the abscissa displacement threshold is 2 units long, the first start position coordinate of the first contact point is (-1, 1), the second start position coordinate is (1, 1), the first end position coordinate of the first contact point is (-4, 1), and the second end position coordinate of the second contact point is (4, 1), and the abscissa displacement of the first contact point and the abscissa displacement of the second contact point are both 3 units long and greater than the abscissa displacement threshold (2 units long), and the ordinate of the first contact point and the ordinate of the second contact point do not displace during the sliding process of the contact points, then the application program determines that the two-finger swipe operation is a two-finger horizontal swipe operation.

[0127] In step 1404b, it is determined whether the ordinate displacement of the two-finger slide reaches an ordinate displacement threshold.

[0128] For example, a vertical swipe operation of two fingers is taken as an example for description. Preferably, when two fingers of a user contact a target area in a user interface, a first start position coordinate of a first contact point in a first target area and a second start position coordinate of a second contact point in a second target area are obtained, when the sliding of the first contact point and the second contact point is stopped, a first end position coordinate of the first contact point in the first target area and a second end position coordinate of the second contact point in the second target area are obtained, and when the vertical coordinate displacement of the first contact point is greater than a vertical coordinate displacement threshold and the vertical coordinate displacement of the second contact point is greater than a vertical coordinate displacement threshold, it is determined that a vertical swipe operation of two fingers is accepted in the target area. In one example, the horizontal coordinate displacement threshold is 2 units long, the first start position coordinate of the first contact point is (-1, 1), the second start position coordinate is (1, 1), the first end position coordinate of the first contact point is (-1, -3), the second end position coordinate of the second contact point is (1, -3), the vertical coordinate displacement of the first contact point and the vertical coordinate displacement of the second contact point are both 3 units long and greater than the vertical coordinate displacement threshold (2 units long), and the horizontal coordinate of the first contact point and the horizontal coordinate of the second contact point do not displace during the sliding process of the contact points, then the application program determines that the two-finger swipe operation is a two-finger vertical swipe operation.

[0129] In step 1405a, the virtual object is controlled to throw a bomb.

[0130] Preferably, the application program controls the virtual object to throw a bomb in response to a horizontal swipe operation by the user with two fingers.

[0131] In step 1405b, the virtual object is controlled to cancel the throw of the bomb.

[0132] Preferably, when the abscissa displacement of either the first contact point or the second contact point is smaller than the abscissa displacement threshold, the application program controls the virtual object to cancel throwing the bomb. Preferably, when the application program determines that the shortcut operation performed by the user is a two-finger swipe operation, the application program controls the virtual object to cancel throwing the bomb when the user does not have a virtual item (e.g., a bomb).

[0133] In step 1406, it is determined whether the virtual object is in a crouching state.

[0134] For example, the body pose of a virtual object in a virtual environment is a crouching state.

[0135] In step 1407a, the virtual object is controlled to stand up.

[0136] For example, when the body posture of a virtual object in the virtual environment is in a crouching state, the virtual object is controlled to stand up in the virtual environment in response to a two-finger vertical swipe operation.

[0137] In step 1407b, the virtual object remains in its original state.

[0138] For example, if the body posture of a virtual object in the virtual environment is not crouching, e.g., if the body posture of the virtual object is standing, the virtual object will maintain the standing posture after the user performs a two-finger vertical swipe manipulation.

[0139] Preferably, a double tap operation may be used to control the virtual object to equip an accessory corresponding to a virtual item. A double tap and long press operation may be used to control the virtual object to continuously perform actions such as running, jumping, etc. A two-finger horizontal swipe operation may be used to control the virtual object to perform actions such as picking up a virtual item, opening a window, opening a door, etc. A two-finger vertical swipe operation may be used to control the virtual object to perform actions such as crouching, crawling, rolling, etc.

[0140] The above embodiment describes the above method based on a game application scenario, but the following takes an application scenario of military simulation as an example to exemplify the above method.

[0141] Simulation technology is a model technology that reflects the behavior or process of a system through experiments that simulate a real environment using software and hardware.

[0142] The military simulation program is a program specially built for military use that uses simulation technology to quantitatively analyze sea, land, and air combat elements, weapon and equipment performance, and combat operations, accurately simulate the battlefield environment, and represent battlefield situations, thereby enabling the evaluation of combat systems and support for decision-making.

[0143] In one example, a soldier builds a virtual battlefield in a terminal on which a military simulation program is configured, and plays against a team. The soldier controls virtual objects in the virtual environment of the battlefield to perform at least one of walking, running, climbing, driving, shooting, throwing, reconnaissance, and hand-to-hand combat in the virtual environment of the battlefield. The virtual environment of the battlefield includes at least one natural form of plains, mountains, plateaus, basins, deserts, rivers, lakes, oceans, and vegetation, and the form of places such as buildings, vehicles, ruins, and training grounds. The virtual objects include virtual characters, virtual animals, cartoon or animated characters, and the like. 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.

[0144] As mentioned above, in one example, virtual object a controlled by soldier A performs a corresponding action in the virtual environment.

[0145] As shown in FIG. 7, when the body posture of the virtual object a in the virtual environment is in a crouching state, the viewpoint of the virtual object a faces upwards, and the screen of the virtual environment is empty. Soldier A performs a two-finger vertical swipe operation in a target area in a user interface of a military simulation program. Preferably, the target area includes a first target area and a second target area. The fingers of both hands of soldier A are located in the first target area and the second target area, respectively, for example, the fingers of the left hand of soldier A are in the first target area, and the fingers of the right hand of soldier A are in the second target area. The fingers of the left hand and the fingers of the right hand of soldier A slide upwards simultaneously in each target area (as shown by the arrows in FIG. 7) to control the virtual object a to stand up in the virtual environment. Preferably, when the body posture of the virtual object a in the virtual environment is in a standing state, soldier A performs a two-finger vertical swipe operation in the target area (the sliding direction is opposite to the direction shown in FIG. 7) to control the virtual object a to crouch down in the virtual environment.

[0146] For example, the virtual item used by the virtual object a is a sniper rifle, and the sniper rifle is in an automatic activation state. Soldier A performs two tap operations (as shown in FIG. 2) in the target area 131 in the user interface of the military simulation program. If the time interval between the first tap operation and the second tap operation is smaller than the time interval threshold, the military simulation program determines that the two tap operations are double tap operations. If the double tap operation is within the target area 131, Soldier A can turn on the scope corresponding to the sniper rifle by the double tap operation. Preferably, after turning on the scope, Soldier A can turn off the scope corresponding to the sniper rifle by performing a double tap operation in the target area.

[0147] For example, the virtual item used by the virtual object a is a submachine gun, and the sniper rifle is in a state of being manually activated. Soldier A performs a double tap and long press operation (as shown in FIG. 6) in the target area 131 in the user interface of the military simulation program. The military simulation program judges whether the two tap operations of soldier A are double tap operations, and if the two tap operations are double tap operations, the military simulation program further judges whether the pressing operation of soldier A is a long press operation, and if the duration of the pressing operation of soldier A is greater than the duration threshold, judges that the shortcut operation in the target area 131 is a double tap and long press operation. The military simulation program controls the virtual object a to activate the submachine gun (i.e., to shoot using the submachine gun, as shown in FIG. 9) according to the double tap and long press operation. Preferably, when soldier A stops the long press operation, the military simulation program controls the virtual object a to turn off the shooting function of the submachine gun. The duration of the long press operation is the shooting duration of the submachine gun.

[0148] For example, the virtual item used by the virtual object a is a bomb, and the bomb is held by the virtual object a. Soldier A performs a two-finger horizontal swipe operation in an object area in a user interface of a military simulation program. Preferably, the object area includes a first object area and a second object area. The fingers of both hands of soldier A are located in the first object area and the second object area, respectively. For example, the fingers of the left hand of soldier A are in the first object area, and the fingers of the right hand of soldier A are in the second object area. The fingers of the left hand and the fingers of the right hand of soldier A slide to the right simultaneously in each object area (as shown by the arrows in FIG. 10 ) to control the virtual object a to throw the bomb. Preferably, when the virtual object a is in a building of the virtual environment, soldier A may control the virtual object a to open a door or a window by the two-finger horizontal swipe operation. Alternatively, when a virtual item exists in the virtual environment, soldier A may control the virtual object a to pick up the virtual item in the virtual environment by the two-finger horizontal swipe operation.

[0149] As described above, in the embodiment of the present invention, the above-mentioned virtual object control method is applied to a military simulation program, thereby improving combat efficiency and enhancing the cooperation level between soldiers.

[0150] The following describes an embodiment of the apparatus of the present invention. For parts that are not described in detail in the embodiment of the apparatus, reference may be made to the corresponding description in the embodiment of the method above, and the description will be omitted here.

[0151] 15 is a block diagram of a virtual object control device according to another embodiment of the present invention. The device may be implemented as a whole or part of a terminal by software, hardware, or a combination of both. The device includes a display module 1510, a receiving module 1520, a control module 1530, and an acquisition module 1540. Here, the display module 1510 and the receiving module 1520 are optional modules.

[0152] The display module 1510 displays a user interface including a virtual environment screen and an interactive panel area. The virtual environment screen is a screen on which the virtual environment is observed from the viewpoint of a virtual object.

[0153] The receiving module 1520 receives a shortcut operation in a target area of ​​the user interface, the target area including an area that belongs to the virtual environment screen and does not belong to the interactive panel area.

[0154] The control module 1530 controls the virtual object to perform a corresponding action in the virtual environment according to the shortcut operation.

[0155] In one preferred embodiment, the control module 1530 controls the virtual object to adjust its body posture in the virtual environment according to the shortcut operation when the body posture of the virtual object satisfies a first condition.

[0156] In one preferred embodiment, the first condition includes a body posture of the virtual object being in a crouching state, and the shortcut operation includes a two-finger vertical swipe operation. The receiving module 1520 receives the two-finger vertical swipe operation in the target area. The control module 1530 controls the virtual object to switch from a crouching state to a standing state in the virtual environment according to the two-finger vertical swipe operation when the body posture of the virtual object is in a crouching state.

[0157] In one preferred embodiment, the target area includes a first target area and a second target area. The acquisition module 1540 acquires a first start position coordinate of the first contact point in the first target area and a second start position coordinate of the second contact point in the second target area. When the first contact point and the second contact point stop sliding, the acquisition module 1540 acquires a first end position coordinate of the first contact point in the first target area and a second end position coordinate of the second contact point in the second target area. The acceptance module 1520 determines that a two-finger vertical swipe operation is accepted in the target area when the vertical coordinate displacement of the first contact point is greater than a vertical coordinate displacement threshold and the vertical coordinate displacement of the second contact point is greater than a vertical coordinate displacement threshold.

[0158] In one preferred embodiment, the control module 1530 controls the virtual object to turn on an accessory corresponding to the virtual item in the virtual environment according to the shortcut operation when the use state of the virtual item satisfies the second condition. Alternatively, the control module 1530 controls the virtual object to turn on the virtual item in the virtual environment according to the shortcut operation when the use state of the virtual item satisfies a third condition. Alternatively, the control module 1530 controls the virtual object to throw the virtual item in the virtual environment according to the shortcut operation when the use state of the virtual item satisfies a fourth condition.

[0159] In one preferred embodiment, the second condition includes that the virtual item is in an automatically-activating state, and the shortcut operation includes a double-tap operation. The receiving module 1520 receives a double-tap operation in the target area. The control module 1530 controls the virtual object to turn on a scope corresponding to the first virtual item in the virtual environment according to the double-tap operation when the first virtual item is in an automatically-activating state.

[0160] In one preferred embodiment, the acquisition module 1540 acquires the time of the first tap operation and the time of the second tap operation in the target area, and the acceptance module 1520 determines that a double tap operation is accepted in the target area if the time interval between the time of the first tap operation and the time of the second tap operation is less than a time interval threshold.

[0161] In one preferred embodiment, the third condition includes that the virtual item is in a state of being manually enabled, and the shortcut operation includes a double tap and long press operation. The receiving module 1520 receives the double tap and long press operation in the target area. The control module 1530 controls the virtual object to turn on the second virtual item in the virtual environment according to the double tap and long press operation when the second virtual item is in a state of being manually enabled.

[0162] In one preferred embodiment, the reception module 1520 receives a double tap operation in the target area, then receives a press operation in the target area, and determines that a double tap / long press operation has been received in the target area if the duration of the press operation is greater than a duration threshold.

[0163] In one preferred embodiment, the control module 1530 controls the virtual object to turn off the virtual item when the double tap and hold operation on the target area is stopped.

[0164] In one preferred embodiment, the fourth condition includes the virtual object carrying a virtual item, and the shortcut operation includes a two-finger horizontal swipe operation. The receiving module 1520 receives the two-finger horizontal swipe operation in the target area. The control module 1530 controls the virtual object to throw the third virtual item in the virtual environment according to the two-finger horizontal swipe operation when the virtual object carries a third virtual item.

[0165] In one preferred embodiment, the target area includes a first target area and a second target area. The acquisition module 1540 acquires a first start position coordinate of the first contact point in the first target area and a second start position coordinate of the second contact point in the second target area. When the first contact point and the second contact point stop sliding, the acquisition module 1540 acquires a first end position coordinate of the first contact point in the first target area and a second end position coordinate of the second contact point in the second target area. The acceptance module 1520 determines that a two-finger lateral swipe operation is accepted in the target area when the horizontal coordinate displacement of the first contact point is greater than the horizontal coordinate displacement threshold and the horizontal coordinate displacement of the second contact point is greater than the horizontal coordinate displacement threshold.

[0166] 16 is a block diagram of a configuration of a computing device 1600 according to one embodiment of the present invention. The computing device 1600 may be a portable mobile terminal, such as a smartphone, a tablet computer, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, etc. The computing device 1600 may also be referred to as a user device, a portable terminal, and other names.

[0167] Generally, the computing device 1600 includes a processor 1601 and a memory 1602 .

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

[0169] The memory 1602 may include one or more computer readable storage media, which may be tangible and non-transitory. The memory 1602 may further include high speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices or flash memory storage devices. In some embodiments, the non-transitory computer readable storage media in the memory 1602 is used to store at least one instruction, which is executed by the processor 1601 to implement a method for controlling a virtual object according to the present invention.

[0170] In some embodiments, computing device 1600 may preferably further include a peripherals interface 1603 and at least one peripheral device. Specifically, the peripheral devices include at least one of radio frequency circuitry 1604, a touch display screen 1605, a camera component 1606, audio circuitry 1607, a location component 1608, and a power source 1609.

[0171] The peripherals interface 1603 may be used to connect at least one peripheral associated with I / O (input / output) to the processor 1601 and the memory 1602. In some embodiments, the processor 1601, the memory 1602, and the peripherals interface 1603 are integrated on the same chip or circuit board. In other embodiments, any one or two of the processor 1601, the memory 1602, and the peripherals interface 1603 may be implemented on a single chip or circuit board, although this embodiment is not limited thereto.

[0172] The radio frequency circuit 1604 is used to transmit and receive RF (Radio Frequency) signals, also referred to as electromagnetic signals. The radio frequency circuit 1604 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1604 converts electrical signals into electromagnetic signals for transmission or converts received electromagnetic signals into electrical signals. Preferably, the radio frequency circuit 1604 includes an antenna system, an RF transceiver, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, user ID module cards, etc. The radio frequency circuit 1604 can communicate with other terminals via at least one wireless communication protocol, including but not limited to the World Wide Web, metropolitan area networks, intranets, mobile communication networks of various generations (2G, 3G, 4G and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, radio frequency circuitry 1604 may include circuitry related to Near Field Communication (NFC), although the invention is not so limited.

[0173] The touch display screen 1605 is used to display a user interface (UI). The UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1605 has the ability to capture touch signals on or above the surface of the touch display screen 1605. The touch signals may be input to the processor 1601 as control signals for processing. The touch display screen 1605 is used to provide virtual buttons and / or a virtual keyboard, also referred to as soft buttons and / or a soft keyboard. In some embodiments, one touch display screen 1605 may be located on the front panel of the computing device 1600. In some other embodiments, at least two touch display screens 1605 may be located on different surfaces of the computing device 1600, or may be designed to fold. In still other embodiments, the touch display screen 1605 may be a flexible display screen located on a curved or folding surface of the computing device 1600. The touch display screen 1605 may also be configured as a non-rectangular irregular shape, i.e., a specially shaped screen. The touch display screen 1605 may be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc.

[0174] The camera component 1606 is used to capture images or videos. Preferably, the camera component 1606 includes a front camera and a rear camera. Usually, the front camera is used to realize video calls and selfies, and the rear camera is used to realize photos and videos. In some embodiments, the rear camera is at least two of the main camera, the depth of field camera, and the wide-angle camera, so as to realize the fusion of the main camera and the depth of field camera to realize background blur function. The main camera is fused with the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting functions. In some embodiments, the camera component 1606 may further include a flash. The flash may be a single color temperature flash or a dual color temperature flash. The dual color temperature flash means a combination of a warm light flash and a cold light flash, and may be used for light compensation at various color temperatures.

[0175] The audio circuit 1607 is used to provide an audio interface between the user and the computing device 1600. The audio circuit 1607 may include a microphone and a speaker. The microphone is used to capture sound waves of the user and the environment, convert the sound waves into electrical signals and input them to the processor 1601 for processing, or to the radio frequency circuit 1604 to realize voice communication. For stereo acquisition or noise reduction, multiple microphones may be respectively arranged in different parts of the computing device 1600. The microphone may be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 1601 or the radio frequency circuit 1604 into sound waves. The speaker may be a conventional thin-film speaker or a piezoelectric ceramic speaker. If the speaker is a piezoelectric ceramic speaker, it may not only convert the electrical signal into human audible sound waves, but also convert the electrical signal into human inaudible sound waves for distance measurement, etc. In some embodiments, the audio circuit 1607 may further include a headphone jack.

[0176] The location component 1608 is used to determine the current geographic location of the computing device 1600 for navigation or location based services (LBS). The location component 1608 may be a positioning component based on the United States Global Positioning System (GPS), the Chinese Beidou system, or the Russian Galileo system.

[0177] The power source 1609 is used to supply power to each component in the computer device 1600. The power source 1609 may be an AC, DC, temporary battery, or a rechargeable battery. If the power source 1609 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 that is charged by a wired circuit, and a wireless rechargeable battery is a battery that is charged by a wireless circuit. The rechargeable battery may support a fast charging technology.

[0178] In some embodiments, the computing device 1600 further includes one or more sensors 1610, including, but not limited to, an acceleration sensor 1611, a gyroscope sensor 1612, a pressure sensor 1613, a fingerprint sensor 1614, an optical sensor 1615, and a proximity sensor 1616.

[0179] The acceleration sensor 1611 may detect the magnitude of acceleration on three coordinate axes of a coordinate system established by the computing device 1600. For example, the acceleration sensor 1611 may be used to detect components of gravitational acceleration on three coordinate axes. The processor 1601 may control the touch display screen 1605 to display a user interface in a horizontal view or a vertical view based on the gravitational acceleration signal collected by the acceleration sensor 1611. The acceleration sensor 1611 may be used to collect game or user movement data.

[0180] The gyroscope sensor 1612 may detect the orientation and rotation angle of the body of the computing device 1600. The gyroscope sensor 1612 may cooperate with the acceleration sensor 1611 to collect a user's 3D motion on the computing device 1600. The processor 1601 may realize motion sensing (e.g., changing a UI according to a user's tilt operation), image stabilization during shooting, game control, and inertial navigation based on the data collected by the gyroscope sensor 1612.

[0181] The pressure sensor 1613 may be disposed on a side frame of the computer device 1600 and / or under the touch display screen 1605. When the pressure sensor 1613 is disposed on the side frame of the computer device 1600, it may detect a gripping signal of a user of the computer device 1600 and recognize a left or right hand based on the gripping signal, or perform a shortcut operation. When the pressure sensor 1613 is disposed on a lower layer of the touch display screen 1605, it may control an operable widget in the UI interface according to a pressure operation of the user on the touch display screen 1605. The operable widget includes at least one of a button widget, a scroll bar widget, an icon widget, and a menu widget.

[0182] The fingerprint sensor 1614 is used to collect a user's fingerprint so as to identify the user's identity according to the collected fingerprint. If the identified user's identity is a trusted identity, the processor 1601 allows the user to perform related confidential operations including unlocking the screen, displaying encrypted information, downloading software, making payments, and changing settings. The fingerprint sensor 1614 may be located on the front, back, or side of the computer device 1600. If the computer device 1600 is provided with a physical button or a manufacturer's logo, the fingerprint sensor 1614 may be integrated with the physical button or the manufacturer's logo.

[0183] The optical sensor 1615 is used to collect the ambient light intensity. In one embodiment, the processor 1601 may control the display brightness of the touch display screen 1605 based on the ambient light intensity collected by the optical sensor 1615. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1605 is increased, and when the ambient light intensity is low, the display brightness of the touch display screen 1605 is decreased. In another embodiment, the processor 1601 may dynamically adjust the shooting parameters of the camera component 1606 based on the ambient light intensity collected by the optical sensor 1615.

[0184] The proximity sensor 1616, also called a distance sensor, is typically located on the front of the computer device 1600. The proximity sensor 1616 is used to collect the distance between the user and the front of the computer device 1600. In one embodiment, when the proximity sensor 1616 detects that the distance between the user and the front of the computer device 1600 is gradually decreasing, the processor 1601 controls the touch display screen 1605 to switch from an on-screen state to an off-screen state. When the proximity sensor 1616 detects that the distance between the user and the front of the computer device 1600 is gradually increasing, the processor 1601 controls the touch display screen 1605 to switch from an off-screen state to an on-screen state.

[0185] However, as will be appreciated by those skilled in the art, computing device 1600 is not limited to the configuration shown in FIG. 16 and may include more or fewer components than those shown, may combine certain components, or may employ different arrangements of components.

[0186] The present invention further provides a computer device including a processor and a memory, the memory storing at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, code set or instruction set being loaded and executed by the processor to implement the method for controlling a virtual object as described in each of the method embodiments above.

[0187] Moreover, the embodiment of the present invention further provides a storage medium having a computer program stored thereon, the computer program being used to execute the method for controlling a virtual object described in the above embodiment.

[0188] An embodiment of the present invention further provides a computer program product comprising instructions, which when executed on a computer, cause the computer to perform the method for controlling a virtual object as described in the above embodiment.

[0189] It should be noted that "plurality" as referred to in this specification means two or more. "And / or" describes the association relationship of related objects, and indicates that there can be three types of relationships. For example, "A and / or B" may mean that only A exists, that A and B exist simultaneously, and that only B exists. The symbol " / " usually indicates that the related objects before and after are in an "or" relationship.

[0190] As can be understood by those skilled in the art, all or part of the steps in the above embodiments may be realized by hardware, or may be realized by instructing relevant hardware to execute through a program. The program may be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disk, etc.

[0191] The above only describes the exemplary embodiments of the present invention, and does not limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention are included within the protection scope of the present invention.

Claims

1. A method for controlling a virtual object executed by a terminal, comprising: displaying a user interface including a virtual environment screen and an interactive panel area, the virtual environment screen being a screen for observing a virtual environment from a viewpoint of a virtual object; receiving shortcut operations including at least a double tap and a long press operation and a two-finger lateral swipe operation in a target area of ​​the user interface, the target area including an area that belongs to the virtual environment screen and does not belong to the interactive panel area; and controlling the virtual object to perform a corresponding action in the virtual environment according to the shortcut operation; The step of controlling the virtual object to perform a corresponding action in the virtual environment according to the shortcut operation includes: In a state where a widget for turning on a second virtual item is displayed in the interactive panel area, controlling the virtual object to turn on the second virtual item in the virtual environment according to the double-tap and long press operation in the target area; or and controlling the virtual object to throw the third virtual item in the virtual environment in accordance with a two-finger lateral swipe operation in the target area while a widget for throwing a third virtual item is displayed in the interactive panel area, the two-finger lateral swipe operation being an operation of simultaneously performing a left swipe operation with fingers of a left hand in a first target area in the target area and a right swipe operation with fingers of a right hand in a second target area in the target area.

2. The step of controlling the virtual object to perform a corresponding action in the virtual environment according to the shortcut operation includes: The method of claim 1 , further comprising: controlling the virtual object to adjust the body posture in the virtual environment according to the shortcut operation if a body posture of the virtual object satisfies a first condition.

3. the first condition includes a body posture of the virtual object being in a crouching state, and the shortcut operation includes a two-finger vertical swipe operation; When the body posture of the virtual object satisfies a first condition, controlling the virtual object to adjust the body posture in the virtual environment according to the shortcut operation includes: receiving a two-finger vertical swipe gesture in the target area; and controlling the virtual object to switch from a crouching state to a standing state in the virtual environment in accordance with the two-finger vertical swipe manipulation if the body posture of the virtual object is a crouching state.

4. the target region includes a first target region and a second target region; The step of receiving the two-finger vertical swipe operation in the target area includes: obtaining a first start position coordinate of a first contact point in the first target area and a second start position coordinate of a second contact point in the second target area; When stopping the sliding of the first contact point and the second contact point, acquiring a first end position coordinate of the first contact point in the first target area and a second end position coordinate of the second contact point in the second target area; determining that the two-finger vertical swipe operation is received in the target area if a ordinate displacement of the first contact point is greater than a ordinate displacement threshold and a ordinate displacement of the second contact point is greater than the ordinate displacement threshold.

5. The step of controlling the virtual object to perform a corresponding action in the virtual environment according to the shortcut operation includes: When the use state of a first virtual item satisfies a second condition, control the virtual object to turn on an accessory corresponding to the first virtual item in the virtual environment according to the shortcut operation; or When the use state of the second virtual item satisfies a third condition, control the virtual object to turn on the second virtual item in the virtual environment according to the shortcut operation; or The method of claim 1 , further comprising: when a usage state of the third virtual item satisfies a fourth condition, controlling the virtual object to throw the third virtual item in the virtual environment according to the shortcut operation.

6. the second condition includes the first virtual item being in an automatically enabled state, and the shortcut operation includes a double tap operation; When the use state of the first virtual item satisfies a second condition, the step of controlling the virtual object to turn on an accessory corresponding to the first virtual item in the virtual environment according to the shortcut operation includes: receiving the double tap operation on the target area; and controlling the virtual object to turn on a scope corresponding to the first virtual item in the virtual environment in accordance with the double-tap operation when the first virtual item is in the automatically enabling state.

7. The step of receiving the double tap operation on the target area includes: acquiring a time of a first tap operation and a time of a second tap operation in the target area; 7. The method of claim 6, further comprising: determining that the double tap operation has been received in the target area if the time interval between the time of the first tap operation and the time of the second tap operation is less than a time interval threshold.

8. the third condition includes the second virtual item being in a manually activated state; When the use state of the second virtual item satisfies a third condition, controlling the virtual object to turn on the second virtual item in the virtual environment according to the shortcut operation, receiving the double tap and long press operation in the target area; and controlling the virtual object to turn on the second virtual item in the virtual environment in accordance with the double-tap and long press operation when the second virtual item is in a manually enabled state.

9. The step of receiving the double tap and long press operation in the target area includes: accepting a double tap operation in the target area, and then accepting a press operation in the target area; 9. The method of claim 8, further comprising: determining that the double tap and long press has been received in the target region if the duration of the press is greater than a duration threshold.

10. When the second virtual item is in a state of being manually enabled, after controlling the virtual object to turn on the second virtual item in the virtual environment according to the double-tap and long press operation, The method according to claim 8 or 9, further comprising: controlling the virtual object to turn off the second virtual item when the double-tap and long press operation in the target region is stopped.

11. the fourth condition includes the virtual object possessing the third virtual item; When the use state of the third virtual item satisfies a fourth condition, controlling the virtual object to throw the third virtual item in the virtual environment according to the shortcut operation includes: receiving the two-finger lateral swipe gesture in the target area; and controlling the virtual object to throw the third virtual item in the virtual environment in accordance with the two-finger lateral swipe manipulation if the virtual object is holding the third virtual item.

12. the target region includes a first target region and a second target region; The step of receiving the two-finger lateral swipe operation in the target area includes: obtaining a first start position coordinate of a first contact point in the first target area and a second start position coordinate of a second contact point in the second target area; When stopping the sliding of the first contact point and the second contact point, acquiring a first end position coordinate of the first contact point in the first target area and a second end position coordinate of the second contact point in the second target area; determining that the two-finger lateral swipe operation is received in the target area if an abscissa displacement of the first contact point is greater than an abscissa displacement threshold and an abscissa displacement of the second contact point is greater than the abscissa displacement threshold.

13. A control device for a virtual object, comprising: a display module for displaying a user interface including a virtual environment screen and an interactive panel area, the virtual environment screen being a screen for observing a virtual environment from a viewpoint of a virtual object; a receiving module that receives shortcut operations including at least a double tap and a long press operation and a two-finger lateral swipe operation in a target area of ​​the user interface, the target area including an area that belongs to the virtual environment screen and does not belong to the interactive panel area; a control module that controls the virtual object to perform a corresponding action in the virtual environment according to the shortcut operation; The control module includes: In a state where a widget for turning on a second virtual item is displayed in the interactive panel area, in response to the double-tap and long press operation in the target area, the virtual object is controlled to turn on the second virtual item in the virtual environment; or a device for controlling the virtual object to throw the third virtual item in the virtual environment in accordance with a two-finger horizontal swipe operation in the target area while a widget for throwing a third virtual item is displayed in the interactive panel area, the two-finger horizontal swipe operation being an operation of simultaneously performing a left swipe operation with fingers of a left hand in a first target area in the target area and a right swipe operation with fingers of a right hand in a second target area in the target area.

14. A computing device including a processor and a memory, The memory stores at least one instruction, at least one program, code set, or instruction set; A computer device, wherein said at least one instruction, said at least one program, said code set or said instruction set is loaded and executed by said processor so as to implement a method for controlling a virtual object according to any one of claims 1 to 12.

15. A program that, when executed by a computer, causes the computer to execute the method for controlling a virtual object according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Game control method and device

    CN106502563A

  • Interaction method and device in game

    CN108363531A

  • Higher permeability of polymer material layer

    JP1988008643A

  • Program and information processing device

    JP2018187289A

  • Shooting game control method and device, storage medium, processor, and terminal

    JP2019037783A