Interactive control method and device, electronic device, and storage medium
By dividing the interaction area and determining the target object according to the area priority and positional relationship, the problem of inaccurate determination of interactive objects in the existing technology is solved, and the game experience and ease of operation are improved.
Patent Information
- Application Number
- CN202110104112.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-26
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-01-26
AI Technical Summary
With existing game technology, it is difficult to accurately determine the interactive object that the player prefers when there are multiple interactive objects, resulting in a poor game experience, and the interaction list occupies a large amount of screen space, affecting the ease of operation.
By obtaining the orientation of the virtual object, the interaction area is divided into multiple sub-interaction areas, the target interaction object is determined according to the area priority and object position relationship, and interaction information is provided.
It improves the accuracy of determining interactive objects, conforms to the player's game intuition, reduces the complexity and screen coverage of the player's selection operations, and improves the convenience and experience of the game.
Smart Images

Figure CN112755516B
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a method and device for interactive control, an electronic device, and a storage medium. Background Art
[0002] During the game, players can interact with other objects in the big world by controlling the characters. When multiple interactive objects appear in the character's interaction judgment range at the same time, the traditional way of handling it is to provide an interaction list in the display interface, and the list content displays all the interactive objects within the interaction judgment range. The player selects the target interactive object from the interaction list, and then performs the interaction process between the character and the target interactive object based on the interaction information of the target interactive object. This process requires more cumbersome operations, and because there are more interactive objects, the interaction list occupies a larger area of the screen, which is easy to affect other operations performed by the player.
[0003] In some games, in order to simplify the operation of players selecting target interactive objects, the interactive object with the shortest distance to the player's controlled character among multiple interactive objects is determined as the target interactive object; Figure 1 As shown, character X is a virtual character controlled by the player. Within the interaction judgment range of character X, there are interactive object Y (another virtual character) and interactive object Z (the door for character X to go to another scene); since interactive object Z is closer to character X, the existing technical solution will use interactive object Z as the target interactive object. However, players are often more inclined to interact with interactive object Y; therefore, this design is inconsistent with the player's cognition and affects the player's gaming experience.
[0004] In other games, the interactive object with the smallest angle between it and the player's controlled character among multiple interactive objects is determined as the target interactive object; Figure 2 As shown, character U is a virtual character controlled by the player. There are interactive objects V (another virtual character) and interactive objects W (horse) within the interaction judgment range of character U. Since the angle between interactive object W and the orientation of character U is smaller, the existing technical solution will use interactive object W as the target interactive object. However, players tend to interact with interactive object V more. Therefore, this design is inconsistent with the player's cognition and affects the player's gaming experience. Summary of the invention
[0005] In view of the above problems, the present application is proposed to provide a method and device for interactive control, an electronic device, and a storage medium that overcome the above problems or at least partially solve the above problems, including:
[0006] A method for interactive control, the method comprising:
[0007] Get the orientation of the virtual object in the game scene;
[0008] Dividing the interaction area of the virtual object into a plurality of sub-interaction areas according to the orientation, wherein the plurality of sub-interaction areas have corresponding area priorities;
[0009] Determining a target interactive object from the multiple interactive objects according to the area priority of the sub-interaction area and the positional relationship between the multiple interactive objects located in the interaction area and the virtual object;
[0010] Provide interaction information of the target interaction object.
[0011] Optionally, the step of determining a target interactive object from the multiple interactive objects based on the area priority of the sub-interaction area and the positional relationship between the multiple interactive objects located in the interaction area and the virtual object includes:
[0012] Acquire a candidate sub-interaction area corresponding to the interaction object in the interaction area;
[0013] Determine the candidate sub-interaction region with the highest regional priority as the target sub-interaction region;
[0014] If the target sub-interaction area includes a plurality of candidate interaction objects, determining an interaction distance and / or an interaction angle between the candidate interaction object and the virtual object according to a positional relationship between the candidate interaction object and the virtual object;
[0015] According to the interaction distance and / or the interaction angle, a target interaction object is determined from the plurality of candidate interaction objects.
[0016] Optionally, the step of determining a target interactive object from the multiple interactive objects based on the area priority of the sub-interaction area and the positional relationship between the multiple interactive objects located in the interaction area and the virtual object includes:
[0017] In descending order of priority of the regions, determining in turn whether there is an interactive object in the corresponding sub-interaction region;
[0018] Determine the sub-interaction area where the interaction object is first determined to exist as the target sub-interaction area;
[0019] If the target sub-interaction area includes a plurality of candidate interaction objects, determining an interaction distance and / or an interaction angle between the candidate interaction object and the virtual object according to a positional relationship between the candidate interaction object and the virtual object;
[0020] According to the interaction distance and / or the interaction angle, a target interaction object is determined from the plurality of candidate interaction objects.
[0021] Optionally, the step of determining an interaction distance and / or an interaction angle between the candidate interaction object and the virtual object according to a positional relationship between the candidate interaction object and the virtual object comprises:
[0022] Determining the interaction distance according to a first position of the virtual object and a second position of the candidate interaction object;
[0023] The interaction angle is determined according to a first connecting line formed by a first position of the virtual object and a second position of the candidate interaction object, and a second connecting line corresponding to the orientation.
[0024] Optionally, the step of determining a target interaction object from a plurality of candidate interaction objects according to the interaction distance and / or the interaction angle includes:
[0025] Determining the candidate interaction object with the shortest interaction distance as a quasi-interaction object;
[0026] If there are multiple quasi-interactive objects, the quasi-interactive object with the smallest interaction angle is determined as the target interactive object.
[0027] Optionally, the step of dividing the interaction area of the virtual object into a plurality of sub-interaction areas according to the orientation includes:
[0028] The part of the interaction area within the presentation field of view is divided into a plurality of first sub-interaction areas according to a preset angle division rule, taking the first position of the virtual object as the origin and the second connecting line corresponding to the orientation as a reference;
[0029] A portion of the interaction area outside the presentation field of view is determined as a second sub-interaction area; and an area priority of the second sub-interaction area is lower than an area priority of the first sub-interaction area.
[0030] Optionally, the step of dividing the portion of the interaction area within the presentation field of view into a plurality of first interaction sub-areas according to a preset angle division rule, taking the first position of the virtual object as the origin and the second connecting line corresponding to the orientation as a reference, further includes:
[0031] Taking the first position of the virtual object as the origin and taking the second connecting line corresponding to the orientation as a reference, determining the maximum angle of the interaction area;
[0032] A corresponding preset angle division rule is determined according to the maximum angle.
[0033] An interactive control device, comprising:
[0034] A direction acquisition module is used to obtain the direction of the virtual object in the game scene;
[0035] an area division module, configured to divide the interaction area of the virtual object into a plurality of sub-interaction areas according to the orientation, wherein the plurality of sub-interaction areas have corresponding area priorities;
[0036] a target determination module, configured to determine a target interaction object from among the plurality of interaction objects according to the area priority of the sub-interaction area and the positional relationship between the plurality of interaction objects located in the interaction area and the virtual object;
[0037] The interaction control module is used to provide interaction information of the target interaction object.
[0038] Optionally, the target determination module includes:
[0039] A candidate sub-interaction area acquisition module, used to acquire candidate sub-interaction areas corresponding to interactive objects in the interaction area;
[0040] A first target determination module, configured to determine a candidate sub-interaction area with the highest area priority as a target sub-interaction area;
[0041] an interaction information determination module, configured to determine an interaction distance and / or an interaction angle between the candidate interaction object and the virtual object according to a positional relationship between the candidate interaction object and the virtual object if the target sub-interaction area contains a plurality of candidate interaction objects;
[0042] A target interaction object determination module is used to determine a target interaction object from a plurality of candidate interaction objects according to the interaction distance and / or the interaction angle.
[0043] Optionally, the target determination module includes:
[0044] A first judgment module is used to judge whether there is an interactive object in the corresponding sub-interaction area in descending order of the area priority;
[0045] A second target determination module, configured to determine the sub-interaction area where the interaction object is first determined to exist as a target sub-interaction area;
[0046] an interaction information determination module, configured to determine an interaction distance and / or an interaction angle between the candidate interaction object and the virtual object according to a positional relationship between the candidate interaction object and the virtual object if the target sub-interaction area contains a plurality of candidate interaction objects;
[0047] A target interaction object determination module is used to determine a target interaction object from a plurality of candidate interaction objects according to the interaction distance and / or the interaction angle.
[0048] Optionally, the interaction information determining module includes:
[0049] An interaction distance determination module, configured to determine the interaction distance according to a first position of the virtual object and a second position of the candidate interaction object;
[0050] The interaction angle determination module is used to determine the interaction angle according to a first line formed by the first position of the virtual object and the second position of the candidate interaction object, and a second line corresponding to the orientation.
[0051] Optionally, the target interaction object determination module includes:
[0052] A quasi-interactive object determination module, configured to determine the candidate interactive object with the shortest interactive distance as a quasi-interactive object;
[0053] The third determination module is used to determine the quasi-interaction object with the smallest interaction angle as the target interaction object if there are multiple quasi-interaction objects.
[0054] Optionally, the area division module includes:
[0055] A first division module, configured to divide the portion of the interaction area within the presentation field of view into a plurality of first sub-interaction areas according to a preset angle division rule, taking the first position of the virtual object as an origin and taking the second connecting line corresponding to the orientation as a reference;
[0056] The second division module is used to determine the part of the interaction area outside the presentation field of view as a second sub-interaction area; the area priority of the second sub-interaction area is lower than the area priority of the first sub-interaction area.
[0057] Optionally, the first division module further includes:
[0058] a fourth determining module, configured to determine a maximum angle of the interaction area by taking the first position of the virtual object as an origin and taking the second connecting line corresponding to the orientation as a reference;
[0059] The fifth determination module is used to determine the corresponding preset angle division rule according to the maximum angle.
[0060] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the interactive control method described above when executed by the processor.
[0061] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the interactive control method described above are implemented.
[0062] This application has the following advantages:
[0063] In an embodiment of the present application, by obtaining the orientation of the virtual object in the game scene, the interaction area of the virtual object is divided into multiple sub-interaction areas according to the orientation, wherein the multiple sub-interaction areas have area priorities corresponding to them, and then based on the area priorities of the sub-interaction areas and the positional relationship between the multiple interaction objects located in the interaction area and the virtual object, the target object is determined from the multiple interaction objects, and interaction information of the target interaction object is provided; this realizes that the target interaction object can be determined based on the orientation of the virtual object and the positional relationship between the interaction object and the virtual object, which is more in line with the player's game intuition and expectations, and at the same time can save the player the operation of selecting the target interaction object, reduce screen coverage, and improve the convenience and game experience of the game. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0065] Figure 1 A schematic diagram of a game scene for determining a target interactive object in the prior art;
[0066] Figure 2 A schematic diagram of another game scene for determining a target interactive object in the prior art;
[0067] Figure 3 A flowchart of the steps of an interactive control method according to an embodiment of the present application;
[0068] Figure 4 A schematic diagram of partitioning of an interactive area of an interactive control method according to an embodiment of the present application;
[0069] Figure 5 A schematic diagram of partitioning of an interactive area of an interactive control method according to an embodiment of the present application;
[0070] Figure 6 A schematic diagram of partitioning of an interactive area of an interactive control method according to an embodiment of the present application;
[0071] Figure 7 A schematic diagram of partitioning of an interactive area of an interactive control method according to an embodiment of the present application;
[0072] Figure 8 This is a structural block diagram of an interactive control device according to an embodiment of the present application. DETAILED DESCRIPTION
[0073] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0074] The interactive control method in one embodiment of the present application can be run on a terminal device or a server. The terminal device can be a local terminal device. When the interactive control method is run on a server, the interactive control method can be implemented and executed based on a cloud interactive system, wherein the cloud interactive system includes a server and a client device.
[0075] In an optional implementation, various cloud applications, such as cloud games, can be run under the cloud interactive system. Taking cloud games as an example, cloud games refer to a game method based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the interactive control method are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a terminal device, a television, a computer, a handheld computer, etc.; but the terminal device for the interactive control method is a cloud game server in the cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0076] In an optional embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0077] Reference Figure 3 , showing a step flow chart of an interactive control method provided by an embodiment of the present application, wherein the content rendered on the screen of the terminal device includes a game interface, the game interface at least partially displays a game scene, and the game scene includes controllable virtual objects.
[0078] In the embodiment of the present application, the method may specifically include the following steps:
[0079] Step 101, obtaining the orientation of the virtual object in the game scene;
[0080] Step 102, dividing the interaction area of the virtual object into a plurality of sub-interaction areas according to the orientation, wherein the plurality of sub-interaction areas have corresponding area priorities;
[0081] Step 103, determining a target interactive object from the multiple interactive objects according to the area priority of the sub-interaction area and the positional relationship between the multiple interactive objects located in the interaction area and the virtual object;
[0082] Step 104: providing interaction information of the target interaction object.
[0083] Through the various steps provided in the above-mentioned embodiments of the present application, by obtaining the orientation of the virtual object in the game scene, the interaction area of the virtual object is divided into multiple sub-interaction areas according to the orientation, wherein the multiple sub-interaction areas have corresponding area priorities, and then based on the area priorities of the sub-interaction areas and the positional relationship between the multiple interaction objects located in the interaction area and the virtual object, the target object is determined from the multiple interaction objects, and the interaction information of the target interaction object is provided; the target interaction object can be determined based on the current orientation of the virtual object, which is more in line with the player's game intuition and expectations, and at the same time, the player can save the operation of selecting the target interaction object, reduce screen coverage, and improve the convenience and game experience of the game.
[0084] Next, we will combine Figure 4-Figure 7 The interactive control method in this exemplary embodiment is further described.
[0085] The game interface is obtained by executing the software application on the processor of the terminal device and rendering it on the screen of the terminal device. The game content displayed on the game interface includes at least one controllable virtual object. Specifically, the player can download the game software and install it on the terminal device, and play the game by operating the virtual object on the terminal device.
[0086] The game interface may refer to the user interface of the game software, including game design elements such as buttons, animations, text, sounds, windows, etc. in the game screen that directly or indirectly contact the game user. The game interface may occupy all or part of the screen space, and this application does not limit this.
[0087] The game scene refers to the environment, buildings, machinery, props, etc. in the game.
[0088] Virtual objects refer to objects that are movable in the game scene and are controlled by players, namely player characters.
[0089] In step 101, the orientation of the virtual object in the game scene is obtained.
[0090] Generally, the game is installed on the terminal in the form of software and connected to the backend server through the network. Players can operate online or locally without connecting to the network.
[0091] The player starts the game software on the terminal device and starts the game. The player can control the movement of the virtual object in the game through the terminal device. The virtual object can be a moving person or animal, etc.
[0092] The terminal device can obtain the facing direction of the virtual object in real time or at a fixed time as the orientation of the virtual object in the ranger scene.
[0093] In step 102, the interaction area of the virtual object is divided into a plurality of sub-interaction areas according to the orientation, wherein the plurality of sub-interaction areas have corresponding area priorities.
[0094] The interactive area may refer to a range in which a virtual object is allowed to interact with other interactive objects in a game scene. Generally, the interactive area may be an area with the virtual object as the center, a preset length as the radius, and a second line corresponding to the direction of the virtual object as the axis of symmetry. Specifically, the interactive area may be a sector or a circle. The specific shape of the interactive area may be related to the game configuration or the attributes of the virtual object.
[0095] During the game, there can be multiple interactive objects in the interactive area, and at the same time, the virtual object is generally only allowed to interact with one of the interactive objects. When the player selects the interactive object to interact with the virtual object, the selection tendency will be different depending on the specific location of the interactive object. Therefore, the interactive area can be divided into multiple sub-interactive areas, and corresponding area priorities can be set for the multiple sub-interactive areas.
[0096] In an optional embodiment of the present application, the process of dividing the interaction area of the virtual object into a plurality of sub-interaction areas according to the orientation may include:
[0097] The part of the interaction area within the presentation field of view is divided into a plurality of first sub-interaction areas according to a preset angle division rule, taking the first position of the virtual object as the origin and the second connecting line corresponding to the orientation as a reference;
[0098] A portion of the interaction area outside the presentation field of view is determined as a second sub-interaction area; and an area priority of the second sub-interaction area is lower than an area priority of the first sub-interaction area.
[0099] Generally, the presentation field of view is the field of view presented in real time on the terminal screen. The content displayed by the presentation field of view includes the game scene content, virtual objects and interactive objects presented on the terminal device screen, that is, the game content captured by the virtual camera.
[0100] For example, in a first-person perspective game, a virtual camera can be set on the head of a virtual object. The position of the virtual camera moves with the movement of the virtual object, and the direction of the virtual camera rotates with the rotation of the virtual object. The game scene content rendered on the screen is equivalent to the scene content captured by the virtual camera, that is, the game scene content displayed on the screen is displayed from the first-person perspective of the virtual object.
[0101] In a third-person perspective game, the virtual camera can be set above and behind the virtual object. By setting a mapping relationship between the vector distance of the virtual joystick control and the rotation angle of the virtual camera, the rotation of the virtual camera can be controlled. The game scene content rendered on the screen is equivalent to the scene content captured by the virtual camera. Alternatively, the virtual camera is set above the head of the virtual object, and the game scene in a certain area around the virtual object is captured at a fixed angle in a bird's-eye view.
[0102] It is understandable that part of the interactive area corresponding to the virtual object may not be in the presentation field of view. Generally, the player has the lowest tendency to select the interactive object in the interactive area outside the presentation field of view of the game interface. Therefore, according to the presentation field of view, the part of the interactive area outside the presentation field of view can be determined as the second sub-interaction area, and the area priority of the second sub-interaction area can be set to be the lowest.
[0103] For the part of the interaction area within the presentation field of view, the interaction area within the presentation field of view can be further divided into multiple first sub-interaction areas according to preset angle division rules, taking the first position of the virtual object as the origin and the corresponding second connecting line as a reference.
[0104] It should be noted that the preset angle division rule is related to the maximum angle of the interaction area. It can be understood that the preset angle division rules corresponding to interaction areas with different maximum angles may be different. Among them, the maximum angle of the interaction area is equal to half of the central angle of the interaction area.
[0105] Generally, the larger the central angle of the interactive area, the larger the scope of the interactive area, the more interactive objects there are, and the more difficult it is for the player to select the target interactive object to interact with the virtual object. In view of this, the first position of the virtual object can be used as the origin, and the second line corresponding to the direction can be used as a reference to determine the maximum angle of the interactive area; then the corresponding preset angle division rule is determined based on the maximum angle. The area priority of multiple first sub-interaction areas is related to the minimum angle between them and the second line. It can be understood that the smaller the minimum angle between the first sub-interaction area and the second line, the higher the corresponding area priority.
[0106] Optionally, when the maximum angle of the interactive area (expressed by θ) is within 90 degrees, the interactive area is on the same side as the direction of the virtual object. Generally, players are more sensitive to areas within a certain range of angles with the current direction than other areas, that is, players are more inclined to control virtual objects and interact with interactive objects in areas within a certain range of angles with the current direction. Among them, the angle with the current direction can refer to the angle formed by the line connecting any position in the interactive area and the virtual object and the current direction. Therefore, in this embodiment, the corresponding preset angle division rule can be to divide the interactive area into two first sub-interactive areas with a first preset angle as the boundary. The first preset angle can be set by the player. When the player does not set it, the system default value can be selected, and the system default value can be θ / 2.
[0107] For example, Figure 4As shown, the maximum angle of the interaction area is 90 degrees, and all are within the presentation field of view. The first preset angle can be 45 degrees, resulting in a first sub-interaction area 201 with an angle range of [0°, 45°] and a first sub-interaction area 202 with an angle range of (45°, 90°]. Since the minimum angle between the first sub-interaction area 201 and the second line is 0 degrees, which is less than the minimum angle of 45 degrees between the first sub-interaction area 202 and the second line, the area priority of the first sub-interaction area 201 is higher than the area priority of the first sub-interaction area 202.
[0108] For example, Figure 5 As shown, the maximum angle of the interaction area is 90 degrees, there is a second sub-interaction area 304 outside the field of view, the first preset angle can be 45 degrees, and the first sub-interaction area 301 with an angle range of [0°, 45°] and the first sub-interaction area 302 with an angle range of (45°, 90°] are obtained. Since the area priority of the second sub-interaction area 304 is the lowest, and the minimum angle between the first sub-interaction area 301 and the second line is 0 degrees, which is less than the minimum angle of 45 degrees between the first sub-interaction area 302 and the second line, therefore, the area priority of the first sub-interaction area 301 is higher than the area priority of the first sub-interaction area 302, and the area priority of the first sub-interaction area 302 is higher than the area priority of the second sub-interaction area 304.
[0109] Optionally, when the maximum angle of the interaction area (expressed by θ) is greater than 90 degrees, the interaction area includes a portion on the same side as the virtual object and a portion on the opposite side, wherein the portion on the opposite side may be located on the back side of the virtual object. Generally, the player's sensitivity to the area on the back side of the virtual object is lower than the area on the current side of the virtual object, that is, the player is more inclined to control the virtual object to interact with the interactive object in the area on the same side. Therefore, in this embodiment, the corresponding preset angle division rule may be to divide the interaction area into three first sub-interaction areas with the first preset angle and the second preset angle as the boundary. The first preset angle and the second preset angle can both be set by the player. When the player does not set them, the system default value can be selected. The system default value of the first preset angle may be 45 degrees, and the system default value of the second preset angle may be 90 degrees.
[0110] For example, Figure 6As shown, the maximum angle of the interaction area is 180 degrees, and all are within the presentation field of view. The first preset angle can be 45 degrees, and the second preset angle can be 90 degrees, resulting in a first sub-interaction area 401 with an angle range of [0°, 45°], a first sub-interaction area 402 with an angle range of (45°, 90°], and a first sub-interaction area 403 with an angle range of (90°, 180°]. Since the minimum angle between the first sub-interaction area 401 and the second line is 0 degree, the minimum angle between the first sub-interaction area 402 and the second line is 45 degrees, and the minimum angle between the first sub-interaction area 403 and the second line is 90 degrees, the area priority of the first sub-interaction area 401 is higher than the area priority of the first sub-interaction area 402, and the area priority of the first sub-interaction area 402 is higher than the area priority of the first sub-interaction area 403.
[0111] For example, Figure 7 As shown, the maximum angle of the interaction area is 180 degrees, there is a second sub-interaction area 504 outside the visual field, the first preset angle may be 45 degrees, and the second preset angle may be 90 degrees, so that the first sub-interaction area 501 with an angle range of [0°, 45°], the first sub-interaction area 502 with an angle range of (45°, 90°], and the first sub-interaction area 503 with an angle range of (90°, 180°] are obtained. Since the second sub-interaction area 504 has the lowest area priority, and the minimum angle between the first sub-interaction area 501 and the second line is 0 degrees, the minimum angle between the first sub-interaction area 502 and the second line is 45 degrees, and the minimum angle between the first sub-interaction area 503 and the second line is 90 degrees, therefore, the area priority of the first sub-interaction area 501 is higher than the area priority of the first sub-interaction area 502, the area priority of the first sub-interaction area 502 is higher than the area priority of the first sub-interaction area 503, and the area priority of the first sub-interaction area 503 is higher than the area priority of the second sub-interaction area 504.
[0112] In step 103, a target interactive object is determined from the multiple interactive objects according to the area priority of the sub-interaction area and the positional relationship between the multiple interactive objects located in the interaction area and the virtual object.
[0113] Generally, there may be multiple interactive objects in the interactive area, which may refer to objects with interactive properties in the game scene, such as objects controlled by other players, objects controlled by automatic control algorithms or artificial intelligence programs on the client or server. At the same time, a virtual object is generally only allowed to interact with one of the interactive objects.
[0114] In an optional embodiment of the present application, the process of determining the target interactive object from multiple interactive objects may include:
[0115] Acquire a candidate sub-interaction area corresponding to the interaction object in the interaction area;
[0116] Determine the candidate sub-interaction region with the highest regional priority as the target sub-interaction region;
[0117] If the target sub-interaction area includes a plurality of candidate interaction objects, determining the interaction distance and / or interaction angle between the candidate interaction object and the virtual object according to the positional relationship between the candidate interaction object and the virtual object;
[0118] According to the interaction distance and / or the interaction angle, a target interaction object is determined from the plurality of candidate interaction objects.
[0119] In this embodiment, the candidate sub-interaction areas corresponding to each interaction object are first determined; when there are multiple candidate sub-interaction areas, the candidate sub-interaction areas are sorted according to their area priorities, and the candidate sub-interaction area with the highest area priority is determined as the target sub-interaction area; then, based on the positional relationship between each candidate interaction object and the virtual object in the target sub-interaction area, the interaction distance and / or interaction angle between each candidate interaction object and the virtual object is determined; finally, the target interaction object is determined based on the interaction distance and / or interaction angle between each candidate interaction object and the virtual object.
[0120] For example, Figure 4 As shown, there are interactive objects A, B and C in the interactive area, wherein interactive objects A and B are in sub-interaction area 201, and interactive object C is in sub-interaction area 202. Therefore, the candidate sub-interaction areas include sub-interaction area 201 and sub-interaction area 202, wherein sub-interaction area 201 has the highest area priority. Therefore, sub-interaction area 201 is determined as the target sub-interaction area, and then from the interactive objects A and B in the target sub-interaction area 201, according to the interaction distance and / or interaction angle between interactive object A and virtual object O, and according to the interaction distance and / or interaction angle between interactive object B and virtual object O, the target interactive object is determined from the candidate interactive objects A and the candidate interactive objects B.
[0121] For example, Figure 5 As shown, there are interactive objects C and D in the interactive area, wherein interactive object C is in sub-interaction area 304, and interactive object D is in sub-interaction area 302. Therefore, the candidate sub-interaction areas include sub-interaction area 304 and sub-interaction area 302, wherein sub-interaction area 302 has the highest area priority. Therefore, sub-interaction area 302 is determined as the target sub-interaction area. Since there is only one candidate interactive object D in the target sub-interaction area 302, candidate interactive object D is determined as the target interactive object.
[0122] For example, Figure 6 As shown, there are interactive objects C, D, E and F in the interactive area, wherein interactive objects C and D are in sub-interaction area 402, and interactive objects E and F are in sub-interaction area 403. Therefore, the candidate sub-interaction area includes sub-interaction area 402 and sub-interaction area 403, wherein sub-interaction area 402 has the highest area priority, and therefore, sub-interaction area 402 is determined as the target sub-interaction area. Then, from the interactive objects C and D in the target sub-interaction area 402, according to the interaction distance and / or interaction angle between the interactive object C and the virtual object O, and according to the interaction distance and / or interaction angle between the interactive object D and the virtual object O, the target interactive object is determined from the candidate interactive objects C and the candidate interactive objects D.
[0123] For example, Figure 7 As shown, there are interactive objects C and D in the interactive area, wherein interactive object C is in sub-interaction area 504, and interactive object D is in sub-interaction area 502. Therefore, the candidate sub-interaction areas include sub-interaction area 504 and sub-interaction area 502, wherein sub-interaction area 502 has the highest area priority. Therefore, sub-interaction area 502 is determined as the target sub-interaction area. Since there is only one candidate interactive object D in the target sub-interaction area 502, candidate interactive object D is determined as the target interactive object.
[0124] In another optional embodiment of the present application, the process of determining the target interaction object from multiple interactions and objects may include:
[0125] In descending order of priority of the regions, determining in turn whether there is an interactive object in the corresponding sub-interaction region;
[0126] Determine the sub-interaction area where the interaction object is first determined to exist as the target sub-interaction area;
[0127] If the target sub-interaction area includes a plurality of candidate interaction objects, determining an interaction distance and / or an interaction angle between the candidate interaction object and the virtual object according to a positional relationship between the candidate interaction object and the virtual object;
[0128] According to the interaction distance and / or the interaction angle, a target interaction object is determined from the plurality of candidate interaction objects.
[0129] In this embodiment, multiple sub-interaction areas are first sorted from high to low according to the area priority, starting from the sub-interaction area with the highest area priority, to determine whether there is an interaction object. If so, the sub-interaction area is determined as the target sub-interaction area; if not, it is determined whether there is an interaction object in the sub-interaction area with the next area priority. In this way, the sub-interaction area in which the interaction object is first determined to exist is determined as the target sub-interaction area, and then the interaction distance and / or interaction angle between each candidate interaction object and the virtual object is determined according to the positional relationship between each candidate interaction object in the target sub-interaction area and the virtual object. Finally, the target interaction object is determined according to the interaction distance and / or interaction angle between each candidate interaction object and the virtual object.
[0130] It should be noted that, in the process of determining the target sub-interaction area in this embodiment, when a sub-interaction area with an interactive object is determined for the first time, the determination of the sub-interaction area with the next area priority may be stopped.
[0131] For example, Figure 4 As shown, the interaction area is divided into sub-interaction area 201 and sub-interaction area 202, wherein sub-interaction area 201 has the highest area priority. Therefore, it is judged whether there is an interaction object starting from sub-interaction area 201. Since there are interaction object A and interaction object B in sub-interaction area 201, sub-interaction area 201 is determined as the target sub-interaction area; since there are two interaction objects in the target sub-interaction area 201, the target interaction object is determined from candidate interaction object A and candidate interaction object B according to the interaction distance and / or interaction angle between interaction object A and virtual object O, and according to the interaction distance and / or interaction angle between interaction object B and virtual object O.
[0132] For example, Figure 5 As shown, the interaction area is divided into sub-interaction area 301, sub-interaction area 302, and sub-interaction area 304, among which sub-interaction area 301 has the highest area priority. Therefore, it is judged whether there is an interaction object starting from sub-interaction area 301. Since there is no interaction object in sub-interaction area 301, it is judged whether there is an interaction object in sub-interaction area 302 with the next area priority. Since there is an interaction object D in sub-interaction area 302, sub-interaction area 302 is determined as the target sub-interaction area. Since there is only one interaction object D in the target sub-interaction object 302, interaction object D is determined as the target interaction object.
[0133] For example, Figure 6As shown, the interaction area is divided into sub-interaction area 401, sub-interaction area 402, and sub-interaction area 403, among which sub-interaction area 401 has the highest area priority. Therefore, it is judged whether there is an interaction object starting from sub-interaction area 401. Since there is no interaction object in sub-interaction area 401, it is judged whether there is an interaction object in sub-interaction area 402 with the next area priority. Since there are interaction objects C and D in sub-interaction area 402, sub-interaction area 402 is determined as the target sub-interaction area; since there are two interaction objects in the target sub-interaction area 402, the target interaction object is determined from candidate interaction objects C and candidate interaction objects D according to the interaction distance and / or interaction angle between interaction object C and virtual object O, and according to the interaction distance and / or interaction angle between interaction object D and virtual object O.
[0134] For example, Figure 7 As shown, the interaction area is divided into sub-interaction area 501, sub-interaction area 502, sub-interaction area 503 and sub-interaction area 504, among which sub-interaction area 501 has the highest area priority. Therefore, it is judged whether there is an interaction object starting from sub-interaction area 501. Since there is no interaction object in sub-interaction area 501, it is judged whether there is an interaction object in sub-interaction area 502 with the next area priority. Since there is an interaction object D in sub-interaction area 502, sub-interaction area 502 is determined as the target sub-interaction area; since there is only one interaction object D in the target sub-interaction objects 302, interaction object D is determined as the target interaction object.
[0135] Furthermore, the process of determining the interaction distance and / or interaction angle between the candidate interaction object and the virtual object according to the positional relationship between the candidate interaction object and the virtual object may include:
[0136] Determining the interaction distance according to a first position of the virtual object and a second position of the candidate interaction object;
[0137] The interaction angle is determined according to a first connecting line formed by a first position of the virtual object and a second position of the candidate interaction object, and a second connecting line corresponding to the orientation.
[0138] In this embodiment, the first position of the virtual object and the second position of each candidate interactive object can be determined first, and the interaction distance between each candidate interactive object and the virtual object can be considered as the length of the first line formed by the second position and the first position of the candidate interactive object. The interaction angle between each candidate interactive object and the virtual object can be considered as the angle formed by the first line of the candidate interactive object and the second line corresponding to the direction of the virtual object.
[0139] Further, in an optional embodiment, the process of determining the target interaction object from the plurality of candidate interaction objects according to the interaction distance and / or the interaction angle may include:
[0140] Determining the candidate interaction object with the shortest interaction distance as a quasi-interaction object;
[0141] If there are multiple quasi-interactive objects, the quasi-interactive object with the smallest interaction angle is determined as the target interactive object.
[0142] In this embodiment, based on the interaction distances between each candidate interaction object and the virtual object, a candidate interaction object with the shortest interaction distance is determined from multiple candidate interaction objects as a quasi-interaction object. When there is only one quasi-interaction object, the quasi-interaction object can be directly determined as the target interaction object.
[0143] When there are multiple quasi-interactive objects, the quasi-interactive object with the smallest interaction angle is determined as the target interaction object from among the multiple quasi-interactive objects according to the interaction angles between each quasi-interactive object and the virtual object.
[0144] Continue with Figure 4 For example, the interaction distance between candidate interaction object A and virtual object O is AO, and the interaction distance between candidate interaction object B and virtual object O is BO. Since the interaction distance AO is equal to the interaction distance BO, that is, the candidate interaction objects with the shortest interaction distance include interaction object A and interaction object B, candidate interaction object A and interaction object B are both determined as quasi-interaction objects. Since the interaction angle BOO' corresponding to quasi-interaction object B is smaller than the interaction angle AOO' corresponding to quasi-interaction object A, quasi-interaction object B is determined as the target interaction object.
[0145] Continue with Figure 6 For example, the interaction distance between the candidate interaction object C and the virtual object O is CO, and the interaction distance between the candidate interaction object D and the virtual object O is DO. Since the interaction distance CO is less than the interaction distance DO, the candidate interaction object C is determined to be a quasi-interaction object. In this example, there is only one quasi-interaction object, so the quasi-interaction object C is the target interaction object.
[0146] In an optional embodiment, the process of determining the target interaction object from the plurality of candidate interaction objects according to the interaction distance and / or the interaction angle may include:
[0147] Determine the candidate interaction object with the smallest interaction angle as a quasi-interaction object;
[0148] If there are multiple quasi-interactive objects, the quasi-interactive object with the shortest interaction distance is determined as the target interactive object.
[0149] In this embodiment, based on the interaction angles between each candidate interaction object and the virtual object, the candidate interaction object with the smallest interaction angle is determined from multiple candidate interaction objects as the quasi-interaction object. When there is only one quasi-interaction object, the quasi-interaction object can be directly determined as the target interaction object.
[0150] When there are multiple quasi-interactive objects, the quasi-interactive object with the shortest interaction distance is determined as the target interaction object from among the multiple quasi-interactive objects according to the interaction distances between each quasi-interactive object and the virtual object.
[0151] Continue with Figure 4 For example, the interaction angle between the candidate interaction object A and the virtual object O is AOO', and the interaction angle between the candidate interaction object B and the virtual object O is BOO'. Since the interaction angle BOO' is smaller than the interaction angle AOO', the candidate interaction object B is determined to be a quasi-interaction object. In this example, there is only one quasi-interaction object, so the quasi-interaction object B is the target interaction object.
[0152] Continue with Figure 6 For example, the interaction angle between the candidate interactive object C and the virtual object D is COO', and the interaction angle between the candidate interactive object D and the virtual object O is DOO'. Since the interaction angle COO' is equal to the interaction angle DOO', the candidate interactive object C and the candidate interactive object D are both determined as quasi-interactive objects. Since the interaction distance CO corresponding to the quasi-interactive object C is less than the interaction distance DO corresponding to the quasi-interactive object D, the quasi-interactive object C is determined as the target interactive object.
[0153] It should be noted that when there is still more than one target interaction object determined by the above two embodiments, one target interaction object can be further selected randomly as the final target interaction object based on the attributes of each target interaction object, or the final target interaction object can be determined according to the right / left priority rule, or a selection box can be displayed so that the player can determine the final target interaction object through a selection operation.
[0154] In step 104, interaction information of the target interaction object is provided.
[0155] The interaction between the player and the target interactive object is manifested in the game interface providing interactive information.
[0156] In this embodiment, the interaction information can be provided directly on the game interface after the target interaction object is determined. For example, when the target interaction object is a monster, the virtual object can directly "fight" the monster, and the interaction information can be expressed as a battle picture between the virtual object and the target interaction object. For another example, when the target interaction object is a prop, the virtual object can directly obtain the prop, and the interaction information can be expressed as a picture of the prop moving from its original position to the prop bag corresponding to the virtual object or to the body of the virtual object.
[0157] Optionally, the providing the interaction information of the target interaction object may further include:
[0158] Provide interactive controls for target interactive objects;
[0159] A trigger operation for the interactive control is received, and interaction information of the target interactive object is provided.
[0160] In this embodiment, after the target interactive object is determined, interactive controls for the target interactive object can be provided. For example, when the target interactive object is a monster, interactive controls containing "battle" information can be displayed on the game interface; for another example, when the target interactive object is a prop, interactive controls containing "get props" can be displayed on the game interface.
[0161] When the player touches the interactive control, the interactive information of the target interactive object can be provided. For example, when the player clicks the interactive control of the "battle" information, the battle scene between the virtual object and the target interactive object can be provided. For another example, when the player clicks the interactive control of "get props", the scene of the props moving from the original position to the prop bag corresponding to the virtual object or the body of the virtual object can be provided.
[0162] In this embodiment, when the player gives up the virtual object interacting with the target interactive object, the interactive control displayed on the game interface may not be triggered, and the virtual object may be controlled not to interact with the target interactive object.
[0163] In an embodiment of the present application, the interaction area is divided into multiple sub-interaction areas in combination with the orientation of the virtual object controlled by the player, and the area priorities of the multiple sub-interaction areas are determined by weighing the angle with the orientation of the virtual object and the presentation field of view. Then, based on the area priorities of the sub-interaction areas and the positional relationship between the multiple interaction objects located in the interaction area and the virtual object, the target object is determined from the multiple interaction objects, and interaction information of the target interaction object is provided; so that the determination of the target interaction object is more in line with the player's game intuition and expectations, and at the same time, the player can save the operation of selecting the target interaction object, reduce screen coverage, and improve the convenience and game experience of the game.
[0164] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
[0165] Reference Figure 8 , shows a structural block diagram of an interactive control device embodiment of the present application, the device can be a game background server or a terminal device installed with a game, which is not limited here. By executing a software application on a processor of a terminal device, a graphical user interface can be rendered on the screen of the terminal device, which includes a game interface, and the game interface at least partially displays a game scene, and the game scene includes a controllable virtual object.
[0166] The device of the embodiment of the present application may include the following modules:
[0167] The orientation acquisition module 601 is used to acquire the orientation of the virtual object in the game scene;
[0168] An area division module 602, configured to divide the interaction area of the virtual object into a plurality of sub-interaction areas according to the orientation, wherein the plurality of sub-interaction areas have corresponding area priorities;
[0169] A target determination module 603, configured to determine a target interactive object from the multiple interactive objects according to the area priority of the sub-interaction area and the positional relationship between the virtual object and the multiple interactive objects located in the interaction area;
[0170] The interaction control module 604 is used to provide interaction information of the target interaction object.
[0171] Optionally, the target determination module 603 includes:
[0172] A candidate sub-interaction area acquisition module, used to acquire candidate sub-interaction areas corresponding to interactive objects in the interaction area;
[0173] A first target determination module, configured to determine a candidate sub-interaction area with the highest area priority as a target sub-interaction area;
[0174] an interaction information determination module, configured to determine an interaction distance and / or an interaction angle between the candidate interaction object and the virtual object according to a positional relationship between the candidate interaction object and the virtual object if the target sub-interaction area contains a plurality of candidate interaction objects;
[0175] A target interaction object determination module is used to determine a target interaction object from a plurality of candidate interaction objects according to the interaction distance and / or the interaction angle.
[0176] Optionally, the target determination module 603 includes:
[0177] A first judgment module is used to judge whether there is an interactive object in the corresponding sub-interaction area in descending order of the area priority;
[0178] A second target determination module, configured to determine the sub-interaction area where the interaction object is first determined to exist as a target sub-interaction area;
[0179] an interaction information determination module, configured to determine an interaction distance and / or an interaction angle between the candidate interaction object and the virtual object according to a positional relationship between the candidate interaction object and the virtual object if the target sub-interaction area contains a plurality of candidate interaction objects;
[0180] A target interaction object determination module is used to determine a target interaction object from a plurality of candidate interaction objects according to the interaction distance and / or the interaction angle.
[0181] Optionally, the interaction information determining module includes:
[0182] An interaction distance determination module, configured to determine the interaction distance according to a first position of the virtual object and a second position of the candidate interaction object;
[0183] The interaction angle determination module is used to determine the interaction angle according to a first line formed by the first position of the virtual object and the second position of the candidate interaction object, and a second line corresponding to the orientation.
[0184] Optionally, the target interaction object determination module includes:
[0185] A quasi-interactive object determination module, configured to determine the candidate interactive object with the shortest interactive distance as a quasi-interactive object;
[0186] The third determination module is used to determine the quasi-interaction object with the smallest interaction angle as the target interaction object if there are multiple quasi-interaction objects.
[0187] Optionally, the area division module 602 includes:
[0188] A first division module, configured to divide the portion of the interaction area within the presentation field of view into a plurality of first sub-interaction areas according to a preset angle division rule, taking the first position of the virtual object as an origin and taking the second connecting line corresponding to the orientation as a reference;
[0189] The second division module is used to determine the part of the interaction area outside the presentation field of view as a second sub-interaction area; the area priority of the second sub-interaction area is lower than the area priority of the first sub-interaction area.
[0190] Optionally, the first division module further includes:
[0191] a fourth determining module, configured to determine a maximum angle of the interaction area by taking the first position of the virtual object as an origin and taking the second connecting line corresponding to the orientation as a reference;
[0192] The fifth determination module is used to determine the corresponding preset angle division rule according to the maximum angle.
[0193] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0194] An embodiment of the present application also discloses an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the interactive control method as described above when executed by the processor.
[0195] The embodiment of the present application further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the interactive control method described above are implemented.
[0196] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0197] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0198] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, 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 terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0199] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0200] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0201] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0202] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0203] The above is a detailed introduction to an interactive control method, an interactive control device, an electronic device and a storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method of interactive control, characterized in that: The method comprises: Obtaining the orientation of the virtual object in the game scene; wherein the orientation is the direction in which the virtual object is facing; Dividing the interaction area of the virtual object into a plurality of sub-interaction areas according to the orientation, wherein the plurality of sub-interaction areas have corresponding area priorities; Determining a target interactive object from the multiple interactive objects according to the area priority of the sub-interaction area and the positional relationship between the multiple interactive objects located in the interaction area and the virtual object; Providing interaction information of the target interaction object; Wherein, providing the interaction information of the target interaction object includes: Providing an interactive control for the target interactive object; receiving a trigger operation for the interactive control and providing interactive information of the target interactive object; The step of determining a target interactive object from the multiple interactive objects based on the area priority of the sub-interaction area and the positional relationship between the multiple interactive objects located in the interaction area and the virtual object includes: Acquire a candidate sub-interaction area corresponding to the interaction object in the interaction area; Determine the candidate sub-interaction region with the highest regional priority as the target sub-interaction region; If the target sub-interaction area includes a plurality of candidate interaction objects, determining an interaction distance and / or an interaction angle between the candidate interaction object and the virtual object according to a positional relationship between the candidate interaction object and the virtual object; According to the interaction distance and / or the interaction angle, a target interaction object is determined from the plurality of candidate interaction objects.
2. The method according to claim 1, characterized in that The step of determining a target interactive object from the multiple interactive objects based on the area priority of the sub-interaction area and the positional relationship between the multiple interactive objects located in the interaction area and the virtual object comprises: In descending order of priority of the regions, determining in turn whether there is an interactive object in the corresponding sub-interaction region; Determine the sub-interaction area where the interaction object is first determined to exist as the target sub-interaction area; If the target sub-interaction area includes a plurality of candidate interaction objects, determining an interaction distance and / or an interaction angle between the candidate interaction object and the virtual object according to a positional relationship between the candidate interaction object and the virtual object; According to the interaction distance and / or the interaction angle, a target interaction object is determined from the plurality of candidate interaction objects.
3. The method according to claim 1 or 2, characterized in that: The step of determining the interaction distance and / or interaction angle between the candidate interaction object and the virtual object according to the positional relationship between the candidate interaction object and the virtual object comprises: Determining the interaction distance according to a first position of the virtual object and a second position of the candidate interaction object; The interaction angle is determined according to a first connecting line formed by a first position of the virtual object and a second position of the candidate interaction object, and a second connecting line corresponding to the orientation.
4. The method according to claim 3, characterized in that The step of determining a target interaction object from a plurality of candidate interaction objects according to the interaction distance and / or the interaction angle comprises: Determining the candidate interaction object with the shortest interaction distance as a quasi-interaction object; If there are multiple quasi-interactive objects, the quasi-interactive object with the smallest interaction angle is determined as the target interactive object.
5. The method according to claim 1, characterized in that The step of dividing the interaction area of the virtual object into a plurality of sub-interaction areas according to the orientation includes: The part of the interaction area within the presentation field of view is divided into a plurality of first sub-interaction areas according to a preset angle division rule, taking the first position of the virtual object as the origin and the second connecting line corresponding to the orientation as a reference; A portion of the interaction area outside the presentation field of view is determined as a second sub-interaction area; and an area priority of the second sub-interaction area is lower than an area priority of the first sub-interaction area.
6. The method according to claim 5, characterized in that The step of dividing the part of the interaction area within the presentation field of view into a plurality of first sub-interaction areas according to a preset angle division rule, taking the first position of the virtual object as the origin and the second connecting line corresponding to the orientation as a reference, further includes: Taking the first position of the virtual object as the origin and taking the second connecting line corresponding to the orientation as a reference, determining the maximum angle of the interaction area; A corresponding preset angle division rule is determined according to the maximum angle.
7. An interactive control device, characterized in that: The device comprises: A direction acquisition module, used to acquire the direction of the virtual object in the game scene; wherein the direction is the facing direction of the virtual object; an area division module, configured to divide the interaction area of the virtual object into a plurality of sub-interaction areas according to the orientation, wherein the plurality of sub-interaction areas have corresponding area priorities; a target determination module, configured to determine a target interaction object from among the plurality of interaction objects according to the area priority of the sub-interaction area and the positional relationship between the plurality of interaction objects located in the interaction area and the virtual object; An interaction control module, used for providing interaction information of the target interaction object; Wherein, providing the interaction information of the target interaction object includes: Providing an interactive control for the target interactive object; receiving a trigger operation for the interactive control and providing interactive information of the target interactive object; Wherein, the target determination module includes: A candidate sub-interaction area acquisition module, used to acquire candidate sub-interaction areas corresponding to interactive objects in the interaction area; A first target determination module, configured to determine a candidate sub-interaction area with the highest area priority as a target sub-interaction area; an interaction information determination module, configured to determine an interaction distance and / or an interaction angle between the candidate interaction object and the virtual object according to a positional relationship between the candidate interaction object and the virtual object if the target sub-interaction area contains a plurality of candidate interaction objects; A target interaction object determination module is used to determine a target interaction object from a plurality of candidate interaction objects according to the interaction distance and / or the interaction angle.
8. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the interactive control method according to any one of claims 1 to 6 when executed by the processor.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the interactive control method according to any one of claims 1 to 6 are implemented.
