Virtual interaction method and device, equipment and medium

By adjusting the orientation of the virtual camera and virtual objects in the game and displaying interactive controls for adjusting distances, the problem of poor user interaction experience in the game is solved, and more complex and flexible interactive operations are achieved.

CN120189699APending Publication Date: 2025-06-24CHENGDU XIAOZHI YOUCHUANG TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311781533.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-21
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

In the prior art, users have poor interactive experience of virtual objects in the game and are unable to control the virtual camera, the first virtual object and the second virtual object at the same time, resulting in complex and limited interaction operations.

Method used

The first virtual object and the second virtual object are displayed in the virtual scene of the display interface, and when they establish a virtual interaction relationship, the direction of the virtual camera and the direction of the first virtual object are adjusted to the same as the motion direction of the second virtual object. At the same time, interactive controls for adjusting the distance relationship between the two are displayed, allowing the user to adjust the distance while keeping the virtual camera direction unchanged.

Benefits of technology

The user's separate and joint control of the virtual camera, the first virtual object and the second virtual object is realized, which meets the user's diverse interaction needs and improves the user's operation efficiency and interactive experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120189699A_ABST
    Figure CN120189699A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a virtual interaction method and device, equipment and a medium. The method comprises the following steps: displaying a first virtual object and a second virtual object in a virtual scene of a display interface; under the condition that the virtual interaction relation is established between the first virtual object and the second virtual object, the orientation of the virtual camera and the orientation of the first virtual object are adjusted to be the same as the movement direction of the second virtual object; and displaying an interaction control used for adjusting the distance relationship between the virtual camera of the first virtual object and the second virtual object so as to adjust the distance relationship by using the interaction control under the condition of keeping the direction unchanged. When the first virtual object and the second virtual object meet certain conditions, an interaction control used for adjusting the distance relation between the first virtual object and the second virtual object can be displayed, and independent control and combined control of a user on the virtual camera, the first virtual object and the second virtual object at the same time are achieved. And diversified interaction requirements of the user are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to a virtual interaction method, apparatus, device, and medium. Background Art

[0002] In some game scenarios, game players can complete various game tasks by controlling virtual objects (i.e., game characters controllable by game players).

[0003] With the development of games, in some game sessions, it is necessary for users to control one virtual object to interact with another virtual object. In this case, there are more objects that users need to manipulate, including virtual cameras, the first virtual object, the second virtual object, and the interaction relationships among the above three. In the prior art, some may simplify the interaction permissions of users. For example, users are not given the control permission of the virtual camera, or the interaction method for users to control the first virtual object to interact with the second virtual object is limited to simple interaction operations such as selection and abandonment, and the distance or perspective cannot be changed, directly affecting the interaction experience that users can obtain in the game. Summary of the Invention

[0004] The embodiments of the present application provide a virtual interaction method, apparatus, device, and medium to solve the problem of poor user interaction experience in the prior art.

[0005] In a first aspect, a virtual interaction method provided in the embodiments of the present application includes:

[0006] Display a first virtual object and a second virtual object in a virtual scene of a display interface;

[0007] When a virtual interaction relationship is established between the first virtual object and the second virtual object, adjust the direction of the virtual camera and the direction of the first virtual object to the same direction as the movement direction of the second virtual object;

[0008] Display an interaction control for adjusting the distance relationship between the first virtual object and the second virtual object, so as to adjust the distance relationship by using the interaction control while keeping the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object unchanged.

[0009] In a second aspect, a virtual interaction apparatus provided in the embodiments of the present application includes:

[0010] A first display module, configured to display a first virtual object and a second virtual object in a virtual scene of a display interface;

[0011] An adjustment module, configured to adjust the direction of the virtual camera and the direction of the first virtual object to the same direction as the movement direction of the second virtual object when the first virtual object and the second virtual object establish a virtual interaction relationship;

[0012] A second display module, configured to display an interaction control for adjusting the distance relationship between the first virtual object and the second virtual object, so as to adjust the distance relationship by using the interaction control while keeping the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object unchanged.

[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory. At least one instruction, at least one program, a code set, or an instruction set is stored in the memory, and the at least one instruction, at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the virtual interaction method according to the first aspect.

[0014] In a fourth aspect, an embodiment of the present invention further provides a computer-readable medium, on which at least one instruction, at least one program, a code set, or an instruction set is stored, and the at least one instruction, at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the virtual interaction method according to the first aspect.

[0015] In an embodiment of the present application, a first virtual object and a second virtual object are displayed in a virtual scene of a display interface; when the first virtual object and the second virtual object establish a virtual interaction relationship, the direction of the virtual camera and the direction of the first virtual object are adjusted to the same direction as the movement direction of the second virtual object; an interaction control for adjusting the distance relationship between the first virtual object and the second virtual object is displayed, so as to adjust the distance relationship by using the interaction control while keeping the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object unchanged. Through the above solution, when there is an interaction requirement between the first virtual object and the second virtual object, the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object are adjusted and controlled. Moreover, when the first virtual object and the second virtual object meet certain conditions, an interaction control for adjusting the distance relationship between the first virtual object and the second virtual object is displayed, which can realize the separate control and joint control of the virtual camera, the first virtual object, and the second virtual object by the user. It meets the diverse interaction requirements of the user for the virtual camera, the first virtual object, and the second virtual object under specific conditions.

[0016] These aspects or other aspects of the present application will be more clearly understood in the following description of the embodiments. Brief Description of the Drawings

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

[0018] Figure 1 It is a schematic flowchart of the virtual interaction method provided by the embodiment of the present application;

[0019] Figure 2 It is a schematic diagram of a virtual interaction scenario provided by the embodiment of the present application;

[0020] Figure 3a 、 3b 3c, 3d, and 3e are schematic diagrams of the interaction controls provided by the embodiment of the present application;

[0021] Figure 4 It is a schematic diagram of another virtual scenario provided by the embodiment of the present application;

[0022] Figure 5 It is a schematic structural diagram of a virtual interaction device provided by the embodiment of the present application;

[0023] Figure 6 For Figure 5 It is a schematic structural diagram of an electronic device corresponding to the device provided by the above embodiment. Detailed Embodiments

[0024] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts fall within the scope of protection of the present invention.

[0025] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "the", and "said" used in the embodiments of the present invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. "Plural" generally includes at least two.

[0026] Depending on the context, as used herein, the words "if" and "when" may be interpreted as "when" or "while" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "if determined" or "if detecting (stated condition or event)" may be interpreted as "when determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)".

[0027] In addition, the step timings in the following method embodiments are only examples and not strictly limited.

[0028] In some game scenarios, the interaction operations for a user to control a virtual object (game character) are relatively complex. On some dedicated game devices, various types of physical buttons or virtual buttons can be provided to meet the user's complex and diverse interaction operation requirements. On some device terminals, such as mobile terminals like mobile phones and tablets, only limited interaction operations can be provided in the interaction interface, or there are multiple interaction controls supporting different operations, but the number of controls that can be operated simultaneously by the user's two hands is limited. It is difficult to meet the user's complex and diverse interaction operation requirements. Therefore, a solution that can meet the user's diverse interaction operations on a virtual object in a mobile terminal is needed.

[0029] For ease of understanding, specific embodiments will be used for illustration below.

[0030] Such as Figure 1 is a schematic flowchart of the virtual interaction method provided by the embodiment of the present application. As can be seen from Figure 1 it specifically includes the following steps:

[0031] Step 101: Display a first virtual object and a second virtual object in a virtual scene of the display interface.

[0032] Step 102: When a virtual interaction relationship is established between the first virtual object and the second virtual object, adjust the direction of the virtual camera and the direction of the first virtual object to the same direction as the movement direction of the second virtual object.

[0033] Step 103: Display an interaction control for adjusting the distance relationship between the first virtual object and the second virtual object, so as to adjust the distance relationship using the interaction control while keeping the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object unchanged.

[0034] In practical applications, the objects that users can directly or indirectly control include virtual cameras, first virtual objects, and second virtual objects. Among them, a virtual camera can be understood as the perspective and content displayed in the current display interface. Users can change the perspectives of the first virtual object and the second virtual object displayed in the current interface by controlling the position and angle (left - right offset angle, pitch angle) of the virtual camera.

[0035] Users can control the first virtual object through game controls displayed in the current interface. Here, the second virtual object may not appear for a long time, and generally, there are no dedicated controls in the interface for operating the second virtual object.

[0036] There are some operation requirements that only occur under specific conditions (when a virtual interaction relationship is established between the first virtual object and the second virtual object), but the game controls provided in the conventional game interface (that is, when no virtual interaction relationship is established between the first virtual object and the second virtual object) cannot meet the complex interaction requirements under specific conditions. Therefore, under the specific condition that a virtual interaction relationship is established between the first virtual object and the second virtual object, interaction controls that meet the complex interaction requirements under specific conditions are displayed in the display interface. When the specific conditions are not met, there are no complex interaction requirements, and thus there is no need to use and display interaction controls. In other words, displaying interaction controls under normal circumstances may affect the implementation of other operation functions of the user.

[0037] After establishing a virtual interaction relationship between the first virtual object and the second virtual object, users need to control complex interaction scenarios for the virtual camera, the first virtual object, and the second virtual object respectively, or for groups with a binding relationship composed of at least two of these three. Although game controls are displayed in the display interface before establishing the virtual interaction relationship, and it is also supported to directly control the virtual camera through touch - screen, it cannot meet the complex interaction scenarios mentioned above. Therefore, when a virtual interaction relationship is established between the first virtual object and the second virtual object, interaction controls for adjusting the distance relationship between the first virtual object and the second virtual object are displayed in the interface.

[0038] For convenient control, when a virtual interaction relationship is established between the first virtual object and the second virtual object, the direction of the virtual camera and the direction of the first virtual object are adjusted to the same direction as the movement direction of the second virtual object. It should be noted that the above three-direction relationships can be exactly the same in direction, or there can be a fixed deviation angle between the directions of two of them. From the display interface, after the first virtual object and the second virtual object establish a virtual interaction relationship, the direction can be automatically adjusted without user participation in the operation, which can provide the user with the best interactive control perspective and directly continue to perform subsequent complex interactive operations based on the adjusted direction relationship.

[0039] After clarifying the direction relationship among the virtual camera, the first virtual object, and the second virtual object, the virtual camera, the first virtual object, and the second virtual object can be grouped for control according to actual control requirements (for example, synchronously controlling the virtual camera and the first virtual object). There are two grouping methods: establishing a direction binding relationship between the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object. Or, establishing a direction binding relationship between the direction of the virtual camera and the direction of the first virtual object, and the bound direction is the same as the movement direction of the second virtual object.

[0040] Specifically, after establishing a virtual interaction relationship between the first virtual object and the second virtual object, the direction of the virtual camera is adjusted to the direction toward the first virtual object, and at the same time, the direction of the first virtual object is adjusted to the direction toward the second virtual object, and the adjusted direction is the direction allowed to move relative to the second virtual object, and this direction of movement includes the direction away from the second virtual object and the direction close to the second virtual object. This direction of movement is controlled by the push-pull operation of the interactive control, and whether to approach the second virtual object or to move away from the second virtual object is determined according to the push-pull direction. After establishing the direction binding relationship, the virtual camera, the first virtual object, and the second virtual object are controlled as a whole. For example, if the user controls the adjustment of the viewing direction or pitch angle of the virtual camera, the three will be linked. After adjustment, the background viewing angle changes, but the direction between the three remains unchanged. It should be noted that when moving away from or approaching the second virtual object, the direction can be completely fixed or there may be a deviation angle so that they will not block each other. By establishing a direction binding relationship, the virtual camera, the first virtual object, and the second virtual object can be controlled as a whole to perform various interactive operations, meeting the user's diverse and multi-object operation needs, and can temporarily and targetedly simplify the interactive operation content according to specific conditions. There is no need to interact with the virtual camera, the first virtual object and the second virtual object separately, which can significantly improve the user's operating efficiency and interactive experience. After completing the operation task, the direction binding relationship can be released (automatically or manually, for example, the virtual interaction relationship is terminated).

[0041] After establishing a virtual interaction relationship between the first virtual object and the second virtual object, the direction of the virtual camera is adjusted to the direction toward the first virtual object, and at the same time, the direction of the first virtual object is adjusted to the direction toward the second virtual object, and the adjusted direction is the direction allowed to move relative to the second virtual object, and this direction includes the direction away from the second virtual object and the direction close to the second virtual object. It should be noted that when moving away from or close to the second virtual object, the direction can be completely fixed or there can be a deviation angle so that there is no occlusion between each other. By establishing a direction binding relationship between the virtual camera and the first virtual object, when the user controls, the virtual camera and the first virtual object will be controlled as a whole, that is, the direction of movement of the virtual camera is consistent with the direction of movement of the first virtual object, but the second virtual object will not be controlled by the operation. For example, when the user controls the rotation around the second virtual object, the virtual camera and the first virtual object rotate around the second virtual object at the same time, but the relative position and angle relationship between the first virtual object and the virtual camera is fixed (that is, the perspective presented to the user by the first virtual object is fixed). By establishing a direction binding relationship between the virtual camera and the first virtual object, while meeting the user's diverse and multi-object operation needs, the interactive operation content can be temporarily and targetedly simplified according to specific conditions. After completing the operation task, the direction binding relationship can be released (automatically or manually, for example, the virtual interaction relationship is terminated).

[0042] For example, if Figure 2 A schematic diagram of a virtual interaction scene provided in an embodiment of the present application. Figure 2 In the figure, it can be seen that the first virtual object of the game character controlled by the user is approaching a weapon box (that is, the second virtual object). In the absence of a virtual interactive relationship, by swiping the touch screen, the virtual camera can be controlled to move or change its angle, for example, the distance between the virtual camera and the first virtual object and the second virtual object can be changed, the distance between the first virtual object and the second virtual object can be changed, and the relative angle relationship between the virtual camera and the first virtual object and the second virtual object can be changed. It is also possible to control the first virtual object to rotate or change the viewing angle separately, control the second virtual object to adjust the viewing angle separately, and so on. The control of these three is independent of each other.

[0043] After establishing the virtual interaction relationship, adjust the direction of the virtual camera and the direction of the first virtual object to the same direction as the movement direction of the second virtual object. At the same time, display the interaction control on the interface. Here, it is assumed that the direction of the virtual camera and the direction of the first virtual object are adjusted to be directionally bound to the movement direction of the second virtual object. The interaction control can be used for pushing and pulling operations to control the first virtual object to approach or move away from the second virtual object. It can meet the user's need to simultaneously control the virtual camera, the first virtual object, and the second virtual object for interactive operations. It should be noted that the operation methods supported by the interaction control on different devices are different. The ways of touching the interaction control include: on devices such as mobile phones and tablets that support touch screen operations, the user touches the interaction control through the touch screen; or, on devices such as computers and game consoles connected to game pads, the interaction control is controlled through external devices (mouse or game pad). Of course, there are also some electronic devices that support gesture operations in the air, and the interaction control can be controlled through gestures. Through the above schemes for establishing virtual interaction relationships and direction bindings, the interaction control can be generated in a timely manner according to actual control requirements, simplifying the interaction operation, so that the game can be better applicable to various different electronic devices, rather than being limited to professional game devices. It should be noted that during normal use, the virtual camera is invisible to the user. Figure 2 The virtual camera in it is only for illustrative purposes and does not mean that the virtual camera actually exists in the interface.

[0044] In one or more embodiments of the present application, the virtual interaction relationship establishment method includes: if the relationship between the first virtual object and the second virtual object meets a preset condition, establish a virtual interaction relationship between the first virtual object and the second virtual object; where the preset condition includes: the distance between the first virtual object and the second virtual object is less than a distance threshold; or, an interaction request sent by the user controlling the first virtual object to the second virtual object is received.

[0045] In practical applications, when the user controls the first virtual object to move within a certain range close to the second virtual object, that is, the distance between the first virtual object and the second virtual object is less than the distance threshold, it means that the relationship between the first virtual object and the second virtual object meets the preset condition, and a virtual interaction relationship between the two will be established.

[0046] It is also possible to determine whether to establish a virtual interaction relationship between the first virtual object and the second virtual object according to the subjective needs of the user. For example, assume that the first virtual object is a game character controlled by the user, and the second virtual object is a weapon box in the game. The user wants to control the game character to open the weapon box. After the user initiates a control request (at this time, corresponding connection special effects can be generated, and the technical solutions related to the connection special effects will be elaborated in the following embodiments), a virtual interaction relationship is established.

[0047] By reasonably judging and establishing the virtual interaction relationship, it is further determined whether to display an interaction control for adjusting the distance relationship between the first virtual object and the second virtual object, so as to meet the user's need to control multiple objects simultaneously using specific interaction controls under specific conditions.

[0048] In one or more embodiments of the present application, displaying an interaction control for adjusting the distance relationship between the virtual camera and the second virtual object includes: the interaction control includes: a zoom-out sub-control and a zoom-in sub-control; within the response hot area including the zoom-out sub-control and the zoom-in sub-control, if a push-pull operation on the interaction control is received, the distance between the first virtual object and the second virtual object is adjusted based on the current virtual camera direction.

[0049] Such as Figure 3a 、 3b 、3c, 3d, 3e are schematic diagrams of the interaction controls provided by the embodiments of the present application. As can be seen in Figure 3a , the interaction control is displayed only when a virtual interaction relationship is established. Under normal circumstances, the interaction control is in a hidden state and will not affect the normal operation needs of the user.

[0050] As Figure 3b shown, the interaction control includes a zoom-out sub-control and a zoom-in sub-control, and each control has its corresponding response hot area, which are respectively within the response hot area of the zoom-in sub-control and within the response hot area of the zoom-out sub-control. When the user touches or touches the response hot area with a mouse, the corresponding control operation can be realized.

[0051] After establishing the virtual interaction relationship, the relative distance between the first virtual object and the second virtual object can be changed using the interaction control. When the virtual camera is pushed and pulled through the interaction control, the first virtual object will also move with the camera. From the user's perspective, it is seen that the perspective of the first virtual object remains unchanged during the push-pull operation, and the first virtual object approaches or moves away from the second virtual object.

[0052] There are various operation methods supported by the response hot area and the sub-controls, as follows:

[0053] If a click operation, a long - press operation, or a swiping - up operation within the response hot area is received on the zoom - out sub - control, the current virtual camera direction and the direction - binding relationship remain unchanged, and the distance between the first virtual object and the second virtual object is zoomed out. If a click operation, a long - press operation, or a swiping - down operation within the response hot area is received on the zoom - in sub - control, the current virtual camera direction and the direction - binding relationship remain unchanged, and the distance between the first virtual object and the second virtual object is zoomed in.

[0054] When the user clicks the zoom - out sub - control, the first virtual object will move away from the second virtual object in a jerky or slightly - moving manner. When the user long - presses the zoom - out sub - control, the first virtual object continuously moves away from the second virtual object. When the user continuously swipes up within the response hot area by finger or mouse, etc., the distance that the first virtual object moves away is controlled according to the size of the swipe distance at a corresponding ratio. For example, Figure 3c when the finger swipes 1 millimeter, the first virtual object moves away 1 meter, and the triggered sub - control will be enhanced in display, that is, Figure 3c the zoom - out sub - control is enhanced in display; when there is no operation, it is not enhanced in display. During the process of manipulating the zoom - out sub - control, the relative position relationship between the virtual camera and the first virtual object remains unchanged.

[0055] When the user clicks the zoom - in sub - control, the first virtual object will move closer to the second virtual object in a jerky or slightly - moving manner. When the user long - presses the zoom - in sub - control, the first virtual object continuously moves closer to the second virtual object. When the user continuously swipes down within the response hot area by finger or mouse, etc., the distance that the first virtual object moves closer is controlled according to the size of the swipe distance at a corresponding ratio. For example, when the finger swipes 1 millimeter, the first virtual object moves closer 1 meter. Or Figure 3d when the mouse is pulled down 1 millimeter, the first virtual object moves closer 1 meter, and the triggered sub - control will be enhanced in display, that is, Figure 3d the zoom - in sub - control is enhanced in display; when there is no operation, it is not enhanced in display. During the process of manipulating the zoom - in sub - control, the relative position relationship between the virtual camera and the first virtual object remains unchanged.

[0056] It should be noted that under the established virtual interaction relationship, or rather, under the constraint of the virtual interaction relationship, the push - pull operation control has a limit range, such as Figure 3eAs shown, when the push-away sub-control is pushed to the farthest position, its display is enhanced to remind the user that the current limit state has been reached; when the pull-in sub-control is pulled to the nearest position, its display is enhanced (for example, the floating-point identifier on the sub-control reaches the edge of the control, turns red, and jitters, metaphorically indicating that the limit distance has been reached), to remind the user that the current limit state has been reached. As an alternative solution, in the case where a direction binding relationship is established, when the push-away operation reaches a certain threshold, the direction binding relationship is released; in the case where no direction binding relationship is established, when the pull-in operation reaches a certain threshold, a direction binding relationship is established.

[0057] In one or more embodiments of the present application, after displaying an interaction control for adjusting the distance relationship between the first virtual object and the second virtual object, it further includes: if the user's touch area is different from the adjustment area of the response hot area, then adjust the perspective of the virtual camera relative to the second virtual object according to the adjustment direction of the user in the adjustment area, so that the display angle of the second virtual object is adjusted.

[0058] In practical applications, in the case where a virtual interaction relationship between the first virtual object and the second virtual object is established, if the user does not manipulate the interaction control but manipulates other areas on the interface, that is, manipulates an adjustment area different from the response hot area, the relative perspective relationship between the virtual camera and the second virtual object can be adjusted. For example, when the user swipes left and right on the touch screen, the second virtual object will rotate left and right, that is, the left and right perspectives of the virtual camera relative to the second virtual object are changed; when the user swipes up and down on the touch screen, the pitch angle of the virtual camera relative to the second virtual object is adjusted accordingly.

[0059] In one or more embodiments of the present application, simultaneously adjust the first perspective of the virtual camera relative to the first virtual object and the second virtual object according to the adjustment direction of the user in the adjustment area; wherein, during the adjustment of the first perspective, the first virtual object maintains its orientation towards the second virtual object. In the direction of the first perspective, adjust the distance between the virtual camera and the second virtual object and / or the first virtual object.

[0060] When controlling a virtual camera through an adjustment area, the user can control the virtual camera to change the first viewing angle and the distance relative to the first virtual object and the second virtual object, while the relative position relationship and the direction of the first virtual object and the second virtual object remain unchanged. That is, the user can only control the virtual camera to adjust camera parameters such as position and pitch angle through the adjustment area, without changing or affecting the first virtual object and the second virtual object, nor the relative position relationship, relative viewing angle relationship, and relative direction relationship between the first virtual object and the second virtual object. The operation of the adjustment area is not restricted or affected by the virtual interaction relationship, nor by the direction binding relationship.

[0061] Among them, adjusting the distance of the virtual camera relative to the second virtual object in the first viewing angle direction includes:

[0062] When keeping the direction of the virtual camera, the direction of the first virtual object, and the moving direction of the second virtual object unchanged, when the adjustment direction is the left - right direction, adjust the viewing angle of the virtual camera relative to the second virtual object, and pull the virtual camera farther away from the second virtual object;

[0063] When keeping the direction of the virtual camera, the direction of the first virtual object, and the moving direction of the second virtual object unchanged, when the adjustment direction is upward adjustment, in the first viewing angle direction, raise the distance of the virtual camera relative to the second virtual object;

[0064] When keeping the direction of the virtual camera, the direction of the first virtual object, and the moving direction of the second virtual object unchanged, when the adjustment direction is downward adjustment, in the first viewing angle direction, lower the distance of the virtual camera relative to the second virtual object.

[0065] Through the above - mentioned solution, it meets the need for individual control of different objects when establishing a virtual interaction relationship, and the need for individual control of the virtual camera, providing users with diverse control options.

[0066] In one or more embodiments of the present application, when a virtual interaction relationship is established between the first virtual object and the second virtual object, it further includes: enhancing the display of the interaction control in the virtual scene, and displaying adjustment prompt information supported by the adjustment area for the second virtual object.

[0067] In practical applications, when a virtual interaction relationship is just established, in order to help the user understand that the virtual interaction relationship has been established or to prompt the user on how to operate the control, the interaction control will be displayed in the virtual scene in an enhanced display manner. For example, various enhanced display methods that can attract the user's attention, such as highlighting enhancement display, flashing enhancement display, color-changing enhancement display, etc. After the enhanced display lasts for a period of time, the enhanced display effect disappears.

[0068] Meanwhile, in the virtual scene, prompt messages are also displayed for the adjustment functions supported by the adjustment area, informing the user where the adjustment area is, which virtual objects can be controlled, and what adjustment effects can be achieved.

[0069] Through the above methods, the user can intuitively understand the functions of the interaction control and the adjustment area, achieving a guiding and prompting effect and avoiding incorrect user operations.

[0070] Such as Figure 4 is a schematic diagram of another virtual scene provided by an embodiment of the present application. As can be seen from Figure 4 it, if the second virtual object is displayed suspended in the virtual scene, a virtual landing point is displayed below the second virtual object.

[0071] Through this virtual landing point, the user can perceive the suspended display effect or represent the suspended control effect of the connection special effect on the second virtual object.

[0072] In one or more embodiments of the present application, when a virtual interaction relationship is established between the first virtual object and the second virtual object, it further includes: displaying a connection special effect for representing the virtual interaction relationship between the first virtual object and the second virtual object.

[0073] Such as Figure 4 shown, through the connection special effect, the user can intuitively see that the virtual interaction relationship between the first virtual object and the second virtual object has been successfully established, giving the user an intuitive perception effect. The manifestation form of the connection special effect can be in the form of magnetic lines, energy flow, bubble lines, smoke, chains, hands, etc. The connection special effect can also have various forms of state changes such as thickness and color according to different states.

[0074] In practical applications, the connection special effect is adjusted based on the interaction relationship strength between the first virtual object and the second virtual object; wherein, the interaction relationship strength includes: the distance difference, height difference, and interaction force strength between the first virtual object and the second virtual object.

[0075] Specifically, the interaction relationship strength between two objects is displayed through the connection special effect with the special effect changing. Among them, the distance difference includes: the distance far or near. When the distance is far, the line representing the connection special effect is thinner, indicating a weaker connection force; when the distance is near, the line representing the connection special effect is thicker, indicating a stronger connection force. When the distance is near, the brightness of the connection special effect is brighter, indicating a stronger connection force; when the distance is far, the brightness of the connection special effect is darker, indicating a weaker connection force; when the distance is far to a certain limit, the connection special effect flickers, indicating that the connection relationship is about to be lost.

[0076] The height difference includes: the size of the height difference. When the height difference is large, the line representing the connection special effect is thinner, indicating a weaker connection force; when there is a height difference, the line representing the connection special effect is thicker, indicating a stronger connection force. When the height difference is small, the brightness of the connection special effect is brighter, indicating a stronger connection force; when the height difference is large, the brightness of the connection special effect is darker, indicating a weaker connection force; when the height difference is large to a certain limit, the connection special effect flickers, indicating that the connection relationship is about to be lost.

[0077] The strength of the interaction force can be understood as the strength of the energy possessed by the first virtual object itself and its control ability over the second virtual object. For example, in some application scenarios, if the first virtual object needs to transfer energy to the second virtual object, when the interaction force is weak, the line representing the connection special effect is thinner, indicating a weaker connection force; when the interaction force is strong, the line representing the connection special effect is thicker, indicating a stronger connection force. When the interaction force is strong, the brightness of the connection special effect is brighter, indicating a stronger connection force; when the interaction force is weak, the brightness of the connection special effect is darker, indicating a weaker connection force; when the interaction force is weak to a certain limit, the connection special effect flickers, indicating that the connection relationship is about to be lost.

[0078] In one or more embodiments of the present application, when the virtual interaction relationship between the first virtual object and the second virtual object is released, the interaction control is hidden in the virtual scene;

[0079] Release the direction binding relationship between the virtual camera, the first virtual object, and the second virtual object.

[0080] In practical applications, the interaction control is to meet the overall control requirements of multiple objects (including the virtual camera, the first virtual object, and the second virtual object), and to simplify the control operation and operation difficulty. When there is no overall control requirement, releasing the virtual interaction relationship means there is no need to use the interaction control. If the interaction control continues to be displayed, it will also affect the normal operation of the user.

[0081] When releasing the virtual interaction relationship, the direction binding relationship is also released, and the virtual camera, the first virtual object, and the second virtual object can be freely controlled and adjusted as needed.

[0082] Display a first virtual object and a second virtual object in a virtual scene of a display interface; when a virtual interaction relationship is established between the first virtual object and the second virtual object, adjust the direction of the virtual camera and the direction of the first virtual object to the same direction as the movement direction of the second virtual object; display an interaction control for adjusting the distance relationship between the first virtual object and the second virtual object, so that the distance relationship can be adjusted by using the interaction control while keeping the direction of the virtual camera, the direction of the first virtual object and the movement direction of the second virtual object unchanged. Through the above solution, when there is an interaction requirement between the first virtual object and the second virtual object, the direction of the virtual camera, the direction of the first virtual object and the movement direction of the second virtual object are adjusted and controlled. Moreover, when the first virtual object and the second virtual object meet certain conditions, an interaction control for adjusting the distance relationship between the first virtual object and the second virtual object will be displayed, which can realize the separate control and joint control of the virtual camera, the first virtual object and the second virtual object by the user. It meets the diverse interaction requirements of the user for the virtual camera, the first virtual object and the second virtual object under specific conditions.

[0083] Through the above solution, without the need for a lot of hardware support or interaction control support, it can meet the diverse control requirements of users, so that the game can be applied to a variety of different electronic device terminals and has a wider range of use.

[0084] Based on the same idea, the embodiment of the present application also provides a virtual interaction device. As Figure 5 is a schematic structural diagram of a virtual interaction device provided by an embodiment of the present application. As can be seen from Figure 5 it, the device includes:

[0085] A first display module 51, configured to display a first virtual object and a second virtual object in a virtual scene of a display interface.

[0086] An adjustment module 52, configured to adjust the direction of the virtual camera and the direction of the first virtual object to the same direction as the movement direction of the second virtual object when a virtual interaction relationship is established between the first virtual object and the second virtual object.

[0087] A second display module 53, configured to display an interaction control for adjusting the distance relationship between the first virtual object and the second virtual object, so that the distance relationship can be adjusted by using the interaction control while keeping the direction of the virtual camera, the direction of the first virtual object and the movement direction of the second virtual object unchanged.

[0088] Optionally, it further includes a relationship establishment module 54, configured to establish a virtual interaction relationship between the first virtual object and the second virtual object if the relationship between the first virtual object and the second virtual object meets a preset condition; wherein, the preset condition includes: the distance between the first virtual object and the second virtual object is less than a distance threshold; or, an interaction request sent by the user controlling the first virtual object to the second virtual object is received.

[0089] Optionally, the interaction control includes: a zoom-out sub-control and a zoom-in sub-control;

[0090] An adjustment module 52, configured to, within a response hot area including the zoom-out sub-control and the zoom-in sub-control, if a push-and-pull operation on the interaction control is received, adjust the distance between the first virtual object and the second virtual object based on the current virtual camera direction.

[0091] Optionally, it further includes a relationship establishment module 54, configured to establish a direction binding relationship between the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object; or, establish a direction binding relationship between the direction of the virtual camera and the direction of the first virtual object, and the bound direction is the same as the movement direction of the second virtual object.

[0092] An adjustment module 52, configured to, if a click operation, a long-press operation, or a swiping-up operation in the response hot area on the zoom-out sub-control is received, keep the current virtual camera direction unchanged and the direction binding relationship unchanged, and zoom out the distance between the first virtual object and the second virtual object; if a click operation, a long-press operation, or a swiping-down operation in the response hot area on the zoom-in sub-control is received, keep the current virtual camera direction unchanged and the direction binding relationship unchanged, and zoom in the distance between the first virtual object and the second virtual object.

[0093] An adjustment module 52, configured to, if the user touch area is different from the adjustment area of the response hot area, adjust the perspective of the virtual camera relative to the second virtual object according to the adjustment direction of the user in the adjustment area, so that the display angle of the second virtual object is adjusted.

[0094] Optionally, the adjustment module 52 is configured to simultaneously adjust a first perspective of the virtual camera relative to the first virtual object and the second virtual object according to the adjustment direction of the user in the adjustment area; wherein, during the adjustment of the first perspective, the first virtual object maintains its orientation towards the second virtual object;

[0095] In the first perspective direction, adjust the distance between the virtual camera and the second virtual object and / or the first virtual object.

[0096] Optionally, the adjustment module 52 is configured to, while keeping the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object unchanged, when the adjustment direction is the left-right direction, adjust the viewing angle of the virtual camera with respect to the second virtual object and increase the distance between the virtual camera and the second virtual object;

[0097] While keeping the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object unchanged, when the adjustment direction is upward adjustment, in the first perspective direction, increase the distance between the virtual camera and the second virtual object;

[0098] While keeping the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object unchanged, when the adjustment direction is downward adjustment, in the first perspective direction, decrease the distance between the virtual camera and the second virtual object.

[0099] Optionally, the second display module 53 is configured to enhance the display of the interaction control in the virtual scene and display adjustment prompt information for the second virtual object supported by the adjustment area.

[0100] Optionally, the second display module 53 is configured to display a connection special effect representing the virtual interaction relationship between the first virtual object and the second virtual object.

[0101] Optionally, the second display module 53 is configured to, if the second virtual object is displayed suspended in the virtual scene, display a virtual landing point below the second virtual object.

[0102] Optionally, the second display module 53 is configured to adjust the connection special effect based on the interaction relationship strength between the first virtual object and the second virtual object; wherein the interaction relationship strength includes: the distance difference, height difference, and interaction force strength between the first virtual object and the second virtual object.

[0103] Optionally, the way the interaction control is touched includes: touching the interaction control through a touch screen; or controlling the interaction control through an external device.

[0104] Optionally, it further includes a release module 55, configured to hide the interaction control in the virtual scene after the virtual interaction relationship between the first virtual object and the second virtual object is released; and release the directional binding relationship between the virtual camera, the first virtual object, and the second virtual object.

[0105] Based on the above embodiments, a first virtual object and a second virtual object are displayed in the virtual scene of the display interface; when a virtual interaction relationship is established between the first virtual object and the second virtual object, the direction of the virtual camera and the direction of the first virtual object are adjusted to the same direction as the movement direction of the second virtual object; an interaction control for adjusting the distance relationship between the first virtual object and the second virtual object is displayed, so that the distance relationship can be adjusted by using the interaction control while keeping the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object unchanged. Through the above solution, when there is an interaction requirement between the first virtual object and the second virtual object, the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object are adjusted and controlled. Moreover, when the first virtual object and the second virtual object meet certain conditions, an interaction control for adjusting the distance relationship between the first virtual object and the second virtual object is displayed, which can realize the user's separate control and joint control of the virtual camera, the first virtual object, and the second virtual object. It meets the user's diverse interaction requirements for the virtual camera, the first virtual object, and the second virtual object under specific conditions.

[0106] In a possible design, the structure of the virtual interaction device shown above Figure 5 can be implemented as an electronic device. As Figure 6 shown, the electronic device may include: a processor 61 and a memory 62. Among them, executable code is stored on the memory 62. When the executable code is executed by the processor 61, at least the processor 61 can implement the visual effect enhancement method provided in the foregoing embodiments. Among them, a communication interface 63 may also be included in the structure of the electronic device for communicating with other devices or communication networks.

[0107] In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor in a server or a computer, the processor is caused to execute the Figure 1 corresponding virtual interaction method provided in the foregoing embodiments.

[0108] The device embodiments described above are merely illustrative. Each module described as a separate component may or may not be physically separated. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.

[0109] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of adding a necessary general hardware platform. Of course, it can also be implemented by a combination of hardware and software. Based on such an understanding, the above technical solution can be embodied in the form of a computer product in essence or the part that makes a contribution. The present invention can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code.

[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A virtual interaction method, characterized in that, The method includes: Displaying a first virtual object and a second virtual object in a virtual scene of a display interface; When a virtual interaction relationship is established between the first virtual object and the second virtual object, adjusting the direction of a virtual camera and the direction of the first virtual object to the same direction as the movement direction of the second virtual object; Displaying an interaction control for adjusting the distance relationship between the first virtual object and the second virtual object, so as to adjust the distance relationship by using the interaction control while keeping the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object unchanged.

2. The method according to claim 1, characterized in that, The virtual interaction relationship establishment method includes: If the relationship between the first virtual object and the second virtual object meets a preset condition, establishing a virtual interaction relationship between the first virtual object and the second virtual object; Wherein, the preset condition includes: the distance between the first virtual object and the second virtual object is less than a distance threshold; or, Receiving an interaction request sent by the user controlling the first virtual object to the second virtual object.

3. The method according to claim 1, characterized in that Displaying an interaction control for adjusting the distance relationship between the virtual camera and the second virtual object includes: The interaction control includes: a zoom-out sub-control and a zoom-in sub-control; Within a response hot area including the zoom-out sub-control and the zoom-in sub-control, if a push-and-pull operation on the interaction control is received, adjusting the distance between the first virtual object and the second virtual object based on the current virtual camera direction.

4. The method according to claim 3, wherein When a virtual interaction relationship is established between the first virtual object and the second virtual object, it further includes: Establishing a direction binding relationship between the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object; or, Establishing a direction binding relationship between the direction of the virtual camera and the direction of the first virtual object, and the bound direction is the same as the movement direction of the second virtual object.

5. The method according to claim 4, characterized in that, The adjusting the distance between the first virtual object and the second virtual object based on the current virtual camera direction when a push-and-pull operation on the interaction control is received includes: If a click operation, a long-press operation, or a swiping-up operation in the response hot area on the zoom-out sub-control is received, keeping the current virtual camera direction unchanged and the direction binding relationship unchanged, and pushing the distance between the first virtual object and the second virtual object away; If a click operation, a long-press operation, or a swiping-down operation in the response hot area on the zoom-in sub-control is received, keeping the current virtual camera direction unchanged and the direction binding relationship unchanged, and pulling the distance between the first virtual object and the second virtual object closer.

6. The method according to claim 3, characterized in that After displaying the interaction control for adjusting the distance relationship between the first virtual object and the second virtual object, it further includes: If the user's touch area is different from the adjustment area of the response hot area, the viewing angle of the virtual camera relative to the second virtual object is adjusted according to the adjustment direction of the user in the adjustment area, so that the display angle of the second virtual object is adjusted.

7. The method according to claim 6, characterized in that Adjusting the viewing angle of the virtual camera relative to the second virtual object according to the adjustment direction of the user in the adjustment area includes: Simultaneously adjusting a first viewing angle of the virtual camera relative to the first virtual object and the second virtual object according to the adjustment direction of the user in the adjustment area; wherein, during the adjustment of the first viewing angle, the first virtual object maintains its orientation towards the second virtual object. In the direction of the first viewing angle, adjust the distance of the virtual camera relative to the second virtual object and / or the first virtual object.

8. The method according to claim 7, wherein The adjusting the distance of the virtual camera relative to the second virtual object in the direction of the first viewing angle includes: While keeping the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object unchanged, when the adjustment direction is the left-right direction, adjust the viewing angle of the virtual camera relative to the second virtual object and pull away the distance of the virtual camera relative to the second virtual object. While keeping the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object unchanged, when the adjustment direction is upward adjustment, in the direction of the first viewing angle, raise the distance of the virtual camera relative to the second virtual object. While keeping the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object unchanged, when the adjustment direction is downward adjustment, in the direction of the first viewing angle, lower the distance of the virtual camera relative to the second virtual object.

9. The method according to claim 6, wherein When a virtual interaction relationship is established between the first virtual object and the second virtual object, it further includes: Enhancing the display of the interaction control in the virtual scene and displaying adjustment prompt information for the second virtual object supported by the adjustment area.

10. The method according to claim 1, characterized in that When a virtual interaction relationship is established between the first virtual object and the second virtual object, it further includes: Displaying a connection special effect representing the virtual interaction relationship between the first virtual object and the second virtual object.

11. The method according to claim 9, characterized in that, It further includes: If the second virtual object is displayed suspended in the virtual scene, a virtual landing point is displayed below the second virtual object.

12. The method according to claim 10, characterized in that It further includes: Adjusting the connection special effect based on the intensity of the interaction relationship between the first virtual object and the second virtual object; wherein, the intensity of the interaction relationship includes: the distance difference, height difference, and strength of the interaction force between the first virtual object and the second virtual object.

13. The method according to claim 1, characterized in that, The ways of touching the interaction control include: Touching the interaction control through a touch screen; or, Controlling the interaction control through an external device.

14. The method according to claim 1, wherein It further includes: After the virtual interaction relationship between the first virtual object and the second virtual object is released, hide the interaction control in the virtual scene; Release the direction binding relationship among the virtual camera, the first virtual object, and the second virtual object.

15. A virtual interaction device, characterized in that, The device includes: A first display module, configured to display a first virtual object and a second virtual object in a virtual scene of a display interface; An adjustment module, configured to, when a virtual interaction relationship is established between the first virtual object and the second virtual object, adjust the direction of the virtual camera and the direction of the first virtual object to the same direction as the movement direction of the second virtual object; A second display module, configured to display an interaction control for adjusting the distance relationship between the first virtual object and the second virtual object, so as to adjust the distance relationship by using the interaction control while keeping the direction of the virtual camera, the direction of the first virtual object, and the movement direction of the second virtual object unchanged.

16. A computing device, characterized in that, It includes a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the virtual interaction method according to any one of claims 1 to 14.

17. A computer storage medium, characterized in that, A computer program is stored, and when the computer program is executed by a computer, it implements the virtual interaction method according to any one of claims 1 to 14.