An information processing method, an information processing apparatus, and an electronic device
By using an image acquisition model to automatically lock virtual objects that meet certain characteristic conditions in a virtual environment, the problem of needing to specify the location and grant an invitation for interaction with virtual objects is solved. This enables automatic interlocking and unlocking of virtual objects, improving the intelligence of the device and the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-23
- Publication Date
- 2026-04-10
AI Technical Summary
In existing technologies, virtual objects need to be in a designated location and require the other party to agree to the action invitation before they can interact. The interaction methods are too simple and lack intelligence and user experience improvement.
The image acquisition model automatically locks a second virtual object that meets the feature locking conditions in the virtual environment, realizing automatic interlocking between the first and second virtual objects, and automatically unlocking them after the interaction is completed.
It enables automatic locking and unlocking between virtual objects, enhancing the intelligence of the device and the user experience.
Smart Images

Figure CN115155061B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to, but is not limited to, the field of digital image processing, and in particular to an information processing method, an information processing device and an electronic device. BACKGROUND
[0002] With the progress of science and technology, the virtual world has entered people's sight. In the scene of the virtual world, virtual objects can not only perform one-way triggered actions such as dancing, waving hands, etc., but also can interact with other virtual objects in a two-way action, such as shaking hands, holding hands and hugging, etc. However, when interacting with other virtual objects in an action, the virtual object and the other virtual object need to be located at a specified position, and only after the other virtual object agrees to the action invitation, the two can interact in an action after the virtual object sends an action invitation. This interaction method is too single. SUMMARY
[0003] Embodiments of the present application aim to provide an information processing method, an information processing device and an electronic device.
[0004] The technical solution of the present application is implemented as follows:
[0005] In a first aspect, the embodiments of the present application provide an information processing method, which comprises:
[0006] displaying a first screen of an application program, wherein the first screen comprises a screen when a first virtual object is observed in a virtual environment by an image collection model;
[0007] in response to an operation of initiating an interactive action acting on the first virtual object, controlling the first virtual object to initiate the interactive action, and determining a second virtual object in the virtual environment whose virtual object feature meets a feature locking condition;
[0008] controlling the first virtual object to perform an interactive action operation with the second virtual object, and displaying a second screen of the application program, wherein the second screen is a screen when the image collection model observes the interactive action operation between the first virtual object and the second virtual object.
[0009] In a second aspect, the embodiments of the present application provide an information processing device, which comprises:
[0010] a display module, configured to display a first screen of an application program, wherein the first screen comprises a screen when a first virtual object is observed in a virtual environment by an image collection model;
[0011] The control module is configured to control the first virtual object to initiate the interaction action in response to an operation of initiating the interaction action acting on the first virtual object, and determine a second virtual object in the virtual environment, a feature of which satisfies a feature locking condition.
[0012] The control module is further configured to control the first virtual object to perform the interaction action operation with the second virtual object.
[0013] The display module is further configured to display a second screen of the application program, wherein the second screen is a screen when the image acquisition model observes the interaction action operation between the first virtual object and the second virtual object.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, which comprises a processor, a memory and a communication bus.
[0015] The communication bus is configured to realize communication connection between the processor and the memory.
[0016] The processor is configured to execute an information processing program stored in the memory to realize the steps of the information processing method.
[0017] In a fourth aspect, an embodiment of the present application provides a computer storage medium, which stores a computer program, and the computer program is executed by at least one processor to realize the steps of the information processing method.
[0018] The embodiment of the present application provides an information processing method, an information processing device and an electronic device, which display a first picture of an application, wherein the first picture comprises a picture when a first virtual object is observed by an image collection model in a virtual environment; in response to an operation of initiating an interaction action on the first virtual object, the first virtual object initiates the interaction action, and a second virtual object in the virtual environment is determined, wherein a virtual object feature of the second virtual object meets a feature locking condition; the first virtual object and the second virtual object are controlled to perform the interaction action operation, and a second picture of the application is displayed, wherein the second picture is a picture when the image collection model observes the interaction action operation between the first virtual object and the second virtual object; that is, in the embodiment of the present application, the electronic device determines the second virtual object in the virtual environment, wherein a virtual object feature of the second virtual object meets a feature locking condition, based on at least the interaction action initiated between the first virtual object, so as to automatically lock the first virtual object and the second virtual object, and then control the first virtual object and the second virtual object to perform the interaction action operation, and display the second picture when the first virtual object and the second virtual object perform the interaction action operation; in this way, the problem that one virtual object and another virtual object are located at a specified position, and the two virtual objects can only perform action interaction after one virtual object issues an action invitation and another virtual object agrees to the action invitation is solved, automatic locking between two virtual objects is realized, and after the two virtual objects complete the interaction action, the two virtual objects are automatically unlocked, the intelligence of the device is improved, and the use experience of the user is improved. BRIEF DESCRIPTION OF DRAWINGS
[0019] Figure 1 A flowchart of an information processing method provided by the embodiment of the present application is shown;
[0020] Figure 2 A schematic diagram of the first virtual object and the second virtual object initiating the same interaction action is shown for the embodiment of the present application;
[0021] Figure 3 A schematic diagram of the second picture of the interaction operation between the first virtual object and the second virtual object is shown for the embodiment of the present application;
[0022] Figure 4 A flowchart of another information processing method provided by the embodiment of the present application is shown;
[0023] Figure 5 A flowchart of still another information processing method provided by the embodiment of the present application is shown;
[0024] Figure 6 A position schematic diagram when the first virtual object and the second virtual object perform action interaction is shown for the embodiment of the present application;
[0025] Figure 7A flowchart of an information processing method provided for another embodiment of the present application;
[0026] Figure 8 A schematic diagram of the first virtual object and the second virtual object not being at the same height on the Y axis for an embodiment of the present application;
[0027] Figure 9 A schematic diagram of a plurality of specific positions of the first virtual object in the moving process for an embodiment of the present application;
[0028] Figure 10 A structural schematic diagram of an optional information processing device provided for an embodiment of the present application;
[0029] Figure 11 A structural schematic diagram of an optional wearable device provided for an embodiment of the present application;
[0030] Figure 12 A schematic diagram of a wearable AR device interacting with an electronic device for an embodiment of the present application;
[0031] Figure 13 A structural schematic diagram of an optional electronic device provided for an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to enable persons skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by persons skilled in the art without creative labor fall within the scope of protection of the present application.
[0033] The terms “first”, “second”, and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms “include” and “have” and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but can optionally further include steps or units not listed or can optionally further include other steps or units inherent to the process, method, product or device.
[0034] Reference to an "embodiment" in this document means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they necessarily mutually exclusive of one another. As will be apparent to those of ordinary skill in the art, embodiments described herein can be combined with other embodiments.
[0035] Embodiments of the application provide an information processing method applied to an electronic device, referring to FIG. 1, the method comprises the following steps: Figure 1
[0036] Step 101, display a first screen of an application.
[0037] The first screen comprises a screen when a first virtual object is observed in a virtual environment through an image acquisition model.
[0038] In embodiments of the application, the application is an application supporting a virtual environment, and the virtual environment comprises virtual objects. Optionally, the application is an application supporting a three-dimensional virtual environment. The application can be any one of a military simulation application, a shooting application, a virtual reality (VR) application, and an augmented reality (AR) application. Optionally, the application can also be a stand-alone application, such as a stand-alone three-dimensional (3-dimension, 3D) game program, or a network online application, which is not limited in the application.
[0039] In embodiments of the application, the virtual environment is a virtual environment displayed (or provided) by the application when the application runs on the electronic device. The virtual environment can be a simulation environment of the real world, a three-dimensional environment that is half simulated and half fictional, or a three-dimensional environment that is purely fictional. The virtual environment includes, but is not limited to, a three-dimensional virtual environment, a four-dimensional virtual environment, and other high-dimensional virtual environments. Embodiments of the application are exemplified by taking the virtual environment as a three-dimensional virtual environment, but this is not limited.
[0040] In embodiments of the application, the virtual object refers to an active object in the virtual environment, which can be at least one of a virtual character, a virtual cartoon, and a cartoon character. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual object is a three-dimensional model created based on animation skeleton technology. Each virtual object has its own shape and volume in the three-dimensional virtual environment, and occupies a part of the space in the three-dimensional virtual environment.
[0041] In the embodiments of the present application, the view angle refers to an observation angle when observing in the virtual environment in the first person view angle or the third person view angle of the virtual object. Optionally, in the embodiments of the present application, the view angle refers to an angle when observing the virtual object in the virtual environment through an image acquisition model such as a camera model.
[0042] In the embodiments of the present application, the image acquisition model automatically follows the virtual object in the virtual environment, that is, when the position of the virtual object in the virtual environment changes, the position of the image acquisition model in the virtual environment also changes, and the image acquisition model is always within the preset distance range of the virtual object in the virtual environment. Optionally, during the automatic following process, the relative position of the image acquisition model and the virtual object does not change.
[0043] Optionally, the image acquisition model follows the virtual object in the virtual environment by rotating the angle and / or adjusting the focal length, that is, when the position of the virtual object in the virtual environment changes, the position of the image acquisition model does not change, but the image acquisition model realizes the following of the virtual object by adjusting the rotation angle and / or focal length of itself. Optionally, during the following process, the relative position of the image acquisition model and the virtual object changes.
[0044] In the embodiments of the present application, the image acquisition model is a three-dimensional model located around the virtual object in the three-dimensional virtual environment. When the first person view angle is adopted, the image acquisition model is located near the head of the virtual object or on the head of the virtual object; when the third person view angle is adopted, the image acquisition model can be located behind the virtual object and bound with the virtual object, or can be located at any position at a preset distance from the virtual object. Through the image acquisition model, the virtual object located in the three-dimensional virtual environment can be observed from different angles. Optionally, when the third person view angle is the first person over-shoulder view angle, the image acquisition model is located behind the virtual object (such as the head and shoulder of the virtual character). Optionally, in addition to the first person view angle and the third person view angle, the view angle also includes other view angles, such as the overhead view angle; when the overhead view angle is adopted, the image acquisition model can be located above the head of the virtual object. The overhead view angle is a view angle for observing the virtual environment from the angle of looking down from the sky. Optionally, the image acquisition model will not be actually displayed in the three-dimensional virtual environment, that is, the image acquisition model is not displayed in the three-dimensional virtual environment displayed in the user interface.
[0045] In practical applications, the electronic device can be a mobile terminal device such as a mobile phone, a tablet computer, a notebook computer, a personal digital assistant (PDA), a camera, a wearable device, a smart bracelet, a smart watch, a vehicle-mounted device, an e-book reader, an electronic game machine, or the like. The electronic device can also be a fixed terminal device such as a desktop computer.
[0046] In the embodiments of the present application, the first screen of the application displayed on the electronic device can be a screen of a virtual environment in which a first virtual object is observed at a first perspective. The first perspective can be at least one of a first-person perspective, a third-person perspective, or another perspective. The other perspective can be a top-down perspective or any other possible perspective.
[0047] In step 102, in response to an operation of initiating an interaction action on the first virtual object, the first virtual object is controlled to initiate the interaction action, and a second virtual object in the virtual environment whose virtual object feature satisfies a feature locking condition is determined.
[0048] In the embodiments of the present application, the first virtual object is a virtual object controlled by the electronic device. The electronic device initiates a user operation according to the received first virtual object, thereby controlling the first virtual object to initiate the interaction action. Exemplarily, the interaction action initiated by the first virtual object includes, but is not limited to, dancing, waving, shaking hands, holding hands, and hugging.
[0049] In the embodiments of the present application, the virtual object feature includes, but is not limited to, the interaction action initiated by the virtual object, the position of the virtual object, the face orientation of the virtual object, and the time when the virtual object initiates the interaction action.
[0050] In the embodiments of the present application, the feature locking condition is a condition for automatically interlocking the first virtual object with another virtual object.
[0051] In the embodiments of the present application, the electronic device responds to the operation of initiating the interaction action on the first virtual object, controls the first virtual object to initiate the interaction action, and then determines the second virtual object in the virtual environment whose virtual object feature satisfies the feature locking condition. It should be noted that the first screen can include the second virtual object, or the first screen can not include the second virtual object, but the virtual environment must include the second virtual object.
[0052] In some embodiments, the virtual object feature satisfying the feature locking condition includes that the similarity between the interaction action initiated by the virtual object in the virtual environment and the interaction action initiated by the first virtual object is greater than a similarity threshold.
[0053] In this embodiment, the similarity threshold is used to determine whether the interactive action initiated by other virtual objects is consistent with the interactive action initiated by the first virtual object. For example, the similarity threshold can be 80%.
[0054] In this embodiment of the application, the electronic device responds to the operation of initiating an interactive action on the first virtual object, controls the first virtual object to initiate an interactive action, and determines the interactive actions initiated by other virtual objects in the virtual scene that are different from the first virtual object. If the similarity between the interactive actions initiated by other virtual objects in the virtual environment and the interactive actions initiated by the first virtual object is greater than the similarity threshold, it indicates that there is an interactive action in the virtual environment that is consistent with the interactive action initiated by the first virtual object, and determines another virtual object that initiates the consistent interactive action as the second virtual object.
[0055] In a feasible scenario, referencing Figure 2 As shown, Figure 2 The diagram illustrates a scenario where a first virtual object and a second virtual object initiate the same interactive action. The electronic device displays the first screen of an application, which includes a first virtual object (player1) and a second virtual object (player2). Further, the electronic device responds to an operation that initiates an interactive action on player1 and controls player1 to initiate the action. Then, the electronic device determines that another virtual object in the virtual environment, such as player2, has also initiated an interactive action, and the similarity between the interactive action initiated by player2 and the interactive action initiated by player1 is greater than a similarity threshold, meaning that player2 and player1 have initiated the same interactive action, even if their facial orientations are opposite. At this point, the electronic device determines that the virtual object features between player2 and player1 in the virtual environment meet the feature locking condition and identifies player2 as the second virtual object. It then automatically locks player1 and player2 to achieve interactive action between the first and second virtual objects.
[0056] Step 103: Control the first virtual object to perform interactive actions with the second virtual object, and display the second screen of the application.
[0057] The second screen shows the image acquisition model observing the interactive actions between the first and second virtual objects.
[0058] In the embodiment of the present application, the electronic device responds to the operation of initiating the interaction action on the first virtual object, controls the first virtual object to initiate the interaction action, determines the case that the second virtual object in the virtual environment meets the feature locking condition, controls the first virtual object and the second virtual object to perform the interaction action operation, and displays the second screen when observing the interaction operation between the first virtual object and the second virtual object in the application. Referring to Figure 3 As shown, Figure 3 The second screen shows the interaction operation between the first virtual object and the second virtual object. It should be noted that after the automatic locking of the first virtual object and the second virtual object completes the interaction action, the locking relationship between the first virtual object and the second virtual object is released, that is, the first virtual object and the second virtual object are unlocked. At this time, when the first virtual object initiates the interaction action again, the electronic device can lock the virtual object in the virtual scene again, which meets the feature locking condition, with the first virtual object. In this way, the intelligence of the device is improved.
[0059] The embodiment of the present application provides an information processing method. The first screen of the application is displayed, wherein the first screen includes the screen when observing the first virtual object in the virtual environment through the image acquisition model; in response to the operation of initiating the interaction action on the first virtual object, the first virtual object initiates the interaction action, and the second virtual object in the virtual environment meets the feature locking condition; control the first virtual object and the second virtual object to perform the interaction action operation, and display the second screen of the application, wherein the second screen is the screen when the image acquisition model observes the interaction action operation between the first virtual object and the second virtual object; that is, in the embodiment of the present application, the electronic device determines the second virtual object in the virtual environment which meets the feature locking condition based on at least the interaction action initiated between the first virtual object, so as to automatically lock the first virtual object and the second virtual object, and then control the first virtual object and the second virtual object to perform the interaction action operation, and display the second screen when the first virtual object and the second virtual object perform the interaction action operation; in this way, the problem that one virtual object and another virtual object are located at a specified position, and after one virtual object issues an action invitation, another virtual object agrees to the action invitation, and then the two virtual objects can perform action interaction is solved, the automatic locking between the two virtual objects is realized, and after the two virtual objects complete the interaction action, the two virtual objects are automatically unlocked, the intelligence of the device is improved, and the user's use experience is improved.
[0060] The embodiment of the present application provides an information processing method, which is applied to an electronic device, as shown in Figure 4 The method comprises the following steps:
[0061] Step 401, display a first screen of an application program.
[0062] The first screen includes a screen when a first virtual object is observed in a virtual environment through an image collection model.
[0063] Step 402, in response to an operation of initiating an interaction action on the first virtual object, control the first virtual object to initiate the interaction action, and determine a second virtual object whose virtual object feature meets a feature locking condition in the virtual environment.
[0064] In the embodiment of the application, the virtual object feature meeting the feature locking condition includes that a similarity between the interaction action initiated by the virtual object and the interaction action initiated by the first virtual object is greater than a similarity threshold.
[0065] In some embodiments, the virtual object feature meeting the feature locking condition further includes at least one of the following: a distance between the position of the virtual object and the position of the first virtual object is less than a distance threshold; an angle formed between a face orientation of the virtual object and a face orientation of the first virtual object is less than a preset angle; and an interval duration of the interaction action initiated by the virtual object and the interaction action initiated by the first virtual object is less than an interval duration threshold.
[0066] In the embodiment of the application, the distance threshold, the preset angle and the interval duration threshold are pre-set in the electronic device. Optionally, the distance threshold, the preset angle and the interval duration threshold can be default or user-set in the application program, and the application does not make a specific limitation in this regard.
[0067] In the embodiment of the application, in response to the operation of initiating the interaction action on the first virtual object, the electronic device controls the first virtual object to initiate the interaction action, and determines that the distance between the position of at least one virtual object and the position of the first virtual object is less than the distance threshold; and / or, the angle formed between the face orientation of the virtual object and the face orientation of the first virtual object is less than the preset angle; and / or, the interval duration of the interaction action initiated by the at least one virtual object and the interaction action initiated by the first virtual object is less than the interval duration threshold, so as to screen one second virtual object whose virtual object feature meets the feature locking condition from the at least one virtual object.
[0068] In an implementable scenario, the electronic device, in response to an operation of initiating an interaction action acting on the first virtual object, controls the first virtual object to initiate the interaction action, and determines that the similarity between the interaction action initiated by the virtual object in the virtual environment and the interaction action initiated by the first virtual object is greater than the similarity threshold, selects, from the plurality of virtual objects, a virtual object closest to the first virtual object as the second virtual object; and / or, selects, from the plurality of virtual objects, a virtual object with the smallest angle formed between the face orientations of the first virtual object as the second virtual object; and / or, selects, from the plurality of virtual objects, a virtual object with the shortest interval duration of initiating the interaction action as the second virtual object. The present application does not make specific limitations thereto, as long as the second virtual object can be selected from the plurality of virtual objects. In this way, by setting multiple selection conditions, the second virtual object whose virtual object features meet the feature locking condition is selected from the plurality of virtual objects, so as to realize the automatic interlocking between the second virtual object and the first virtual object.
[0069] In an implementable scenario, the electronic device calculates the distance between the position of the virtual object and the position of the first virtual object based on the world coordinates, and when the distance between the position of the virtual object and the position of the first virtual object is less than the distance threshold, determines that the virtual object features meet the feature locking condition, and further determines that the virtual object is the second virtual object. Here, the calculation of the distance between the position of the virtual object and the position of the first virtual object is as follows:
[0070] First, the electronic device determines the center point of the virtual object by using the bounding box algorithm, and establishes a local coordinate system with the center point of the virtual object as the origin; second, the electronic device converts the center point coordinates of the virtual object in the local coordinate system into coordinates in the world coordinate system; then, the first position A1(x1, y1, z1) of the first virtual object and the third position B1(x2, y2, z2) of other virtual objects in the world coordinate system are obtained, and based on the first position and the third position, the distance between the first virtual object and other virtual objects is calculated; here, the distance between the first virtual object and other virtual objects can be obtained by the following (formula 1),
[0071]
[0072] Finally, if the distance between the first virtual object and the other virtual object is less than the distance threshold distance_Threshold, the other virtual object is determined as the second virtual object, and the first virtual object and the second virtual object are set to a locked state. In this way, the position coordinates of the virtual objects are determined in the local coordinate system, and the position coordinates of the virtual objects are converted to position coordinates in the world coordinate system through coordinate conversion, so that the position information of the virtual objects in the world coordinate system can be more accurately determined.
[0073] In some embodiments, after the electronic device determines the second virtual object, the first prompt information is output, the first prompt information is used to prompt the first virtual object that the second virtual object interacting with the first virtual object in the action has been locked, and the first prompt information is also used to prompt the first virtual object that the interactive action can be temporarily withdrawn, and the interactive action is re-executed when the first virtual object moves to a certain position, and then the action interaction with the second virtual object is performed. In this way, it is more in line with human settings, and the game experience of the player is improved.
[0074] Step 403, obtaining a first position and a face orientation of the first virtual object in the world coordinate system, and a second position of the second virtual object.
[0075] In the embodiments of the present application, the world coordinate system includes three axes, X axis, Y axis and Z axis, wherein the X axis represents the left-right space in the three-dimensional space, the Y axis represents the up-down space in the three-dimensional space, and the Z axis represents the front-back space in the three-dimensional space. It should be noted that the X axis, the Y axis and the Z axis form a three-dimensional space of the world coordinate system.
[0076] Step 404, determining a moving direction of the first virtual object when moving to the second virtual object based on the first position, the face orientation and the second position.
[0077] Step 405, controlling the first virtual object to move from the first position to the moving direction.
[0078] In the embodiments of the present application, first, the electronic device obtains a first position of a first virtual object and a face orientation of the first virtual object in a world coordinate system, and obtains a second position of a second virtual object in the world coordinate system; second, the electronic device determines a moving direction of the first virtual object when the first virtual object moves to the second virtual object based on the first position and the second position. It should be noted that if the moving direction of the first virtual object is inconsistent with the face orientation of the first virtual object, the first virtual object rotates from the current face orientation to a direction consistent with the moving direction; if the moving direction of the first virtual object is consistent with the face orientation of the first virtual object, the first virtual object does not need to rotate, and it is determined that the current face orientation is the moving direction; finally, the first virtual object is controlled to move from the first position to the second virtual object along the moving direction. It should be emphasized that when the electronic device controls the first virtual object to move from the first position to the second virtual object along the moving direction, the electronic device can control the first virtual object to maintain the initiated interaction action during the movement; of course, the electronic device can also control the first virtual object to withdraw the initiated interaction action at the beginning of the movement, and then re-execute the interaction action when the first virtual object reaches the target position.
[0079] In an implementable scenario, if the moving direction of the first virtual object is inconsistent with the face orientation of the first virtual object, the rotation angle a of the first virtual object is determined based on the moving direction and the face orientation, and the turning of the face orientation of the first virtual object is implemented based on the rotation angle a. It should be noted that in a three-dimensional virtual environment, the rotation of the first virtual object is implemented through a rotation matrix, and the implementation process is as follows:
[0080] First, in the case of obtaining a first position A1(x1, y1, z1) of a first virtual object and a second position B1(x2, y2, z2) of a second virtual object in a world coordinate system, a center position V(x0, y0, z0) between the first virtual object and the second virtual object is calculated. Second, a first unit vector of a vector with the first position A1(x1, y1, z1) as a starting point and the center position V(x0, y0, z0) as an ending point is obtained; a rotation angle a is calculated based on the first unit vector, and a rotation matrix corresponding to rotation of the first virtual object with different axes in the world coordinate system as a rotation axis is calculated, that is, a rotation matrix Rx corresponding to rotation with the X axis in the world coordinate system as a rotation axis, a rotation matrix Ry corresponding to rotation with the Y axis in the world coordinate system as a rotation axis, and a rotation matrix Rz corresponding to rotation with the Z axis in the world coordinate system as a rotation axis. Finally, the rotation matrix Rx, the rotation matrix Ry, and the rotation matrix Rz are multiplied to obtain a target rotation matrix R, that is, R = Rx x Ry x Rz; the first position A1(x1, y1, z1) is multiplied by the target rotation matrix R to realize steering of the first virtual object. Wherein, the rotation matrix Rx, the rotation matrix Ry, and the rotation matrix Rz can be obtained by the following (formula 2),
[0081]
[0082] In the embodiments of the present application, the process of controlling the first virtual object to move from the first position along the movement direction is further described in combination with Figure 5
[0083] Step 501, based on the first position, the movement direction, and the second position, a first end position is predicted.
[0084] In the embodiments of the present application, the first end position is the position of any point on the line connecting the first position and the second position. For example, the first end position can be the position of the midpoint on the line connecting the first position and the second position, the first end position can also be the position of the point on the line connecting the first position and the second position which is closer to the first position, and the first end position can also be the position of the point on the line connecting the first position and the second position which is closer to the second position; the present application does not make specific limitations in this regard.
[0085] Step 502, controlling the first virtual object to move from the first position along the movement direction to the first end position.
[0086] In the embodiments of the present application, in the case that the electronic device predicts the first end position based on the first position, the moving direction and the second position, the electronic device determines a target distance of the first virtual object moving from the first position to the first end position based on the first position and the first end position; further, the electronic device controls the first virtual object to move a target distance along the moving direction from the first position and reach the first end position.
[0087] In an implementable application scenario, when the first virtual object and the second virtual object perform the interactive action operation, the first virtual object and the second virtual object still have a certain interval distance d. Here, referring to FIG. 2, Figure 6 Figure 6 FIG. 2 shows a position schematic diagram when the first virtual object and the second virtual object perform the action interaction, and the distance between the first virtual object and the second virtual object is d, which is taken as an example for description,
[0088] First, in the case that the first position A1(x1, y1, z1) of the first virtual object and the second position B1(x2, y2, z2) of the second virtual object are obtained in the world coordinate system, the central position V(x0, y0, z0) between the first virtual object and the second virtual object is calculated by (formula 3),
[0089]
[0090] Second, based on the central position V(x0, y0, z0), the first position A1(x1, y1, z1) and the second position B1(x2, y2, z2), the first end position A2(x3, y3, z3) of the first virtual object and the second end position B2(x4, y4, z4) of the second virtual object are calculated by using the three-dimensional algorithm of space straight line intersecting with spherical surface.
[0091] Here, the three-dimensional algorithm of space straight line intersecting with spherical surface can be implemented by (formula 4) to (formula 6),
[0092] First, based on the central position V(x0, y0, z0) and the first position A1(x1, y1, z1), the direction vector of the straight line connected by the first position A1 and the central position V is determined as and the equation of the space straight line is as follows (formula 4),
[0093]
[0094] Wherein, t is a constant value.
[0095] Second, the direction vector is determined with the first position A1(x1, y1, z1) and the second position B1(x2, y2, z2) as the starting point and the end point of the space straight line Then, any point P(x, y, z) on the spatial straight line can be obtained by the following (formula 5),
[0096]
[0097] Thirdly, the position of the sphere center is determined as V(x0, y0, z0), and assuming that the radius of the sphere is r, the sphere surface can be obtained by the following (formula 6),
[0098] r = d / 2, (x-x0) 2 +(y-y0) 2 +(z-z0) 2 =r 2 (formula 6)
[0099] By combining (formula 4) to (formula 6), the first end position A2(x3, y3, z3) of the first virtual object and the second end position B2(x4, y4, z4) of the second virtual object are obtained.
[0100] In some embodiments, referring to Figure 7 , in the case that the Y-axis coordinate of the first position is not equal to the Y-axis coordinate of the second position in the world coordinate system, the following steps can also be performed:
[0101] Step 701, in the case that the first virtual object reaches the first end position and the second virtual object reaches the second end position, a first difference value between the Y-axis coordinate of the first end position and the Y-axis coordinate of the second end position is obtained.
[0102] Step 702, a second difference value between the X-axis coordinate of the first end position and the X-axis coordinate of the first end position is obtained.
[0103] Step 703, a ratio of the first difference value and the second difference value is obtained.
[0104] Step 704, an inverse tangent value of the ratio is determined as the pitch angle of the first virtual object.
[0105] Step 705, the first virtual object is controlled to pitch to the pitch angle at the first end position.
[0106] In an implementable application scenario, referring to Figure 8 , in the case that the Y-axis coordinate of the first position is not equal to the Y-axis coordinate of the second position in the world coordinate system, the following steps can also be performed: Figure 8The diagram illustrates a scenario where the first and second virtual objects are not at the same height on the Y-axis. When the first virtual object player1 reaches the first endpoint position and the second virtual object player2 reaches the second endpoint position, the electronic device first obtains the first difference d1 between the Y-axis coordinates of the first and second endpoint positions, and obtains the second difference d2 between the X-axis coordinates of the first and second endpoint positions. Next, the electronic device calculates the ratio d1 / d2 of the first and second differences, and determines the arctangent of the ratio d1 / d2 as the pitch angle β of player1, i.e., β = tan(d1 / d2). -1 d1 / d2; Finally, the electronic device controls player1 to tilt to pitch angle β at the first endpoint position. Thus, when the first and second virtual objects are not at the same height on the Y-axis, the lines of sight do not intersect during interactive actions, causing a height difference in the actions. This achieves the intersecting of the lines of sight between the first and second virtual objects during interactive actions, ensuring the interactive actions are at the same height, thereby improving the player's gaming experience.
[0107] Step 406: As the first virtual object moves along the direction of movement from its first position, the third screen of the application is displayed.
[0108] The third scene shows the first virtual object being observed by an image acquisition model as it moves along the direction of movement.
[0109] In this embodiment of the application, during the process of the first virtual object moving from its first position along the moving direction, since the screen is updated and displayed in the form of image frames, a third screen is acquired every fixed time interval during the movement of the first virtual object, which is the result of observing the first virtual object through the image acquisition model, thereby updating the image screen of the first virtual object during its movement.
[0110] In some embodiments, the third screen is the screen in which the first virtual object is observed at a specific position by an image acquisition model while the first virtual object is moving at a constant speed in a straight line along the direction of movement. The specific position is the position corresponding to a preset movement time interval during the process of the first virtual object moving at a constant speed in a straight line.
[0111] In a feasible application scenario, refer to Figure 9 As shown, Figure 9The schematic diagram of a plurality of specific positions of the first virtual object in the moving process is shown; the electronic device can calculate a plurality of specific positions of the first virtual object in the moving process according to linear interpolation of time intervals. That is, in the case of determining the first current position A1(x1, y1, z1) and the first terminal position A2(x3, y3, z3) of the first virtual object, obtaining a preset moving time t0, the electronic device determines a plurality of specific positions corresponding to each interval of the preset moving time t0 when the first virtual object moves at a constant speed in a straight line; further, the electronic device obtains a plurality of third pictures when the image acquisition model observes the first virtual object at the plurality of specific positions in the process of controlling the first virtual object to move at a constant speed in a straight line along the moving direction; further, obtaining the target rotation matrix R, the translation matrix T and the scaling matrix S of the first virtual object, obtaining the change matrix M of the first virtual object in different third pictures, and realizing the movement of the first virtual object in the virtual environment based on the change matrix M. In this way, the picture of the position of the first virtual object is updated and rendered. Wherein, the translation matrix T and the scaling matrix S are as follows, The change matrix M can be obtained by the following (formula 7),
[0112] M = R x T x S (formula 7)
[0113] Step 407, control the first virtual object and the second virtual object to perform interaction operation, and display the second picture of the application program.
[0114] Wherein, the second picture is a picture observed by the image acquisition model when the first virtual object and the second virtual object perform interaction operation.
[0115] It should be noted that the same steps and the same content in this embodiment and other embodiments are described with reference to the description of other embodiments, and will not be repeated here.
[0116] Embodiments of the present application provide an information processing device, which can be used to implement Figure 1 、 Figure 4 、 Figure 5 and Figure 7 The information processing method provided by the corresponding embodiments is described with reference to Figure 10 The information processing device 10 includes:
[0117] The display module 1001 is configured to display a first picture of an application program, wherein the first picture includes a picture observed by an image acquisition model on a first virtual object in a virtual environment;
[0118] The control module 1002 is configured to control the first virtual object to initiate the interaction action in response to an operation of initiating the interaction action acting on the first virtual object, and determine a second virtual object in the virtual environment, a feature of which satisfies a feature locking condition.
[0119] The control module 1002 is further configured to control the first virtual object to perform the interaction action operation with the second virtual object.
[0120] The display module 1001 is further configured to display a second screen of the application program, where the second screen is a screen when the image acquisition model observes the interaction action operation between the first virtual object and the second virtual object.
[0121] In some embodiments of the present application, the feature of the virtual object satisfying the feature locking condition comprises: a similarity between the interaction action initiated by the virtual object in the virtual environment and the interaction action initiated by the first virtual object being greater than a similarity threshold.
[0122] In some embodiments of the present application, the feature of the virtual object satisfying the feature locking condition further comprises at least one of: a distance between a position of the virtual object and a position of the first virtual object being less than a distance threshold; an angle formed between a face orientation of the virtual object and a face orientation of the first virtual object being less than a preset angle; and an interval time length between the interaction action initiated by the virtual object and the interaction action initiated by the first virtual object being less than an interval time length threshold.
[0123] In some embodiments of the present application, the information processing apparatus further comprises an acquisition module 1003 and a processing module 1004. The acquisition module 1003 is configured to acquire a first position and a face orientation of the first virtual object and a second position of the second virtual object in a world coordinate system. The processing module 1004 is configured to determine a moving direction of the first virtual object when moving to the second virtual object based on the first position, the face orientation and the second position. The control module 1002 is further configured to control the first virtual object to move from the first position to the second virtual object along the moving direction.
[0124] In some embodiments of the present application, the processing module 1004 is further configured to predict a first end position based on the first position, the moving direction and the second position. The control module 1002 is further configured to control the first virtual object to move from the first position to the first end position along the moving direction.
[0125] In some embodiments of this application, the acquisition module 1003 is further configured to, when the first virtual object reaches the first endpoint position and the second virtual object reaches the second endpoint position, acquire the first difference between the Y-axis coordinate of the first endpoint position and the Y-axis coordinate of the second endpoint position; acquire the second difference between the X-axis coordinate of the first endpoint position and the X-axis coordinate of the second endpoint position; acquire the ratio of the first difference to the second difference; the processing module 1004 is further configured to determine the arctangent of the ratio as the pitch angle of the first virtual object; and the control module 1002 is further configured to control the first virtual object to pitch to the pitch angle at the first endpoint position.
[0126] In some embodiments of this application, the display module 1001 is further configured to display a third screen of the application during the movement of the first virtual object, wherein the third screen is a screen in which the first virtual object is observed by an image acquisition model during the movement of the first virtual object along the movement direction.
[0127] In some embodiments of this application, the third screen is the screen in which the first virtual object is observed at a specific position by an image acquisition model while the first virtual object is moving at a constant speed in a straight line along the moving direction. The specific position is the position corresponding to a preset moving time interval during the process of the first virtual object moving at a constant speed in a straight line.
[0128] Based on the foregoing embodiments, embodiments of this application provide an electronic device, including but not limited to mobile terminal devices such as mobile phones, tablets, laptops, PDAs, wearable devices, and in-vehicle devices, as well as fixed terminal devices such as desktop computers.
[0129] The following example illustrates how information processing methods can be applied to the interaction between wearable and electronic devices:
[0130] As an example, Figure 11 A schematic diagram of the structure of a wearable device is provided, such as... Figure 11 As shown, the wearable device 100 includes: a wearable body 110 and a wearing component (not shown in the figure). The wearable body 110 includes a wireless communication unit 120, a processing unit 130, and a display unit 140; wherein:
[0131] The wireless communication unit 120 can connect to the electronic device at least for receiving the display picture sent by the electronic device and feeding back the indication operation to the electronic device, so that the electronic device acquires the interactive action operation which has a mapping relationship with the indication operation according to the received indication operation and responds to the operation of initiating the interactive action acting on the virtual object. Here, the electronic device can establish a connection with the wearable device 100 through near field communication of the wireless communication unit 120 before sending the display picture to the wearable device 100. The near field communication includes but is not limited to Wi-Fi, Bluetooth (BT), near field communication (NFC) and other near field communication technologies.
[0132] The processing unit 130 is arranged in the wearable body 110. The processing unit 130 can be a processor for executing the steps of the information processing method provided by the embodiments of the present application.
[0133] The processing unit 130 can include but is not limited to any one or more of a central processing unit (CPU), a microprocessor unit (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA).
[0134] The display unit 140 is used to display the display picture sent by the electronic device, so that the wearable device feeds back the indication operation to the electronic device according to the display picture.
[0135] In actual application, the wearable body 110 can include but is not limited to the shell of the wearable device and the peripheral hardware circuit necessary for supporting the normal operation of the wireless communication unit 120 and the processing unit 130.
[0136] In one implementable scenario, taking the wearable device as a wearable AR device for example, referring to the above description of the wearable device, the wearable device can be connected to the electronic device through the wireless communication unit 120, and the display picture sent by the electronic device can be received through the wireless communication unit 120. Figure 12As shown, the wearable AR device 200 includes a wearable body and a wearing component such as a headband, and the wearable body includes a wireless communication unit, a processing unit and a display unit. The wearable AR device 200 receives the first picture sent by the electronic device 13, wherein the first picture includes a picture of observing the first virtual object in the virtual environment through the image collection model; in response to the indication operation acting on the wearable AR device 200, the indication operation is sent to the electronic device 13, wherein the indication operation includes but is not limited to the user's nodding, shaking and turning operations; the electronic device 13 acquires the interactive action operation corresponding to the indication operation according to the indication operation, and in response to the operation of initiating the interactive action acting on the first virtual object, the first virtual object initiates the interactive action, and determines the second virtual object in the virtual environment whose virtual object feature satisfies the feature locking condition; finally, the electronic device 13 controls the first virtual object and the second virtual object to perform the interactive action operation, and sends the second picture of the application program to the wearable AR device 200; the wearable AR device 200 displays the second picture, wherein the second picture is the picture when the image collection model observes the interactive action operation between the first virtual object and the second virtual object. In this way, through the interaction between the wearable device and the electronic device, the automatic locking between the two virtual objects in the application program is realized, and after the two virtual objects complete the interactive action, the two virtual objects will be automatically unlocked, which improves the intelligence of the device and improves the user's experience.
[0137] Based on the foregoing embodiments, the electronic device can be used for Figure 1 、 Figure 4 、 Figure 5 and Figure 7 The information processing method provided in the corresponding embodiments is described with reference to Figure 13 As shown, the electronic device 13 (the electronic device 13 in Figure 13 corresponds to the information processing device 10 in Figure 10 ) includes a processor 1301, a memory 1302 and a communication bus 1303, wherein:
[0138] The communication bus 1303 is used to realize the communication connection between the processor 1301 and the memory 1302;
[0139] The processor 1301 is used to execute the information processing program stored in the memory 1302 to realize the following steps:
[0140] Display the first picture of the application program, wherein the first picture includes a picture when observing the first virtual object in the virtual environment through the image collection model;
[0141] In response to an operation of initiating an interaction action on the first virtual object, the first virtual object is controlled to initiate the interaction action, and a second virtual object in the virtual environment is determined, wherein a feature of the second virtual object meets a feature locking condition.
[0142] The first virtual object and the second virtual object are controlled to perform the interaction action operation, and a second screen of the application is displayed, wherein the second screen is a screen when the image collection model observes the interaction action operation between the first virtual object and the second virtual object.
[0143] In other embodiments of the present application, the feature of the virtual object meeting the feature locking condition comprises: a similarity between the interaction action initiated by the virtual object in the virtual environment and the interaction action initiated by the first virtual object being greater than a similarity threshold.
[0144] In other embodiments of the present application, the feature of the virtual object meeting the feature locking condition further comprises at least one of: a distance between a position of the virtual object and a position of the first virtual object being less than a distance threshold; an angle formed between a face orientation of the virtual object and a face orientation of the first virtual object being less than a preset angle; and an interval time length of the virtual object initiating the interaction action and the first virtual object initiating the interaction action being less than an interval time length threshold.
[0145] In other embodiments of the present application, the processor 1301 is configured to execute an information processing program stored in the memory 1302 to implement the following steps:
[0146] A first position and a face orientation of the first virtual object and a second position of the second virtual object in a world coordinate system are obtained, a moving direction of the first virtual object when moving to the second virtual object is determined based on the first position, the face orientation and the second position, and the first virtual object is controlled to move from the first position along the moving direction.
[0147] In other embodiments of the present application, the processor 1301 is configured to execute an information processing program stored in the memory 1302 to implement the following steps:
[0148] A first end position is predicted based on the first position, the moving direction and the second position, and the first virtual object is controlled to move from the first position along the moving direction to the first end position.
[0149] In other embodiments of the present application, the processor 1301 is configured to execute an information processing program stored in the memory 1302 to implement the following steps:
[0150] In a case that the first virtual object reaches the first end position and the second virtual object reaches the second end position, a first difference between a Y-axis coordinate of the first end position and a Y-axis coordinate of the second end position is obtained; a second difference between an X-axis coordinate of the first end position and an X-axis coordinate of the first end position is obtained; a ratio of the first difference to the second difference is obtained; an inverse tangent value of the ratio is determined as a pitch angle of the first virtual object; and the first virtual object is controlled to pitch to the pitch angle at the first end position.
[0151] In other embodiments of the present application, the processor 1301 is configured to execute an information processing program stored in the memory 1302 to implement the following steps:
[0152] In the process of moving the first virtual object, a third screen of the application program is displayed, wherein the third screen is a screen when the first virtual object is observed by the image acquisition model in the process of moving along the moving direction.
[0153] In other embodiments of the present application, the third screen is a screen when the first virtual object is observed by the image acquisition model at a specific position in the process of moving at a constant speed and in a straight line along the moving direction, and the specific position is a position corresponding to an interval of a preset moving duration in the process of moving at a constant speed and in a straight line.
[0154] An embodiment of the present application provides a computer storage medium storing one or more programs, which can be executed by one or more processors, by displaying a first screen of an application, wherein the first screen comprises a screen when a first virtual object is observed by an image collection model in a virtual environment; in response to an operation of initiating an interaction action acting on the first virtual object, controlling the first virtual object to initiate the interaction action, and determining a second virtual object in the virtual environment, a feature of which satisfies a feature locking condition; controlling the first virtual object to perform the interaction action operation with the second virtual object, and displaying a second screen of the application, wherein the second screen is a screen when the image collection model observes the interaction action operation between the first virtual object and the second virtual object; that is, in the embodiment of the present application, the electronic device determines the second virtual object in the virtual environment, a feature of which satisfies the feature locking condition, based on at least the interaction action initiated between the first virtual object, so as to automatically lock the first virtual object and the second virtual object, and then controls the first virtual object and the second virtual object to perform the interaction action operation, and displays the second screen when the first virtual object and the second virtual object perform the interaction action operation; in this way, the problem that the first virtual object and the second virtual object can perform the action interaction only after the first virtual object issues an action invitation and the second virtual object agrees to the action invitation is solved, the automatic locking between the two virtual objects is realized, and after the two virtual objects complete the interaction action, the two virtual objects are automatically unlocked, the intelligence of the device is improved, and the use experience of the user is improved.
[0155] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage, etc.) containing computer-usable program code.
[0156] The present application is described with reference to flowcharts and / or block diagrams according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a means for implementing the functions specified in the flowcharts and / or block diagrams. Figure 1 one flow or multiple flows and / or blocks Figure 1means for performing the function specified by the block or blocks.
[0157] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the flow Figure 1 flow or flows and / or blocks Figure 1 means for performing the function specified by the block or blocks.
[0158] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the flow Figure 1 flow or flows and / or blocks Figure 1 steps of means for performing the function specified by the block or blocks.
[0159] The above descriptions are only preferred embodiments of the present application, and are not used to limit the protection scope of the present application.
Claims
1. An information processing method, comprising: displaying a first screen of an application, wherein the first screen comprises a screen when a first virtual object is observed by an image collection model in a virtual environment, the image collection model following the first virtual object by adjusting a rotation angle and / or a focal length of itself; in response to an operation of an initiating interaction action acting on the first virtual object, controlling the first virtual object to initiate the interaction action, determining a second virtual object in the virtual environment whose virtual object feature satisfies a feature locking condition; automatically locking the first virtual object and the second virtual object; the virtual object feature satisfying the feature locking condition comprises that a similarity between an interaction action initiated by a virtual object in the virtual environment and the interaction action initiated by the first virtual object is greater than a similarity threshold; obtaining a first position and a face orientation of the first virtual object and a second position of the second virtual object in a world coordinate system; determining a moving direction of the first virtual object when moving to the second virtual object based on the first position, the face orientation and the second position; controlling the first virtual object to move from the first position to the moving direction and adjusting the face orientation of the first virtual object to the moving direction of the first virtual object; controlling the first virtual object to perform an interaction action operation with the second virtual object, and displaying a second screen of the application, wherein the second screen is a screen when the image collection model observes the interaction action operation between the first virtual object and the second virtual object; after the first virtual object and the second virtual object complete the interaction action, unlocking the first virtual object and the second virtual object.
2. The method of claim 1, wherein the virtual object feature satisfies the feature locking condition further comprises at least one of the following: a distance between a position of a virtual object and the position of the first virtual object is less than a distance threshold; an angle formed between a face orientation of the virtual object and the face orientation of the first virtual object is less than a preset angle; an interval time length between the interaction action initiated by the virtual object and the interaction action initiated by the first virtual object is less than an interval time length threshold.
3. The method of claim 2, wherein the controlling the first virtual object to move from the first position to the moving direction comprises: predicting a first end position based on the first position, the moving direction and the second position; and controlling the first virtual object to move from the first position to the first end position along the moving direction.
4. The method of claim 3, wherein when a Y-axis coordinate of the first position is not equal to a Y-axis coordinate of the second position in the world coordinate system, the method further comprises: obtaining a first difference between the Y-axis coordinate of the first end position and the Y-axis coordinate of the second end position when the first virtual object reaches the first end position and the second virtual object reaches the second end position. obtaining a second difference value of the X-axis coordinate of the first end position; obtaining a ratio of the first difference value and the second difference value; determining an arctangent value of the ratio as a pitch angle of the first virtual object; controlling the first virtual object to pitch to the pitch angle at the first end position.
5. The method of claim 1, further comprising: displaying a third screen of the application during movement of the first virtual object, wherein the third screen is a screen when the first virtual object is observed by the image collection model during movement of the first virtual object along the movement direction at a constant speed in a straight line.
6. The method of claim 5, wherein the third screen is a screen when the first virtual object is observed by the image collection model at a specific position during movement of the first virtual object along the movement direction at a constant speed in a straight line, and the specific position is a position corresponding to a preset movement time interval during movement of the first virtual object at the constant speed in a straight line.
7. An information processing apparatus, comprising: a display module configured to display a first screen of an application, wherein the first screen comprises a screen when a first virtual object is observed by an image collection model in a virtual environment, and the image collection model adjusts a rotation angle and / or a focal length of the image collection model to follow the first virtual object; a control module configured to, in response to an operation of initiating an interaction action on the first virtual object, control the first virtual object to initiate the interaction action, determine a second virtual object in the virtual environment, a virtual object feature of which satisfies a feature locking condition; and automatically lock the first virtual object and the second virtual object, wherein the virtual object feature satisfying the feature locking condition comprises a similarity between an interaction action initiated by a virtual object in the virtual environment and the interaction action initiated by the first virtual object being greater than a similarity threshold; an acquisition module configured to acquire a first position and a face orientation of the first virtual object and a second position of the second virtual object in a world coordinate system; a processing module configured to determine a movement direction of the first virtual object when moving towards the second virtual object based on the first position, the face orientation, and the second position; the control module is further configured to control the first virtual object to move from the first position to the second virtual object along the movement direction, and adjust the face orientation of the first virtual object to the movement direction of the first virtual object; the control module is further configured to control the first virtual object to perform an interaction action operation with the second virtual object, and unlock the first virtual object and the second virtual object after the interaction action operation between the first virtual object and the second virtual object is completed; the display module is further configured to display a second screen of the application, wherein the second screen is a screen when the image collection model observes the interaction action operation between the first virtual object and the second virtual object.
8. An electronic device, comprising: a processor, a memory, and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory. The processor is used to execute the information processing program stored in the memory, so as to realize the steps of the information processing method in any one of claims 1 to 6.
Citation Information
Patent Citations
Team forming method and device in game, electronic equipment and storage medium
CN111744207A
Method and device for locking object in game
CN112245909A