Interaction method and device in virtual scene, electronic equipment, computer readable storage medium and computer program product
By setting multiple interactive areas for the first virtual object in a virtual scene and using the perspective of the second virtual object to select and trigger interactive commands, the problem of cumbersome interaction methods in existing technologies is solved, and efficient interaction and resource utilization are improved.
Patent Information
- Application Number
- CN202610106359.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-26
- Publication Date
- 2026-03-13
Smart Images

Figure CN121648565A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technology, and in particular to an interaction method, device, electronic device, computer-readable storage medium, and computer program product in a virtual scene. Background Technology
[0002] During the game, users controlling different virtual objects can communicate via voice and text. For example, if the first user controlling a virtual object wants the virtual object controlled by the second user to crouch, they can edit the corresponding text and send it. After seeing the text, the second user can control the virtual object to crouch. It can be seen that the interaction process in the relevant technology is cumbersome and the interaction efficiency is low. Summary of the Invention
[0003] This application provides an interaction method, device, electronic device, computer-readable storage medium, and computer program product in a virtual scene, which can enrich the interaction methods between different virtual objects, improve the efficiency of human-computer interaction, enrich the displayed content, and improve the resource utilization of electronic devices.
[0004] The technical solution of this application embodiment is implemented as follows: This application provides an interaction method in a virtual scene, the method comprising: Display a first virtual object in a virtual scene. The first virtual object includes multiple interactive areas, and different interactive areas are associated with different interactive commands. When the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, the first interactive area is controlled to be selected. When the first interactive area is selected, in response to a trigger operation on the first interactive area, a first interactive instruction associated with the first interactive area is triggered, so that the first virtual object executes the response operation corresponding to the first interactive instruction.
[0005] This application provides an interactive device in a virtual scene, the device comprising: The display module is used to display a first virtual object in a virtual scene. The first virtual object includes multiple interactive areas, and different interactive areas are associated with different interactive commands. The control module is used to control the first interactive area to be selected when the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object; The response module is configured to, when the first interactive area is selected, respond to a trigger operation on the first interactive area and trigger a first interactive instruction associated with the first interactive area, so that the first virtual object executes the response operation corresponding to the first interactive instruction.
[0006] In the above scheme, the control module is further configured to display a crosshair in the virtual scene before the first interactive area is selected, the crosshair being used to indicate the viewpoint of the second virtual object; when the crosshair is in the first interactive area of the first virtual object, it is determined that the viewpoint of the second virtual object is pointing to the first interactive area.
[0007] In the above scheme, the control module is further configured to display an interaction identifier in each interaction area of the first virtual object when the crosshair is in the display area of the first virtual object; wherein the interaction identifier is used to provide a prompt, and the marked interaction area is associated with a corresponding interaction command.
[0008] In the above scheme, the control module is further configured to, when it detects that the view of the second virtual object is pointing to the first interactive area of the first virtual object, cancel the display of the interactive identifier corresponding to the first interactive area, and display the first interactive area using a target display style; wherein, the target display style is used to indicate that the first interactive area is in a selected state; The control module is also used to maintain the display of the corresponding interaction identifier for the interaction areas other than the first interaction area in the plurality of interaction areas.
[0009] In the above scheme, the control module is also used to control the first interactive area to be selected when it is detected that the view of the second virtual object is pointing to the first interactive area of the first virtual object and the distance between the first virtual object and the second virtual object is less than the first distance threshold.
[0010] In the above scheme, the control module is further configured to display a first prompt message for the first interaction area when it detects that the view of the second virtual object is pointing to the first interaction area of the first virtual object; wherein, the first prompt message is used to prompt at least one of the following: the method of triggering the first interaction area, the response operation corresponding to the first interaction command, and the interaction action performed by the second virtual object on the first virtual object.
[0011] In the above scheme, the response module is further configured to, if the first interactive area corresponds to a limb part of the first virtual object, in response to a triggering operation on the first interactive area, trigger a first interactive instruction for controlling the first virtual object to perform a corresponding response operation based on the limb part; or, If the first interactive area corresponds to the target virtual item carried by the first virtual object, in response to the triggering operation for the first interactive area, a first interactive instruction is triggered to control the first virtual object to perform a corresponding response operation for the target virtual item.
[0012] In the above scheme, the first virtual object and the second virtual object belong to the same group; the response module is further configured to respond to the trigger operation of the first interaction area when the first interaction area is selected, if the current interaction mode is the first interaction mode, send the first interaction instruction associated with the first interaction area to the electronic device corresponding to the first virtual object; if the current interaction mode is the second interaction mode, send the first interaction instruction associated with the first interaction area to the electronic device corresponding to each virtual object in the group.
[0013] In the above scheme, the response module is also used to respond to the trigger operation for the first interaction area. If the distance between the first virtual object and the second virtual object is less than the second distance threshold, the process of the second virtual object performing an interaction action for the first interaction area is displayed.
[0014] In the above scheme, the response module is further configured to perform at least one of the following when the second interaction instruction associated with the second interaction area of the second virtual object is triggered: displaying a second prompt message in the virtual scene, the second prompt message being used to prompt the second virtual object to perform the response operation corresponding to the second interaction instruction; and outputting the voice corresponding to the second prompt message.
[0015] In the above scheme, the second prompt information includes an action identifier and a display effect; the response module is further configured to display an action identifier corresponding to the target action in the virtual scene when the response operation corresponding to the second interaction instruction includes controlling the second virtual object to perform a target action; the action identifier is used to prompt the second virtual object to perform the target action; and to display the display effect corresponding to the target action, wherein different actions correspond to different display effects.
[0016] In the above scheme, the second interaction instruction is triggered based on the perspective of the third virtual object. The response module is also used to display at least one of the following in the associated area of the second prompt information: the object identifier of the third virtual object, the direction identifier corresponding to the third virtual object, and the attribute value of the third virtual object; wherein, the direction identifier is used to represent the direction of the third virtual object relative to the second virtual object in the virtual scene.
[0017] In the above scheme, the response module is further configured to, after displaying the second prompt information in the virtual scene, respond to the trigger operation for the second prompt information and control the second virtual object to execute the response operation corresponding to the second interaction instruction; when the response operation corresponding to the second interaction instruction is completed, display the process of the second virtual object executing a feedback action; wherein, the feedback action is used to indicate that the second virtual object has completed executing the response operation corresponding to the second interaction instruction.
[0018] In the above scheme, the multiple interactive areas correspond to at least two different priorities. The response module is also used to respond to a trigger operation on the first interactive area, trigger a first interactive instruction associated with the first interactive area, and control the priority of the first interactive instruction to correspond to the priority of the first interactive area; wherein, the priority of the first interactive instruction is associated with the execution duration of the response operation, and different priorities are associated with different execution durations.
[0019] In the above scheme, the response module is further configured to, when it is detected that the view of the second virtual object is pointing to the first interactive area of the first virtual object, if the first interactive instruction associated with the first interactive area is used to move the first virtual object in the virtual scene, then display at least one location candidate in the display area of the first interactive area; wherein, the location candidate is associated with a movement position, and the at least one location candidate includes a target location candidate; The response module is further configured to, when the first interactive area is selected, respond to a triggering operation on the target location candidate displayed in the first interactive area, trigger a first interactive instruction associated with the first interactive area, so that the first virtual object performs a response operation to move to the movement position associated with the target location candidate.
[0020] In the above scheme, the display module is further configured to respond to a trigger operation on the first interactive area, trigger a first interactive instruction associated with the first interactive area, and then display a message display area in the virtual scene; in the message display area, a target message corresponding to the first interactive instruction is displayed; wherein, the content of the target message includes: the second virtual object instructs the first virtual object to perform a response operation corresponding to the first interactive instruction.
[0021] In the above scheme, the response module is further configured to, when detecting that the viewpoint of the second virtual object is pointing to the first interactive area of the first virtual object, control the first interactive area to be in a selected state, and then, when the first virtual object moves in the virtual scene, if the duration of the first interactive area being in a selected state does not reach a first duration, then adjust the viewpoint of the second virtual object synchronously according to the movement trajectory of the first virtual object; if the duration of the first interactive area being in a selected state reaches the first duration, then cancel the control of the first interactive area to be in a selected state and cancel the synchronous adjustment of the viewpoint of the second virtual object.
[0022] In the above scheme, the response module is further configured to respond to a trigger operation on the first interactive area, and after triggering the first interactive instruction associated with the first interactive area, display a cancellation control in the associated area of the first interactive area; if the first virtual object does not execute the response operation corresponding to the first interactive instruction within a second time period, the first interactive instruction is cancelled in response to the trigger operation on the cancellation control; within the second time period, when the first virtual object executes the response operation corresponding to the first interactive instruction, the cancellation control is cancelled.
[0023] In the above scheme, the response module is further configured to display a small map in the virtual scene and display the object identifier of the first virtual object in the small map; in response to a trigger operation for the first interaction area, display a status identifier in the display area of the object identifier of the first virtual object; wherein the status identifier is used to indicate the execution status of the response operation of the first virtual object in response to the first interaction instruction.
[0024] In the above scheme, the display module is also used to, within a third time period, when the third interaction instructions associated with the multiple third interaction areas of the second virtual object are triggered respectively, if the interaction instructions associated with the multiple third interaction areas have different priorities, then different display styles are adopted in the virtual scene to display the third prompt information corresponding to the third interaction instructions under different priorities; The third prompt information is used to prompt the second virtual object to perform the response operation corresponding to the third interaction instruction.
[0025] In the above scheme, the response module is further configured to respond to a trigger operation on the first interactive area, and after triggering the first interactive instruction associated with the first interactive area, if the first virtual object does not execute the response operation corresponding to the first interactive instruction within a fourth time period, and the first virtual object is not within the field of view of the second virtual object, display a reminder control; and in response to a trigger operation on the reminder control, send reminder information to the electronic device corresponding to the first virtual object; wherein, the reminder information is used to remind the first virtual object to execute the response operation corresponding to the first interactive instruction.
[0026] This application provides an electronic device, the electronic device comprising: Memory is used to store executable instructions or computer programs. The processor, when executing computer-executable instructions or computer programs stored in the memory, implements the interaction method in the virtual scene provided in the embodiments of this application.
[0027] This application provides a computer-readable storage medium storing a computer program or computer-executable instructions for implementing the interaction method in the virtual scene provided in this application when executed by a processor.
[0028] This application provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, they implement the interaction method in the virtual scene provided in this application.
[0029] The embodiments of this application have the following beneficial effects: In the virtual scene interaction method provided in this application embodiment, a first virtual object can be displayed in the virtual scene. The first virtual object includes multiple interaction areas, and different interaction areas are associated with different interaction commands. When the view of the second virtual object is detected to be pointing to the first interaction area of the first virtual object, the first interaction area is controlled to be in a selected state. When the first interaction area is in a selected state, in response to the triggering operation for the first interaction area, the first interaction command associated with the first interaction area is triggered, so that the first virtual object executes the response operation corresponding to the first interaction command.
[0030] The interaction method in the virtual scene provided by the embodiments of this application allows for multiple interaction areas for a first virtual object. Different interaction areas are associated with different interaction commands, enabling different interaction commands to be triggered for different interaction areas of a single first virtual object. Consequently, the first virtual object can execute the response operation corresponding to the interaction command, enriching the interaction methods between different virtual objects. Furthermore, by controlling the perspective of the second virtual object, the first interaction area can be quickly selected. Combined with the trigger operation for the first interaction area, the first interaction command can be quickly triggered, improving the efficiency of human-computer interaction, enriching the displayed content, and increasing the resource utilization of electronic devices. Attached Figure Description
[0031] Figure 1 This is a schematic diagram of the structure of the interactive system in the virtual scene provided in the embodiments of this application; Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application; Figure 3 This is a flowchart illustrating the interaction method in a virtual scene provided in the embodiments of this application. Figure 1 ; Figure 4 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 1 ; Figure 5 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2 ; Figure 6 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 3 ; Figure 7 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 4 ; Figure 8 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 5 ; Figure 9 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 6 ; Figure 10 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 7 ; Figure 11 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 8 ; Figure 12 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 9 ; Figure 13 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 ; Figure 14This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 one; Figure 15 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 two; Figure 16 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 three; Figure 17 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 Four; Figure 18 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 five; Figure 19 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 six; Figure 20 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 seven; Figure 21 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 eight; Figure 22 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 Nine; Figure 23 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2 ten; Figure 24 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2 eleven; Figure 25 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2 twelve; Figure 26 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2 Thirteen; Figure 27 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2 fourteen; Figure 28 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2 fifteen; Figure 29 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2 sixteen; Figure 30 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2 Seventeen; Figure 31 This is a flowchart illustrating the interaction method in a virtual scene provided in the embodiments of this application. Figure 2 . Detailed Implementation
[0032] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0033] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0034] In the following description, the terms "first, second, third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0035] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0036] Unless otherwise defined, all technical and scientific terms used in the embodiments of this application have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the embodiments of this application is for the purpose of describing the embodiments of this application only and is not intended to limit this application.
[0037] In the implementation of this application, the collection and processing of relevant data should strictly comply with the requirements of relevant laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.
[0038] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.
[0039] 1) Responding to: used to indicate the conditions or states on which the operation is performed depends. When the conditions or states on which it depends are met, one or more operations can be performed in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations are performed.
[0040] 2) Human-computer interaction interface, which is an interface used to provide human-computer interaction functions / display virtual scenes, and can of course be any interface involved in the embodiments of this application. For example, graphical user interface (GUI) display, such as augmented reality (AR) interface, virtual reality (VR) interface, voice user interface (VUI), interactive projection interface (using projection technology to display information on a plane), eye-tracking interface (an interface controlled by detecting the user's gaze), holographic interface (a three-dimensional hologram formed by projecting images through holographic projection technology, which can be seen without wearing special glasses), multimodal interface (an interactive interface that combines multiple interaction methods, such as tactile, visual, and auditory interaction), brain-computer interface (BMI), etc.
[0041] 3) A virtual scene is a virtual scene displayed (or provided) by an application when it runs on a terminal. This virtual scene can be a simulation of the real world, a semi-simulated / semi-fictional virtual environment, or a purely fictional virtual environment. A virtual scene can be any of the following: two-dimensional, 2.5-dimensional, or three-dimensional.
[0042] For example, a virtual scene can include the sky, land, and ocean. The land can include environmental elements such as deserts and cities. Users (i.e., players) can control virtual objects to perform activities within this virtual scene. These activities include, but are not limited to, adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up items, shooting, attacking, and throwing at least one of these. The virtual scene can be displayed from a first-person perspective (e.g., the user plays as a virtual object in the game from their own perspective); it can also be displayed from a third-person perspective (e.g., the user chases after a virtual object in the game); or it can be displayed from a bird's-eye view. These perspectives can be switched arbitrarily.
[0043] 4) Virtual objects: These are interactive images of people and objects within a virtual scene, or movable objects within the virtual scene. These movable objects can be virtual characters, virtual animals, cartoon characters, etc., such as people, animals, plants, oil drums, walls, and stones displayed in the virtual scene. A virtual object can be a virtual avatar representing the user within the virtual scene. A virtual scene can include multiple virtual objects, each with its own shape and volume, occupying a portion of the space within the virtual scene.
[0044] For example, the virtual object can be a player character controlled through client-side operations, artificial intelligence (AI) trained and set up for virtual scene battles, or a non-player character (NPC) set up for interaction in the virtual scene. The number of virtual objects participating in the interaction in the virtual scene can be pre-set or dynamically determined based on the number of clients joining the interaction.
[0045] 5) Client, also known as user terminal, refers to the program that provides local services to users in contrast to the server. Except for some applications that can only run locally, it is generally installed on ordinary client machines and needs to work in conjunction with the server. That is, there needs to be a corresponding server and service program on the network to provide the corresponding services. Thus, a specific communication connection needs to be established between the client and the server to ensure the normal operation of the application, such as a game client.
[0046] The applicant discovered the following technical problems in the relevant technology: Technical Issue 1: In related technologies, interactive commands can be triggered via a virtual wheel. However, displaying a virtual wheel reduces the cleanliness of the display interface. Furthermore, the method of triggering interactive commands via a virtual wheel is relatively cumbersome, involving the process of displaying the virtual wheel, selecting commands, triggering commands, and canceling the display of the virtual wheel, which reduces the efficiency of triggering interactive commands.
[0047] This application provides an interaction method, an interaction device, an electronic device, a computer-readable storage medium, and a computer program product in a virtual scene, which can enrich the interaction methods between different virtual objects, improve the efficiency of human-computer interaction, enrich the displayed content, and improve the resource utilization of electronic devices.
[0048] See Figure 1 , Figure 1 This is a schematic diagram of the structure of the interactive system in the virtual scene provided in the embodiments of this application. Figure 1The interactive system 100 in the virtual scene shown is designed to support interactive applications in a virtual scene. Terminals (terminals 400-1 and 400-2 are shown as examples) are connected to server 200 through network 300. Network 300 can be a wide area network or a local area network, or a combination of both.
[0049] Terminal 400-1 is the terminal used by user 1, who can control the first virtual object. Terminal 400-2 is the terminal used by user 2, who can control the second virtual object. The following example is based on terminal 400-2. For terminal 400-1, please refer to the description for terminal 400-2 and make equivalent substitutions for the corresponding content. It will not be repeated here.
[0050] For terminal 400-2, a first virtual object can be displayed in a virtual scene. The first virtual object includes multiple interactive areas, and different interactive areas are associated with different interactive commands. When the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, the first interactive area is controlled to be selected. When the first interactive area is selected, in response to the trigger operation for the first interactive area, the first interactive command associated with the first interactive area is triggered, so that the first virtual object executes the response operation corresponding to the first interactive command.
[0051] In some embodiments, the content displayed on the display interface of terminal 400-2 can be pre-stored by terminal 400-2, or it can be sent to terminal 400-2 by server 200. This is reasonable. After triggering the first interaction instruction associated with the first interaction area, terminal 400-2 can send the first interaction instruction to server 200, and then server 200 can send the first interaction instruction to terminal 400-1. User 1 can control the first virtual object to execute the response operation corresponding to the first interaction instruction.
[0052] In the virtual scene interaction method provided in this application embodiment, a first virtual object can be displayed in the virtual scene. The first virtual object includes multiple interaction areas, and different interaction areas are associated with different interaction commands. When the view of the second virtual object is detected to be pointing to the first interaction area of the first virtual object, the first interaction area is controlled to be in a selected state. When the first interaction area is in a selected state, in response to the triggering operation for the first interaction area, the first interaction command associated with the first interaction area is triggered, so that the first virtual object executes the response operation corresponding to the first interaction command.
[0053] The interaction method in the virtual scene provided by the embodiments of this application allows for multiple interaction areas for a first virtual object. Different interaction areas are associated with different interaction commands, enabling different interaction commands to be triggered for different interaction areas of a single first virtual object. Consequently, the first virtual object can execute the response operation corresponding to the interaction command, enriching the interaction methods between different virtual objects. Furthermore, by controlling the perspective of the second virtual object, the first interaction area can be quickly selected. Combined with the trigger operation for the first interaction area, the first interaction command can be quickly triggered, improving the efficiency of human-computer interaction, enriching the displayed content, and increasing the resource utilization of electronic devices.
[0054] The following describes an electronic device that performs the interaction method in a virtual scene provided in the embodiments of this application. The electronic device that implements the interaction method in a virtual scene provided in the embodiments of this application can be a terminal, a server, or a combination of both. Therefore, the executing entity of each step will not be described again below. In some embodiments, the terminal can be implemented as a laptop computer, tablet computer, desktop computer, set-top box, smartphone, smart speaker, smartwatch, smart TV, vehicle terminal, and other types of terminals.
[0055] In some embodiments, the server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal and server can be connected directly or indirectly via wired or wireless communication, which is not limited in this embodiment.
[0056] See Figure 2 , Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Figure 2 The illustrated electronic device includes at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. The various components of the electronic device are coupled together via a bus system 440. It is understood that the bus system 440 is used to implement communication between these components. In addition to a data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in… Figure 2 The general labeled all buses as Bus System 440.
[0057] Processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0058] User interface 430 includes one or more output devices 431 that enable the presentation of media content, including one or more speakers and / or one or more visual displays. User interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0059] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state storage, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices physically located away from the processor 410.
[0060] The memory 450 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 450 described in this application embodiment is intended to include any suitable type of memory.
[0061] In some embodiments, memory 450 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.
[0062] Operating system 451 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks; The network communication module 452 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including: Bluetooth, WiFi, and Universal Serial Bus (USB), etc. Presentation module 453 is configured to enable the presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 431 associated with user interface 430 (e.g., a display screen, a speaker, etc.). The input processing module 454 is used to detect and translate one or more user inputs or interactions from one or more input devices 432.
[0063] In some embodiments, the interactive device in the virtual scene provided in this application can be implemented in software. Figure 2 An interactive device 455 for a virtual scene stored in memory 450 is shown. This device can be software in the form of programs and plugins, and includes the following software modules: a display module 4551, a control module 4552, and a response module 4553. These modules are logically connected and can therefore be arbitrarily combined or further separated according to the functions they implement. The functions of each module will be described below.
[0064] In some embodiments, the terminal or server can implement the interaction method in the virtual scene provided in this application embodiment by running various computer-executable instructions or computer programs. For example, computer-executable instructions can be microprogram-level commands, machine instructions, or software instructions. Computer programs can be native programs or software modules in an operating system; they can be native applications (APPs), i.e., programs that need to be installed in the operating system to run, such as game applications; or they can be applets that can be embedded in any APP, i.e., programs that only need to be downloaded to a browser environment to run. In summary, the aforementioned computer-executable instructions can be any form of instruction, and the aforementioned computer programs can be any form of application, module, or plugin.
[0065] The interaction method in a virtual scene provided in the embodiments of this application will be described below. As mentioned above, the electronic device implementing the interaction method in the virtual scene of the embodiments of this application can be a terminal, a server, or a combination of both. See also Figure 3 , Figure 3 This is a flowchart illustrating the interaction method in a virtual scene provided in the embodiments of this application. Figure 1 The following is combined with Figure 3 The steps shown are illustrated using an electronic device as a terminal to illustrate the interaction method in a virtual scene provided in this application embodiment.
[0066] In step 101, a first virtual object is displayed in the virtual scene. The first virtual object includes multiple interactive areas, and different interactive areas are associated with different interactive instructions.
[0067] In practical applications, the terminal is equipped with a game application, which can be any of the following: open-world game, multiplayer online role-playing game, first-person shooter game, third-person shooter game, multiplayer online tactical competitive game, virtual reality application, 3D map program, or multiplayer shooting survival game.
[0068] In some embodiments, in response to a triggering operation for a game application, a game display interface of the game application may be displayed, in which a virtual scene may be displayed. In some embodiments, in response to a triggering operation for a game application, a start control may be displayed in the game display interface, and in response to a triggering operation for the start control, a virtual scene may be displayed.
[0069] Among them, the triggering operation refers to the behavior of the user to trigger a certain function or event by interacting with the display interface of the terminal. The triggering operation can include one or more of the following: single click operation, double click operation, long press operation, drag operation, swipe operation, hover operation, shortcut key, voice control, and gesture operation. The triggering operations provided in the embodiments of this application can be referred to the above description, and will not be repeated hereafter.
[0070] In some embodiments, when the game is played from a third-person perspective, a first virtual object and a second virtual object can be displayed in the virtual scene. The second virtual object is the virtual object controlled by the user controlling the current electronic device. When the game is played from a first-person perspective, the first virtual object can be displayed in the virtual scene. See also... Figure 4 , Figure 4 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 1 The first virtual object 401 can be displayed in the virtual scene.
[0071] The following describes the interaction commands, which can include one or more of the following: movement commands, warning commands, item commands, and communication commands. Movement commands can be used to instruct movement in one or more of the following ways: forward, retreat, move to a third location, or move according to a specified movement method. The third location can be a pre-set location, the location of a virtual item, a location selected by a second virtual object, or a location obtained by analyzing the virtual object's position within the virtual scene using an AI object. Movement methods can include one or more of the following: crawling, lowering the volume of movement, and jumping.
[0072] The warning interaction command can be used to indicate attention to one or more of the following: attack, defense, and rescue. The fourth position can be the location of the sixth virtual object, which belongs to a different group from the first and second virtual objects. The fourth position can also be a location located in a different direction from the first virtual object, or it can be the location of a virtual prop.
[0073] The item interaction command can be used to indicate the need for virtual items, or to share one or more virtual items with the first virtual object. The communication interaction command can be used to reply to the first virtual object, or to synchronize the status of the second virtual object with the first virtual object. This is just an illustration; the specific settings can be customized according to actual usage requirements.
[0074] For example, movement interaction commands could be "Come here," "Retreat quickly," "Get in the vehicle," "Crawl forward," etc. Warning interaction commands could be "Watch out for left / right sides," "Suppressive fire," "Fire cover," "Help me," etc. Item interaction commands could be "I need medicine," "I have supplies here," etc. Communication interaction commands could be "Wait a moment," "Repairing vehicle," etc.
[0075] See also Figure 3 In step 102, when the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, the first interactive area is controlled to be selected.
[0076] In some embodiments, step 102 can be implemented in the following way: during the game, the user can adjust the perspective of the second virtual object according to actual usage needs. The perspective of the second virtual object can be the direction of the head or eyes of the second virtual object. The perspective of the second virtual object can also refer to the field of view parameters representing the second virtual object in the virtual scene (the virtual scene can be two-dimensional or three-dimensional). The field of view parameters can include position and orientation.
[0077] In some embodiments, in response to a movement operation on a virtual scene, the displayed virtual scene can be updated, which is equivalent to changing the perspective of the second virtual object. In response to a movement operation on a second virtual object, the displayed virtual scene is updated according to the movement trajectory of the second virtual object, which is equivalent to changing the perspective of the second virtual object. The movement operation can be triggered by one or more of the following: finger touch on the screen, mouse, virtual joystick, movement control, motion control, and head-mounted display device, which can be specifically set according to actual usage requirements.
[0078] The perspective of the second virtual object can correspond to that of a virtual camera. Triggered from the position of the second virtual object in the virtual scene, a virtual ray is emitted into the virtual scene (which may or may not be displayed in the virtual scene). When the virtual ray is detected to interact with the first interaction area of the first virtual object, it can be determined that the perspective of the second virtual object is pointing to the first interaction area of the first virtual object.
[0079] When the viewpoint of the second virtual object is detected to be pointing towards the first interactive area of the first virtual object, the first interactive area is selected. See also Figure 5 , Figure 5 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2 When the viewpoint of the second virtual object is detected to be pointing towards the first interactive area 501 of the first virtual object, the first interactive area 501 is controlled to be selected. Figure 5 The first interactive area 501 is selected by bolding its boundary.
[0080] In related technologies, the viewpoint (i.e., the direction of the line of sight) of the second virtual object is usually invisible, making it difficult for users to accurately determine whether the current viewpoint is accurately pointing to the first interaction area. This leads to technical problems such as misoperation or low interaction efficiency due to repeated viewpoint adjustments. To solve these problems, a crosshair can be displayed in the virtual scene. See also Figure 6 , Figure 6 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 3 A crosshair 601 can be displayed in the virtual scene, where the crosshair is used to indicate the viewpoint of the second virtual object.
[0081] In some embodiments, in response to a movement operation on the crosshair, the crosshair can be controlled to move within the virtual scene, thereby changing the position the crosshair is aiming at. In some embodiments, the crosshair can be moved, or it can be fixed at a preset position on the display interface. This changes the position the crosshair is aiming at by altering the displayed virtual scene or the position of the first virtual object within the virtual scene. When the crosshair is within the first interactive area of the first virtual object, that is, when the crosshair is aiming at the first interactive area of the first virtual object, it can be determined that the viewpoint of the second virtual object is pointing towards the first interactive area.
[0082] In some embodiments, the crosshair, acting as a visual anchor point, can float above the virtual scene and its relative position on the display interface remains unchanged regardless of the movement of the camera within the virtual scene (typically fixed at the screen center). The electronic device monitors the virtual camera parameters (including position coordinates and rotation quaternions) corresponding to the second virtual object in real time. Based on the virtual camera position and the screen center coordinates, the electronic device constructs a detection ray in the virtual scene. Collision detection is performed between the detection ray and any position displayed in the virtual scene. When the detection ray intersects with the bounding box of the first interactive area bound to the first virtual object model, the electronic device generates a determination signal to confirm that the viewpoint of the second virtual object is currently pointing towards the first interactive area.
[0083] The interaction method in the virtual scene provided by the embodiments of this application provides users with a clear and intuitive visual feedback focus by displaying a crosshair in the virtual scene and using it as a judgment basis. It concretizes the abstract perspective into a crosshair on the screen, enabling users to perform precise aiming operations using the crosshair when facing a complex first virtual object (such as a character model containing multiple closely adjacent interactive areas). This significantly improves the accuracy of interactive positioning, reduces false triggers caused by line-of-sight deviations, and also reduces the cognitive load and operational difficulty for users.
[0084] In some embodiments, a crosshair (e.g., a dot) of a first display style is displayed in the virtual scene. In response to an adjustment command for the view of the second virtual object, the view of the second virtual object is adjusted in real time. When the crosshair is detected to be in the first interaction area of the first virtual object, it can be determined that the view of the second virtual object is pointing to the first interaction area of the first virtual object.
[0085] The detection that the crosshair is in the first interactive area of the first virtual object means that the overlapping area between the graphic element corresponding to the crosshair and the first interactive area is greater than the overlapping area threshold. It can also mean that the target point in the crosshair is located in the first interactive area. The specific settings can be set according to actual usage requirements, and no specific limitation is made here.
[0086] After determining that the viewpoint of the second virtual object is pointing to the first interactive area of the first virtual object, the interactive command associated with the first interactive area can be determined. After determining the interactive command associated with the first interactive area, the display style of the crosshair can be switched from the first display style to the second display style, and the second display style is associated with the interactive command associated with the first interactive area.
[0087] The first and second display styles differ, specifically in one or more ways, such as different graphics, colors, or the inclusion of a border for the crosshair. For example, the interaction command associated with the first interactive area, used to indicate a handshake with the first virtual object, can switch the crosshair from a dot (first display style) to a palm (second display style). Through the visual changes in the crosshair display style, not only can the selection be confirmed, but the interaction command to be triggered after selection can also be intuitively predicted, further enhancing the certainty and smoothness of the interaction.
[0088] In related technologies, when faced with a first virtual object with multiple interactive areas, the inability to intuitively perceive these areas leads users to blindly move their viewpoints to conduct exploratory searches, resulting in low interaction efficiency and operational confusion.
[0089] In some embodiments, when the overlapping area between the graphic element corresponding to the crosshair and the display area of the first virtual object is greater than the overlapping area threshold, or when the target point in the crosshair is located in the display area of the first virtual object, it can be determined that the crosshair is in the display area of the first virtual object. When the crosshair is in the display area of the first virtual object, an interaction identifier is displayed in each interaction area of the first virtual object, wherein the interaction identifier is used for prompting, and the marked interaction area is associated with a corresponding interaction instruction.
[0090] See Figure 7 , Figure 7 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 4 When the crosshair (in) Figure 7 When an interactive identifier (not shown) is in the display area of the first virtual object 701, an interactive identifier is displayed in each interactive area of the first virtual object 701. The interactive identifier may include interactive identifier 702, interactive identifier 703, interactive identifier 704 and interactive identifier 705.
[0091] See Figure 8 , Figure 8 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 5 ,exist Figure 8 In the diagram, interaction identifier 702 corresponds to the collarbone 801 of the first virtual object 701, interaction identifier 703 corresponds to the shoulder 802 of the first virtual object 701, interaction identifier 705 corresponds to the waist 803 of the first virtual object 701, and interaction identifier 704 corresponds to the knee 804 of the first virtual object 701.
[0092] The electronic device acquires the virtual ray corresponding to the crosshair in the virtual scene in real time and determines whether the virtual ray collides with the overall bounding box (display area) of the first virtual object. If a collision occurs, the electronic device traverses and queries the predefined list of child nodes in the data structure of the first virtual object. The list of child nodes contains the position coordinates and interaction identifiers of all interactive areas. Based on the acquired position coordinates, the electronic device renders the corresponding interaction identifier to the interactive area.
[0093] In some embodiments, different interactive areas correspond to different interactive instructions. Different interactive identifiers can be set for each interactive area. These interactive identifiers can be one or more of text, images, and videos. (See [link to relevant documentation]). Figure 9 , Figure 9 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 6 When the crosshair is in the display area of the first virtual object, an interaction identifier is displayed in each interaction area of the first virtual object. The interaction identifier may include interaction identifier 901 and interaction identifier 902.
[0094] The interaction method in the virtual scene provided by the embodiments of this application can quickly identify all interactive areas on the first virtual object through interactive identifiers. This not only shortens the user's cognitive path, but also significantly improves the efficiency of locating interactive areas on complex virtual object models through visual guidance, avoids ineffective blind operations, enriches the displayed content, and improves the resource utilization of electronic devices.
[0095] In some embodiments, without displaying a crosshair, if a first virtual object appears in the field of view of the second virtual object and the first point of the field of view of the second virtual object is located in the display area of the first virtual object, an interaction icon can be displayed in each interaction area of the first virtual object. The first point of the field of view of the second virtual object can be any point that belongs to the field of view of the second virtual object, or it can be the point of the virtual ray corresponding to the view of the second virtual object. The specific settings can be made according to actual usage requirements, and no specific limitation is made here.
[0096] In some embodiments, when the crosshair is in the display area of the first virtual object but has not yet pointed to any specific interactive area, the interactive identifiers corresponding to all interactive areas can be displayed in a semi-transparent state. In response to the movement area of the crosshair, the electronic device can calculate the distance between the crosshair and the center of the first interactive area in real time as the crosshair moves toward the first interactive area.
[0097] As the distance decreases, the interactive markers in the first interactive area gradually become opaque and enlarged. Simultaneously, the transparency of interactive markers in areas beyond a third distance threshold is further increased or decreased. When the crosshair is within the display area of the first virtual object, the interactive markers in the first interactive area are highlighted and selected. This method guides the user's gaze smoothly from overall browsing to local focus, further enhancing the sense of control and clarity during the selection process.
[0098] In related technologies, if the interaction icon of the first interaction area is continuously displayed when the first interaction area is selected, it will obstruct the user's visual observation of the first interaction area and cause visual interference. At the same time, if there is no clear distinction between the selected states, it is difficult for the user to confirm which specific interaction area the current gaze is focused on from multiple interaction areas, resulting in unclear interaction feedback and reduced operation accuracy.
[0099] In some embodiments, when the viewpoint of the second virtual object is detected to be pointing towards the first interactive area of the first virtual object, the interactive identifier corresponding to the first interactive area is de-displayed, and the first interactive area is displayed using a target display style. The target display style indicates that the first interactive area is selected. This target display style can be either highlighting the first interactive area or displaying a selection identifier for the first interactive area; the specific style can be set according to actual usage requirements and is not specifically limited here. For example, the target display style could be: highlighting the boundary of the first interactive area.
[0100] In some embodiments, when the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, a floating layer carrying the first interactive area can be created, and a display style (i.e., target display style) different from other interactive areas can be added to the floating layer of the first interactive area. The floating layer is controlled to be displayed on the layer corresponding to the virtual scene, thereby realizing the display of the first interactive area using the target display style.
[0101] In some embodiments, the electronic device sets the element attribute of the interaction identifier associated with the first interaction area to hidden or invisible, thereby canceling the display of the interaction identifier corresponding to the first interaction area. Furthermore, the electronic device can modify the display parameters of the overlay corresponding to the first interaction area and apply preset shader effects to present the target display style.
[0102] In some embodiments, for interactive areas other than the first interactive area among multiple interactive areas, the corresponding interactive identifier is kept displayed. See [link to relevant documentation]. Figure 10 , Figure 10 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 7An interaction identifier is displayed in each interactive area of the first virtual object. The interaction identifier may include interaction identifier 1001, interaction identifier 1002, interaction identifier 1003 and interaction identifier 1004.
[0103] When the viewpoint of the second virtual object is detected to be pointing towards the first interactive area of the first virtual object, the interaction identifier corresponding to the first interactive area is canceled (i.e., interaction identifier 1004 is canceled), and the first interactive area is displayed using the target display style. Figure 10 In the middle, the target display style is to mark the first interactive area with a dotted-dash frame 1005, and to keep the interactive identifiers 1001, 1002 and 1003 displayed.
[0104] The interaction method in the virtual scene provided in this application embodiment achieves dynamic optimization of visual focus. By removing the interaction marker of the first interaction area, the obstruction of the first interaction area by the interaction marker is eliminated, allowing the user to clearly observe the first interaction area. Displaying the first interaction area using a target display style clearly identifies the currently selected interaction area. Simultaneously, retaining the interaction markers of other interaction areas maintains the user's overall awareness of the interactive functions, allowing the user to perceive other interactive possibilities around them while focusing on the current target. This improves the fluency of human-computer interaction and the efficiency of information transmission, enriches the displayed content, and enhances the resource utilization of electronic devices.
[0105] In some embodiments, when the distance between the second virtual object and the first virtual object is greater than or equal to a first distance threshold, even if the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, the first interactive area is not controlled to be in a selected state.
[0106] If the distance between the second virtual object and the first virtual object is greater than or equal to the first distance threshold, and the second virtual object carries the first virtual prop, the first virtual prop is used to reduce the field of view of the second virtual object and increase the display ratio of the field of view of the second virtual object. The first virtual object can be a telescope, an X-magnification lens installed on the second virtual prop, etc. The second virtual prop is used for the second virtual object to attack the sixth virtual object in the virtual scene, where X is a positive integer greater than 1.
[0107] In response to a use command for the first virtual prop, a magnified interface for the first virtual prop can be displayed. In the magnified interface, the content corresponding to the zoomed-out field of view of the second virtual object can be displayed. If the magnified interface detects that the view of the second virtual object is pointing to the first interactive area of the first virtual object, the first interactive area is controlled to be selected.
[0108] In some embodiments, when it is detected that the viewpoint of the second virtual object is pointing towards the first interactive area of the first virtual object, and the distance between the first virtual object and the second virtual object is less than a first distance threshold, the first interactive area is controlled to be selected. See also Figure 11 , Figure 11 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 8 In a first-person perspective, the second virtual object can be shown carrying a second virtual item 1101, which has a first virtual item 1102 installed on it.
[0109] against Figure 11 When the view of the second virtual object is detected to be pointing to the first interactive area 1103 of the first virtual object, and the distance between the first virtual object and the second virtual object is less than the first distance threshold, the first interactive area 1103 can be controlled to be selected without using the first virtual prop 1102.
[0110] See Figure 12 , Figure 12 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 9 In response to a use command for the first virtual prop 1201, a magnified interface 1202 for the first virtual prop 1201 can be displayed. In the magnified interface 1202, the content corresponding to the reduced field of view of the second virtual object can be displayed. If the magnified interface 1202 detects that the viewpoint of the second virtual object is pointing towards the first interactive area 1203 of the first virtual object (in... Figure 12 If the crosshair "X" is used to aim at the first interactive area 1203, then the first interactive area 1203 is selected.
[0111] In some embodiments, a ray detection algorithm can be used to determine whether the virtual ray corresponding to the viewpoint of the second virtual object intersects with the collision bounding box of the first interactive area. If they intersect, the second position of the second virtual object in the virtual scene and the first position of the first virtual object in the virtual scene can be read further. The distance between the first position and the second position can be calculated using the Euclidean distance formula. When the distance between the first virtual object and the second virtual object is less than the first distance threshold, the first interactive area is controlled to be in the selected state.
[0112] In some embodiments, for the zoomed-in interface, it can be determined whether the second point of the zoomed-in interface is located in the first interactive area. If yes, it is determined that the view of the second virtual object is detected pointing to the first interactive area of the first virtual object. If no, it is determined that the view of the second virtual object is not detected pointing to the first interactive area of the first virtual object. The second point of the zoomed-in interface can be any point, which can be set according to actual usage requirements. The zoomed-in interface can also display a crosshair. For details, please refer to the description of the crosshair. No specific limitation is made here.
[0113] The interaction method in the virtual scene provided by the embodiments of this application introduces a distance threshold as a necessary constraint for effective interaction, thereby achieving precise control of the interaction range. On the one hand, it can effectively avoid accidental selection and triggering caused by the perspective of the second virtual object sweeping over distant objects in complex virtual scenes, ensuring the accuracy of the operation. On the other hand, it can simulate the physical proximity of face-to-face communication between people in the real world, enhancing the realism and immersion of virtual scene interaction. Furthermore, it can enrich the displayed content and improve the resource utilization of electronic devices.
[0114] In some embodiments, when the view of the second virtual object is detected to be pointing to the first interactive area, but the distance between the first virtual object and the second virtual object is greater than or equal to the first distance threshold, a fourth prompt message can be displayed in the first interactive area. The fourth prompt message is used to indicate that the first interactive area cannot be selected because the distance is greater than or equal to the first distance threshold.
[0115] In some embodiments, when the viewpoint of the second virtual object is detected to be pointing towards the first interactive area, the distance between the first and second virtual objects can be displayed in real time. In response to the movement operation of the second virtual object in the virtual scene, the second virtual object can be controlled to move towards the first virtual object. As the distance decreases, the displayed distance is dynamically updated so that when the distance between the first and second virtual objects is less than a first distance threshold, the first interactive area is controlled to be in a selected state. Through real-time distance visual feedback, the user can clearly perceive the relationship between the current position and the effective interaction range, thereby adjusting the position more intuitively and quickly to achieve the interaction conditions.
[0116] In related technologies, the lack of intuitive operation guidance and expected feedback on interaction results makes it difficult for users to determine the correct triggering method (such as button or gesture) for a specific object and to predict the consequences of the interaction, resulting in technical problems such as operation trial errors, low interaction efficiency, and misunderstanding of human-computer interaction intentions.
[0117] To solve the above technical problems, when the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, a first prompt message for the first interactive area is displayed. The first prompt message is used to prompt at least one of the following: the method of triggering the first interactive area, the response operation corresponding to the first interactive command, and the interactive action performed by the second virtual object on the first virtual object.
[0118] See Figure 13 , Figure 13 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 When the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, the first prompt information 1301 for the first interactive area is displayed. The first prompt information 1301 may include "F", "pat waist" and "squat down and walk slowly".
[0119] Here, "F" refers to triggering the first interactive command associated with the first interactive area by pressing the F key on the keyboard. "Tap waist" refers to the interactive action performed by the second virtual object on the first virtual object, with the waist corresponding to the first interactive area associated with the first interactive command. "Crouch down and slow down" is the response operation corresponding to the first interactive command, where slow down means that the movement speed of the first virtual object is less than a speed threshold.
[0120] The method for triggering the first interactive area informs the user how to trigger the first interactive command associated with the first interactive area. The response operation corresponding to the first interactive command informs the user what kind of feedback the first virtual object will provide. The interaction action performed by the second virtual object on the first virtual object informs the user what action the second virtual object will perform on the first virtual object.
[0121] When the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, the electronic device obtains the unique identifier of the first interactive area. Based on the unique identifier, it determines the first prompt information corresponding to the unique identifier from the pre-set correspondence between candidate identifiers and candidate prompt information. After determining the first prompt information, the first prompt information can be rendered and displayed.
[0122] The interaction method in the virtual scene provided by the embodiments of this application can display a first prompt when the view of the second virtual object is detected to be pointing to the first interaction area of the first virtual object. The first prompt can clearly indicate at least one of the triggering method, response operation and interaction action, which effectively reduces the user's memory burden and trial and error cost. Especially in complex virtual scenes with multiple interaction possibilities, it ensures that the operation performed by the user is highly consistent with the expected intention, improves the accuracy and smoothness of the interaction, enriches the displayed content, and improves the resource utilization of electronic devices.
[0123] In some embodiments, the first prompt information may display multiple triggering methods for triggering the first interactive area. The interactive instructions corresponding to different triggering methods may be different. Specifically, they can be set according to actual usage requirements. For different triggering methods, one or more of the response operations corresponding to the first interactive instructions displayed and the interactive actions performed by the second virtual object on the first virtual object may be different.
[0124] For example, the first prompt message 1 may include "F", "pat on the waist once", and "squat down and walk slowly". The first prompt message 1 may also include "E", "pat on the waist twice", and "squat down and walk quickly", where "walk quickly" means the movement speed of the first virtual object is greater than or equal to a speed threshold. The first prompt message 1 may also include "A", "pat on the waist twice", and "squat down and hide". This is only an illustration; the specific settings can be configured according to actual usage requirements.
[0125] In some embodiments, when the viewpoint of the second virtual object is detected to be pointing towards the first interactive area of the first virtual object, if the distance between the first virtual object and the second virtual object is less than a first distance threshold, a first prompt message can be displayed; if the distance between the first virtual object and the second virtual object is less than the first distance threshold, a fifth prompt message can be displayed. The fifth prompt message is used to prompt the triggering method for automatically controlling the second virtual object to move towards the first virtual object. For example, the fifth prompt message can be "Press E to follow the first virtual object".
[0126] In some embodiments, when the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, if the distance between the first virtual object and the second virtual object is less than a first distance threshold, a first control for triggering a first interactive instruction associated with the first interactive area can be displayed. Then, when the first interactive area is selected, in response to the triggering operation on the first control, the first interactive instruction associated with the first interactive area is triggered.
[0127] See also Figure 3 In step 103, when the first interactive area is selected, in response to the triggering operation for the first interactive area, the first interactive instruction associated with the first interactive area is triggered so that the first virtual object executes the response operation corresponding to the first interactive instruction.
[0128] In some embodiments, Figure 3 Step 103 shown can be implemented in the following way: the first interactive area is in a selected state, and if the first interactive area corresponds to a limb part of the first virtual object (see the section on limb parts of the first virtual object), then... Figure 8 (Explanation), in response to a trigger operation targeting the first interactive area, a first interactive instruction is triggered to control the first virtual object to perform a response operation based on the limb part.
[0129] For example, the first virtual object's limb could be a leg. In response to a trigger operation on the first interactive area, a first interactive command is triggered to control the first virtual object to run based on its legs. Alternatively, if the first virtual object's limb is an arm, in response to a trigger operation on the first interactive area, a first interactive command is triggered to control the first virtual object to move based on its arm (equivalent to crawling). This is merely an illustration; the specific configuration can be tailored to actual usage requirements.
[0130] For example, the first virtual object's limb could be its back. In response to a trigger operation on the first interactive area, a first interactive command could be triggered to control the first virtual object to lie down based on its back. Alternatively, if the first virtual object's limb is its hand, in response to a trigger operation on the first interactive area, a first interactive command could be triggered to control the first virtual object to pick up a virtual item based on its hand. This is merely an illustration; the specific configuration can be tailored to actual usage requirements.
[0131] In some embodiments, the limb part has a pre-set interaction command, which can be referred to the foregoing description. In response to a trigger operation on the first interaction area, the pre-set first interaction command of the limb part corresponding to the first interaction area can be triggered. For example, for... Figure 8 The limb part is the clavicle 801. In response to the trigger operation on the clavicle 801, a first interactive command is triggered to control the first virtual object to execute forward movement. Forward movement means that the first virtual object moves towards the sixth virtual object.
[0132] The limb part can be the shoulder 802. In response to the trigger operation on the shoulder 802, a first interactive command is triggered to control the first virtual object to perform fire suppression. Fire suppression means that the first virtual object uses the second virtual prop to attack the sixth virtual object.
[0133] The limb part can be the waist 803. In response to a trigger operation on the waist 803, a first interactive command is triggered to control the first virtual object to perform a crouching concealment. Crouching concealment means that the first virtual object crouches down to avoid being detected by the sixth virtual object. The limb part can be the knee 804. In response to a trigger operation on the knee 804, a first interactive command is triggered to control the first virtual object to perform a retreat, which moves the first virtual object away from the direction of the sixth virtual object.
[0134] In some embodiments, if the first interaction area corresponds to a target virtual item carried by the first virtual object, in response to a triggering operation on the first interaction area, a first interaction instruction is triggered to control the first virtual object to perform a corresponding response operation on the target virtual item. For example, see Figure 14 , Figure 14This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 First, if the first interactive area corresponds to the backpack 1401 (i.e. the target virtual item) carried by the first virtual object, in response to the triggering operation for the first interactive area, a first interactive instruction is triggered to control the first virtual object to perform the corresponding response operation for the backpack 1401.
[0135] The target virtual props can be set according to actual usage needs. Target virtual props can include one or more of the following: virtual equipment for interacting with virtual objects, virtual clothing for changing the appearance of virtual objects, and virtual items for changing the attribute values of virtual objects. For example, virtual equipment can be a bow, arrow, or frying pan. Virtual clothing can be a virtual shirt, virtual pants, or virtual hat. Virtual items can be virtual drinks, virtual painkillers, or virtual bandages. No specific limitations are set here.
[0136] In some embodiments, in response to a trigger operation on the first interactive area, collision detection is performed based on the virtual ray corresponding to the perspective of the second virtual object to identify the limb part or virtual prop to which the collision point between the ray and the first virtual object belongs.
[0137] If the collision point belongs to a limb, the first interaction command corresponding to the limb is determined from the pre-set correspondence between candidate limbs and candidate interaction commands. If the collision point belongs to a virtual item, the first interaction command corresponding to the virtual item is determined from the pre-set correspondence between candidate virtual items and candidate interaction commands.
[0138] The interaction method in the virtual scene provided by the embodiments of this application can realize the triggering of the first interaction command by combining body parts or virtual props, which is equivalent to giving the user the right to choose the first interaction command to be triggered by the first virtual object. The user does not need to select the interaction command to be triggered through a complicated menu, which can simplify the human-computer interaction process, improve the efficiency of human-computer interaction, and adapt to virtual scenes to improve the resource utilization of electronic devices.
[0139] In related technologies, the fixed range of command transmission leads to low interaction efficiency and inflexible tactical command. To solve the above technical problems, in some embodiments, Figure 3 Step 103 shown can be implemented as follows: when the first interactive area is selected, in response to a trigger operation on the first interactive area, if the current interactive mode is the first interactive mode, a first interactive command associated with the first interactive area is sent to the electronic device corresponding to the first virtual object. The first interactive mode is the mode of sending interactive commands to the electronic device corresponding to a single virtual object.
[0140] In some embodiments, if the current interaction mode is the second interaction mode, then the first interaction instruction associated with the first interaction area is sent to the electronic device corresponding to each virtual object in the group. The second interaction mode is the mode of sending interaction instructions to the electronic device corresponding to each virtual object included in the group.
[0141] In some embodiments, if the current interaction mode is the third interaction mode, then the first interaction instruction associated with the first interaction area is sent to the electronic device corresponding to each virtual object included in the field of view of the second virtual object. Each virtual object included in the field of view of the second virtual object is the virtual object displayed in the virtual scene. The third interaction mode is the mode in which the electronic device corresponding to each virtual object included in the field of view of the second virtual object sends the interaction instruction.
[0142] In some embodiments, a mode switching control can be displayed in a virtual scene. In response to a trigger operation on the mode switching control, a switching sub-control corresponding to a first interaction mode, a switching sub-control corresponding to a second interaction mode, and a switching sub-control corresponding to a third interaction mode can be displayed, which is equivalent to displaying at least one switching sub-control. In response to a trigger operation on a target switching sub-control among the at least one switching sub-controls, the current interaction mode can be controlled to be the interaction mode corresponding to the target switching sub-control.
[0143] See Figure 15 , Figure 15 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 Second, a mode switching control 1501 can be displayed in the virtual scene. In response to a trigger operation on the mode switching control 1501, a switching sub-control 1502 corresponding to the first interaction mode, a switching sub-control 1503 corresponding to the second interaction mode, and a switching sub-control 1504 corresponding to the third interaction mode can be displayed.
[0144] In some embodiments, when the number of interaction modes is 2, a mode switching switch (i.e., a type of mode switching control) can be displayed in the virtual scene. For example, the mode switching switch can be a "single person (corresponding to the first interaction mode) / whole team (corresponding to the second interaction mode)" switch, which is used to set the current interaction mode.
[0145] When the interaction mode is set to "single person" (first interaction mode), and the first interaction area is selected, in response to the trigger operation on the first interaction area, a directional effect (such as a dotted line) that connects only to the first virtual object can be displayed to indicate that the instruction is only sent to the electronic device corresponding to the first virtual object, and thus the first interaction instruction associated with the first interaction area can be sent to the electronic device corresponding to the first virtual object.
[0146] When the interaction mode is set to "All Team" (second interaction mode), and the first interaction area is selected, in response to the trigger operation of the first interaction area, a diffused ripple effect can be displayed to indicate that the first interaction command is broadcast to each virtual object in the group. In this way, the first interaction command associated with the first interaction area can be sent to the electronic device corresponding to each virtual object in the group.
[0147] In some embodiments, in the first interaction mode, the electronic device can parse the unique identifier of the first virtual object to which the first interaction area belongs, retrieve the corresponding target network address (i.e., the electronic device address corresponding to the first virtual object) based on the unique identifier, and send the first interaction command based on the target network address.
[0148] In the second interaction mode, the electronic device obtains the group identifier of the group to which the second virtual object belongs, traverses the list of all members in the group corresponding to the group identifier, extracts the network addresses corresponding to all virtual objects in the group except the second virtual object (i.e., the electronic device addresses corresponding to each virtual object in the group), and sends the first interaction command to the network address of each virtual object.
[0149] In the third interaction mode, the electronic device obtains the identifier of each virtual object displayed in the virtual scene, determines the network address corresponding to the displayed virtual object (i.e., the electronic device address corresponding to each virtual object displayed in the virtual scene), and sends the first interaction command to the network address corresponding to the displayed virtual object.
[0150] For example, in a cooperative game, the first, second, fourth, and fifth virtual objects belong to a group. Scenario 1 (First Interaction Mode): The first virtual object notices that the second virtual object is too far ahead and needs to be reminded separately. The current interaction mode can be set to the first interaction mode. When the first interaction area is selected, in response to a trigger operation on the first interaction area, a first interaction command is sent to the second virtual object's electronic device. The second virtual object's electronic device can display "Please go back," and the corresponding user can control the second virtual object to move away from the sixth virtual object. The electronic devices of the fourth and fifth virtual objects do not receive the first interaction command, thus avoiding interference.
[0151] Scenario 2 (Second Interaction Mode): The first virtual object wants the entire team (i.e., the first virtual object, the second virtual object, the fourth virtual object, and the fifth virtual object) to move towards the position of the second virtual object. The current interaction mode can be set to the second interaction mode. When the first interaction area is selected, in response to a trigger operation on the first interaction area, the first interaction command is sent to the electronic devices corresponding to the second, fourth, and fifth virtual objects respectively. These electronic devices can then display "Go to the location set of the second virtual object," allowing the user to control the fourth and fifth virtual objects to move to the position of the second virtual object.
[0152] Scenario 3 (Third Interaction Mode): The first virtual object wants the second and fifth virtual objects to move closer to the position of the second virtual object. The current interaction mode can be set to the third interaction mode. When the first interaction area is selected, in response to the trigger operation on the first interaction area, the first interaction command is sent to the electronic devices corresponding to the second and fifth virtual objects respectively. The electronic devices corresponding to the second and fifth virtual objects can display "Go to the location set of the second virtual object", and then the user can control the fifth virtual object to move to the position of the second virtual object.
[0153] The interaction method in the virtual scene provided by the embodiments of this application grants users precise control over the distribution range of interaction commands. In the first interaction mode, targeted tactical deployment can be achieved, reducing the invalid information load on virtual objects in the group. In the second interaction mode, the location of an individual can be used as a reference anchor point for the group to achieve group action. In the third interaction mode, the location of an individual can be used as a reference anchor point for multiple virtual objects to achieve local action, significantly improving the communication accuracy and command efficiency in multiple interaction modes.
[0154] In some embodiments, different trigger operations can be used to send the first interaction command in different interaction modes. For example, when the first interaction area is selected, in response to a click operation on the first interaction area, the current interaction mode can be determined to be the first interaction mode, and the first interaction command associated with the first interaction area can be sent to the electronic device corresponding to the first virtual object. When the first interaction area is selected, in response to a press operation on the first interaction area, and the press operation duration reaches a fifth duration, the current interaction mode can be determined to be the second interaction mode, and the first interaction command associated with the first interaction area can be sent to the electronic devices corresponding to each virtual object in the group.
[0155] In related technologies, the lack of differentiation in the importance or urgency of different interaction areas (corresponding to emails) makes it impossible to distinguish the instructions corresponding to the interaction areas, thus failing to reflect the logical difference in processing timeliness between critical and ordinary parts. To solve the above technical problems, priority can be set for interaction areas.
[0156] In some embodiments, Figure 3 Step 103 shown can be implemented in the following way: each interactive area has a corresponding priority, and multiple interactive areas correspond to at least two different priorities. For example, interactive areas may include interactive area 1, interactive area 2 and interactive area 3. The priority of interactive area 1 is priority 1, the priority of interactive area 2 is priority 1, and the priority of interactive area 3 is priority 2. Priority 1 and priority 2 are different.
[0157] In some embodiments, in response to a triggering operation on a first interactive area, a first interactive instruction associated with the first interactive area is triggered, and the priority of the first interactive instruction is controlled to correspond to the priority of the first interactive area, wherein the priority of the first interactive instruction is associated with the execution duration of the response operation, and different priorities are associated with different execution durations.
[0158] The execution duration is explained below. It can be a time limit for responding to the first interactive command, meaning the first virtual object needs to complete the response within that time. Alternatively, it can be the duration of the response to the first interactive command, meaning the first virtual object needs to execute the response for the duration specified in the execution duration. This is just an illustration; the specific settings can be customized according to actual usage requirements.
[0159] For example, in response to a trigger operation targeting the first interactive area, the first interactive area has a priority of 3, triggering the first interactive instruction associated with the first interactive area, and sending the first interactive instruction to the electronic device of the first virtual object. The execution duration of the response operation associated with priority 3 is 1. The electronic device of the first virtual object can count down based on the execution duration of 1. The first virtual object needs to execute the trigger operation of the first interactive area before the countdown reaches zero.
[0160] In response to a trigger operation targeting the first interaction area, which has a priority of 4 (priority 4 is greater than priority 3), the first interaction command associated with the first interaction area is triggered and sent to the electronic device of the first virtual object. The execution duration of the response operation associated with priority 4 is 2 (execution duration 2 is less than execution duration 1). The electronic device of the first virtual object can start a countdown based on execution duration 2. The first virtual object needs to execute the trigger operation of the first interaction area before the countdown reaches zero. Of course, the relationship between the execution durations corresponding to different priorities can be set according to actual usage requirements.
[0161] The priority of the first interactive instruction corresponds to the priority of the first interactive area. This can be that the priority of the first interactive instruction is the same as the priority of the first interactive area, or the priority of the first interactive area can be different from that of the first interactive area. However, there is a one-to-one correspondence between the priorities of the first interactive areas, and the priorities of the first interactive areas are positively correlated.
[0162] In some embodiments, the interaction area has a unique identifier, and a correspondence between candidate identifiers and candidate priorities is pre-set, as well as a correspondence between candidate priorities and candidate durations. After determining the unique identifier of the first interaction area, the priority corresponding to the unique identifier of the first interaction area can be determined from the correspondence between candidate identifiers and candidate priorities. Then, based on the priority corresponding to the unique identifier of the first interaction area, the execution duration corresponding to the priority can be determined from the correspondence between candidate priorities and candidate durations.
[0163] The interaction method in the virtual scene provided by the embodiments of this application can establish a correspondence between the interaction area, priority and execution time, realize differentiated control of the response operation corresponding to the execution of the interaction command, improve the accuracy of the interaction command, improve the accuracy of controlling the first virtual object, and significantly improve the realism of sending interaction commands in the virtual scene.
[0164] In some embodiments, when the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, at least one candidate can be displayed in the display area of the first interactive area. The candidate can be a position candidate, a priority candidate, an interaction mode candidate, etc., and can be set according to actual usage requirements, without being specifically limited here.
[0165] Regarding location candidates, when the viewpoint of the second virtual object is detected to be pointing towards the first interactive area of the first virtual object, if the first interactive command associated with the first interactive area is used to move the first virtual object in the virtual scene, then at least one location candidate is displayed in the display area of the first interactive area. The location candidate is associated with a movement position, and the at least one location candidate includes a target location candidate.
[0166] See Figure 16 , Figure 16 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 Third, when the viewpoint of the second virtual object is detected to be pointing towards the first interactive area of the first virtual object, the boundary of the first interactive area 1603 is displayed in bold (indicating that the first interactive area 1603 is selected). The first interactive command associated with the first interactive area 1603 is used to move the first virtual object in the virtual scene. Two location candidates are displayed in the display area of the first interactive area. The two location candidates include a location candidate for indicating movement to location 1601 and a location candidate for indicating movement to location 1602.
[0167] In some embodiments, Figure 3 Step 103 shown can be implemented in the following way: when the first interactive area is selected, in response to the triggering operation of the target location candidate displayed for the first interactive area, the first interactive instruction associated with the first interactive area is triggered, so that the first virtual object performs a response operation to move to the movement position associated with the target location candidate.
[0168] In some embodiments, the display area of the location candidates may display one or more of text, images, and videos. For example, the location candidates may display "Go to Bunker A", "Occupy Position B", or "Return to Position C". This is further illustrated. Movement can refer to moving forward or backward, and can be set according to actual usage requirements.
[0169] In some embodiments, the first position of the first virtual object in the virtual scene can be obtained. Based on the correspondence between candidate positions and candidate key positions, the key position corresponding to the first position can be determined, and then position candidates used to indicate the key position can be rendered. In some embodiments, the movement position indicated by the position candidate can be determined by combining historical game data, and the movement position can be a position that has been reached more than a threshold number of times in the past. In some embodiments, the movement position indicated by the position candidate can also be a position generated by the artificial intelligence object in combination with the interaction situation and the first position. The specific settings can be set according to actual usage requirements and are not specifically limited here.
[0170] The interaction method in the virtual scene provided by the embodiments of this application can display location candidates in the first interaction area, eliminating the need for users to select movement locations in conjunction with maps or virtual scenes. This reduces the complexity of human-computer interaction operations, improves the efficiency and accuracy of triggering the first interaction command, and avoids erroneous operations caused by scene occlusion that prevent the selection of target locations. It significantly improves the fluency and accuracy of human-computer interaction at the real-time tactical level, and can also enrich the displayed content and improve the resource utilization of electronic devices.
[0171] When the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, if there are different priority interactive instructions associated with the first interactive area, at least one priority candidate will be displayed in the display area of the first interactive area. When the first interactive area is selected, in response to the triggering operation of the target priority candidate displayed in the first interactive area, the first interactive instruction with the target priority indicated by the target priority candidate associated with the first interactive area will be triggered, so that the first virtual object will execute the response operation corresponding to the first interactive instruction based on the execution duration corresponding to the target priority. For details, please refer to the explanation of priority, which will not be repeated here.
[0172] When the viewpoint of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, if the first interactive area has different interactive modes, at least one interactive mode candidate is displayed in the display area of the first interactive area. When the first interactive area is selected, in response to the triggering operation of the target interactive mode candidate displayed in the first interactive area, the first interactive instruction associated with the first interactive area is triggered, and then the first interactive instruction is sent to the electronic device of the corresponding virtual object according to the interactive mode corresponding to the target interactive mode candidate. For details, please refer to the description of the interactive modes, which will not be repeated here.
[0173] In the virtual scene interaction method provided in this application embodiment, a first virtual object can be displayed in the virtual scene. The first virtual object includes multiple interaction areas, and different interaction areas are associated with different interaction commands. When the view of the second virtual object is detected to be pointing to the first interaction area of the first virtual object, the first interaction area is controlled to be in a selected state. When the first interaction area is in a selected state, in response to the triggering operation for the first interaction area, the first interaction command associated with the first interaction area is triggered, so that the first virtual object executes the response operation corresponding to the first interaction command.
[0174] The interaction method in the virtual scene provided by the embodiments of this application allows for multiple interaction areas for a first virtual object. Different interaction areas are associated with different interaction commands, enabling different interaction commands to be triggered for different interaction areas of a single first virtual object. Consequently, the first virtual object can execute the response operation corresponding to the interaction command, enriching the interaction methods between different virtual objects. Furthermore, by controlling the perspective of the second virtual object, the first interaction area can be quickly selected. Combined with the trigger operation for the first interaction area, the first interaction command can be quickly triggered, improving the efficiency of human-computer interaction, enriching the displayed content, improving the resource utilization of electronic devices, and solving the aforementioned technical problem 1.
[0175] The interaction method in the virtual scene provided in this application embodiment can enrich the interaction dimension and realize refined interaction. By dividing the first virtual object into multiple interaction areas and associating them with different interaction commands, users can trigger different interaction commands for different interaction areas of the same virtual object, which greatly enriches the interaction logic and gameplay in the virtual scene, making the interaction more delicate and realistic, and no longer limited to a single interaction mode.
[0176] The interaction method in the virtual scene provided in this application simplifies the operation process and improves the interaction efficiency. It uses the perspective of the second virtual object (i.e., the user's line of sight or the direction of the character) as the basis for selecting the interaction area. There is no need to select specific parts through cumbersome menu selection or precise mouse / finger clicks. Simply rotate the view to quickly lock the target area. This "what you see is what you get" approach lowers the operation threshold and significantly improves the efficiency of human-computer interaction.
[0177] The virtual scene interaction method provided in this application embodiment can provide clear visual feedback, reduce the error rate, and control the first interaction area to be in a selected state. This is equivalent to giving the user clear visual feedback before triggering the first interaction command. The user can clearly know which interaction area to trigger the interaction command. This confirmation mechanism effectively prevents accidental touches caused by viewing angle deviation and improves the accuracy of interaction.
[0178] The interaction method in virtual scenes provided in this application embodiment can enhance immersion and realism. In virtual reality, augmented reality, or first-person games, it can reduce reliance on interface elements and significantly enhance the user's immersion and experience. The interaction method in virtual scenes provided in this application embodiment, by combining viewpoint pointing with trigger operations, separates aiming and confirmation, cleverly solving the technical challenge of multi-functional interaction with complex virtual objects on limited input devices.
[0179] In some embodiments, Figure 3After step 103 shown, a message display area is displayed in the virtual scene. In the message display area, the target message corresponding to the first interaction instruction is displayed. The content of the target message includes: the second virtual object instructs the first virtual object to perform the response operation corresponding to the first interaction instruction.
[0180] See Figure 17 , Figure 17 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 Fourth, a message display area 1701 can be displayed in the virtual scene. The target message can be displayed in the message display area 1701. The target message is "The second virtual object instructs the first virtual object to retreat!" Retreat is the response operation corresponding to the first interaction command executed by a virtual object.
[0181] In some embodiments, the message display area is used to carry one or more messages including text, voice, and video. After triggering the first interaction command associated with the first interaction area, the target message can be displayed synchronously in the message display area. For example, the target message can be a second virtual object instructing the first virtual object to perform the response operation 1 corresponding to the first interaction command, thereby intuitively informing the user controlling the first virtual object and the user controlling the first virtual object that the first interaction command was successfully sent.
[0182] In some embodiments, when a first interaction command is triggered, the electronic device can obtain information corresponding to the first interaction command. This information includes the second object identifier of the operation initiator (second virtual object), the first object identifier of the operation initiator (first virtual object), and the response operation corresponding to the first interaction command. Based on a preset string template (e.g., "[Operation initiator] instructs [Operation initiator] to perform [Response operation corresponding to the interaction command]"), the extracted object identifier and an operation are used to fill the string template, thereby obtaining the target message.
[0183] The interaction method in the virtual scene provided by the embodiments of this application eliminates the need for users to observe whether the first virtual object executes the response operation corresponding to the first interaction command in order to deduce whether the first interaction command was successfully sent. Instead, users can determine whether the first interaction command was successfully sent simply by whether the target message is displayed. This significantly reduces the cognitive load on users, provides a traceable record of the interaction command sent, enriches the displayed content, and improves the resource utilization of electronic devices.
[0184] In some embodiments, for each message corresponding to an interaction instruction in the message display area, a message identifier for the message can be displayed. The message identifier may include any one of a first message sub-identifier, a second message sub-identifier, and a third message sub-identifier. The first message sub-identifier is used to indicate that the first virtual object has executed the response operation corresponding to the interaction instruction, the second message sub-identifier is used to indicate that the first virtual object is executing the response operation corresponding to the interaction instruction, and the third message sub-identifier is used to indicate that the first virtual object has not executed the response operation corresponding to the interaction instruction.
[0185] In some embodiments, if the viewpoint of the second virtual object is not pointed to the first interactive area of the first virtual object when the first interactive area is selected, the selection of the first interactive area can be cancelled.
[0186] In some embodiments, Figure 3 After step 102 shown, if the duration of the first interactive area being selected does not reach the first duration when the first virtual object moves in the virtual scene, it indicates that the duration of the first interactive area being selected is too short. In order to improve the accuracy of triggering the first interactive command and avoid accidentally canceling the control of the first interactive area being selected due to the movement of the first virtual object in the virtual scene, the perspective of the second virtual object can be adjusted synchronously according to the movement trajectory of the first virtual object, which is equivalent to enabling the perspective of the second virtual object to automatically follow the first virtual object.
[0187] See Figure 18 , Figure 18 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 Fifth, the viewpoint of the second virtual object can be indicated by the crosshair 1801. If the duration of the first interactive area being selected has not reached the first duration while the first virtual object is moving within the virtual scene, the viewpoint of the second virtual object is simultaneously adjusted according to the movement trajectory of the first virtual object. Figure 18 In the middle, the crosshair 1801 can be changed from Figure 18 Move to the position corresponding to the left image. Figure 18 The position corresponding to the image on the right is equivalent to adjusting the viewpoint of the second virtual object.
[0188] In some embodiments, if the duration of the first interactive area being selected reaches a first duration, it indicates that the duration of the first interactive area being selected is relatively long, and the user may not want to trigger the first interactive command. Therefore, the control of the first interactive area being selected can be canceled, and the synchronous adjustment of the perspective of the second virtual object can be canceled.
[0189] In some embodiments, when the first interactive area is selected, a timer is started to obtain the first position of the first virtual object in the virtual scene in real time. If the first position changes, and the timer duration has not reached the first duration, the direction vector between the first position of the first virtual object and the second position of the second virtual object is calculated in real time, and the viewpoint of the second virtual object is updated according to the direction vector to keep the viewpoint of the second virtual object pointing towards the first virtual object. If the timer duration reaches the first duration, the first interactive area is deselected, and the synchronous adjustment of the viewpoint of the second virtual object is canceled.
[0190] The interaction method in the virtual scene provided by the embodiments of this application can automatically lock the perspective of the second virtual object to the first virtual object when the duration of the first interaction area being selected has not reached the first duration, thus avoiding the inability to trigger the first interaction command due to insufficient reaction. When the duration of the first interaction area being selected reaches the first duration, the locking of the first virtual object can be automatically deactivated. The method can switch whether the perspective of the second virtual object is locked to the first virtual object based on the duration, thereby improving the accuracy of triggering the first interaction command and improving the resource utilization of electronic devices.
[0191] In some embodiments, when the viewpoint of the second virtual object locks onto the first interactive area of the moving first virtual object, a connection effect can be displayed on the interface. As the synchronization adjustment process continues (i.e., the duration the first interactive area is selected increases), the connection effect can be updated based on the remaining time period, which is the difference between the first time period and the duration the first interactive area is selected. For example, the color of the connection effect gradually transitions from green to yellow, then to red, and the jitter of the connection effect gradually increases. When the first time period is reached, the viewpoint of the second virtual object stops following and the connection effect is canceled.
[0192] In some embodiments, a change control may be displayed in the first interactive associated area. If the first virtual object does not execute the response operation corresponding to the first interactive instruction within a sixth time period, at least one candidate interactive instruction is displayed in response to a trigger operation for the change control. In response to a trigger operation for the fourth interactive instruction among the at least one candidate interactive instruction, the first interactive instruction can be withdrawn and the fourth interactive instruction can be sent. Within the sixth time period, when the first virtual object executes the response operation corresponding to the first interactive instruction, the change control is de-displayed.
[0193] In related technologies, after a trigger command is executed, it takes effect immediately or enters an irreversible execution flow. If a user makes a mistake, it is difficult to block the operation before the corresponding response to the command is executed. To solve the above technical problem, in some embodiments, Figure 3Following step 103, a retraction control can be displayed within the associated area of the first interaction area. See also... Figure 19 , Figure 19 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 Sixth, a retraction control 1901 can be displayed within the associated area of the first interaction area. The distance between the associated area of the first interaction area and the first interaction area is less than a distance threshold.
[0194] In some embodiments, if the first virtual object does not execute the response operation corresponding to the first interaction instruction within a second time period, the first interaction instruction is withdrawn in response to the trigger operation on the withdrawal control. Within the second time period, when the first virtual object executes the response operation corresponding to the first interaction instruction, the withdrawal control is canceled from display.
[0195] For example, the second virtual object can send the first interaction instruction to the electronic device of the first virtual object. If the first interaction instruction sent by the second virtual object is incorrect and the first virtual object does not execute the response operation corresponding to the first interaction instruction within the second time period, the first interaction instruction is withdrawn in response to the trigger operation of the withdrawal control.
[0196] For example, the second virtual object can send the first interaction command to the electronic device of the first virtual object. If the second virtual object wants to change the first interaction command in combination with the content displayed in the virtual scene (the weather changes, a random event occurs, a sixth virtual object is displayed, etc.), and the first virtual object does not execute the response operation corresponding to the first interaction command within the second time period, the first interaction command is withdrawn in response to the trigger operation of the withdrawal control.
[0197] In some embodiments, in response to a triggering operation on the revocation control, the display of the target message corresponding to the first interaction instruction in the message display area can be cancelled. In some embodiments, in response to a triggering operation on the revocation control, the voice prompt for revoking the first interaction instruction can be played.
[0198] The interaction method in the virtual scene provided by the embodiments of this application can be combined with the withdrawal of the first interaction command, which can reduce the impact of misoperation on the game, improve the accuracy of sending effective first interaction commands, enrich the interaction methods, enrich the displayed content, and improve the resource utilization of electronic devices.
[0199] In related technologies, when the first virtual object leaves the field of view of the second virtual object, it is not possible to intuitively know whether the first virtual object has executed the response operation corresponding to the first interaction command. In order to solve the above technical problem, a small map can be displayed in the virtual scene, and the object identifier of the first virtual object can be displayed in the small map. In response to the trigger operation for the first interaction area, a status identifier can be displayed in the display area of the object identifier of the first virtual object (which can also be the associated area).
[0200] A status identifier is used to indicate the execution status of the first virtual object's response operation to the first interaction command. The status identifier may include any one of a first status sub-identifier, a second status sub-identifier, and a third status sub-identifier. The first status sub-identifier indicates that the first virtual object has executed the response operation corresponding to the interaction command; the second status sub-identifier indicates that the first virtual object is currently executing the response operation corresponding to the interaction command; and the third status sub-identifier indicates that the first virtual object has not executed the response operation corresponding to the interaction command.
[0201] See Figure 20 , Figure 20 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 7. A mini-map can be displayed in the virtual scene. Figure 20 The content shown is a minimap, which can display the object identifier 2001 of the first virtual object and the object identifier 2003 of the second virtual object. In response to a trigger operation on the first interaction area, a status identifier 2002 is displayed in the display area of the object identifier 2001 of the first virtual object. The status identifier 2002 is used to indicate that the first virtual object has completed the response operation of the first interaction command.
[0202] Maps can be large maps or small maps. Large maps are used to display the complete virtual scene, allowing users to have a more macroscopic understanding of the location of virtual objects within the scene. In other words, the large map is a global view of the virtual scene, typically showing the macroscopic layout of the entire game world (virtual scene), including terrain, cities, levels, resource points, mission areas, etc. It provides players with an overall overview of the game world.
[0203] The minimap is used to display a local view of a virtual scene. The displayed minimap is determined based on the location of virtual objects, allowing users to understand the virtual object's position in a relatively microscopic way. In other words, the minimap shows detailed information about the area where the virtual object is currently located, including terrain, buildings, hostile virtual objects, and virtual objects belonging to the same team within a preset range. The minimap can provide real-time information about the local environment.
[0204] In some embodiments, a small map corresponding to the virtual scene and the first position of the first virtual object are obtained. The first position can be mapped to two-dimensional pixel coordinates in the small map using a coordinate mapping algorithm, and the object identifier of the first virtual object is rendered at the two-dimensional pixel coordinates. In response to a trigger operation on the first interactive area, the behavior tree of the first virtual object is queried, the execution status of the response operation corresponding to the first interactive operation is determined from the behavior tree, and then the status identifier is rendered and displayed.
[0205] In some embodiments, the same content can be performed on a large map. The large map can also display one or more of the following: the name of the response operation corresponding to the first interaction instruction, the execution time of the response operation corresponding to the first interaction instruction performed by the first virtual object, and the attribute values of the first virtual object. The specific settings can be configured according to actual usage requirements and are not specifically limited here.
[0206] The interaction method in the virtual scene provided by the embodiments of this application can display status indicators on the minimap. The status indicators are used to indicate the execution status of the response operation of the first virtual object to the first interaction command. Users can know the execution status of the response operation of the first virtual object to the first interaction command, which can enrich the displayed content and improve the resource utilization of electronic devices.
[0207] In some embodiments, Figure 3 After step 103 shown, if the first virtual object does not execute the response operation corresponding to the first interaction instruction within the fourth time period, and the first virtual object is not within the field of view of the second virtual object, a reminder control is displayed, and in response to the trigger operation of the reminder control, a reminder message is sent to the electronic device corresponding to the first virtual object.
[0208] In some embodiments, the notification control can be displayed in the message display area, the minimap, or as a pop-up or floating layer at any location on the display interface. See [link to relevant documentation]. Figure 21 , Figure 21 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 8. If the first virtual object does not execute the response operation corresponding to the first interaction instruction within the fourth time period, and the first virtual object is not within the field of view of the second virtual object, the reminder control 2101 is displayed.
[0209] For the electronic device corresponding to the first virtual object, a reminder message can be displayed. The reminder message can be displayed as a pop-up window or a floating layer, and can be displayed in the message display area. The specific settings can be configured according to actual usage needs, and no specific limitations are made here. The reminder message is used to remind the first virtual object to perform the response operation corresponding to the first interactive command.
[0210] In some embodiments, if the first virtual object does not execute the response operation corresponding to the first interaction instruction within a fourth time period, and the first virtual object is within the field of view of the second virtual object, a reminder control can be displayed in the first interaction area, and a reminder control can also be displayed in the associated area of the first interaction area. In response to the trigger operation of the reminder control, a reminder message is sent to the electronic device corresponding to the first virtual object.
[0211] In some embodiments, if the first virtual object does not execute the response operation corresponding to the first interaction instruction within a fourth time period, and the first virtual object is within the field of view of the second virtual object, when it is detected that the viewpoint of the second virtual object is pointing to the first interaction area of the first virtual object again, the first interaction instruction can be resent to the electronic device corresponding to the first virtual object, and a reminder message can also be sent to the electronic device corresponding to the first virtual object.
[0212] The interaction method in the virtual scene provided by the embodiments of this application can display a reminder control and then send a reminder message to the electronic device corresponding to the first virtual object. This can increase the probability that the first virtual object will perform a response operation, enrich the interaction method, enrich the displayed content, and improve the resource utilization of the electronic device.
[0213] In some embodiments, in response to a triggering operation on the first interactive area, if the distance between the first virtual object and the second virtual object is greater than or equal to a second distance threshold, the process of the second virtual object executing the instruction corresponding to the first interactive instruction is displayed. For example, if the first interactive instruction is used to instruct the first virtual object to retreat, in response to a triggering operation on the first interactive area, if the distance between the first virtual object and the second virtual object is greater than or equal to the second distance threshold, the second virtual object can be displayed making a gesture indicating that the first virtual object should retreat.
[0214] In some embodiments, in response to a triggering operation targeting the first interactive area, if the distance between the first virtual object and the second virtual object is greater than or equal to a second distance threshold, the second virtual object can be automatically controlled to use a third virtual prop, and the sixth virtual object is used to display the visual signal corresponding to the first interactive instruction in the virtual scene.
[0215] For example, the first interaction instruction is used to instruct the picking of a virtual prop located at the position of the second virtual object. In response to a trigger operation on the first interaction area, if the distance between the first virtual object and the second virtual object is greater than or equal to a second distance threshold, the second virtual object can be controlled to use a third virtual prop. After the third virtual prop is used, a smoke signal can be displayed. If the first interaction instruction is only sent to the first virtual object, the identifier of the first virtual object can be displayed in the smoke signal.
[0216] In some embodiments, in response to a trigger operation on a first interactive area, if the distance between the first virtual object and the second virtual object is less than a second distance threshold, the process of the second virtual object performing an interactive action on the first interactive area is displayed. For example, the first interactive area can be the interactive area corresponding to the left shoulder of the first virtual object. In response to a trigger operation on the first interactive area, if the distance between the first virtual object and the second virtual object is less than the second distance threshold, the process of the second virtual object patting the left shoulder of the first virtual object can be displayed.
[0217] In some embodiments, in response to a trigger operation on a first interactive area, if the distance between a first virtual object and a second virtual object is less than a second distance threshold, a target animation corresponding to the first interactive area can be obtained, and then the target animation can be displayed. The target animation may include the process of the second virtual object performing an interactive action on the first interactive area.
[0218] In some embodiments, when a virtual prop corresponds to the first interactive area, in response to a trigger operation on the first interactive area, if the distance between the first virtual object and the second virtual object is less than a second distance threshold, the process of the second virtual object touching the virtual prop carried by the first virtual object can be displayed, the process of the second virtual object removing the virtual prop carried by the first virtual object can be displayed, and the process of the second virtual object teaching the first virtual object to use the first virtual prop can be displayed. The specific settings can be made according to actual usage needs, and no specific limitations are made here.
[0219] The interaction method in the virtual scene provided by this application embodiment can display the process of the second virtual object performing an interactive action on the first interactive area when the distance between the first virtual object and the second virtual object is less than the second distance threshold. This ensures the delicacy and realism of close-range (the distance between the first virtual object and the second virtual object is less than the second distance threshold) operation. By using the visualized action process as a signal to send the first interactive command, the user can clearly perceive that the interactive command has been sent, which enhances the immersion of the game, enriches the displayed content, and improves the resource utilization of electronic devices.
[0220] In some embodiments, when the user triggers the first interaction command for the first N times, or when the user enables the guided mode, guidance information may be displayed. The guidance information is used to guide the user to trigger the first interaction command using the interaction method in the virtual scene provided in this application embodiment. The guidance information may be one or more of text, images, videos, and audio.
[0221] For example, when the user enables the guided mode, a first virtual object and a virtual ray representing the view of the second virtual object can be displayed in the virtual scene. When the virtual ray points to the first interactive area of the first virtual object, the first interactive area is selected. When the first interactive area is selected, in response to the trigger operation on the first interactive area, the first interactive instruction associated with the first interactive area is triggered, so that the first virtual object executes the response operation corresponding to the first interactive instruction.
[0222] In some embodiments, taking the second virtual object as the recipient as an example, the first virtual object or other virtual objects belonging to the same group as the second virtual object can trigger a second interaction instruction associated with the second interaction area of the second virtual object. When the second interaction instruction associated with the second interaction area of the second virtual object is triggered, at least one of the following is executed: displaying a second prompt message in the virtual scene, the second prompt message being used to prompt the second virtual object to perform the response operation corresponding to the second interaction instruction; or outputting the voice corresponding to the second prompt message.
[0223] See Figure 22 , Figure 22 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 10 9. When the second interactive command associated with the second interactive area of the second virtual object is triggered, the first prompt message can be displayed in the virtual scene. The first prompt message can be "Virtual object 2201 reminds you to retreat as soon as possible!", and the voice corresponding to the second prompt message can also be played.
[0224] The interaction method in the virtual scene provided in this application embodiment can perform at least one of the following: displaying a second prompt message in the virtual scene, and outputting the voice of the second prompt message. For users, the second prompt message can be obtained through visual or auditory means, which enriches the ways of obtaining the second prompt message and improves the resource utilization of electronic devices.
[0225] In some embodiments, the second prompt information includes an action identifier and a display effect. When the response operation corresponding to the second interaction instruction includes controlling the second virtual object to perform a target action, the action identifier corresponding to the target action is displayed in the virtual scene. The action identifier is used to prompt the second virtual object to perform the target action. The display effect corresponding to the target action can also be displayed in the virtual scene, wherein different actions correspond to different display effects.
[0226] See Figure 23 , Figure 23 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 210. When the response operation corresponding to the second interactive instruction includes controlling the second virtual object to perform a crouching action, the action identifier 2301 corresponding to the crouching action can be displayed, and the display effect corresponding to the crouching action can also be displayed in the virtual scene.
[0227] The following explains display effects. Display effects can be used to enhance the richness and diversity of displayed content, thereby increasing visual impact and interest. Display effects can be one or more of the following: lighting effects, particle effects, animation effects, interactive effects between motion icons and second virtual objects, and sound effects. Lighting effects can include one or more of the following: adding a halo effect to motion icons, light rays emanating from various directions of the display interface converging on motion icons, and adding lighting and shadow effects within motion icons.
[0228] Particle effects can be particles displayed in the associated area of an action icon. These particles can be stars, snowflakes, petals, etc., and can move along preset trajectories. Particle effects can also be trajectories composed of particles. Animation effects can be animations applied to the action icon. For example, animation effects can include one or more of the following: movement, scaling, or 3D visual effects. They can also include effects such as displaying fireworks in the associated area of the action icon.
[0229] The interaction effects between the action icon and the second virtual object can be effects that point to the action icon displayed on the corresponding limb or virtual prop of the second virtual object. Sound effects can be represented through visual effects; for example, the effect of sound waves propagating through the air can be added to the associated area of the action icon. The display effects for different action icons can be the same or different, and can be set according to actual usage requirements; no specific limitations are imposed here.
[0230] In some embodiments, the action identifier can be one or more of text, image, and video. When playing the voice corresponding to the second prompt information, special effects audio can also be output to further enrich the output audio.
[0231] The interaction method in the virtual scene provided by the embodiments of this application can display action identifiers and display effects that prompt the second virtual object to perform the target action, which can enrich the displayed content, improve the resource utilization of electronic devices, and the action identifiers can guide the user to control the second virtual object to perform the corresponding target action, thereby improving the accuracy of the response operation corresponding to the second interaction command.
[0232] In some embodiments, the second interaction instruction is triggered based on the perspective of the third virtual object. That is, for an electronic device with respect to the third virtual object, when it is detected that the perspective of the third virtual object is pointing to the second interaction area of the second virtual object, the second interaction area is controlled to be selected. When the second interaction area is selected, in response to the triggering operation for the second interaction area, the second interaction instruction associated with the second interaction area is triggered so that the second virtual object executes the response operation corresponding to the second interaction instruction.
[0233] In the associated area of the second prompt information, at least one of the following may be displayed: the object identifier of the third virtual object, the direction identifier corresponding to the third virtual object, the attribute value of the third virtual object, the virtual vehicle of the third virtual object, the virtual props carried by the third virtual object, and the number of sixth virtual objects knocked down by the third virtual object.
[0234] The direction identifier is used to represent the direction of the third virtual object relative to the second virtual object in the virtual scene. The attribute values of the virtual object can include one or more of the following: health, mana, attack power, defense, movement speed, hit rate, evasion rate, and luck. The object identifier can be one or more of the following: text, image, and video. The object identifier can be the name, avatar, account, or a note set by the user corresponding to the second virtual object for the user corresponding to the third virtual object, etc. The specific settings can be configured according to actual usage requirements and are not specifically limited here.
[0235] See Figure 24 , Figure 24 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2 11. The second prompt information includes an object identifier. In the associated area of the object identifier, the name of the third virtual object (i.e., the object identifier of the third virtual object) and the direction identifier 2401 can be displayed. The direction identifier 2401 is used to indicate that the third virtual object is located in the lower right corner of the second virtual object.
[0236] In some embodiments, a guide interface may be displayed after the second prompt information and associated information (at least one of the following: object identifier of the third virtual object, direction identifier corresponding to the third virtual object, attribute value of the third virtual object, virtual vehicle of the third virtual object, virtual prop carried by the third virtual object, and number of sixth virtual objects knocked down by the third virtual object) have been displayed M times.
[0237] The reference interface displays explanatory information for the second prompt and related information. See [link / reference]. Figure 25 , Figure 25 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2 twelve, Figure 25This is the guide interface, which displays secondary prompts and related information. For the secondary prompts and related information, explanatory information 2501 can be displayed.
[0238] The interaction method in the virtual scene provided by the embodiments of this application can display at least one of the above-mentioned related information when displaying the second prompt information, which can enrich the displayed content. For users, users can intuitively understand the related information and improve the resource utilization of electronic devices.
[0239] In some embodiments, after the second prompt information is displayed in the virtual scene, in response to a triggering operation on the second prompt information, the second virtual object can be controlled to execute a response operation corresponding to the second interaction instruction. In some embodiments, when an action identifier is displayed in the virtual scene, in response to a triggering operation on the action identifier, the second virtual object can be controlled to execute the target action indicated by the action identifier.
[0240] The response operation corresponding to the second interactive command can be a single action or a combination of multiple actions. The response operation corresponding to the second interactive command can be an action with a duration of seven hours. The specific settings can be made according to actual usage requirements, and no specific limitations are made here.
[0241] See Figure 26 , Figure 26 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2 Thirteen, for the second virtual object, the second virtual object in a standing state can be displayed in the virtual scene, and the second prompt information 2601 (i.e., the jump indicator for the action jump) can be displayed. In response to the trigger operation of the second prompt information 2601, the second virtual object can be controlled to jump in the virtual scene.
[0242] When the response operation corresponding to the second interaction command is completed, if the distance between the second virtual object and the third virtual object is less than the fourth distance threshold, the process of the second virtual object performing a feedback action towards the third virtual object is displayed. The feedback action is used to indicate that the second virtual object has completed the response operation corresponding to the second interaction command.
[0243] When the response operation corresponding to the second interaction command is completed, if the distance between the second virtual object and the third virtual object is greater than or equal to the fourth distance threshold, the second virtual object is controlled to use the fourth virtual prop. For details, please refer to the description of the third virtual prop, and the description of the third virtual prop is replaced with an equivalent one, which will not be repeated here.
[0244] The interaction method in the virtual scene provided by the embodiments of this application can automatically control the second virtual object to execute the response operation corresponding to the second interaction command by triggering the second prompt information, without requiring the user to control the second virtual object to execute the response operation corresponding to the second interaction command through the corresponding operation control. This can improve the efficiency of controlling the second virtual object to execute the response operation corresponding to the second interaction command, reduce the complexity of human-computer interaction, and display the process of the second virtual object executing feedback actions, which can enrich the displayed content and improve the resource utilization of electronic devices.
[0245] See Figure 27 , Figure 27 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2 fourteen, Figure 27 It is the display interface 2701 of the third virtual object. Figure 27 A second virtual object can be displayed in the middle. See also Figure 28 , Figure 28 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2 fifteen, Figure 28 It is the display interface 2801 of the second virtual object. Figure 28 The middle section can display a second prompt message and related information.
[0246] In related technologies, when a second virtual object faces multiple concurrent interaction commands, the lack of visual hierarchy makes it difficult for users to quickly identify higher-priority interaction commands. To solve this problem, if the interaction commands associated with multiple third interaction areas have different priorities within a third time period, different display styles are used in the virtual scene to display third prompt information corresponding to the third interaction commands with different priorities. The third prompt information is used to prompt the second virtual object to perform the response operation corresponding to the third interaction command.
[0247] The third prompt message can be found in the description of the second prompt message, and the corresponding content can be replaced accordingly. It will not be elaborated here. The display style of the third prompt message can be represented by one or more of the following: the style of the object identifier, display effects, and whether it is highlighted. This is just an illustration, and the specific settings can be made according to actual usage needs.
[0248] See Figure 29 , Figure 29 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2Sixteen, two third prompt messages can be displayed. These two prompt messages include object identifier 2901 and object identifier 2902 respectively. The priority of the third interaction command corresponding to object identifier 2901 is higher than that of the third interaction command corresponding to object identifier 2902. The two third prompt messages have different display styles. Specifically, object identifier 2901 can be bolded, and the display area of object identifier 2901 is larger than that of object identifier 2902. When the third interaction commands associated with multiple third interaction areas of the second virtual object are triggered, if the interaction commands associated with the multiple third interaction areas have the same priority, the third prompt information corresponding to the third interaction command will be displayed in ascending order of the time the electronic device receives the interaction command. Alternatively, the prompt information can be displayed in ascending order of the distance between the virtual object corresponding to the third interaction command and the second virtual object; this is just an illustration, and the specific settings can be configured according to actual usage requirements.
[0249] The interaction method in the virtual scene provided by the embodiments of this application can display third prompt information corresponding to third interaction instructions with different priorities using different display styles. Users can intuitively perceive the priority of the third interaction instruction corresponding to the third prompt information through the display style, which can enrich the displayed content and improve the resource utilization of electronic devices.
[0250] In some embodiments, when the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, if there are remaining interaction times for the first interactive area, the first interactive area can be controlled to be in a selected state. Then, when the first interactive area is in a selected state, in response to the triggering operation for the first interactive area, the first interactive instruction associated with the first interactive area is triggered.
[0251] In some embodiments, when the viewpoint of the second virtual object is detected to be pointing towards the first interactive area of the first virtual object, if the remaining number of interactions for the first interactive area is 0, the first interactive area can be controlled to be in an unselectable state. In some embodiments, for each interactive area, the total number of interactions and the remaining number of interactions can be displayed.
[0252] See Figure 30 , Figure 30 This is a schematic diagram of the interface provided in the embodiments of this application. Figure 2 17. The guide interface 3001 can be displayed. In the guide interface 3001, the outline of the aligned interactive area (such as the regional interactive area) can be thickened, which is equivalent to controlling the first interactive area to be in a selected state. For other interactive areas, interactive points (i.e., interactive icons) can be displayed.
[0253] See Figure 31 , Figure 31This is a flowchart illustrating the interaction method in a virtual scene provided in the embodiments of this application. Figure 2 Server 3102 can execute the content corresponding to box 3104. In box 3104, distance detection and pointing detection can be performed on the virtual objects (the first virtual object and the second virtual object). Distance detection refers to determining whether the distance between the first virtual object and the second virtual object is within 1m (whether it is less than the first distance threshold). Pointing detection refers to detecting whether the view of the second virtual object is pointing to the first interactive area of the first virtual object.
[0254] When the distance between the first virtual object and the second virtual object is less than a first distance threshold, and the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, the first terminal 3101 (i.e., the electronic device corresponding to the second virtual object) can execute the content in block 3105. In block 3105, the first interactive area can be controlled to be in a selected state. In response to the trigger operation on the first interactive area (i.e., triggering the first interactive area), the first interactive instruction can be sent to the second terminal 3103 of the first virtual object.
[0255] For the second terminal 3103 (i.e., the electronic device corresponding to the first virtual object), the content in box 3106 can be executed. In box 3106, action icons, object icons, and direction icons can be displayed, and voice can be output to show the second virtual object performing interactive actions.
[0256] The following is an example of the interaction method in the virtual scene provided in the embodiments of this application. For ease of understanding, the terms involved will be explained first. The interaction trigger area, or interaction area, refers to the body or equipment part area (such as shoulder, waist, backpack, etc.) that is predefined on the player character (i.e. virtual object) model in the game and is bound to specific tactical commands.
[0257] Near-field interaction refers to specific interactive behaviors that can be initiated when two or more player characters (i.e., virtual objects) are within a preset close range (i.e., the distance between virtual objects is less than a preset distance threshold) in a game scene (i.e., a virtual scene). Immersive feedback refers to conveying information to players through methods that are deeply integrated with the game screen, such as character animations and screen edge prompts, without relying on large pop-up interface elements.
[0258] In related multiplayer online tactical competitive games, users belonging to the same group of virtual objects can communicate through one or more of the following methods: voice communication, text conversation, command wheel, and command list. Voice communication is highly real-time, but it has problems such as language barriers, environmental noise interference, information that is not intuitive (requiring listening for comprehension), and the potential to disrupt the game's immersion.
[0259] Text-based conversations are accurate, but input efficiency is low, and their use in fast-paced interactions (i.e., battles) severely impacts gameplay. The command wheel is a circular or fan-shaped virtual wheel displayed on the interface, used to select preset tactical commands via mouse movement. Related games use the command wheel to trigger interactive commands, but it has the following drawbacks: Disruption to Immersion: Displaying a command wheel in the interface severely interferes with the player's game visuals and visual focus, weakening the immersive experience. Cumbersome Operation: Command wheels typically require multiple button combinations (e.g., long-pressing a specific key to bring up the wheel, then moving the mouse to select), which is not quick enough in intense interactive (i.e., combat) situations. Monotonous Interaction: In near-field interactions, the interaction between virtual objects is monotonous, usually limited to switching between common options displayed on a limited game wheel via scrolling, lacking intuitive interactions deeply integrated with the game scene and character status.
[0260] The command list is similar to a command wheel, displaying commands on the interface and allowing users to select tactical commands using number keys. The command list suffers from the same issues as the command wheel; please refer to the documentation for the command wheel for details, which will not be elaborated upon here.
[0261] Based on the above, the relevant technologies suffer from the following drawbacks, including: First, they disrupt immersion by severely obscuring the game screen and pulling players away from the game world. Second, they are cumbersome and inefficient, requiring multiple steps (button display, movement selection, confirmation), which is a fatal flaw in fast-paced interactive (battle) games. Third, the interaction is rigid and monotonous, based on abstract interface elements and lacking a natural integration with game characters and virtual environments.
[0262] The virtual scene interaction method provided in this application embodiment can bind complex tactical commands to intuitive body parts of the player character model. By replacing the traditional UI wheel menu with a simple "aiming + trigger" operation, it achieves a faster, more immersive, and more engaging near-field tactical communication method. This method includes: dynamic recognition and binding technology for interactive areas, intuitive aiming interaction technology based on collision detection, and low-interference multimodal feedback technology designed to maintain immersion. The virtual scene interaction method provided in this application embodiment can solve the problems of cumbersome operation, interruption of the game experience, and insufficient immersion associated with related technologies (such as voice communication, text conversation, command wheel, command list, etc.).
[0263] In other words, the interaction method in the virtual scene provided in this application embodiment can provide a highly immersive interactive experience, integrate interaction into the game environment, realize intuitive and efficient single-step operation, improve tactical response speed, create rich and intuitive interaction dimensions, and enhance the fun of the game.
[0264] The interaction method in the virtual scene provided in this application can solve the problems of tactical communication in games (corresponding to virtual scenes) that disrupt immersion, have low operation efficiency, and have a single interaction form in related technologies. It is equivalent to providing a near-field tactical interaction method based on body part recognition. By binding specific tactical commands with specific body parts (or equipment parts) of teammate character models, players who initiate the interaction can send intuitive and accurate tactical commands to teammates through simple aiming and triggering actions, thereby creating a more realistic, immersive, and less disruptive in-game communication experience.
[0265] Based on users' actual needs and the free-view characteristics of first-person games, a near-field tactical communication function is provided. For players, the operation is as follows: point the mouse at the corresponding area on the virtual object and press the F key to communicate combat commands.
[0266] Virtual object A can face virtual object B, which belongs to the same group in the virtual scene; that is, virtual object B is virtual object A's teammate. Virtual object A aligns its viewpoint (crosshair) with a specific part of virtual object B's body (corresponding interactive area), such as the waist. The aligned part is highlighted, indicating that it is interactive. Virtual object A presses a single interaction key (F key) to send a command to virtual object B that is bound to the aligned part (such as "crouch and hide").
[0267] Virtual object B, as the recipient, will not see a pop-up message that occupies a large proportion of the display screen. Instead, it will see a short icon and a glowing effect at the edge of the screen. At the same time, it will see virtual object A perform a short action (such as patting its waist) and hear virtual object A's voice (such as "Crouch down and hide!").
[0268] In the virtual scene interaction method provided in this application embodiment, the interaction area can be a limb part of a virtual object, and the interaction commands corresponding to the interaction area are as follows: 1. Collarbone: Advance; 2. Shoulder: Suppressive Fire; 3. Waist: Crouch and Hide; 4. Knee: Retreat. Furthermore, for virtual items such as shields and backpacks, virtual object A can aim at the virtual item worn by virtual object B and convey commands related to that item, such as "Shield needed!" or "Backpack needed!" This can also be extended to all tactical item models carried by characters during gameplay, depending on actual usage needs.
[0269] Within the trigger range, and when aiming at the target area (where the corresponding first interactive area is selected), the outline of the targeted area is displayed, and an interactive key prompt is triggered: "Press F + tap a target area + command name". Untargeted areas are displayed as a dot, providing area guidance.
[0270] The core technical approach of the interaction method in the virtual scene provided in this application embodiment is based on the dual determination mechanism of "point of reference" and "distance". First, the trigger area is predefined and bound: In the game engine, multiple interaction trigger areas (collisors) are predefined for each player character model, such as shoulders, waist, knees, etc. Each area is uniquely bound to a specific tactical command at the code level.
[0271] II. Interaction Trigger Condition Detection: ① Pointing Detection: Real-time detection of collisions between the view ray of virtual object A (the initiator) (determined by the camera position and mouse / crosshair direction) and the character model of virtual object B (the target). When the ray intersects with any predefined trigger area collision body on virtual object B, it is determined to be "pointing" to that area. ② Distance Detection: Synchronously calculate the three-dimensional spatial distance between virtual object A and virtual object B. Near-field interaction conditions are only met when the distance between the two is less than a preset threshold (1 meter).
[0272] III. Interactive Interface and Logic: When both conditions are met simultaneously, namely "pointing to a trigger area" and "the distance between the two is less than 1 meter", a simple interactive button prompt bound to that area will be dynamically displayed in the display interface corresponding to virtual object A (the binding point will display "[F] Tap waist to crouch and hide"). After virtual object A presses the corresponding interactive key (F key), the interaction will be executed.
[0273] IV. Command Synchronization and Feedback: After receiving an interaction command, virtual object B can perform the following steps: a. Action Synchronization: Play a short interactive animation pointing to the target part (such as "patting the shoulder") on the character model of virtual object A. b. Interface Prompt: Generate an unobstructed icon prompt at the edge of virtual object B's screen and play character voice (such as: displaying the icon for stealth action and playing the voice "Execute stealth action!").
[0274] The interaction method in the virtual scene provided by the embodiments of this application can enhance immersion: compared with the command wheel, interactive visual elements can be fully integrated into the virtual scene, avoiding interface jarring and keeping players in a highly immersive environment. Operational efficiency is significantly improved: multi-step operations are simplified to a single "aiming-triggering" step, greatly shortening the time for issuing tactical commands and better adapting to the demands of fast-paced battles.
[0275] Enhanced intuitiveness and fun: Associating commands with body parts (e.g., patting the waist to "squat") aligns with real-life intuition, making them easy to learn and remember, while also increasing the fun and strategic depth of player interaction. Low-interference feedback mechanism: Decentralized prompts and character animations designed for the recipient ensure effective information delivery while minimizing disruption to their primary gameplay activities (such as aiming and observing).
[0276] The following description continues to illustrate the exemplary structure of the interactive device 455 in the virtual scene provided in the embodiments of this application as a software module. In some embodiments, such as Figure 2 As shown, the software modules in the interactive device 455 stored in the virtual scene of the memory 450 may include: Display module 4551 is used to display a first virtual object in a virtual scene. The first virtual object includes multiple interactive areas, and different interactive areas are associated with different interactive instructions. The control module 4552 is used to control the first interactive area to be selected when the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object. The response module 4553 is used to, when the first interactive area is selected, respond to a trigger operation on the first interactive area and trigger a first interactive instruction associated with the first interactive area, so that the first virtual object executes the response operation corresponding to the first interactive instruction.
[0277] In some embodiments, the control module 4552 is further configured to display a crosshair in the virtual scene before the first interactive area is selected, the crosshair being used to indicate the viewpoint of the second virtual object; and when the crosshair is in the first interactive area of the first virtual object, to determine that the viewpoint of the second virtual object is pointing to the first interactive area.
[0278] In some embodiments, the control module 4552 is further configured to display an interaction identifier in each interaction area of the first virtual object when the crosshair is in the display area of the first virtual object; wherein the interaction identifier is used to provide a prompt, and the marked interaction area is associated with a corresponding interaction instruction.
[0279] In some embodiments, the control module 4552 is further configured to, when detecting that the view of the second virtual object is pointing to the first interactive area of the first virtual object, cancel the display of the interactive identifier corresponding to the first interactive area and display the first interactive area using a target display style; wherein, the target display style is used to indicate that the first interactive area is in a selected state; The control module 4552 is also used to maintain the display of the corresponding interaction identifier for the interaction areas other than the first interaction area in the plurality of interaction areas.
[0280] In some embodiments, the control module 4552 is further configured to control the first interactive area to be selected when it is detected that the view of the second virtual object is pointing to the first interactive area of the first virtual object and the distance between the first virtual object and the second virtual object is less than a first distance threshold.
[0281] In some embodiments, the control module 4552 is further configured to display a first prompt message for the first interaction area when the view of the second virtual object is detected to be pointing to the first interaction area of the first virtual object; wherein the first prompt message is used to prompt at least one of the following: the method of triggering the first interaction area, the response operation corresponding to the first interaction instruction, and the interaction action performed by the second virtual object on the first virtual object.
[0282] In some embodiments, the response module 4553 is further configured to, if the first interactive area corresponds to a limb part of the first virtual object, in response to a triggering operation on the first interactive area, trigger a first interactive instruction for controlling the first virtual object to perform a corresponding response operation based on the limb part; or... If the first interactive area corresponds to the target virtual item carried by the first virtual object, in response to the triggering operation for the first interactive area, a first interactive instruction is triggered to control the first virtual object to perform a corresponding response operation for the target virtual item.
[0283] In some embodiments, the first virtual object and the second virtual object belong to the same group; the response module 4553 is further configured to, when the first interaction area is selected, respond to a trigger operation on the first interaction area, if the current interaction mode is a first interaction mode, send a first interaction instruction associated with the first interaction area to the electronic device corresponding to the first virtual object; if the current interaction mode is a second interaction mode, send a first interaction instruction associated with the first interaction area to the electronic device corresponding to each virtual object in the group.
[0284] In some embodiments, the response module 4553 is further configured to respond to a trigger operation on the first interactive area, and if the distance between the first virtual object and the second virtual object is less than a second distance threshold, display the process of the second virtual object performing an interactive action on the first interactive area.
[0285] In some embodiments, the response module 4553 is further configured to perform at least one of the following when a second interaction instruction associated with the second interaction area of the second virtual object is triggered: displaying a second prompt message in the virtual scene, the second prompt message being used to prompt the second virtual object to perform a response operation corresponding to the second interaction instruction; and outputting voice corresponding to the second prompt message.
[0286] In some embodiments, the second prompt information includes an action identifier and a display effect; the response module 4553 is further configured to display an action identifier corresponding to the target action in the virtual scene when the response operation corresponding to the second interaction instruction includes controlling the second virtual object to perform a target action; the action identifier is used to prompt the second virtual object to perform the target action; and to display a display effect corresponding to the target action, wherein different actions correspond to different display effects.
[0287] In some embodiments, the second interaction instruction is triggered based on the perspective of the third virtual object, and the response module 4553 is further configured to display at least one of the following in the associated area of the second prompt information: the object identifier of the third virtual object, the direction identifier corresponding to the third virtual object, and the attribute value of the third virtual object; wherein, the direction identifier is used to characterize the direction of the third virtual object relative to the second virtual object in the virtual scene.
[0288] In some embodiments, the response module 4553 is further configured to, after displaying the second prompt information in the virtual scene, control the second virtual object to execute the response operation corresponding to the second interaction instruction in response to the triggering operation of the second prompt information; when the response operation corresponding to the second interaction instruction is completed, display the process of the second virtual object executing a feedback action; wherein the feedback action is used to indicate that the second virtual object has completed executing the response operation corresponding to the second interaction instruction.
[0289] In some embodiments, the plurality of interactive areas correspond to at least two different priorities. The response module 4553 is further configured to respond to a triggering operation on the first interactive area, trigger a first interactive instruction associated with the first interactive area, and control the priority of the first interactive instruction to correspond to the priority of the first interactive area; wherein, the priority of the first interactive instruction is associated with the execution duration of the response operation, and different priorities are associated with different execution durations.
[0290] In some embodiments, the response module 4553 is further configured to, when detecting that the view of the second virtual object is pointing to the first interactive area of the first virtual object, if the first interactive instruction associated with the first interactive area is used to move the first virtual object in the virtual scene, then display at least one location candidate in the display area of the first interactive area; wherein the location candidate is associated with a movement position, and the at least one location candidate includes a target location candidate. The response module 4553 is further configured to, when the first interactive area is selected, respond to a triggering operation for the target location candidate displayed in the first interactive area, trigger a first interactive instruction associated with the first interactive area, so that the first virtual object performs a response operation to move to the movement position associated with the target location candidate.
[0291] In some embodiments, the display module 4551 is further configured to, in response to a triggering operation on the first interactive area, trigger a first interactive instruction associated with the first interactive area, and then display a message display area in the virtual scene; in the message display area, display a target message corresponding to the first interactive instruction; wherein the content of the target message includes: the second virtual object instructing the first virtual object to perform a response operation corresponding to the first interactive instruction.
[0292] In some embodiments, the response module 4553 is further configured to, when detecting that the viewpoint of the second virtual object is pointing to the first interactive area of the first virtual object, after controlling the first interactive area to be in a selected state, and when the first virtual object moves in the virtual scene, if the duration of the first interactive area being in a selected state does not reach a first duration, then the viewpoint of the second virtual object is synchronously adjusted according to the movement trajectory of the first virtual object; if the duration of the first interactive area being in a selected state reaches the first duration, then the control of the first interactive area to be in a selected state is cancelled, and the synchronous adjustment of the viewpoint of the second virtual object is cancelled.
[0293] In some embodiments, the response module 4553 is further configured to, in response to a triggering operation on the first interactive area, after triggering a first interactive instruction associated with the first interactive area, display a withdrawal control in the associated area of the first interactive area; if the first virtual object does not execute the response operation corresponding to the first interactive instruction within a second time period, withdraw the first interactive instruction in response to a triggering operation on the withdrawal control; and, within the second time period, when the first virtual object executes the response operation corresponding to the first interactive instruction, cancel the display of the withdrawal control.
[0294] In some embodiments, the response module 4553 is further configured to display a small map in the virtual scene and display the object identifier of the first virtual object in the small map; in response to a trigger operation for the first interaction area, display a status identifier in the display area of the object identifier of the first virtual object; wherein the status identifier is used to indicate the execution status of the response operation of the first virtual object in response to the first interaction instruction.
[0295] In some embodiments, the display module 4551 is further configured to, within a third time period, when the third interaction instructions associated with the multiple third interaction areas of the second virtual object are triggered respectively, if the priorities of the interaction instructions associated with the multiple third interaction areas are different, adopt different display styles in the virtual scene to display the third prompt information corresponding to the third interaction instructions under different priorities. The third prompt information is used to prompt the second virtual object to perform the response operation corresponding to the third interaction instruction.
[0296] In some embodiments, the response module 4553 is further configured to, in response to a triggering operation on the first interactive area, after triggering a first interactive instruction associated with the first interactive area, if the first virtual object does not execute the response operation corresponding to the first interactive instruction within a fourth time period, and the first virtual object is not within the field of view of the second virtual object, display a reminder control; in response to a triggering operation on the reminder control, send reminder information to the electronic device corresponding to the first virtual object; wherein, the reminder information is used to remind the first virtual object to execute the response operation corresponding to the first interactive instruction.
[0297] This application provides a computer program product, which includes a computer program or computer-executable instructions. When the computer-executable instructions or the computer program are executed by a processor, the processor will execute the interaction method in the virtual scene provided in this application embodiment, for example, such as... Figure 3 The illustrated method describes an interaction method in a virtual scene. The processor of an electronic device reads the computer program or computer-executable instructions from a computer-readable storage medium, and executes the computer program or computer-executable instructions, causing the electronic device to perform the interaction method in the virtual scene described in the embodiments of this application.
[0298] This application provides a computer-readable storage medium storing computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the processor will execute the interaction method in the virtual scene provided in this application embodiment, for example, such as... Figure 3 The interactive methods shown in the virtual scene.
[0299] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.
[0300] In some embodiments, computer-executable instructions may take the form of programs, software, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
[0301] As an example, computer-executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple co-located files (e.g., files that store one or more modules, subroutines, or code sections).
[0302] As an example, computer-executable instructions can be deployed to execute on a single electronic device, or on multiple electronic devices located at one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.
[0303] In the virtual scene interaction method provided in this application embodiment, a first virtual object can be displayed in the virtual scene. The first virtual object includes multiple interaction areas, and different interaction areas are associated with different interaction commands. When the view of the second virtual object is detected to be pointing to the first interaction area of the first virtual object, the first interaction area is controlled to be in a selected state. When the first interaction area is in a selected state, in response to the triggering operation for the first interaction area, the first interaction command associated with the first interaction area is triggered, so that the first virtual object executes the response operation corresponding to the first interaction command.
[0304] The interaction method in the virtual scene provided by the embodiments of this application allows for multiple interaction areas for a first virtual object. Different interaction areas are associated with different interaction commands, enabling different interaction commands to be triggered for different interaction areas of a single first virtual object. Consequently, the first virtual object can execute the response operation corresponding to the interaction command, enriching the interaction methods between different virtual objects. Furthermore, by controlling the perspective of the second virtual object, the first interaction area can be quickly selected. Combined with the trigger operation for the first interaction area, the first interaction command can be quickly triggered, improving the efficiency of human-computer interaction, enriching the displayed content, improving the resource utilization of electronic devices, and solving the aforementioned technical problem 1.
[0305] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.
Claims
1. An interaction method in a virtual scene, characterized in that, The method includes: Display a first virtual object in a virtual scene. The first virtual object includes multiple interactive areas, and different interactive areas are associated with different interactive commands. When the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, the first interactive area is controlled to be selected. When the first interactive area is selected, in response to a trigger operation on the first interactive area, a first interactive instruction associated with the first interactive area is triggered, so that the first virtual object executes the response operation corresponding to the first interactive instruction.
2. The method according to claim 1, characterized in that, Before the first interactive area is selected, the method further includes: A crosshair is displayed in the virtual scene, and the crosshair is used to indicate the viewpoint of the second virtual object; When the crosshair is in the first interaction area of the first virtual object, it is determined that the view of the second virtual object is pointing to the first interaction area.
3. The method according to claim 2, characterized in that, The method further includes: When the crosshair is in the display area of the first virtual object, an interaction identifier is displayed in each of the interaction areas of the first virtual object; The interactive identifier is used to provide prompts, and the marked interactive area is associated with a corresponding interactive instruction.
4. The method according to claim 3, characterized in that, When the viewpoint of the second virtual object is detected to be pointing towards the first interactive area of the first virtual object, controlling the first interactive area to be selected includes: When the viewpoint of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, the interactive identifier corresponding to the first interactive area is de-displayed, and the first interactive area is displayed using the target display style; wherein, the target display style is used to indicate that the first interactive area is in a selected state; The method further includes: For the interactive areas other than the first interactive area among the multiple interactive areas, the corresponding interactive identifiers are kept displayed.
5. The method according to claim 1, characterized in that, When the viewpoint of the second virtual object is detected to be pointing towards the first interactive area of the first virtual object, controlling the first interactive area to be selected includes: When the viewpoint of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, and the distance between the first virtual object and the second virtual object is less than a first distance threshold, the first interactive area is controlled to be selected.
6. The method according to claim 1, characterized in that, The method further includes: When the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, a first prompt message is displayed for the first interactive area; The first prompt information is used to prompt at least one of the following: the method of triggering the first interactive area, the response operation corresponding to the first interactive instruction, and the interactive action performed by the second virtual object on the first virtual object.
7. The method according to claim 1, characterized in that, The step of triggering a first interactive instruction associated with the first interactive area in response to a trigger operation targeting the first interactive area includes: If the first interactive area corresponds to a limb part of the first virtual object, in response to a trigger operation targeting the first interactive area, a first interactive instruction is triggered to control the first virtual object to perform a corresponding response operation based on the limb part; or... If the first interactive area corresponds to the target virtual item carried by the first virtual object, in response to the triggering operation for the first interactive area, a first interactive instruction is triggered to control the first virtual object to perform a corresponding response operation for the target virtual item.
8. The method according to claim 1, characterized in that, The first virtual object and the second virtual object belong to the same group; when the first interactive area is selected, in response to a trigger operation on the first interactive area, triggering the first interactive instruction associated with the first interactive area includes: When the first interactive area is selected, in response to the trigger operation on the first interactive area, if the current interactive mode is the first interactive mode, the first interactive instruction associated with the first interactive area is sent to the electronic device corresponding to the first virtual object. If the current interaction mode is the second interaction mode, then the first interaction instruction associated with the first interaction area is sent to the electronic device corresponding to each virtual object in the group.
9. The method according to claim 1, characterized in that, The method further includes: In response to a trigger operation targeting the first interactive area, if the distance between the first virtual object and the second virtual object is less than a second distance threshold, the process of the second virtual object performing an interactive action targeting the first interactive area is displayed.
10. The method according to claim 1, characterized in that, The method further includes: When the second interaction instruction associated with the second interaction area of the second virtual object is triggered, at least one of the following is executed: A second prompt message is displayed in the virtual scene. The second prompt message is used to prompt the second virtual object to perform the response operation corresponding to the second interaction command. Output the voice message corresponding to the second prompt.
11. The method according to claim 10, characterized in that, The second prompt information includes an action identifier and display effects; displaying the second prompt information in the virtual scene includes: When the response operation corresponding to the second interaction instruction includes controlling the second virtual object to perform a target action, an action identifier corresponding to the target action is displayed in the virtual scene; the action identifier is used to prompt the second virtual object to perform the target action. Display effects corresponding to the target action, wherein different actions correspond to different display effects.
12. The method according to claim 10, characterized in that, The second interaction command is triggered from the perspective of a third virtual object, and the method further includes: In the associated area of the second prompt information, at least one of the following is displayed: the object identifier of the third virtual object, the direction identifier corresponding to the third virtual object, and the attribute value of the third virtual object; The direction identifier is used to represent the direction of the third virtual object relative to the second virtual object in the virtual scene.
13. The method according to claim 10, characterized in that, After displaying the second prompt information in the virtual scene, the method further includes: In response to a trigger operation on the second prompt information, control the second virtual object to execute the response operation corresponding to the second interaction instruction; When the response operation corresponding to the second interactive instruction is completed, the process of the second virtual object performing the feedback action is displayed; The feedback action is used to indicate that the second virtual object has completed the response operation corresponding to the second interaction instruction.
14. The method according to claim 1, characterized in that, The plurality of interactive areas correspond to at least two different priorities, and the step of triggering a first interactive instruction associated with the first interactive area in response to a triggering operation on the first interactive area includes: In response to a trigger operation targeting the first interactive area, a first interactive instruction associated with the first interactive area is triggered, and the priority of the first interactive instruction is controlled to correspond to the priority of the first interactive area. The priority of the first interactive instruction is associated with the execution duration of the response operation, and different priorities are associated with different execution durations.
15. The method according to any one of claims 1-14, characterized in that, The method further includes: When the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object, if the first interactive instruction associated with the first interactive area is used to move the first virtual object in the virtual scene, then at least one location candidate is displayed in the display area of the first interactive area. Wherein, the location candidate is associated with a moving location, and the at least one location candidate includes a target location candidate; When the first interactive area is selected, in response to a triggering operation on the first interactive area, a first interactive instruction associated with the first interactive area is triggered, so that the first virtual object executes the response operation corresponding to the first interactive instruction, including: When the first interactive area is selected, in response to the triggering operation of the target location candidate displayed in the first interactive area, a first interactive instruction associated with the first interactive area is triggered, so that the first virtual object performs a response operation to move to the movement position associated with the target location candidate.
16. The method according to any one of claims 1-14, characterized in that, After triggering the first interaction instruction associated with the first interaction area in response to a trigger operation targeting the first interaction area, the method further includes: The message display area is displayed in the virtual scene; The target message corresponding to the first interaction instruction is displayed in the message display area; The target message includes the following: the second virtual object instructs the first virtual object to perform the response operation corresponding to the first interaction instruction.
17. The method according to any one of claims 1-14, characterized in that, When the viewpoint of the second virtual object is detected to be pointing towards the first interactive area of the first virtual object, and the first interactive area is controlled to be selected, the method further includes: If the duration of the first interactive area being selected does not reach the first duration, the perspective of the second virtual object is adjusted synchronously according to the movement trajectory of the first virtual object when the first virtual object moves in the virtual scene. If the first interactive area is selected for a duration equal to the first duration, then the selection of the first interactive area is cancelled, and the synchronous adjustment of the view of the second virtual object is cancelled.
18. The method according to any one of claims 1-14, characterized in that, After triggering the first interaction instruction associated with the first interaction area in response to a trigger operation targeting the first interaction area, the method further includes: In the associated area of the first interactive area, display the undo control; If the first virtual object does not execute the response operation corresponding to the first interaction instruction within the second time period, the first interaction instruction is withdrawn in response to the trigger operation of the withdrawal control; During the second time period, when the first virtual object executes the response operation corresponding to the first interaction instruction, the undo control is canceled from display.
19. The method according to any one of claims 1-14, characterized in that, The method further includes: A minimap is displayed in the virtual scene, and the object identifier of the first virtual object is displayed on the minimap; In response to a trigger operation on the first interactive area, a status indicator is displayed in the display area of the object identifier of the first virtual object; The status identifier is used to indicate the execution status of the first virtual object's response operation to the first interaction instruction.
20. The method according to any one of claims 1-14, characterized in that, The method further includes: During the third time period, when the third interaction instructions associated with the multiple third interaction areas of the second virtual object are triggered, if the interaction instructions associated with the multiple third interaction areas have different priorities, different display styles are adopted in the virtual scene to display the third prompt information corresponding to the third interaction instructions under different priorities. The third prompt information is used to prompt the second virtual object to perform the response operation corresponding to the third interaction instruction.
21. The method according to any one of claims 1-14, characterized in that, After triggering the first interaction instruction associated with the first interaction area in response to a trigger operation targeting the first interaction area, the method further includes: If the first virtual object does not execute the response operation corresponding to the first interaction instruction within the fourth time period, and the first virtual object is not within the field of view of the second virtual object, a reminder control is displayed; In response to a trigger operation on the reminder control, a reminder message is sent to the electronic device corresponding to the first virtual object; The reminder information is used to remind the first virtual object to perform the response operation corresponding to the first interaction instruction.
22. An interactive device in a virtual scene, characterized in that, The device includes: The display module is used to display a first virtual object in a virtual scene. The first virtual object includes multiple interactive areas, and different interactive areas are associated with different interactive commands. The control module is used to control the first interactive area to be selected when the view of the second virtual object is detected to be pointing to the first interactive area of the first virtual object; The response module is configured to, when the first interactive area is selected, respond to a trigger operation on the first interactive area and trigger a first interactive instruction associated with the first interactive area, so that the first virtual object executes the response operation corresponding to the first interactive instruction.
23. An electronic device, characterized in that, The electronic device includes: Memory is used to store executable instructions or computer programs. A processor, when executing computer-executable instructions or computer programs stored in the memory, implements the interaction method in the virtual scene as described in any one of claims 1 to 21.
24. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, they implement the interaction method in the virtual scene as described in any one of claims 1 to 21.
25. A computer program product comprising computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, they implement the interaction method in the virtual scene as described in any one of claims 1 to 21.