Virtual object control method, device, and apparatus, and storage medium

CN116983649BActive Publication Date: 2026-09-08TENCENT TECH (CHENGDU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210611053.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2026-09-08
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

[0004]但是,相关技术中用户控制虚拟对象进行格斗的形式较为单一,用户无法控制虚拟对象完成对另一个虚拟对象的有效互动,导致人机交互的效率较低,用户的游戏体验不佳

Benefits of technology

[0042]The technical solution provided in this application provides a mirror interaction control in a virtual scene. Triggering this mirror interaction control controls a first virtual object to move in a target direction and displays a mirror image of the first virtual object in the virtual scene. During the movement of the first virtual object, in response to another triggering operation of the mirror interaction control, the first virtual object moves towards the location of the mirror image. When the first virtual object comes into contact with the second virtual object, both the first and second virtual objects move together towards the location of the mirror image. When the first and mirror images overlap and the second and mirror images are sufficiently close, the first and second virtual objects interact. By setting up mirror images, the interaction methods between the first and second virtual objects are enriched, allowing users to effectively interact with the second virtual object using mirror images, thereby improving the efficiency of human-computer interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116983649B_ABST
    Figure CN116983649B_ABST
Patent Text Reader

Abstract

The application discloses a virtual object control method, device, equipment and storage medium, and belongs to the computer technical field. In the embodiment of the application, a mirror interaction control is provided in a virtual scene, triggering the mirror interaction control can control a first virtual object to move to a target direction, and a mirror virtual object of the first virtual object is displayed in the virtual scene. In response to a re-triggering operation of the mirror interaction control, the first virtual object is controlled to move to the position where the mirror virtual object is located. In the case that the first virtual object contacts the second virtual object, the first virtual object and the second virtual object are controlled to move to the position where the mirror virtual object is located together. In the case that a certain condition is met, the first virtual object and the second virtual object are controlled to interact. The user can effectively interact with the second virtual object by using the mirror virtual object, thereby improving the efficiency of human-computer interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, device, and storage medium for controlling virtual objects. Background Technology

[0002] With the development of multimedia technology and the diversification of terminal functions, the types of games that can be played on terminals are increasing. Fighting games are a popular type of game. Fighting games provide users with a virtual scene in which two users control two virtual objects to fight.

[0003] In related technologies, users often engage in combat by controlling virtual objects to use punches and kicks. That is, during the combat, users can only control virtual objects to use punches or kicks individually, or control virtual objects to use a combination of punches and kicks to attack another virtual object.

[0004] However, the form of user-controlled virtual objects in combat in related technologies is relatively simple. Users cannot control virtual objects to complete effective interactions with other virtual objects, resulting in low efficiency of human-computer interaction and a poor user gaming experience. Summary of the Invention

[0005] This application provides a method, apparatus, device, and storage medium for controlling virtual objects, which can improve the efficiency of human-computer interaction. The technical solution is as follows:

[0006] On the one hand, a method for controlling a virtual object is provided, the method comprising:

[0007] A virtual scene is displayed, in which a first virtual object and a second virtual object are displayed. The first virtual object is a virtual object controlled by a terminal, and the second virtual object belongs to a different faction from the first virtual object.

[0008] In response to a trigger operation on a mirrored interactive control displayed on the virtual scene, the first virtual object is controlled to move in the target direction, and a mirrored virtual object of the first virtual object is displayed at a first target position in the virtual scene;

[0009] During the movement of the first virtual object toward the target direction, in response to the triggering operation of the mirror interactive control again, the first virtual object is controlled to move toward the first target position.

[0010] When the first virtual object comes into contact with the second virtual object, control the first virtual object and the second virtual object to move together toward the first target position;

[0011] When the first virtual object overlaps with the mirrored virtual object, and the distance between the second virtual object and the mirrored virtual object meets the first distance condition, the first virtual object is controlled to interact with the second virtual object.

[0012] On the one hand, a control device for a virtual object is provided, the device comprising:

[0013] A virtual scene display module is used to display a virtual scene, wherein the virtual scene displays a first virtual object and a second virtual object, the first virtual object is a virtual object controlled by a terminal, and the second virtual object belongs to a different camp from the first virtual object;

[0014] The first virtual object control module is used to respond to the trigger operation of the mirror interactive control displayed on the virtual scene, control the first virtual object to move in the target direction, and display the mirror virtual object of the first virtual object at the first target position in the virtual scene;

[0015] The first virtual object control module is further configured to, in response to another trigger operation of the mirror interactive control, control the first virtual object to move towards the first target position during the process of the first virtual object moving towards the target direction;

[0016] The second virtual object control module is used to control the first virtual object and the second virtual object to move together toward the first target position when the first virtual object and the second virtual object are in contact.

[0017] The first virtual object control module is further configured to control the first virtual object and the second virtual object to interact when the first virtual object and the mirrored virtual object overlap and the distance between the second virtual object and the mirrored virtual object meets the first distance condition.

[0018] In one possible implementation, the first virtual object control module is configured to control the first virtual object to move toward the first target position when the first virtual object and the second virtual object are not in contact; and to cancel the display of the mirror virtual object when the first virtual object overlaps with the mirror virtual object.

[0019] In one possible implementation, the first virtual object control module is configured to control the mirror virtual object and the first virtual object to interact with the second virtual object simultaneously when the first virtual object overlaps with the mirror virtual object and the distance between the second virtual object and the mirror virtual object is less than or equal to a first distance threshold.

[0020] In one possible implementation, the second virtual object control module is further configured to, when the first virtual object and the second virtual object successfully interact, determine the direction in which the second virtual object moves in the virtual scene based on the target part of the second virtual object, wherein the target part of the second virtual object is the part that successfully interacts with the first virtual object; and control the second virtual object to move in the virtual scene in the determined direction.

[0021] In one possible implementation, the second virtual object control module is further configured to perform any of the following:

[0022] When the target part is the head of the second virtual object, the direction in which the second virtual object moves in the virtual scene is determined to be below the mirrored virtual object;

[0023] When the target part is the torso of the second virtual object, the direction in which the second virtual object moves in the virtual scene is determined to be the direction in which it moves toward the first virtual object;

[0024] When the target part is the foot of the second virtual object, the direction in which the second virtual object moves in the virtual scene is determined to be above the mirrored virtual object.

[0025] In one possible implementation, the first virtual object control module is further configured to control the first virtual object to enter a target state when the first virtual object and the second virtual object successfully interact; and during the duration of the target state, in response to the second virtual object successfully interacting with the first virtual object, control the first virtual object to automatically interact with the second virtual object.

[0026] In one possible implementation, the second virtual object control module is configured to, in response to contact between the first virtual object and the second virtual object, control the first virtual object to move to a second target position in the virtual scene, wherein the second virtual object is located between the first target position and the second target position; control the first virtual object to interact with the second virtual object at the second target position; and control the first virtual object and the second virtual object to move together toward the first target position.

[0027] In one possible implementation, the first virtual object control module is further configured to, when the first virtual object and the second virtual object successfully interact, adjust the position of the first virtual object to a third target position and control the second virtual object to move toward the third target position of the virtual scene, wherein the third target position is the position where the first virtual object and the second virtual object are in contact;

[0028] The device further includes:

[0029] A continuous interactive control display module is used to display continuous interactive controls on the virtual scene, wherein the continuous interactive controls are used to control the interaction between the first virtual object and the second virtual object.

[0030] In one possible implementation, the first virtual object control module is further configured to perform any of the following:

[0031] In response to the triggering operation of the continuous interactive control, the first virtual object is controlled to move to the location of the second virtual object; when the distance between the first virtual object and the second virtual object meets the second distance condition, the first virtual object is controlled to interact with the second virtual object.

[0032] In response to the triggering operation of the continuous interactive control, a magnified target virtual item is displayed around the first virtual object, the target virtual item being a virtual item equipped by the first virtual object; when the second virtual object comes into contact with the target virtual item, the second virtual object is controlled to move upwards towards the first virtual object, reducing the health value of the second virtual object.

[0033] In one possible implementation, the first virtual object control module is further configured to, upon successful interaction between the first virtual object and the second virtual object, adjust the position of the first virtual object to a third target position, display a position-swapping control in the virtual scene, wherein the third target position is the position where the first virtual object and the second virtual object are in contact; in response to a trigger operation on the position-swapping control, swap the positions of the first virtual object and the mirrored virtual object in the virtual scene; and in response to another trigger operation on the mirrored interaction control, control the first virtual object and the second virtual object to interact.

[0034] In one possible implementation, the mirrored virtual object control module is further configured to control the mirrored virtual object to move toward the location of the first virtual object; and to reduce the health value of the second virtual object when the mirrored virtual object comes into contact with the second virtual object.

[0035] In one possible implementation, the first virtual object control module is further configured to, when the first virtual object and the second virtual object successfully interact, control the second virtual object to move to the current location of the mirror virtual object; in response to another triggering operation of the position swapping control, swap the positions of the first virtual object and the mirror virtual object in the virtual scene again; and in response to another triggering operation of the mirror interaction control, control the first virtual object and the second virtual object to interact.

[0036] In one possible implementation, the first virtual object control module is further configured to keep the first virtual object in its current position if the first virtual object fails to interact successfully with the second virtual object.

[0037] In one possible implementation, the mirrored virtual object control module is further configured to cancel the display of the mirrored virtual object when the first virtual object is in contact with the second virtual object and the second virtual object is in a target posture.

[0038] In one possible implementation, the mirror virtual object control module is further configured to cancel the display of the mirror virtual object in response to the failure to perform a trigger operation on the mirror interactive control within a target duration.

[0039] On one hand, a computer device is provided, the computer device including one or more processors and one or more memories, the one or more memories storing at least one computer program, the computer program being loaded and executed by the one or more processors to implement the control method of the virtual object.

[0040] On one hand, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, the computer program being loaded and executed by a processor to implement a control method for the virtual object.

[0041] On the one hand, a computer program product or computer program is provided, which, when executed by a processor, implements a control method for the aforementioned virtual object.

[0042] The technical solution provided in this application provides a mirror interaction control in a virtual scene. Triggering this mirror interaction control controls a first virtual object to move in a target direction and displays a mirror image of the first virtual object in the virtual scene. During the movement of the first virtual object, in response to another triggering operation of the mirror interaction control, the first virtual object moves towards the location of the mirror image. When the first virtual object comes into contact with the second virtual object, both the first and second virtual objects move together towards the location of the mirror image. When the first and mirror images overlap and the second and mirror images are sufficiently close, the first and second virtual objects interact. By setting up mirror images, the interaction methods between the first and second virtual objects are enriched, allowing users to effectively interact with the second virtual object using mirror images, thereby improving the efficiency of human-computer interaction. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0044] Figure 1 This is a schematic diagram of the implementation environment of a virtual object control method provided in an embodiment of this application;

[0045] Figure 2 This is a flowchart of a virtual object control method provided in an embodiment of this application;

[0046] Figure 3 This is a flowchart of another virtual object control method provided in the embodiments of this application;

[0047] Figure 4 This is a schematic diagram of a virtual scene provided in an embodiment of this application;

[0048] Figure 5 This is a schematic diagram of another virtual scene provided in an embodiment of this application;

[0049] Figure 6 This is a schematic diagram of yet another virtual scene provided in the embodiments of this application;

[0050] Figure 7 This is a schematic diagram of another virtual scene provided in an embodiment of this application;

[0051] Figure 8 This is a schematic diagram of another virtual scene provided in an embodiment of this application;

[0052] Figure 9 This is a flowchart of another virtual object control method provided in the embodiments of this application;

[0053] Figure 10 This is a schematic diagram of a control device structure for a virtual object provided in an embodiment of this application;

[0054] Figure 11 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application;

[0055] Figure 12 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation

[0056] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0057] In this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor are there any restrictions on quantity or execution order.

[0058] Virtual scene: A virtual scene is a scene displayed (or provided) by an application when it runs on a terminal. This virtual scene can be a simulation of the real world, a semi-simulated / semi-fictional virtual environment, or a purely fictional virtual environment. A virtual scene can be any of a two-dimensional, 2.5-dimensional, or three-dimensional virtual scene; this application does not limit the dimension of the virtual scene. For example, a virtual scene may include the sky, land, ocean, etc., and the land may include environmental elements such as deserts and cities. Users can control virtual objects to move within this virtual scene. In fighting games, virtual scenes are also called virtual fighting scenes.

[0059] Virtual objects: These are movable objects within a virtual scene. These movable objects can be virtual characters, animals, cartoon characters, etc., such as people, animals, plants, oil drums, walls, and stones displayed in a virtual scene. A virtual object can be a virtual avatar representing the user within that scene. A virtual scene can include multiple virtual objects, each with its own shape and volume, occupying a portion of the virtual scene's space.

[0060] Optionally, the virtual object can be a user character controlled through client-side operations, or an artificial intelligence (AI) trained and set up for virtual scene battles, or a non-user character (NPC) set up in the virtual scene. Optionally, the virtual object can be a virtual character competing in the virtual scene. Optionally, the number of virtual objects participating in the interaction in the virtual scene can be preset or dynamically determined based on the number of clients joining the interaction.

[0061] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, data stored, data displayed, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0062] The implementation environment of the technical solutions provided in the embodiments of this application will be described below.

[0063] Figure 1 This is a schematic diagram illustrating the implementation environment of a virtual object control method provided in this application embodiment. See also... Figure 1 The implementation environment may include a first terminal 110 and a server 140.

[0064] The first terminal 110 is connected to the server 140 via a wireless network or a wired network. Optionally, the first terminal 110 may be a smartphone, tablet, laptop, desktop computer, smartwatch, etc., but is not limited to these. The first terminal 110 has an application installed and running that supports the display of virtual scenes.

[0065] Server 140 is a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. Server 140 provides background services for the applications running on the first terminal 110.

[0066] Optionally, there can be multiple first terminals 110 and servers 140.

[0067] After introducing the implementation environment of the embodiments of this application, the application scenarios of the embodiments of this application will be described below. In the following description, the terminal is the terminal 110 in the above implementation environment, and the server is the server 140.

[0068] The technical solution provided in this application can be applied to fighting games. In these games, a terminal displays a virtual scene, and the terminal controls a first virtual object within this scene. The first and second virtual objects then engage in combat within the virtual scene. The terminal can control the first virtual object to directly attack the second virtual object using punches, kicks, or virtual items, or it can control the first virtual object to attack the second virtual object by releasing virtual skills. Both the first and second virtual objects have health values ​​in the virtual scene. When either virtual object's health value reaches 0, it is defeated. When a virtual object is hit by an attack, its health value decreases. These attacks include direct hits from punches, kicks, or virtual items, as well as attacks from virtual skills. When a mirror interaction control displayed on the terminal is triggered, the terminal displays a mirror image of the first virtual object within the virtual scene. This mirror interaction control, also known as a skill control, allows the first virtual object to release virtual skills within the virtual scene. The terminal can control the mirrored virtual object to interact with the second virtual object, that is, control the mirrored virtual object to launch an attack on the second virtual object.

[0069] The rendering of the virtual scene can be done by the terminal or by the server, and this application embodiment does not limit this.

[0070] After introducing the implementation environment and application scenarios of the embodiments of this application, the control method for virtual objects provided in the embodiments of this application will be described below. It should be noted that the following description of the technical solution provided by this application uses a terminal as the execution subject as an example. In other possible implementations, the technical solution provided by this application can also be executed jointly by a terminal and a server; the embodiments of this application do not limit the type of execution subject. See also Figure 2 Taking the terminal as the executing entity as an example, the method includes the following steps.

[0071] 201. The terminal displays a virtual scene, which displays a first virtual object and a second virtual object. The first virtual object is a virtual object controlled by the terminal, and the second virtual object belongs to a different faction from the first virtual object.

[0072] The virtual scene is also referred to as a virtual fighting scene. In some embodiments, the virtual scene has four boundaries: top, bottom, left, and right. Virtual objects within the virtual scene can move freely within these four boundaries. The first virtual object is a virtual object controlled by the terminal, and the second virtual object is a virtual object controlled by another terminal, or a virtual object controlled by AI; this application embodiment does not limit this. The second virtual object and the first virtual object belonging to different factions means that the second virtual object and the first virtual object are in an adversarial relationship in the virtual scene, and the first virtual object and the second virtual object can interact in the virtual scene, that is, they can attack each other in the virtual scene.

[0073] 202. In response to the triggering operation of the mirror interactive control displayed on the virtual scene, the terminal controls the first virtual object to move in the target direction, and displays the mirror virtual object of the first virtual object at the first target position in the virtual scene.

[0074] The mirrored interactive control is a skill control for the first virtual object. Triggering the mirrored interactive control allows the first virtual object to release a corresponding virtual skill within the virtual scene. The display position of the mirrored interactive control is set by technicians or users according to actual conditions, and this embodiment does not limit this. The target direction is set by technicians according to actual conditions, such as the facing direction of the first virtual object, or above the first virtual object, or behind the first virtual object, etc., and this embodiment does not limit this. The mirrored virtual object of the first virtual object is also a clone of the first virtual object, and the mirrored virtual object has the same appearance as the first virtual object.

[0075] 203. During the movement of the first virtual object toward the target direction, in response to the triggering operation of the mirror interactive control again, the terminal controls the first virtual object to move toward the first target position.

[0076] The mirror interaction control has two layers of functionality. The first layer controls the movement of the first virtual object toward the target direction. The second layer controls the movement of the first virtual object toward the location of the mirror virtual object. This second layer of functionality can only be triggered after the first layer of functionality is implemented.

[0077] 204. When the first virtual object comes into contact with the second virtual object, the terminal controls the first virtual object and the second virtual object to move together toward the first target location.

[0078] In this scenario, the first virtual object comes into contact with the second virtual object, meaning that the model of the first virtual object comes into contact with the model of the second virtual object. The first virtual object and the second virtual object move together toward the first target location, meaning that the second virtual object is "led" to the location of the mirrored virtual object by the first virtual object.

[0079] 205. When the first virtual object overlaps with the mirrored virtual object, and the distance between the second virtual object and the mirrored virtual object meets the first distance condition, the terminal controls the first virtual object to interact with the second virtual object.

[0080] Wherein, the distance between the second virtual object and the mirrored virtual object meets the first distance condition, which means that the distance between the second virtual object and the mirrored virtual object is less than or equal to the first distance threshold. The first distance threshold is set by the technician according to the actual situation, such as being set to two body lengths or three body lengths, etc. This application embodiment does not limit this.

[0081] The technical solution provided in this application provides a mirror interaction control in a virtual scene. Triggering this mirror interaction control controls a first virtual object to move in a target direction and displays a mirror image of the first virtual object in the virtual scene. During the movement of the first virtual object, in response to another triggering operation of the mirror interaction control, the first virtual object moves towards the location of the mirror image. When the first virtual object comes into contact with the second virtual object, both the first and second virtual objects move together towards the location of the mirror image. When the first and mirror images overlap and the second and mirror images are sufficiently close, the first and second virtual objects interact. By setting up mirror images, the interaction methods between the first and second virtual objects are enriched, allowing users to effectively interact with the second virtual object using mirror images, thereby improving the efficiency of human-computer interaction.

[0082] Steps 201-204 above are a brief introduction to the virtual object control method provided in the embodiments of this application. The following will provide a clearer explanation of the virtual object control method provided in the embodiments of this application, using some examples. See [link to relevant documentation]. Figure 3 Taking the terminal as the executing entity as an example, the method includes the following steps.

[0083] 301. The terminal displays a virtual scene, which displays a first virtual object and a second virtual object. The first virtual object is a virtual object controlled by the terminal, and the second virtual object belongs to a different faction from the first virtual object.

[0084] The virtual scene, also known as the virtual fighting scene, serves as the background for fighting games. Virtual objects can engage in combat within this virtual scene. Combat is an interactive behavior between two virtual objects, which can fight using punches, kicks, virtual items, and virtual skills. The second virtual object belonging to a different faction from the first virtual object means that the second and first virtual objects are hostile to each other within the virtual scene. The first and second virtual objects can interact and fight within this virtual scene. In this virtual scene, both the first and second virtual objects have a certain initial health value. During their interaction, their health values ​​continuously decrease. The initial health value of the first virtual object can be the same as or different from that of the second virtual object; this embodiment does not limit this. When the health value of either virtual object drops to a target value, such as 0, that virtual object is defeated by the other virtual object. Health value is also referred to as life points or health points. The first virtual object is selected by the user before loading the virtual scene. In some embodiments, within the virtual scene, the first virtual object always faces the second virtual object, and the second virtual object always faces the first virtual object; that is, even when the relative positions of the first and second virtual objects change, they always face each other. Of course, the orientation of the first and second virtual objects does not change during interaction and automatically adjusts when the interaction ends.

[0085] In one possible implementation, in response to a user starting a competitive match, the terminal displays a virtual scene of that match. This virtual scene displays the first virtual object and the second virtual object, which are displayed on opposite sides of the virtual scene. A competitive match is essentially a fighting game, and the virtual scene displayed on the terminal can be either the entire virtual scene or a portion of it. If the virtual scene displayed on the terminal is a portion of the main virtual scene, it moves with the movement of the first virtual object; for example, the first virtual object is always displayed on the left side of the virtual scene.

[0086] In some embodiments, in addition to displaying the first virtual object and the second virtual object, the virtual scene also displays multiple controls. These controls are used to control the actions of the first virtual object within the virtual scene. Users can control the first virtual object by clicking and dragging these controls. For example, these controls can be divided into movement controls and interaction controls. Movement controls are used to control the movement of the first virtual object within the virtual scene, such as moving left, right, crouching, and jumping. Interaction controls are used to control the first virtual object to use virtual skills, attack enemies, and capture enemies within the virtual scene.

[0087] For example, see Figure 4 The terminal displays a virtual scene 400, which shows a first virtual object 401 and a second virtual object 402. The virtual scene also includes movement controls 403 and 404, and an interactive control 405. In some embodiments, a user can drag the movement control 403 to control the first virtual object 401 to move within the virtual scene 400, and click the movement control 404 to control the first virtual object 401 to jump within the virtual scene 400.

[0088] 302. In response to a trigger operation of the mirrored interactive control displayed on the virtual scene, the terminal controls the first virtual object to move in the target direction, and displays a mirrored virtual object of the first virtual object at the first target position in the virtual scene.

[0089] The mirrored interactive control is a skill control for the first virtual object. This mirrored interactive control belongs to the aforementioned interactive control category. Triggering the mirrored interactive control allows the first virtual object to release a corresponding virtual skill within the virtual scene. The display position of the mirrored interactive control is set by a technician or user according to the actual situation; this embodiment does not limit this. The target direction is set by a technician according to the actual situation, such as the facing direction of the first virtual object, or above the first virtual object, or the back direction of the first virtual object, etc. This embodiment does not limit this. The first target position is the location of the first virtual object when the mirrored interactive control is triggered, or it can be another position within the virtual scene; this embodiment does not limit this.

[0090] The following section describes the method by which the terminal controls the first virtual object to move in the target direction in response to the triggered operation of the mirrored interactive control displayed on the virtual scene.

[0091] In one possible implementation, in response to a click on a mirrored interactive control displayed on the virtual scene, the terminal controls the first virtual object to move towards the target direction. If the mirrored interactive control is a skill control for the first virtual object, clicking the mirrored interactive control controls the first virtual object to release a corresponding virtual skill within the virtual scene; one effect of this virtual skill is that the first virtual object moves towards the target direction. For example, see... Figure 4 In response to a click on the mirror interactive control 4051, the terminal controls the first virtual object 401 to move in the target direction.

[0092] It should be noted that the click operation described in the above embodiments includes clicking the touch screen, as well as clicking through an external device such as a mouse. This application embodiment does not limit this.

[0093] Taking the target direction as the direction the first virtual object is facing as an example, in response to a click operation on the mirrored interactive control, the terminal controls the first virtual object to move in the facing direction. When the first virtual object moves in the facing direction, the movement can include running, diving, and kicking, etc., and this application embodiment does not limit this.

[0094] In some embodiments, the distance the first virtual object moves in the target direction is the target distance, that is, the distance the first virtual object automatically moves after clicking the mirrored interactive control is the target distance. When the first virtual object automatically moves to the target distance, the first virtual object stops moving. The target distance is set by a technician according to the actual situation, and this application embodiment does not limit it.

[0095] The following describes a method by which the terminal displays a mirrored virtual object of the first virtual object at the first target position in the virtual scene in response to a triggered operation of a mirrored interactive control displayed on the virtual scene.

[0096] In this embodiment, the mirror virtual object of the first virtual object is essentially a clone of the first virtual object, possessing the same appearance. For example, if the first virtual object holds a virtual item, then the mirror virtual object also holds the same virtual item. In some embodiments, the mirror virtual object and the first virtual object have different transparency levels, allowing users to quickly distinguish between them, thus improving the efficiency of human-computer interaction. The first target position is related to the contact point between the first virtual object and the second virtual object; for example, the distance between the first target position and the contact point is a preset distance. Alternatively, the first target position may be a preset position within the virtual scene, which is not limited in this embodiment. After the terminal displays the mirror virtual object of the first virtual object at the first target position, the position of the mirror virtual object remains fixed at that position, meaning its position does not change. In some embodiments, the mirror virtual object is also referred to as a clone of the first virtual object; in this case, the first virtual object can also be referred to as the original object.

[0097] In one possible implementation, in response to a triggered operation of a mirrored interactive control displayed on the virtual scene, the terminal loads the model of the mirrored virtual object, renders the model of the mirrored virtual object at the first target location, and thereby displays the mirrored virtual object at the first target location.

[0098] For example, see Figure 5 The first virtual object 501 moves in the facing direction and generates a mirror virtual object 502 in place.

[0099] In some embodiments, when the terminal displays the mirrored virtual object at the first target location, it can use either a direct display method or a gradient display method, and this application embodiment does not limit this.

[0100] In some embodiments, in addition to being able to directly display the mirror virtual object of the first virtual object after triggering the mirror interaction control, the terminal may also display the mirror virtual object of the first virtual object after the first virtual object comes into contact with the second virtual object. This application embodiment does not limit this.

[0101] It should be noted that after step 302 above, the terminal can execute either steps 303-304 or steps 305-307 below, and this application embodiment does not limit this.

[0102] 303. During the movement of the first virtual object toward the target direction, in response to the triggering operation of the mirror interactive control again, control the first virtual object to move toward the first target position.

[0103] In one possible implementation, as the first virtual object moves toward the target direction, in response to another click on the mirrored interactive control, the terminal controls the first virtual object to move toward the first target position.

[0104] The first virtual object moves toward the first target position, which means the first virtual object moves toward its mirror image virtual object.

[0105] For example, see Figure 6 During the movement of the first virtual object toward the target direction, in response to another click operation on the mirror interactive control, the terminal controls the first virtual object 601 to move toward the first target position, that is, controls the first virtual object 601 to move toward the position where the mirror virtual object 602 is located.

[0106] In some embodiments, during the movement of the first virtual object toward the target direction, after the first virtual object makes its first contact with the second object, the terminal controls the first virtual object to continue moving toward the target direction. The terminal controls the second virtual object to remain in its current position. In response to a subsequent click on the mirrored interactive control, the terminal controls the first virtual object to move toward the first target position.

[0107] In this context, "contact between the first virtual object and the second virtual object" means that the model of the first virtual object makes contact with the model of the second virtual object. In some embodiments, invisible collision detection boxes are attached to the models of both the first and second virtual objects, allowing the terminal to determine whether their models are in contact. In some embodiments, contact between the first and second virtual objects signifies that a virtual skill triggered by the mirror interaction control is active. In some embodiments, contact between the first and second virtual objects is also a form of interaction between them, or a form of the first virtual object attacking the second virtual object in the virtual scene. When the first and second virtual objects make contact, the health value of the second virtual object decreases. The movement control is used to control the first virtual object to move towards the first target location.

[0108] From the user's perspective, after the first virtual object comes into contact with the second virtual object, the first virtual object will "pass through" the second virtual object and continue moving, while the second virtual object is "immobilized" in place. In some embodiments, the duration for which the terminal controls the second virtual object to remain in its current position is a first duration, which is set by a technician according to the actual situation, and this application embodiment does not limit it.

[0109] In one possible implementation, in response to no triggering operation being performed on the mirrored interactive control within a target duration, the terminal cancels the display of the mirrored virtual object.

[0110] 304. When the first virtual object comes into contact with the second virtual object, control the first virtual object and the second virtual object to move together toward the first target position.

[0111] The phrase "controlling the second virtual object and the first virtual object to move together toward the first target position" means controlling the second virtual object and the first virtual object to move toward the first target position at the same speed and direction. That is, during their joint movement toward the first target position, the second virtual object and the first virtual object are in an overlapping state. During the movement of the first virtual object toward the first target position, it may or may not come into contact with the second virtual object. This is because the timing of the first virtual object's movement toward the first target position depends on the timing of the second trigger of the mirror interaction control. When the second trigger of the mirror interaction control is at the correct timing, the first virtual object can make contact with the second virtual object again when moving toward the first target position. When the second trigger of the mirror interaction control is at the wrong timing, the first virtual object cannot make contact with the second virtual object again when moving toward the first target position. The correct and incorrect timings are set by those skilled in the art based on actual conditions, and this application does not limit this. For example, see... Figure 7 When the first virtual object 701 comes into contact with the second virtual object 702, the first virtual object 701 and the second virtual object 702 are controlled to move together toward the first target position, that is, the first virtual object 701 and the second virtual object 702 are controlled to move together toward the position where the mirror virtual object 703 is located.

[0112] In one possible implementation, as the first virtual object moves towards the first target location, in response to contact between the first virtual object and the second virtual object, the terminal determines the posture of the second virtual object; this target posture is also referred to as a defensive posture or a blocking posture. If the second virtual object is not in the target posture, the terminal controls both the first and second virtual objects to move together towards the first target location. Where the first virtual object contacts the second virtual object, and the second virtual object is not in the target posture, triggering the virtual skill corresponding to the mirror interaction control successfully hits the second virtual object.

[0113] In this implementation, after determining that the first virtual object and the second virtual object are in contact, the terminal can further determine the posture of the second virtual object. Only if the posture of the second virtual object is not the target posture will the terminal control the first virtual object and the second virtual object to move together towards the first target position. That is, the terminal will only display the movement control after the virtual skill corresponding to the mirror interaction control successfully hits the second virtual object.

[0114] The above step 304 is illustrated using the example of the first virtual object and the second virtual object being in contact. In other possible implementations, the first virtual object and the second virtual object are not in contact. The following describes the case where there is no contact.

[0115] In one possible implementation, if the first virtual object and the second virtual object are not in contact, the first virtual object is controlled to move towards the first target position. If the first virtual object overlaps with the mirrored virtual object, the mirrored virtual object is de-displayed.

[0116] In one possible implementation, the first virtual object is controlled to remain in its current position when it is not in contact with the second virtual object.

[0117] The above-described implementation provides a penalty mechanism: if the first virtual object fails to successfully contact the second virtual object, the terminal retains the first virtual object in its current position. The retention time is set by a technician according to the actual situation, and this application embodiment does not limit this. While the retention time continues, the first virtual object cannot move within the virtual scene.

[0118] 305. During the movement of the first virtual object toward the target direction, in response to the contact between the first virtual object and the second virtual object, the terminal controls the first virtual object to move to the second target position in the virtual scene, and the second virtual object is located between the first target position and the second target position.

[0119] In some embodiments, the second target position is associated with the position of the second virtual object in the virtual scene. The distance between the second target position and the position of the second virtual object in the virtual scene is less than or equal to a second distance threshold. In other words, the second target position is next to the second virtual object. The second distance threshold is set by a technician according to actual conditions, and this application embodiment does not limit this. The second virtual object is located between the first target position and the second target position. If the first target position is on the left side of the virtual scene, the second target position is on the right side of the virtual scene. If the second virtual object faces the left side of the virtual scene, the second target position is behind the second virtual object. For example, see [link to relevant documentation]. Figure 4 The first virtual object 401 is located behind the second virtual object 402.

[0120] In one possible implementation, during the movement of the first virtual object toward the target direction, in response to contact between the first virtual object and the second virtual object, the terminal determines the posture of the second virtual object. If the second virtual object is not in the target posture, the terminal controls the first virtual object to move to the second target position in the virtual scene. This target posture is also known as a defensive posture or blocking posture. When the second virtual object is in the target posture, the first virtual object cannot successfully interact with the second virtual object; that is, attacks from the first virtual object cannot affect the second virtual object. During the movement of the first virtual object to the second target position, the second virtual object is in a state where it cannot move. If the first virtual object is facing the second virtual object, and the second virtual object is facing the first virtual object, and if the first virtual object is in contact with the second virtual object but the second virtual object is not in the target posture, the terminal controls the first virtual object to move behind the second virtual object. When the second virtual object is in the target posture, the terminal does not control the first virtual object to move to the second target position, but interrupts the process of the first virtual object moving towards the target direction, and determines the final position of the first virtual object as the position that contacts the second virtual object.

[0121] In this implementation, after determining that the first virtual object and the second virtual object are in contact, the terminal can further determine the posture of the second virtual object. Only if the posture of the second virtual object is not the target posture will the terminal control the first virtual object to move to the second target position. From the user's perspective, the movement of the first virtual object to the second target position indicates that the virtual skill corresponding to the mirrored interactive control has been successfully triggered, resulting in high efficiency in human-computer interaction. Furthermore, the target posture provides the second virtual object with a means to counter the first virtual object, preventing the virtual skill from becoming too powerful and causing a loss of game balance.

[0122] To provide a clearer explanation of the above implementation method, the following describes the method by which the terminal controls the first virtual object to move to the second target position in the virtual scene.

[0123] Method 1: The terminal controls the first virtual object to move from the position where it is in contact with the second virtual object, past the second virtual object, and reach the second target position.

[0124] In this way, the terminal controls the first virtual object to reach the second target position along a specific trajectory, and the movement of the first virtual object is relatively smooth.

[0125] For example, when the first virtual object comes into contact with the second virtual object, and the second virtual object is not in the target pose, the terminal generates a first trajectory starting from the point where the first virtual object comes into contact with the second virtual object. This first trajectory is a path that crosses the second virtual object from the starting point and reaches the second target position. The terminal then controls the first virtual object to travel along the first trajectory to the second target position.

[0126] Method 2: The terminal controls the first virtual object to pass directly through the second virtual object and reach the second target location.

[0127] In this method, the terminal controls the first virtual object to move the shortest distance, and the first virtual object can reach the second target position at a relatively fast speed, resulting in high efficiency of human-computer interaction.

[0128] Method 3: The terminal controls the position of the first virtual object to move directly from the position in contact with the second virtual object to the second target position.

[0129] In this method, the terminal controls the first virtual object to appear directly at the second target location after the contact position disappears, and the position transformation of the first virtual object is most efficient.

[0130] It should be noted that the terminal can use any of the above methods to control the first virtual object to move to the second target location, and the embodiments of this application do not limit this.

[0131] In some embodiments, when the first virtual object is equipped with a virtual item, and when the first virtual object comes into contact with the second virtual object, the terminal controls the first virtual object to use the equipped virtual item to interact with the second virtual object, that is, to use the virtual item to attack the second virtual object. If the first virtual object successfully interacts with the second virtual object using the virtual item, the terminal moves the first virtual object to the second target location; if the first virtual object fails to successfully interact with the second virtual object using the virtual item, the terminal does not move the first virtual object to the second target location. Whether the first virtual object can successfully interact with the second virtual object using the virtual item depends on whether the second virtual object is in the target posture. If the second virtual object is in the target posture, the first virtual object cannot successfully interact with the second virtual object using the virtual item; if the second virtual object is not in the target posture, the first virtual object can successfully interact with the second virtual object using the virtual item.

[0132] 306. The terminal controls the first virtual object to interact with the second virtual object at the second target location.

[0133] The interaction between the first virtual object and the second virtual object at the second target location refers to the first virtual object attacking the second virtual object at the second target location. The purpose of this interaction is to change the position of the second virtual object. In some embodiments, the purpose of the interaction also includes reducing the health value of the second virtual object.

[0134] In one possible implementation, when the first virtual object is equipped with a virtual prop, the terminal controls the first virtual object to use the virtual prop to interact with the second virtual object at the second target location. That is, the terminal controls the first virtual object to use the virtual prop to attack the second virtual object at the second target location. For example, the terminal controls the first virtual object to swing the virtual prop at the second target location, or the terminal controls the first virtual object to attack the second virtual object at the second target location in the form of a "flying kick".

[0135] 307. The terminal controls the first virtual object and the second virtual object to move together toward the first target location.

[0136] The first target location is the location of the mirror virtual object of the first virtual object displayed on the terminal. Controlling the second virtual object to move towards the first target location is equivalent to controlling the second virtual object to move towards the location of the mirror virtual object.

[0137] In one possible implementation, the terminal generates a second trajectory based on the current position of the second virtual object and the first target position. The starting point of the second trajectory is the current position of the second virtual object, and the ending point is the first target position. The terminal controls the second virtual object to move along the second trajectory towards the first target position. The function for generating the trajectory based on the two positions can be set by an expert according to the actual situation; this application embodiment does not limit this. When the second virtual object moves along the second trajectory towards the first target position, the geometric center of the model of the second virtual object always lies on the second trajectory.

[0138] 308. When the first virtual object overlaps with the mirrored virtual object, and the distance between the second virtual object and the mirrored virtual object meets the first distance condition, the terminal controls the first virtual object to interact with the second virtual object.

[0139] The overlap between the first virtual object and the mirrored virtual object means that the model of the first virtual object overlaps with the model of the mirrored virtual object.

[0140] In one possible implementation, when the first virtual object overlaps with the mirrored virtual object, and the distance between the second virtual object and the mirrored virtual object is less than or equal to a first distance threshold, the terminal controls the first virtual object to interact with the second virtual object, that is, controls the first virtual object to attack the second virtual object, for example, controls the first virtual object to use virtual props to attack the second virtual object.

[0141] For example, see Figure 8 When the first virtual object 801 overlaps with the mirrored virtual object, and the distance between the second virtual object 802 and the mirrored virtual object meets the first distance condition, the terminal controls the first virtual object 801 and the second virtual object 802 to interact.

[0142] In one possible implementation, when the first virtual object overlaps with the mirrored virtual object, and the distance between the second virtual object and the mirrored virtual object is less than or equal to a first distance threshold, the terminal controls the mirrored virtual object and the first virtual object to interact with the second virtual object simultaneously.

[0143] In this implementation, the terminal can control the mirrored virtual object and the first virtual object to interact with the second virtual object simultaneously, that is, control the mirrored virtual object and the first virtual object to attack the second virtual object simultaneously. This provides users with richer attack methods and improves the efficiency of human-computer interaction.

[0144] In some embodiments, when the first virtual object and the mirrored virtual object overlap, and the distance between the second virtual object and the mirrored virtual object meets the first distance condition, the terminal can control the mirrored virtual object to interact directly with the second virtual object, in addition to controlling the interaction between the first virtual object and the second virtual object. This application embodiment does not limit this. In this application embodiment, the interaction between the first virtual object and the second virtual object is used as an example for explanation.

[0145] The following will combine Figure 9 The above implementation methods will be described in detail; see [link to documentation]. Figure 9 The main body is a first virtual object, the clone is a mirror image of the first virtual object, and the enemy is a second virtual object. In response to a click on the mirror interaction control, the main body releases a target virtual skill in the virtual scene, moves towards the target direction, and displays the mirror image of the first virtual object at the first target position in the virtual scene. Reactivating the mirror interaction control, in response to another click, controls the first virtual object to move towards the location of the mirror image. When the first virtual object and the second virtual object are in contact, both move towards the location of the mirror image. When the first virtual object and the mirror image overlap, and the distance between the second virtual object and the mirror image is less than or equal to a first distance threshold, the first virtual object interacts with the second virtual object. When the first virtual object is not in contact with the second virtual object, the first virtual object moves towards the location of the mirror image, and the mirror image is dedisplayed. Without a second click on the mirror interaction control, the mirror image is dedisplayed.

[0146] Optionally, after step 308, the terminal may also execute steps 309-310, or steps 311-312, or steps 313-314, or steps 315-317. This application embodiment does not limit this.

[0147] 309. When the first virtual object and the second virtual object successfully interact, the terminal adjusts the position of the first virtual object to the third target position and controls the second virtual object to move to the third target position in the virtual scene. The third target position is the position when the first virtual object and the second virtual object come into contact.

[0148] In this context, successful interaction between the first virtual object and the second virtual object means that the attack of the first virtual object successfully hits the second virtual object. This means that the punches, kicks, or equipped virtual items of the first virtual object come into contact with the second virtual object. In some embodiments, an invisible collision detection box is attached to the punches, kicks, or equipped virtual items of the first virtual object, and an invisible collision detection box is also attached to the second virtual object. The terminal can determine whether the attack of the first virtual object successfully hits the second virtual object through this collision detection box. When the collision detection box corresponding to the first virtual object comes into contact with the collision detection box corresponding to the second virtual object, it is determined that the attack of the first virtual object successfully hits the second virtual object, that is, the first virtual object and the second virtual object successfully interact. When the collision detection box corresponding to the first virtual object does not come into contact with the collision detection box corresponding to the second virtual object, it is determined that the attack of the first virtual object failed to hit the second virtual object, that is, the first virtual object and the second virtual object did not successfully interact.

[0149] In step 309, if the first virtual object and the second virtual object successfully interact, the terminal can move the first virtual object to a third target location in the virtual scene, so that the user can interact with the second virtual object again based on the first virtual object.

[0150] 310. The terminal displays a continuous interactive control on the virtual scene, which is used to control the interaction between the first virtual object and the second virtual object.

[0151] The continuous interaction control is displayed when the first virtual object and the second virtual object successfully interact. It can be regarded as a "reward" for the successful interaction between the first virtual object and the second virtual object. The continuous interaction control is used to control the interaction between the first virtual object and the second virtual object, that is, to control the first virtual object to attack the second virtual object in the virtual scene.

[0152] Optionally, after step 310, the terminal may also perform the following steps.

[0153] In one possible implementation, in response to a triggering operation of the continuous interactive control, the terminal controls the first virtual object to move towards the location of the second virtual object. If the distance between the first virtual object and the second virtual object meets a second distance condition, the terminal controls the first virtual object to interact with the second virtual object.

[0154] Successful interaction between the first virtual object and the second virtual object will reduce the health value of the second virtual object.

[0155] In this implementation, by triggering the continuous interaction control, the first virtual object can be controlled to automatically move to the location of the second virtual object, and when the distance between the first virtual object and the second virtual object meets the second distance condition, the first virtual object can automatically interact with the second virtual object. This interaction process only requires the user to trigger the continuous interaction control once, and the efficiency of human-computer interaction is high.

[0156] For example, in response to a click operation on the continuous interactive control, the terminal controls the first virtual object to move towards the location of the second virtual object. Since the second virtual object is "shot" towards the location of the first virtual object by the mirrored virtual object, the second virtual object is also in the process of moving, and its location will continuously change. Therefore, controlling the first virtual object to move towards the location of the second virtual object is a process of continuously reducing the distance between the first and second virtual objects. When the distance between the first and second virtual objects is less than or equal to a second distance threshold, the terminal controls the first virtual object to interact with the second virtual object, that is, controls the first virtual object to attack the second virtual object in the virtual scene. The second distance threshold is the maximum attack distance of the first virtual object, which is set by a technician according to the actual situation, and this application embodiment does not limit it.

[0157] In one possible implementation, in response to a triggering operation of the continuous interactive control, the terminal displays a magnified target virtual item around the first virtual object, the target virtual item being a virtual item equipped by the first virtual object. When the second virtual object comes into contact with the target virtual item, the terminal controls the second virtual object to move upwards towards the first virtual object, reducing the health value of the second virtual object.

[0158] In this implementation, by triggering the continuous interactive control, the terminal displays a magnified target virtual prop around the first virtual object. This target virtual prop is a virtual prop equipped by the first virtual object. By magnifying and displaying the target virtual prop, the terminal essentially displays a virtual obstacle in the virtual scene. When the second virtual object comes into contact with the target virtual prop, the terminal controls the second virtual object to change its direction of movement, that is, from moving towards the third target position to moving above the first virtual object, presenting a visual effect of being "knocked away by the target virtual prop." This enriches the ways in which the first virtual object and the second virtual object interact, improving the efficiency of human-computer interaction.

[0159] For example, in response to a click on the continuous interactive control, the terminal displays a magnified target virtual prop around the first virtual object, including the left and right sides of the first virtual object or the location of the first virtual object. When the model of the second virtual object comes into contact with the model of the target virtual prop, the terminal controls the second virtual object to move upwards towards the first virtual object and reduces the health value of the second virtual object.

[0160] 311. When the first virtual object and the second virtual object successfully interact, the terminal determines the direction of movement of the second virtual object in the virtual scene based on the target part of the second virtual object, where the target part of the second virtual object is the part that successfully interacts with the mirrored virtual object.

[0161] The target part of the second virtual object is the part that successfully interacts with the mirrored virtual object, or the part that is hit when the mirrored virtual object attacks the second virtual object. In some embodiments, multiple parts of the second virtual object are respectively bound to invisible collision detection boxes. When the first virtual object and the second virtual object successfully interact, the terminal determines the target collision detection box on the second virtual object that came into contact with the mirrored virtual object during the interaction, and the part bound to the target collision detection box is the target part of the second virtual object.

[0162] In one possible implementation, when the target part is the head of the second virtual object, the terminal determines the direction in which the second virtual object moves in the virtual scene to be below the mirrored virtual object.

[0163] In this implementation, when it is necessary to move the second virtual object below the mirrored virtual object, the user can control the mirrored virtual object to interact with the head of the second virtual object, resulting in high efficiency of human-computer interaction.

[0164] In one possible implementation, when the target part is the torso of the second virtual object, the terminal determines the direction in which the second virtual object moves in the virtual scene as the direction in which it moves toward the first virtual object.

[0165] In this implementation, when it is necessary to move the second virtual object to the direction where the first virtual object is located, the user can control the mirrored virtual object to interact with the torso of the second virtual object, which results in high efficiency of human-computer interaction.

[0166] In one possible implementation, if the target location is the foot of the second virtual object, the terminal determines the direction in which the second virtual object moves in the virtual scene to be above the mirrored virtual object.

[0167] In this implementation, when it is necessary to move the second virtual object above the mirrored virtual object, the user can control the mirrored virtual object to interact with the feet of the second virtual object, resulting in high efficiency of human-computer interaction.

[0168] It should be noted that the parts given in the above three implementation methods are merely examples. In other possible implementation methods, those skilled in the art may further subdivide the second virtual object into more parts and set a movement direction for each part. This application does not limit this.

[0169] Through the above step 311, the user can control the mirrored virtual object to interact with different parts of the second virtual object, thereby controlling the second virtual object to move in different directions. The user can choose different movement directions according to the actual situation, thereby completing different interaction combinations, providing the user with richer choices and improving the user's gaming experience.

[0170] 312. The terminal controls the second virtual object to move in the virtual scene according to the determined direction.

[0171] 313. If the first virtual object and the second virtual object successfully interact, control the first virtual object to enter the target state.

[0172] The target state, also known as the counter-attack state, allows the first virtual object to automatically interact with the second virtual object when the first virtual object interacts with it. In other words, when the second virtual object attacks the first virtual object, the first virtual object in the target state can automatically retaliate. This target state has a certain duration, which is set by technicians according to the actual situation.

[0173] 314. During the duration of the target state, in response to the successful interaction between the second virtual object and the first virtual object, the terminal controls the first virtual object to automatically interact with the second virtual object.

[0174] In one possible implementation, during the duration of the target state, in response to the attack of the second virtual object hitting the first virtual object, the terminal controls the first virtual object to automatically retaliate against the second virtual object.

[0175] 315. When the first virtual object and the second virtual object successfully interact, the terminal adjusts the position of the first virtual object to a third target position and displays a position exchange control in the virtual scene. The third target position is the position where the first virtual object was when it came into contact with the second virtual object.

[0176] The position swapping control is displayed in the virtual scene. The function of the position swapping control is to swap the positions of the first virtual object and the mirrored virtual object. The display position of the position swapping control is set by the technician according to the actual situation. This application embodiment does not limit this.

[0177] 316. In response to a trigger operation on the position swapping control, the terminal swaps the positions of the first virtual object and the mirrored virtual object in the virtual scene.

[0178] In one possible implementation, in response to a click operation on the position-swapping control, the terminal swaps the positions of the first virtual object and the mirrored virtual object in the virtual scene.

[0179] 317. In response to a re-triggering operation of the mirror interaction control, the terminal controls the first virtual object to interact with the second virtual object.

[0180] In one possible implementation, in response to another click on the mirrored interactive control, the terminal controls the first virtual object to interact with the second virtual object, that is, controls the first virtual object to attack the second virtual object, for example, controls the first virtual object to use virtual props to attack the second virtual object.

[0181] It should be noted that after clicking the mirror interaction control again, the first virtual object will directly execute an action to interact with the second virtual object. However, executing this action does not guarantee successful interaction with the second virtual object; interaction failure is also possible. For example, if the interaction between the first and second virtual objects refers to the first virtual object attacking the second virtual object in the virtual scene, then clicking the mirror interaction control will cause the first virtual object to execute an attack action, such as swinging a virtual item. However, the attack action executed by the first virtual object may or may not hit the second virtual object. This is due to two reasons: first, the interaction distance of the first virtual object is limited; second, the second virtual object has been moved to the first target location and is in a moving state. For the first and second virtual objects to interact successfully, the mirror interaction control must be triggered within a target time range. This target time range is determined by the terminal based on parameters such as the movement speed of the second virtual object, the size information of the second virtual object, and the interaction distance of the first virtual object. From the user's perspective, the prerequisite for successfully controlling the first virtual object to interact with the second virtual object is that the timing of clicking the mirror interaction control again is correct, which the user can achieve through multiple training sessions.

[0182] Optionally, in addition to the steps described in step 317 above, after the mirror interaction control is triggered again, the terminal can also perform the following steps.

[0183] In one possible implementation, in response to a re-triggering of the mirrored interactive control, the terminal controls the mirrored virtual object to move towards the location of the first virtual object. When the mirrored virtual object comes into contact with the second virtual object, the terminal reduces the health value of the second virtual object. Of course, while the terminal controls the mirrored virtual object to move towards the location of the first virtual object, it can simultaneously control the first virtual object to interact with the second virtual object.

[0184] The triggering action is a click action.

[0185] In some embodiments, if the mirrored virtual object overlaps with the first virtual object, the terminal cancels the display of the mirrored virtual object.

[0186] In this implementation, the terminal provides another way for the first virtual object and the second virtual object to interact by controlling the mirrored virtual object to move to the location of the first virtual object. That is, touching the mirrored virtual object will reduce the health value of the second virtual object, thereby enriching the user's choices and improving the efficiency of human-computer interaction.

[0187] Optionally, after step 317, the terminal may also perform the following steps.

[0188] In one possible implementation, if the first virtual object and the second virtual object successfully interact, the terminal controls the second virtual object to move to the current location of the mirrored virtual object. In response to a subsequent triggering of the position-swapping control, the terminal again swaps the positions of the first virtual object and the mirrored virtual object within the virtual scene. In response to a subsequent triggering of the mirrored interaction control, the terminal controls the first virtual object to interact with the second virtual object.

[0189] The triggering action is a click action.

[0190] In this implementation, the position swapping control also provides a secondary triggering function. By triggering the position swapping control a second time, the positions of the first virtual object and the mirrored virtual object can be swapped again, so that the second virtual object can be interacted with again based on the first virtual object.

[0191] It should be noted that the above steps 301-317 are described using the terminal as the execution subject as an example. In other possible implementations, the server may also execute the data processing steps in the above steps 301-317, and the terminal may display the data processing results. This application embodiment does not limit this.

[0192] All of the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.

[0193] The technical solution provided in this application provides a mirror interaction control in a virtual scene. Triggering this mirror interaction control controls a first virtual object to move in a target direction and displays a mirror image of the first virtual object in the virtual scene. During the movement of the first virtual object, in response to another triggering operation of the mirror interaction control, the first virtual object moves towards the location of the mirror image. When the first virtual object comes into contact with the second virtual object, both the first and second virtual objects move together towards the location of the mirror image. When the first and mirror images overlap and the second and mirror images are sufficiently close, the first and second virtual objects interact. By setting up mirror images, the interaction methods between the first and second virtual objects are enriched, allowing users to effectively interact with the second virtual object using mirror images, thereby improving the efficiency of human-computer interaction.

[0194] Figure 10 This is a schematic diagram of the structure of a virtual object control device provided in an embodiment of this application. See also... Figure 10 The device includes: a virtual scene display module 1001, a first virtual object control module 1002, and a second virtual object control module 1003.

[0195] The virtual scene display module 1001 is used to display a virtual scene, which displays a first virtual object and a second virtual object. The first virtual object is a virtual object controlled by the terminal, and the second virtual object belongs to a different camp than the first virtual object.

[0196] The first virtual object control module 1002 is used to respond to the trigger operation of the mirror interactive control displayed on the virtual scene, control the first virtual object to move in the target direction, and display the mirror virtual object of the first virtual object at the first target position in the virtual scene.

[0197] The first virtual object control module 1002 is further configured to, in response to a trigger operation on the mirror interactive control again, control the first virtual object to move towards the first target position during the process of the first virtual object moving towards the target direction.

[0198] The second virtual object control module 1003 is used to control the first virtual object and the second virtual object to move together toward the first target position when the first virtual object comes into contact with the second virtual object.

[0199] The first virtual object control module 1002 is further configured to control the first virtual object and the second virtual object to interact when the first virtual object overlaps with the mirrored virtual object and the distance between the second virtual object and the mirrored virtual object meets the first distance condition.

[0200] In one possible implementation, the first virtual object control module 1002 is used to control the first virtual object to move towards the first target position when the first virtual object and the second virtual object are not in contact. When the first virtual object overlaps with the mirrored virtual object, the mirrored virtual object is de-displayed.

[0201] In one possible implementation, the first virtual object control module 1002 is used to control the mirror virtual object and the first virtual object to interact with the second virtual object simultaneously when the first virtual object overlaps with the mirror virtual object and the distance between the second virtual object and the mirror virtual object is less than or equal to a first distance threshold.

[0202] In one possible implementation, the second virtual object control module 1003 is further configured to, when the first virtual object and the second virtual object successfully interact, determine the direction of movement of the second virtual object in the virtual scene based on a target part of the second virtual object, wherein the target part of the second virtual object is the part that successfully interacted with the first virtual object. The module then controls the second virtual object to move in the virtual scene according to the determined direction.

[0203] In one possible implementation, the second virtual object control module 1003 is further configured to perform any of the following:

[0204] When the target part is the head of the second virtual object, the direction in which the second virtual object moves in the virtual scene is determined to be below the mirrored virtual object.

[0205] When the target part is the torso of the second virtual object, the direction in which the second virtual object moves in the virtual scene is determined to be the direction in which it moves toward the first virtual object.

[0206] When the target location is the foot of the second virtual object, the direction in which the second virtual object moves in the virtual scene is determined to be above the mirrored virtual object.

[0207] In one possible implementation, the first virtual object control module 1002 is further configured to control the first virtual object to enter a target state when the first virtual object successfully interacts with the second virtual object. During the duration of the target state, in response to the second virtual object successfully interacting with the first virtual object, the first virtual object is controlled to automatically interact with the second virtual object.

[0208] In one possible implementation, the second virtual object control module 1003 is configured to, in response to contact between the first virtual object and the second virtual object, control the first virtual object to move to a second target position in the virtual scene, wherein the second virtual object is located between the first target position and the second target position. The module also controls the first virtual object to interact with the second virtual object at the second target position, and controls both the first and second virtual objects to move together towards the first target position.

[0209] In one possible implementation, the first virtual object control module 1002 is further configured to, when the first virtual object and the second virtual object successfully interact, adjust the position of the first virtual object to a third target position and control the second virtual object to move toward the third target position of the virtual scene, wherein the third target position is the position where the first virtual object and the second virtual object are in contact.

[0210] The device also includes:

[0211] A continuous interactive control display module is used to display continuous interactive controls on the virtual scene. The continuous interactive controls are used to control the interaction between the first virtual object and the second virtual object.

[0212] In one possible implementation, the first virtual object control module 1002 is further configured to perform any of the following:

[0213] In response to a trigger operation on the continuous interactive control, the first virtual object is controlled to move towards the location of the second virtual object. If the distance between the first and second virtual objects meets a second distance condition, the first and second virtual objects are controlled to interact.

[0214] In response to a trigger operation on the continuous interactive control, a magnified target virtual item is displayed around the first virtual object. This target virtual item is a virtual item equipped by the first virtual object. When the second virtual object comes into contact with the target virtual item, the second virtual object is controlled to move upwards towards the first virtual object, reducing the health value of the second virtual object.

[0215] In one possible implementation, the first virtual object control module 1002 is further configured to, upon successful interaction between the first virtual object and the second virtual object, adjust the position of the first virtual object to a third target position, and display a position-swapping control in the virtual scene. The third target position is the position where the first virtual object was when it came into contact with the second virtual object. In response to a trigger operation on the position-swapping control, the positions of the first virtual object and the mirrored virtual object in the virtual scene are swapped. In response to another trigger operation on the mirrored interaction control, the first virtual object is controlled to interact with the second virtual object.

[0216] In one possible implementation, the mirrored virtual object control module is further configured to control the mirrored virtual object to move towards the location of the first virtual object. When the mirrored virtual object comes into contact with the second virtual object, the health value of the second virtual object is reduced.

[0217] In one possible implementation, the first virtual object control module 1002 is further configured to, upon successful interaction between the first virtual object and the second virtual object, control the second virtual object to move towards the current location of the mirror virtual object. In response to a subsequent triggering of the position-swapping control, the positions of the first virtual object and the mirror virtual object in the virtual scene are swapped again. In response to a subsequent triggering of the mirror interaction control, the first virtual object is controlled to interact with the second virtual object.

[0218] In one possible implementation, the first virtual object control module 1002 is further configured to maintain the first virtual object in its current position if the first virtual object fails to interact successfully with the second virtual object.

[0219] In one possible implementation, the mirrored virtual object control module is further configured to cancel the display of the mirrored virtual object when the first virtual object is in contact with the second virtual object and the second virtual object is in a target posture.

[0220] In one possible implementation, the mirror virtual object control module is further configured to cancel the display of the mirror virtual object in response to the fact that no trigger operation is performed on the mirror interactive control within a target duration.

[0221] It should be noted that the control device for virtual objects provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above. In addition, the control device for virtual objects and the control method for virtual objects provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0222] The technical solution provided in this application provides a mirror interaction control in a virtual scene. Triggering this mirror interaction control controls a first virtual object to move in a target direction and displays a mirror image of the first virtual object in the virtual scene. During the movement of the first virtual object, in response to another triggering operation of the mirror interaction control, the first virtual object moves towards the location of the mirror image. When the first virtual object comes into contact with the second virtual object, both the first and second virtual objects move together towards the location of the mirror image. When the first and mirror images overlap and the second and mirror images are sufficiently close, the first and second virtual objects interact. By setting up mirror images, the interaction methods between the first and second virtual objects are enriched, allowing users to effectively interact with the second virtual object using mirror images, thereby improving the efficiency of human-computer interaction.

[0223] This application provides a computer device for performing the above-described method. This computer device can be implemented as a terminal or a server. The structure of the terminal will be described below:

[0224] Figure 11 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. The terminal 1100 can be a smartphone, tablet computer, laptop computer, or desktop computer. The terminal 1100 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names.

[0225] Typically, terminal 1100 includes one or more processors 1101 and one or more memories 1102.

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

[0227] The memory 1102 may include one or more computer-readable storage media, which may be non-transitory. The memory 1102 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1102 are used to store at least one computer program, which is executed by the processor 1101 to implement the virtual object control method provided in the method embodiments of this application.

[0228] In some embodiments, the terminal 1100 may also optionally include a peripheral device interface 1103 and at least one peripheral device. The processor 1101, memory 1102, and peripheral device interface 1103 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1103 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1104, a display screen 1105, a camera assembly 1106, an audio circuit 1107, and a power supply 1108.

[0229] Peripheral device interface 1103 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1101 and memory 1102. In some embodiments, processor 1101, memory 1102 and peripheral device interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1101, memory 1102 and peripheral device interface 1103 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0230] The radio frequency (RF) circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1104 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1104 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc.

[0231] Display screen 1105 is used to display a user interface (UI). This UI may include graphics, text, icons, video, and any combination thereof. When display screen 1105 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1101 for processing. In this case, display screen 1105 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard.

[0232] The camera assembly 1106 is used to capture images or videos. Optionally, the camera assembly 1106 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal.

[0233] The audio circuit 1107 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input to the processor 1101 for processing, or input to the radio frequency circuit 1104 to realize voice communication.

[0234] Power supply 1108 is used to supply power to the various components in terminal 1100. Power supply 1108 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery.

[0235] In some embodiments, the terminal 1100 further includes one or more sensors 1109. The one or more sensors 1109 include, but are not limited to: an acceleration sensor 1110, a gyroscope sensor 1111, a pressure sensor 1112, an optical sensor 1113, and a proximity sensor 1114.

[0236] Accelerometer 1110 can detect the magnitude of acceleration on the three coordinate axes of a coordinate system established with terminal 1100.

[0237] The gyroscope sensor 1111 can detect the orientation and rotation angle of the terminal 1100. The gyroscope sensor 1111 can work in conjunction with the accelerometer sensor 1110 to collect the user's 3D movements on the terminal 1100.

[0238] The pressure sensor 1112 can be installed on the side bezel of the terminal 1100 and / or on the lower layer of the display screen 1105. When the pressure sensor 1112 is installed on the side bezel of the terminal 1100, it can detect the user's grip signal on the terminal 1100, and the processor 1101 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1112. When the pressure sensor 1112 is installed on the lower layer of the display screen 1105, the processor 1101 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 1105.

[0239] An optical sensor 1113 is used to collect ambient light intensity. In one embodiment, a processor 1101 can control the display brightness of a display screen 1105 based on the ambient light intensity collected by the optical sensor 1113.

[0240] The proximity sensor 1114 is used to detect the distance between the user and the front of the terminal 1100.

[0241] Those skilled in the art will understand that Figure 11 The structure shown does not constitute a limitation on terminal 1100 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0242] The aforementioned computer equipment can also be implemented as a server. The structure of a server is described below:

[0243] Figure 12This is a schematic diagram of a server structure provided in an embodiment of this application. The server 1200 can vary significantly due to different configurations or performance. It may include one or more Central Processing Units (CPUs) 1201 and one or more memories 1202. The one or more memories 1202 store at least one computer program, which is loaded and executed by the one or more processors 1201 to implement the methods provided in the above-described method embodiments. Of course, the server 1200 may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The server 1200 may also include other components for implementing device functions, which will not be elaborated upon here.

[0244] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a computer program that can be executed by a processor to perform the control method for the virtual object in the above embodiments. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.

[0245] In an exemplary embodiment, a computer program product or computer program is also provided, which includes program code stored in a computer-readable storage medium. The processor of a computer device reads the program code from the computer-readable storage medium and executes the program code, causing the computer device to perform the control method of the virtual object described above.

[0246] In some embodiments, the computer program involved in the present application embodiments may be deployed and executed on a computer device, or executed on multiple computer devices located in one location, or executed on multiple computer devices distributed in multiple locations and interconnected through a communication network. Multiple computer devices distributed in multiple locations and interconnected through a communication network may constitute a blockchain system.

[0247] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0248] The above are merely optional embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for controlling a virtual object, characterized in that, The method includes: A virtual scene is displayed, in which a first virtual object and a second virtual object are displayed. The first virtual object is a virtual object controlled by a terminal, and the second virtual object belongs to a different faction from the first virtual object. In response to a trigger operation on a mirrored interactive control displayed on the virtual scene, the first virtual object is controlled to move in the target direction, and a mirrored virtual object of the first virtual object is displayed at a first target position in the virtual scene; During the movement of the first virtual object toward the target direction, in response to the triggering operation of the mirror interactive control again, the first virtual object is controlled to move toward the first target position. When the first virtual object comes into contact with the second virtual object, control the first virtual object and the second virtual object to move together toward the first target position; When the first virtual object overlaps with the mirrored virtual object, and the distance between the second virtual object and the mirrored virtual object meets the first distance condition, control the first virtual object to interact with the second virtual object; Wherein, after responding to another trigger operation on the mirror interactive control and controlling the first virtual object to move towards the first target position, the method further includes: When the first virtual object and the second virtual object are not in contact, control the first virtual object to move towards the first target position; If the first virtual object overlaps with the mirrored virtual object, the mirrored virtual object is canceled from display.

2. The method according to claim 1, characterized in that, The step of controlling the interaction between the first virtual object and the second virtual object when the first virtual object and the mirrored virtual object overlap and the distance between the second virtual object and the mirrored virtual object meets the first distance condition includes: When the first virtual object overlaps with the mirrored virtual object, and the distance between the second virtual object and the mirrored virtual object is less than or equal to a first distance threshold, the mirrored virtual object and the first virtual object are controlled to interact with the second virtual object simultaneously.

3. The method according to claim 1, characterized in that, After controlling the interaction between the first virtual object and the second virtual object when the first virtual object and the mirrored virtual object overlap and the distance between the second virtual object and the mirrored virtual object meets the first distance condition, the method further includes: When the first virtual object and the second virtual object successfully interact, the direction of movement of the second virtual object in the virtual scene is determined based on the target part of the second virtual object, where the target part of the second virtual object is the part that successfully interacts with the first virtual object. Control the second virtual object to move in the virtual scene in the determined direction.

4. The method according to claim 3, characterized in that, Determining the direction of movement of the second virtual object in the virtual scene based on the target part of the second virtual object includes any one of the following: When the target part is the head of the second virtual object, the direction in which the second virtual object moves in the virtual scene is determined to be below the mirrored virtual object; When the target part is the torso of the second virtual object, the direction in which the second virtual object moves in the virtual scene is determined to be the direction in which it moves toward the first virtual object; When the target part is the foot of the second virtual object, the direction in which the second virtual object moves in the virtual scene is determined to be above the mirrored virtual object.

5. The method according to claim 1, characterized in that, After controlling the interaction between the first virtual object and the second virtual object when the first virtual object and the mirrored virtual object overlap and the distance between the second virtual object and the mirrored virtual object meets the first distance condition, the method further includes: If the first virtual object and the second virtual object successfully interact, control the first virtual object to enter the target state; During the duration of the target state, in response to the second virtual object successfully interacting with the first virtual object, the first virtual object is controlled to automatically interact with the second virtual object.

6. The method according to claim 1, characterized in that, When the first virtual object and the second virtual object are in contact, controlling the first virtual object and the second virtual object to move together toward the first target position includes: In response to the first virtual object coming into contact with the second virtual object, the first virtual object is controlled to move to a second target position in the virtual scene, and the second virtual object is located between the first target position and the second target position; Control the first virtual object to interact with the second virtual object at the second target location, and control the first virtual object and the second virtual object to move together towards the first target location.

7. The method according to claim 1, characterized in that, After controlling the interaction between the first virtual object and the second virtual object when the first virtual object and the mirrored virtual object overlap and the distance between the second virtual object and the mirrored virtual object meets the first distance condition, the method further includes: When the first virtual object and the second virtual object successfully interact, the position of the first virtual object is adjusted to the third target position, and the second virtual object is controlled to move towards the third target position of the virtual scene. The third target position is the position where the first virtual object and the second virtual object are in contact. A continuous interactive control is displayed on the virtual scene, which is used to control the interaction between the first virtual object and the second virtual object.

8. The method according to claim 7, characterized in that, After displaying continuous interactive controls on the virtual scene, the method further includes any one of the following: In response to the triggering operation of the continuous interactive control, the first virtual object is controlled to move to the location of the second virtual object; when the distance between the first virtual object and the second virtual object meets the second distance condition, the first virtual object is controlled to interact with the second virtual object. In response to the triggering operation of the continuous interactive control, a magnified target virtual item is displayed around the first virtual object, the target virtual item being a virtual item equipped by the first virtual object; when the second virtual object comes into contact with the target virtual item, the second virtual object is controlled to move upwards towards the first virtual object, reducing the health value of the second virtual object.

9. The method according to claim 1, characterized in that, After controlling the interaction between the first virtual object and the second virtual object when the first virtual object and the mirrored virtual object overlap and the distance between the second virtual object and the mirrored virtual object meets the first distance condition, the method further includes: When the first virtual object and the second virtual object successfully interact, the position of the first virtual object is adjusted to the third target position, and a position swapping control is displayed in the virtual scene. The third target position is the position where the first virtual object and the second virtual object are in contact. In response to a trigger operation on the position swapping control, the positions of the first virtual object and the mirrored virtual object are swapped in the virtual scene; In response to a re-triggering operation of the mirror interaction control, control the first virtual object to interact with the second virtual object.

10. The method according to claim 9, characterized in that, Following a subsequent triggering operation on the mirrored interactive control, the method further includes: Control the mirrored virtual object to move to the location of the first virtual object; When the mirrored virtual object comes into contact with the second virtual object, the health value of the second virtual object is reduced.

11. The method according to claim 9, characterized in that, After controlling the interaction between the first virtual object and the second virtual object, the method further includes: If the first virtual object and the second virtual object successfully interact, control the second virtual object to move to the current location of the mirror virtual object; In response to another trigger operation on the position swapping control, the positions of the first virtual object and the mirrored virtual object in the virtual scene are swapped again; In response to a re-triggering operation of the mirror interaction control, control the first virtual object to interact with the second virtual object.

12. The method according to claim 1, characterized in that, After controlling the interaction between the first virtual object and the second virtual object when the first virtual object and the mirrored virtual object overlap and the distance between the second virtual object and the mirrored virtual object meets the first distance condition, the method further includes: If the first virtual object fails to interact successfully with the second virtual object, the first virtual object remains in its current position.

13. The method according to claim 1, characterized in that, After controlling the first virtual object to move in the target direction in response to a trigger operation on the mirrored interactive control displayed on the virtual scene, the method further includes: When the first virtual object is in contact with the second virtual object and the second virtual object is in the target posture, the mirrored virtual object is canceled from display.

14. The method according to claim 1, characterized in that, After responding to a trigger operation on a mirrored interactive control displayed on the virtual scene, controlling the first virtual object to move in the target direction, and displaying a mirrored virtual object of the first virtual object at a first target position in the virtual scene, the method further includes: If no trigger operation is performed on the mirror interaction control within the target duration, the display of the mirror virtual object is canceled.

15. A control device for a virtual object, characterized in that, The device includes: A virtual scene display module is used to display a virtual scene, wherein the virtual scene displays a first virtual object and a second virtual object, the first virtual object is a virtual object controlled by a terminal, and the second virtual object belongs to a different camp from the first virtual object; The first virtual object control module is used to respond to the trigger operation of the mirror interactive control displayed on the virtual scene, control the first virtual object to move in the target direction, and display the mirror virtual object of the first virtual object at the first target position in the virtual scene; The first virtual object control module is further configured to, in response to another trigger operation of the mirror interactive control, control the first virtual object to move towards the first target position during the process of the first virtual object moving towards the target direction; The second virtual object control module is used to control the first virtual object and the second virtual object to move together toward the first target position when the first virtual object and the second virtual object are in contact. The first virtual object control module is further configured to control the first virtual object and the second virtual object to interact when the first virtual object and the mirrored virtual object overlap and the distance between the second virtual object and the mirrored virtual object meets the first distance condition; Wherein, in response to the triggering operation of the mirror interactive control again, after controlling the first virtual object to move towards the first target position, the first virtual object control module is further configured to: control the first virtual object to move towards the first target position when the first virtual object and the second virtual object are not in contact; and cancel the display of the mirror virtual object when the first virtual object and the mirror virtual object overlap.

16. The apparatus according to claim 15, characterized in that, The first virtual object control module is used to control the mirror virtual object and the first virtual object to interact with the second virtual object simultaneously when the first virtual object and the mirror virtual object overlap and the distance between the second virtual object and the mirror virtual object is less than or equal to a first distance threshold.

17. The apparatus according to claim 15, characterized in that, The second virtual object control module is also used for: When the first virtual object and the second virtual object successfully interact, the direction of movement of the second virtual object in the virtual scene is determined based on the target part of the second virtual object, where the target part of the second virtual object is the part that successfully interacts with the first virtual object. Control the second virtual object to move in the virtual scene in the determined direction.

18. The apparatus according to claim 17, characterized in that, The second virtual object control module is also configured to perform any of the following: When the target part is the head of the second virtual object, the direction in which the second virtual object moves in the virtual scene is determined to be below the mirrored virtual object; When the target part is the torso of the second virtual object, the direction in which the second virtual object moves in the virtual scene is determined to be the direction in which it moves toward the first virtual object; When the target part is the foot of the second virtual object, the direction in which the second virtual object moves in the virtual scene is determined to be above the mirrored virtual object.

19. The apparatus according to claim 15, characterized in that, The first virtual object control module is further configured to: If the first virtual object and the second virtual object successfully interact, control the first virtual object to enter the target state; During the duration of the target state, in response to the second virtual object successfully interacting with the first virtual object, the first virtual object is controlled to automatically interact with the second virtual object.

20. The apparatus according to claim 15, characterized in that, The second virtual object control module is used for: In response to the first virtual object coming into contact with the second virtual object, the first virtual object is controlled to move to a second target position in the virtual scene, and the second virtual object is located between the first target position and the second target position; Control the first virtual object to interact with the second virtual object at the second target location, and control the first virtual object and the second virtual object to move together towards the first target location.

21. The apparatus according to claim 15, characterized in that, The first virtual object control module is further configured to: When the first virtual object and the second virtual object successfully interact, the position of the first virtual object is adjusted to the third target position, and the second virtual object is controlled to move towards the third target position of the virtual scene. The third target position is the position where the first virtual object and the second virtual object are in contact. The device further includes: A continuous interactive control display module is used to display continuous interactive controls on the virtual scene, wherein the continuous interactive controls are used to control the interaction between the first virtual object and the second virtual object.

22. The apparatus according to claim 21, characterized in that, The first virtual object control module is further configured to perform any of the following: In response to the triggering operation of the continuous interactive control, the first virtual object is controlled to move to the location of the second virtual object; when the distance between the first virtual object and the second virtual object meets the second distance condition, the first virtual object is controlled to interact with the second virtual object. In response to the triggering operation of the continuous interactive control, a magnified target virtual item is displayed around the first virtual object, the target virtual item being a virtual item equipped by the first virtual object; when the second virtual object comes into contact with the target virtual item, the second virtual object is controlled to move upwards towards the first virtual object, reducing the health value of the second virtual object.

23. The apparatus according to claim 15, characterized in that, The first virtual object control module is further configured to: When the first virtual object and the second virtual object successfully interact, the position of the first virtual object is adjusted to the third target position, and a position swapping control is displayed in the virtual scene. The third target position is the position where the first virtual object and the second virtual object are in contact. In response to a trigger operation on the position swapping control, the positions of the first virtual object and the mirrored virtual object are swapped in the virtual scene; In response to a re-triggering operation of the mirror interaction control, control the first virtual object to interact with the second virtual object.

24. The apparatus according to claim 23, characterized in that, The mirrored virtual object control module is also used for: Control the mirrored virtual object to move to the location of the first virtual object; When the mirrored virtual object comes into contact with the second virtual object, the health value of the second virtual object is reduced.

25. The apparatus according to claim 23, characterized in that, The first virtual object control module is further configured to: If the first virtual object and the second virtual object successfully interact, control the second virtual object to move to the current location of the mirror virtual object; In response to another trigger operation on the position swapping control, the positions of the first virtual object and the mirrored virtual object in the virtual scene are swapped again; In response to a re-triggering operation of the mirror interaction control, control the first virtual object to interact with the second virtual object.

26. The apparatus according to claim 15, characterized in that, The first virtual object control module is further configured to: If the first virtual object fails to interact successfully with the second virtual object, the first virtual object remains in its current position.

27. The apparatus according to claim 15, characterized in that, The mirrored virtual object control module is also used for: When the first virtual object is in contact with the second virtual object and the second virtual object is in the target posture, the mirrored virtual object is canceled from display.

28. The apparatus according to claim 15, characterized in that, The mirrored virtual object control module is also used for: If no trigger operation is performed on the mirror interaction control within the target duration, the display of the mirror virtual object is canceled.

29. A computer device, characterized in that, The computer device includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, the computer program being loaded and executed by the one or more processors to implement the method for controlling virtual objects as described in any one of claims 1 to 14.

30. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to implement the method for controlling a virtual object as described in any one of claims 1 to 14.

31. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the control method for the virtual object as described in any one of claims 1 to 14.

Citation Information

Patent Citations

  • Processing method and device for information in game, electronic equipment and readable storage medium

    CN113713373A

  • Method for controlling virtual object in battle game and device thereof and electronic equipment

    CN113769383A