Crosshair control method and apparatus, computer device, and storage medium

By responding to user operations in the game and automatically adjusting the position and direction of the sight, the problem of low efficiency of adjusting sight in the battle game is solved, the speed and accuracy of aiming at virtual objects is improved, and the user experience is improved.

WO2024234832A1PCT designated stage expired Publication Date: 2024-11-21TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/083469
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-15
Filing Date
2024-03-25
Publication Date
2024-11-21

AI Technical Summary

Technical Problem

In battle games, the process of users adjusting their sights to target virtual objects is inefficient, resulting in inconvenient operation.

Method used

By displaying the sight in the virtual scene interface and responding to the user's movement operation, the movement direction and adsorption point of the sight are determined, so that the sight automatically moves to the adsorption point of the virtual object, assisting the user in quickly aiming.

Benefits of technology

It improves the efficiency of users targeting virtual objects through sight star, reduces operation steps, and improves the gaming experience and human-computer interaction efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024083469_21112024_PF_FP_ABST
    Figure CN2024083469_21112024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in embodiments of the present application is a crosshair control method, executed by a computer device. The method comprises: a terminal displays a scene interface of a virtual scene, and displays a first virtual object and a crosshair in the scene interface (201); when the crosshair is located outside the attraction range of the first virtual object, in response to a first movement operation on the crosshair, the terminal determines a first movement direction of the crosshair indicated by the first movement operation (202); in response to the crosshair being located within the attraction range and the first movement direction pointing to the first virtual object, on the basis of the motion posture of the first virtual object, the terminal determines a first attraction point located in the first virtual object (203); and the terminal displays, in the scene interface, the crosshair moving towards the first attraction point (204).
Need to check novelty before this filing date? Find Prior Art

Description

Crosshair control method, device, computer equipment and storage medium

[0001] Related applications

[0002] This application claims priority to Chinese patent application number 2023105457760, filed on May 15, 2023, entitled “Sight control method, device, computer equipment and storage medium,” the entire text of which is incorporated herein by reference. Technical Field

[0003] The embodiments of the present application relate to the field of computer technology, and in particular to a crosshair control method, device, computer equipment, and storage medium. Background Art

[0004] With the development of computer technology, the types of games are becoming increasingly diverse. In current competitive games, a crosshair is often displayed within the scene interface of a virtual scene, allowing users to aim at virtual objects within the scene and interact with them. However, adjusting the crosshair to aim at virtual objects requires repeated adjustments, which is inefficient.

[0005] Summary of the Invention

[0006] Embodiments of the present application provide a crosshair control method, apparatus, computer equipment, and storage medium.

[0007] In one aspect, a crosshair control method is provided, which is executed by a computer device, and the method comprises:

[0008] Displaying a scene interface of a virtual scene, wherein a first virtual object and a crosshair are displayed in the scene interface;

[0009] When the crosshair is outside the adsorption range of the first virtual object, in response to a first movement operation on the crosshair, determining a first movement direction of the crosshair indicated by the first movement operation;

[0010] When the crosshair is within the adsorption range of the first virtual object and the first movement direction points to the first virtual object, determining a first adsorption point located in the first virtual object based on the motion posture of the first virtual object; and

[0011] In the scene interface, the crosshair is displayed moving toward the first adsorption point.

[0012] In another aspect, a crosshair control device is provided, comprising:

[0013] A display module, configured to display a scene interface of a virtual scene, wherein the first virtual object and a crosshair are displayed in the scene interface;

[0014] a determining module configured to, when the crosshair is outside the adsorption range of the first virtual object, determine a first movement direction of the crosshair indicated by the first movement operation in response to a first movement operation on the crosshair;

[0015] an acquisition module, configured to determine, in response to the crosshair being within the adsorption range of the first virtual object and the first movement direction pointing toward the first virtual object, a first adsorption point located in the first virtual object based on a motion posture of the first virtual object;

[0016] The display module is further configured to display, in the scene interface, the movement of the crosshair toward the first adsorption point.

[0017] On the other hand, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed by the crosshair control method as described in the above aspects.

[0018] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the operations performed by the crosshair control method as described in the above aspects.

[0019] On the other hand, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the operations performed by the crosshair control method as described in the above aspects are implemented.

[0020] The details of one or more embodiments of the present application are set forth in the accompanying drawings and the description below. Other features and advantages of the present application will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0022] FIG1 is a schematic diagram of a structure of an implementation environment provided by an embodiment of the present application;

[0023] FIG2 is a flow chart of a crosshair control method provided in an embodiment of the present application;

[0024] FIG3 is a flow chart of another crosshair control method provided in an embodiment of the present application;

[0025] FIG4 is a schematic diagram of an adsorption range and an auxiliary aiming line provided in an embodiment of the present application;

[0026] FIG5 is a schematic diagram of another adsorption range and auxiliary aiming line provided in an embodiment of the present application;

[0027] FIG6 is a schematic diagram of another adsorption range and auxiliary aiming line provided in an embodiment of the present application;

[0028] FIG7 is a schematic diagram of another adsorption range and auxiliary aiming line provided in an embodiment of the present application;

[0029] FIG8 is a schematic diagram of another adsorption range and auxiliary aiming line provided in an embodiment of the present application;

[0030] FIG9 is a schematic diagram of a crosshair moving toward a first virtual object provided by an embodiment of the present application;

[0031] FIG10 is a flow chart of another crosshair control method provided in an embodiment of the present application;

[0032] FIG11 is a flow chart of another crosshair control method provided in an embodiment of the present application;

[0033] FIG12 is a flow chart of another crosshair control method provided in an embodiment of the present application;

[0034] FIG13 is a schematic structural diagram of a crosshair control device provided in an embodiment of the present application;

[0035] FIG14 is a schematic structural diagram of another crosshair control device provided in an embodiment of the present application;

[0036] FIG15 is a schematic structural diagram of a terminal provided in an embodiment of the present application;

[0037] FIG16 is a schematic diagram of the structure of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0039] As used herein, the terms "first," "second," "third," "fourth," and the like may be used to describe various concepts herein, but unless otherwise specified, these concepts are not limited by these terms. These terms are merely used to distinguish one concept from another. For example, a first moving speed may be referred to as a second moving speed, and similarly, a second moving speed may be referred to as a first moving speed without departing from the scope of this application.

[0040] As used herein, the terms "at least one," "plurality," "each," and "any" include one, two, or more, "plurality" includes two or more, "each" refers to each of the corresponding plurality, and "any" refers to any one of the plurality. For example, if the plurality of virtual objects includes three virtual objects, "each" refers to each of the three virtual objects, and "any" refers to any one of the three virtual objects, which may be the first virtual object, the second virtual object, or the third virtual object.

[0041] To facilitate understanding of the embodiments of the present application, some terms involved in the embodiments of the present application are first explained:

[0042] Virtual scene: It is a virtual scene displayed (or provided) when the application is running on the terminal, that is, the scene displayed when the terminal runs the game. For example, if the game is a shooting game, the virtual scene is the scene displayed when the terminal runs the game. The virtual scene is a simulation environment of the real world, or a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene is any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene or a three-dimensional virtual scene, and this application does not limit this. For example, the virtual scene includes the sky, land, ocean, etc., and the land includes environmental elements such as deserts and cities. The user can control virtual objects to move in the virtual scene. Of course, the virtual scene also includes virtual props, such as virtual throwing objects, virtual buildings, virtual machinery and other props. The virtual scene can also be used to simulate real environments under different weather conditions, such as sunny days, rainy days, foggy days or night weather. A variety of scene elements enhance the diversity and authenticity of the virtual scene. Taking the open virtual world provided by the virtual scene for the game as an example, the development of the virtual world indicates that the virtual scene in the game is completely free and open. Players can control virtual objects to move forward and explore freely in any direction. The distance between the boundaries of various directions is very large. At the same time, there are virtual objects of various shapes and sizes in the virtual scene, which can produce various physical collisions or interactions with entities such as virtual objects controlled by players and artificial intelligence (AI) objects.

[0043] Virtual object: refers to a virtual character that can move in a virtual scene. The movable object is a virtual person, virtual animal, cartoon character, etc. The virtual object is a virtual image in the virtual scene that is used to represent the user. The virtual scene includes multiple virtual objects, each of which has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene. The virtual object can perform activities such as crawling, walking, running, jumping, driving, picking up, shooting, attacking, throwing, etc. in the virtual scene. Optionally, the virtual object is a character controlled by operation on the client, or an artificial intelligence object set in the virtual environment through training, or a non-player character (NPC) set in the virtual scene. Optionally, the virtual object is a virtual character that competes in the virtual scene.

[0044] Virtual props: These are props that can be used with virtual objects in a virtual scene. For example, virtual props can be shootable props or virtual vehicles. In a virtual scene, virtual objects can interact with other virtual objects using virtual props.

[0045] First-Person Shooter (FPS) Games: First-Person Shooters are a subgenre of Action Games (ACT). Like Real-Time Strategy Games (RTS), their rapid global popularity has catapulted them into a distinct genre. First-Person Shooters (FPS) are shooting games played from a first-person perspective (the player's subjective viewpoint). The virtual scene in the game is viewed from the perspective of a virtual object controlled by the terminal. In FPS games, users no longer manipulate virtual objects on the screen as in other games. Instead, they experience the visual impact of the game firsthand, significantly enhancing the game's sense of initiative and realism. Typically, FPS games offer richer storylines, exquisite graphics, and vivid sound effects.

[0046] Aiming Down Sight (ADS): is an observation device usually made of metal. When not equipped with a scope, it is used to position the virtual prop and the aiming target on the same straight line to assist the virtual prop in aligning with the specific aiming target. At this time, the angle of the camera will move behind the scope of the virtual prop, allowing the virtual prop to be accurately aimed. It can also provide a certain zoom ratio to provide higher usability at a longer range. When equipped with a scope, a scale or specially designed aiming line is usually provided to magnify the image of the aiming target onto the retina, making aiming easier and more accurate. The magnification is proportional to the diameter of the scope's objective lens. A larger objective lens diameter can make the image clearer and brighter, but it may be accompanied by a narrowing of the field of view at high magnification.

[0047] Hip-fire: In shooting games, it refers to a method of shooting without a scope. This is a primitive aiming method. Because you're shooting at a virtual object without a scope, hip-fire often results in less accurate aiming, prone to deviation or shakiness.

[0048] Crosshair: Located in the center of the field of view in first-person shooters, the crosshair indicates the interaction location of virtual objects. For example, if the virtual object holds a shootable item, the crosshair indicates the landing point of the virtual bullet fired by the virtual object through the shootable item. In first-person shooters that tend to be more gameplay-oriented rather than realistic, the crosshair is located in the center of the screen to assist in aiming the shootable item and represents the flight direction of the shootable item's projectiles.

[0049] Field of View (FOV): Measured in degrees, the field of view of a virtual camera within a virtual scene represents the angular range of images a virtual camera can capture. In first-person perspective games, since the user observes the virtual scene from a first-person perspective, the FOV of a virtual object controlled by the terminal refers to the image displayed within the scene interface, or what appears on the user's terminal screen. This displayed image represents the range of the virtual object's view of the game world.

[0050] Mesh: A collection of vertices and polygons that represents a polyhedron shape in three-dimensional computer graphics. A mesh is usually composed of triangles or simple convex polygons.

[0051] Breathing animation: This simulates the animation state of a player holding a shootable item without any other actions, and can show the virtual object's hand shaking slightly.

[0052] Firing animation: An animation displayed when a shootable item is fired in a shooting game. For example, the firing animation is used to present the movement of the shootable item's virtual parts when the shootable item is fired. It involves the forward and backward movement of the shootable item, the movement of the shooting handle of the shootable item with the bolt, the forward and backward movement of the upper slide of the shootable item, the movement of the movable parts on the shootable item, etc., to enhance the realism and immersion of the firing performance.

[0053] Recoil: The force exerted by a shootable item when it fires any projectile. For example, recoil is the force exerted by the gunpowder gas when a virtual bullet is fired. This pressure pushes the shootable item backward, creating recoil. Generally, the larger the caliber of the shootable item, the greater the recoil.

[0054] Character animation: Animation used to depict the movements of a virtual object holding a shootable item when firing a shootable item in a shooting game. For example, character animation involves the movement of a virtual object when it is subjected to the vertical and horizontal recoil of the shootable item. Such movements include, but are not limited to, the swaying of the virtual object's upper body, the movement of its lower limbs, the vibration of its arms, its head movements, and its facial expressions. This realistically depicts the power of the shootable item when it is fired, enhancing the realism and immersion of shooting games.

[0055] Assisted aiming: First-person shooter games can add an assisted aiming function when they are not operated with the keyboard and mouse. Compared with using a keyboard and mouse to play shooting games, using a handle and touch screen to operate on a mobile terminal usually requires higher operation requirements and is more difficult to operate. Users may not be accustomed to the operation method on the mobile terminal. By adding an assisted aiming function, users can operate the game smoothly on the mobile terminal. In terms of performance, by controlling the rotation of the virtual camera, the crosshairs can be automatically aimed at the target in the field of view. When the crosshairs are within the adsorption range of the target, the assisted aiming function can be triggered. Under the control of the assisted aiming function, the crosshairs are automatically pointed to the target to be aimed at and briefly follow the target.

[0056] Skeleton Attachment: This is the socket attached to the skeleton of the virtual object's object model. The relative position of the skeleton attachment point and the model skeleton remains unchanged, and the skeleton attachment point will move with the movement of the model skeleton.

[0057] It should be noted that the data involved in this application (including but not limited to game data, first correspondences, second correspondences, etc.) are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the game data involved in this application was obtained with full authorization.

[0058] The crosshair control method provided in the embodiment of the present application can be executed by a computer device. Optionally, the computer device is a terminal or a server. Optionally, the server is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Optionally, the terminal is a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, smart voice interaction device, smart home appliance and car terminal, etc., but is not limited to this.

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

[0060] In some embodiments, the crosshair control method is executed by a terminal. FIG1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to FIG1 , the implementation environment includes a terminal 101 and a server 102. The terminal 101 and the server 102 are connected via a wireless or wired network.

[0061] An application provided by the server 102 is installed on the terminal 101. The application supports the scene interface display of the virtual scene, and the terminal 101 can realize functions such as games and message interaction through the application. Optionally, the application is an application in the terminal 101 operating system, or an application provided by a third party. For example, the application is a game application, and the game application has game functions. Of course, the game application can also have other functions, such as shopping functions, navigation functions, message interaction functions, etc. The terminal 101 is a terminal used by any user. The user can operate the virtual objects in the virtual scene through the terminal 101 to perform activities, and the activities include at least one of crawling, walking, running, jumping, driving, picking up, shooting, attacking, and throwing. Optionally, different users use different terminals to control virtual objects, and the virtual objects controlled by different terminals are located in the same virtual scene. In this case, different virtual objects can perform activities.

[0062] The terminal 101 is used to log in to the application based on the user identification, interact with the server 102 through the application to display the scene interface of the virtual scene, display the crosshairs in the scene interface, and can control the movement of the crosshairs to aim at the virtual objects in the virtual scene by moving the crosshairs.

[0063] FIG2 is a flow chart of a crosshair control method provided in an embodiment of the present application, which is executed by a terminal. As shown in FIG2 , the method includes:

[0064] 201. The terminal displays a scene interface of a virtual scene, and displays a first virtual object and a crosshair in the scene interface.

[0065] The crosshair indicates the aiming position, which can be the aiming position when aiming at a first virtual object, or the aiming position when aiming at a second virtual object controlled by the terminal. That is, when the second virtual object controlled by the terminal interacts, the second virtual object will interact with the aiming position indicated by the crosshair. The second virtual object is also the virtual object controlled by the terminal. For example, if the crosshair displayed in the scene interface is located at the head of the first virtual object, that is, the crosshair is aimed at the head of the first virtual object, then the second virtual object controlled by the terminal can subsequently interact with the head of the first virtual object according to the position aimed by the crosshair.

[0066] In the scene interface, the crosshair is located in the center of the scene interface. The crosshair can be displayed in any form, for example, as a dot, or as a cross, or as a combination of a circle and a dot. The first virtual object is any virtual object in the virtual scene, for example, the first virtual object is a virtual object in a different camp than the second virtual object in the virtual scene, or is an artificial intelligence object.

[0067] In an embodiment of the present application, the scene interface also displays a picture of a virtual scene, for example, the scene interface also displays the environment in which the first virtual object is located. In some embodiments, the scene interface may not display the second virtual object, or may display a portion of the second virtual object, or may display the entire second virtual object.

[0068] In some embodiments, the terminal can obtain scene data of the virtual scene, render based on the scene data, generate a scene interface of the virtual scene, and render the three-dimensional first virtual object into the scene interface based on the position and posture of the first virtual object in the virtual scene to form a two-dimensional first virtual object, and determine the position of the crosshair in the scene interface according to the user's control operation, so as to render the crosshair into the scene interface according to the position.

[0069] 202. When the crosshair is outside the adsorption range of the first virtual object, the terminal determines, in response to a first movement operation on the crosshair, a first movement direction of the crosshair indicated by the first movement operation.

[0070] Among them, the adsorption range refers to the range in which the crosshairs is automatically controlled to move to a specific position under certain conditions when the crosshairs is within the adsorption range. The adsorption range has a certain area, and the crosshairs can be moved within the adsorption range under user control, and can also be moved to a specific position under automatic control of the terminal. This specific position is the adsorption point, which means that the crosshairs will automatically move to the adsorption point under certain conditions, showing the effect of adsorbing the crosshairs. This condition is the condition for determining whether the user has the intention to move the crosshairs to the first virtual object. The adsorption range is the range including the first virtual object, and can be centered on the first virtual object. The adsorption range can be of any shape. For example, the adsorption range is a rectangular range centered on the first virtual object, or a circular range centered on the first virtual object. In an embodiment of the present application, the first virtual object is located within the adsorption range, which is equivalent to setting a boundary of the adsorption range around the first virtual object. If the crosshairs is within the boundary, it means that the crosshairs is within the adsorption range.

[0071] In an embodiment of the present application, the user can control the movement of the crosshairs by triggering a movement operation through the terminal, so that the crosshairs is aimed at a virtual object, so as to subsequently interact with the aimed virtual object.

[0072] The first movement operation is any form of operation, for example, a drag operation of the crosshairs, or a triggering operation of a movement option of the crosshairs. The movement option is used to control the movement of the crosshairs in the scene interface. The first movement direction is the movement direction indicated by the first movement operation, that is, the direction in which the user wants to control the movement of the crosshairs when the user triggers the first movement operation through the terminal.

[0073] 203. In response to the crosshair being within the adsorption range and the first movement direction pointing to the first virtual object, the terminal determines a first adsorption point located in the first virtual object based on a motion posture of the first virtual object.

[0074] In the embodiment of the present application, the first virtual object can exhibit a variety of motion postures, for example, the first virtual object can exhibit motion postures such as running, walking, standing still, squatting, and jumping. When the first virtual object exhibits different motion postures, the relative positions of various parts of the first virtual object in the virtual scene may be different. When controlling the crosshairs to move toward the first virtual object to aim at the first virtual object, the position at which the crosshairs aims at the first virtual object will be different if the first virtual object is in different motion postures. In other words, the position at which the crosshairs aims at the first virtual object will be related to the motion posture of the first virtual object.

[0075] In an embodiment of the present application, the first movement direction of the first movement operation of the crosshairs points to the first virtual object, indicating that the first movement direction is the direction pointing to the first virtual object, which can reflect that the user intends to control the crosshairs to aim at the first virtual object. The virtual objects in the virtual scene are provided with an adsorption range, which indicates the range within which the assisted aiming function is triggered. The assisted aiming function instructs the crosshairs to aim at the virtual object, that is, the assisted aiming function instructs the crosshairs to be controlled to assist the crosshairs in aiming at the virtual object as quickly as possible. When the crosshairs is within the adsorption range of the first virtual object, once it is determined that the user intends to control the crosshairs to aim at the first virtual object, the assisted aiming function is triggered. Based on the motion posture of the first virtual object, a first adsorption point located in the first virtual object is determined so that the determined first adsorption point matches the motion posture. This allows the crosshairs to be adsorbed on the first adsorption point when subsequently controlling the crosshairs to aim at the first virtual object, thereby assisting the crosshairs in aiming at the first virtual object as quickly as possible, thereby ensuring that the assisted aiming can adapt to the motion posture of the first virtual object.

[0076] 204. In the scene interface, the terminal displays the crosshairs moving toward the first adsorption point.

[0077] In an embodiment of the present application, when the first adsorption point on the first virtual object is determined, the crosshairs is displayed in the scene interface moving toward the first adsorption point to show that the crosshairs moves toward the first virtual object, so that the crosshairs can aim at the first virtual object as soon as possible.

[0078] In the solution provided by the embodiment of the present application, the virtual objects in the virtual scene are set with an adsorption range. The crosshairs are located within the adsorption range of a certain virtual object. When the user controls the crosshairs to approach the first virtual object, the first adsorption point located in the first virtual object is determined based on the motion posture of the first virtual object, so that the crosshairs moves toward the first adsorption point, so that the crosshairs can aim at the first virtual object as soon as possible. This auxiliary aiming method can adapt to various motion postures of the first virtual object, so that the crosshairs moves toward the first adsorption point in the auxiliary aiming line that matches the motion posture, so as to avoid the situation where the aiming accuracy of the first virtual object is low under different motion postures, facilitates the user to aim at the virtual object through the crosshairs, and ensures that the expected effect of the crosshairs aiming at the first virtual object is closer to the result of the user's own operation, thereby ensuring the user's sense of control, improving the efficiency of human-computer interaction, and thus improving the user experience.

[0079] Based on the embodiment shown in Figure 2, the embodiment of the present application will only trigger the auxiliary aiming function when the second movement speed of the first movement operation is greater than a preset speed threshold, so as to control the crosshairs to move toward the first adsorption point in the aiming auxiliary line of the first virtual object, so that the crosshairs is adsorbed on the first adsorption point to achieve aiming at the first virtual object. The specific process is detailed in the following embodiment.

[0080] FIG3 is a flow chart of a crosshair control method provided in an embodiment of the present application, which is executed by a terminal. As shown in FIG3 , the method includes:

[0081] 301. The terminal displays a scene interface of a virtual scene, and displays a first virtual object and a crosshair in the scene interface.

[0082] In a possible implementation, a second virtual object controlled by the terminal is also displayed in the scene interface.

[0083] 302. When the crosshair is outside the adsorption range of the first virtual object, the terminal determines, in response to a first movement operation on the crosshair, a first movement direction of the crosshair indicated by the first movement operation.

[0084] The second movement speed is the movement speed of the first movement operation.

[0085] In one possible implementation, the first movement operation on the aiming star is a sliding operation of the user on the screen of the terminal, then step 302 includes: in response to detecting the sliding operation on the screen of the terminal, the terminal determines the direction from the starting point of the sliding operation to the end point as the sliding direction of the sliding operation, and determines the ratio of the distance between the starting point and the end point to the sliding duration as the sliding speed of the sliding operation.

[0086] The sliding operation is the first movement operation on the aiming star, the sliding direction of the sliding operation is the first movement direction, and the sliding speed of the sliding operation is the second movement speed of the first movement operation.

[0087] In an embodiment of the present application, when the terminal displays a scene interface through the screen, the sliding operation triggered by the user on the screen of the terminal is an operation to move the crosshairs displayed in the scene interface, that is, the user can move the crosshairs by sliding on the screen of the terminal to adjust the position of the crosshairs in the virtual scene. The direction from the starting point of the sliding operation to the end point is the sliding direction of the sliding operation. The sliding duration is the time it takes for the user to slide from the starting point to the end point when the sliding operation is triggered. The distance between the starting point and the end point is the displacement of the sliding operation, and the ratio of the displacement to the sliding duration is the sliding speed of the sliding operation.

[0088] In an embodiment of the present application, the user can control the movement of the crosshair by sliding on the screen of the terminal to adjust the position of the crosshair in the virtual scene, and determine the sliding direction and sliding speed based on the starting point and end point of the sliding operation. This not only improves the convenience of controlling the movement of the crosshair, but also ensures the accuracy of the determined sliding direction and sliding speed, thereby ensuring the accuracy of subsequent control of the movement of the crosshair.

[0089] Optionally, the process of determining the sliding direction of the sliding operation includes: constructing a vector from the starting point to the ending point based on coordinates of the starting point and the ending point on the screen, where the vector is used to represent the first moving direction.

[0090] In the embodiment of the present application, a vector is formed based on the coordinates of the starting point and the ending point of the sliding operation, and the first moving direction is represented in the form of a vector to ensure the accuracy of the determined first moving direction.

[0091] Optionally, the sliding speed is expressed as the number of pixels moving per unit time, and the process of determining the sliding speed of the sliding operation includes: determining the number of pixels between the starting point and the end point of the sliding operation, and determining the ratio of the number of pixels to the sliding duration as the sliding speed.

[0092] In one possible implementation, the crosshairs is located at the center of the scene interface, the first moving direction is the rotation direction of the virtual camera in the virtual scene, the second moving speed is the rotation angle of the virtual camera in the virtual scene, and the first moving operation on the crosshairs is a sliding operation of the user on the screen of the terminal. Then, step 302 includes: the terminal responds to the sliding operation on the crosshairs, determines the direction from the starting point to the end point of the sliding operation as the rotation direction of the virtual camera in the virtual scene, determines the ratio between the distance between the starting point and the end point and the sliding time as the sliding speed of the sliding operation, maps the sliding speed of the sliding operation to the virtual scene, and obtains the rotation speed of the virtual camera.

[0093] The second moving speed is expressed in the form of an angle, which is equivalent to the angle of rotation per unit time.

[0094] In an embodiment of the present application, the picture displayed in the scene interface is a picture captured by a virtual camera in a virtual scene, and the crosshairs are always located in the center of the scene interface. When the user moves the crosshairs through the terminal, only the terminal controls the rotation of the virtual camera in the virtual scene to change the picture displayed in the scene interface, but the crosshairs are always displayed in the center of the scene interface. However, due to the change in the picture displayed in the scene interface, it is equivalent to the position of the crosshairs in the virtual scene changing. Optionally, the position of the crosshairs is equivalent to the projection of the line of sight of the virtual camera on the scene interface. For example, the intersection of the ray along the line of sight of the virtual camera and the screen of the scene interface is the projection of the line of sight of the virtual camera on the scene interface, and the position of the intersection in the scene interface is also the position of the crosshairs.

[0095] In an embodiment of the present application, by mapping the sliding direction and sliding speed of the user's sliding operation on the screen of the terminal to the virtual scene, the mapped first moving direction and second moving speed are used as the rotation direction and rotation angle of the virtual camera in the virtual scene, so that when the virtual camera in the subsequent virtual scene rotates according to the rotation direction and rotation angle, the terminal can display the picture captured during the rotation process of the virtual camera in the scene interface, which can ensure the accuracy of the control and thus ensure the accuracy of the subsequently displayed picture.

[0096] In one possible implementation, a crosshair movement option is displayed in the scene interface, and the crosshair is moved by pushing the crosshair movement option. Step 302 includes: the terminal responds to a drag operation on the crosshair movement option, determines the drag direction of the drag operation as a first movement direction, and determines the product of the drag distance of the drag operation and the unit speed as a second movement speed.

[0097] In the embodiment of the present application, the dragging operation on the movement option is equivalent to the first movement operation on the crosshair. The dragging direction is the direction in which the user wants to control the movement of the crosshair, and the unit speed is the speed corresponding to dragging the movement option a unit distance. The dragging distance is the distance between the position after dragging the movement option and the position before dragging. The greater the dragging distance, the greater the movement speed. Therefore, the product of the dragging distance and the unit speed is determined as the second movement speed. By controlling the movement of the crosshair by dragging the movement option of the crosshair, and determining the first movement direction and the second movement speed based on the dragging direction and dragging distance of the dragging operation, not only improves the convenience of controlling the movement of the crosshair, but also ensures the accuracy of the determined sliding direction and sliding speed, thereby ensuring the accuracy of subsequent control of the movement of the crosshair.

[0098] It should be noted that the embodiment of the present application is described by taking the determination of the first moving direction and the second moving speed of the first moving operation as an example. In another embodiment, there is no need to execute the above-mentioned step 302, but other methods are adopted to determine the first moving direction of the first moving operation in response to the first moving operation of the aiming star.

[0099] 303. In response to the crosshairs being within the adsorption range of the first virtual object, the first movement direction pointing to the first virtual object, and the second movement speed being greater than a preset speed threshold, the terminal determines, based on the motion posture of the first virtual object, an auxiliary sight line of the first virtual object, and determines a first adsorption point from the auxiliary sight line of the first virtual object.

[0100] In an embodiment of the present application, a virtual object in a virtual scene has an auxiliary sight line, which changes as the movement posture of the virtual object changes. The auxiliary sight line is a line composed of points on the virtual object that can be adsorbed by the crosshairs, that is, when the crosshairs is aimed at the virtual object, the crosshairs can only be aimed at points on the auxiliary sight line. The first adsorption point is any point determined from the auxiliary sight line. The second movement speed of the first movement operation on the crosshairs is greater than the preset speed threshold, indicating that the user wants to move the crosshairs in the direction close to the first virtual object as quickly as possible. Therefore, the first adsorption point will be determined from the auxiliary sight line of the first virtual object only when the crosshairs is within the adsorption range of the first virtual object, the first movement direction is the direction pointing to the first virtual object, and the second movement speed is greater than the preset speed threshold. After the crosshairs moves toward the first virtual object, it may be adsorbed on the first adsorption point to achieve aiming at the first virtual object.

[0101] The preset speed threshold is an arbitrary value, for example, the preset speed threshold is 8. For example, if the first movement operation is a sliding operation of the user on the screen of the terminal, when the second movement speed of the sliding operation is not greater than the preset speed threshold, the assisted aiming function will not be triggered; when the second movement speed is greater than the preset speed threshold, the assisted aiming function is enabled, and only then will the second movement speed be mapped to the virtual scene according to the distance between the second virtual object and the first virtual object. As shown in Figure 4, in response to the movement operation of the crosshairs, the crosshairs moves from the current position from the starting point to the adsorption range of the first virtual object. If the second movement speed is the first speed and the first speed is not greater than the preset speed threshold, the assisted aiming function will not be triggered. If the second movement speed is the second speed and the second speed is greater than the preset speed threshold, the assisted aiming function will be triggered.

[0102] In one possible implementation, the first virtual object is a capsule-shaped object model, and the first virtual object's adsorption range is a rectangular spatial range located outside the capsule and encompassing the capsule. Optionally, the adsorption range is a two-dimensional planar region centered on the model projection of the first virtual object. The model projection of the first virtual object refers to the two-dimensional projection image of the object model of the first virtual object in the scene interface. For example, the two-dimensional planar region is a rectangular planar region encompassing the model projection.

[0103] In a possible implementation, the second movement speed is expressed in the form of an angle, and the second movement speed is used to represent the rotation angle of the virtual camera in the virtual scene, and the preset speed threshold is expressed in the form of an angle.

[0104] In one possible implementation, the auxiliary aiming line of the first virtual object is the central axis of the first virtual object, is included in the adsorption range of the first virtual object, and is connected to a boundary of the adsorption range.

[0105] For example, taking the adsorption range as a rectangular range, the first virtual object is within the adsorption range, and the auxiliary aiming line of the first virtual object is equivalent to the central axis of the first virtual object. The auxiliary aiming line passes through the first virtual object and is connected to the upper and lower boundaries of the rectangular range. The rectangular adsorption range and auxiliary aiming line of the first virtual object are shown in Figure 5.

[0106] In one possible implementation, step 303 includes: determining positions of key points on the first virtual object when the first virtual object is in a motion posture; and connecting the key points according to the positions of the key points to form an auxiliary aiming line.

[0107] In an embodiment of the present application, the auxiliary aiming line of the first virtual object is formed by connecting the key points on the first virtual object. When the first virtual object is in different motion postures, the positions of the key points of the first virtual object may be different. Therefore, the auxiliary aiming line of the first virtual object will change with the motion posture of the first virtual object.

[0108] The key point can be any key point on the first virtual object, for example, a skeleton point on the first virtual object. For example, the skeleton points of the first virtual object include avatar skeleton points, torso skeleton points, etc. The skeleton points of the first virtual object are located within the body of the first virtual object, and an auxiliary aiming line formed by connecting the skeleton points can serve as the central axis of the first virtual object and pass through the first virtual object.

[0109] In an embodiment of the present application, the first virtual object can present a variety of motion postures, for example, the first virtual object presents motion postures such as running, walking, standing still, squatting, and jumping. The motion posture of the first virtual object is related to the skeleton points of the first virtual object, that is, in the virtual scene, the position of the skeleton points changes, causing the motion posture presented by the first virtual object to change. When the first virtual object presents different motion postures at the same position in the virtual scene, the skeleton points of the first virtual object may be in different positions in the virtual scene, but the relative positional relationship between the skeleton points remains unchanged. The auxiliary aiming of the first virtual object is first formed by connecting the skeleton points of the first virtual object. When the motion posture of the first virtual object changes, the position of the skeleton points of the first virtual object in the virtual scene changes, which in turn causes the auxiliary aiming line formed by connecting the skeleton points of the first virtual object to change.

[0110] For example, when the auxiliary aiming line is formed by connecting the head and torso bone points of the first virtual object, and the auxiliary aiming line is connected to the upper and lower boundaries of the rectangular adsorption range, and the first virtual object presents different motion postures, the auxiliary aiming line of the first virtual object is shown in Figures 5 to 8. In the embodiment of the present application, the first virtual object is an object model in the shape of a capsule, and the adsorption range of the first virtual object is a rectangular spatial range located outside the capsule and containing the capsule. Then, regardless of the angle at which the object model of the first virtual object is projected into the scene interface, such as when the first virtual object is projected into the scene interface with its back facing the second virtual object, or when it is projected into the scene interface with its side facing the second virtual object, etc., the auxiliary aiming line of the first virtual object is always equivalent to the central axis of the first virtual object and is contained within the adsorption range.

[0111] It should be noted that, in the embodiment of the present application, the auxiliary aiming function is triggered only when the second moving speed is greater than a preset speed threshold, and the first adsorption point is determined from the auxiliary aiming line of the first virtual object. In another embodiment, there is no need to perform the above step 303, but other methods are adopted. When the crosshair is within the adsorption range of the first virtual object and the first moving direction points to the first virtual object, the first adsorption point located in the first virtual object is determined based on the motion posture of the first virtual object.

[0112] 304. The terminal determines a third moving speed based on the distance between the second virtual object controlled by the terminal and the first virtual object and the second moving speed, where the third moving speed is negatively correlated with the distance.

[0113] In an embodiment of the present application, when aiming at a first virtual object in a virtual scene by controlling the movement of a crosshair, the greater the distance between the first virtual object and the second virtual object, the smaller the displacement of the crosshair from its current position to aim at the first virtual object, and the smaller the distance between the first virtual object and the second virtual object, the larger the displacement of the crosshair from its current position to aim at the first virtual object. Therefore, based on the distance between the second virtual object and the first virtual object and the second movement speed of the first movement operation, the second movement speed is mapped to the virtual scene to obtain a third movement speed that is negatively correlated with the distance, so that the crosshair can subsequently move according to the third movement speed. In this way, the user can ensure a consistent feel when controlling the crosshair through the terminal to aim at virtual objects at different distances in the virtual scene.

[0114] In one possible implementation, step 304 includes determining a third movement speed based on the distance between the second virtual object and the first virtual object and the second movement speed when the second movement speed is greater than a preset speed threshold.

[0115] In an embodiment of the present application, the second movement speed of the first movement operation of the crosshairs is greater than the preset speed threshold, indicating that the user wants to move the crosshairs toward the first virtual object as quickly as possible. Only when the second movement speed is greater than the preset speed threshold will the second movement speed be mapped to the virtual scene according to the distance between the second virtual object and the first virtual object, so that the crosshairs can be subsequently displayed moving at the third movement speed, so that the determined third movement speed matches the user's intention, ensuring the accuracy of the determined third movement speed, and further ensuring that the subsequent crosshairs can aim at the first virtual object as quickly as possible, thereby improving the efficiency of human-computer interaction.

[0116] It should be noted that, in the embodiment of the present application, when the crosshair is within the adsorption range of the first virtual object, the first moving direction points to the first virtual object, and the second moving speed is greater than the preset speed threshold, the first adsorption point is first determined, and then the third moving speed is determined. In another embodiment, there is no need to perform the above steps 303-304, but other methods are adopted. When the crosshair is within the adsorption range of the first virtual object, the first moving direction points to the first virtual object, and the second moving speed is greater than the preset speed threshold, the terminal determines the third moving speed based on the distance between the second virtual object controlled by the terminal and the first virtual object and the second moving speed, and the third moving speed is negatively correlated with the distance; based on the motion posture of the first virtual object, the auxiliary aiming line of the first virtual object is determined, and the first adsorption point is determined from the auxiliary aiming line of the first virtual object.

[0117] 305. In the scene interface, the terminal displays the crosshair moving toward the first adsorption point at the third moving speed.

[0118] In an embodiment of the present application, based on the distance between the first virtual object and the second virtual object, the second movement speed of the first movement operation of the crosshair is mapped to the virtual scene to obtain a third movement speed. The crosshair is displayed in the scene interface moving toward the first adsorption point according to the third movement speed, which is equivalent to the crosshair moving toward the first virtual object according to the third movement speed, so that it can be subsequently adsorbed on the first adsorption point on the virtual object, so that the crosshair can aim at the first virtual object as soon as possible.

[0119] In one possible implementation, the crosshairs is displayed moving toward the first adsorption point by rotating the virtual camera in the virtual scene, and the third moving speed is equivalent to the rotation angle of the virtual camera in the virtual scene. Step 305 includes: the terminal controls the virtual camera to rotate toward the first adsorption point at the third moving speed, so that in the scene interface, the crosshairs is displayed moving toward the first adsorption point at the third moving speed.

[0120] In an embodiment of the present application, the scene interface displays a picture obtained by shooting a virtual scene with a virtual camera. The virtual camera is controlled to move toward the first adsorption point on the first virtual object according to the third moving speed, so that the scene interface displays the picture captured during the rotation of the virtual camera. The picture displayed in the scene interface keeps changing, but the crosshair is always displayed in the center of the scene interface, thereby presenting the effect of the crosshair moving toward the first adsorption point according to the third moving speed.

[0121] It should be noted that the embodiment of the present application is described by taking the movement of the crosshair to the first adsorption point in the auxiliary aiming line of the first virtual object as an example. In another embodiment, there is no need to execute the above steps 304-305, but other methods are adopted to display the movement of the crosshair to the first adsorption point in the scene interface.

[0122] In the solution provided by the embodiment of the present application, the virtual objects in the virtual scene are set with an adsorption range. The crosshairs are located within the adsorption range of a certain virtual object. When the user controls the crosshairs to approach the first virtual object, the first adsorption point located in the first virtual object is determined based on the motion posture of the first virtual object, so that the crosshairs moves toward the first adsorption point, so that the crosshairs can aim at the first virtual object as soon as possible. This auxiliary aiming method can adapt to various motion postures of the first virtual object, so that the crosshairs moves toward the first adsorption point in the auxiliary aiming line that matches the motion posture, so as to avoid the situation where the aiming accuracy of the first virtual object is low under different motion postures, facilitates the user to aim at the virtual object through the crosshairs, and ensures that the expected effect of the crosshairs aiming at the first virtual object is closer to the result of the user's own operation, thereby ensuring the user's sense of control, improving the efficiency of human-computer interaction, and thus improving the user experience.

[0123] In an embodiment of the present application, based on the distance between the first virtual object and the second virtual object, the second movement speed of the first movement operation of the crosshair is mapped to the virtual scene to obtain a third movement speed, so that the crosshair moves toward the first virtual object according to the third movement speed, so that the crosshair can aim at the first virtual object as soon as possible, and the third movement speed is negatively correlated with the distance. In this way, it can not only ensure that the user has a consistent feel when controlling the crosshair through the terminal to aim at virtual objects at different distances in the virtual scene, but also facilitate the user to aim at the virtual object through the crosshair, improve the efficiency of human-computer interaction, and thus improve the user experience.

[0124] In the implementation of this application, since the first virtual object has only one auxiliary aiming line, which is equivalent to the central axis of the first virtual object, the first adsorption point of the crosshairs is determined from the auxiliary aiming line, and the crosshairs is displayed to move toward the first adsorption point at a third movement speed so as to be adsorbed on the first adsorption point, thereby achieving aiming at the first virtual object. This auxiliary aiming method can adapt to various motion postures of the first virtual object. Regardless of the motion posture of the first virtual object, the crosshairs can be moved toward the first adsorption point in the auxiliary aiming line, thereby avoiding the situation where the aiming accuracy of the first virtual object is low under different motion postures, without affecting the aiming accuracy of the crosshairs on the first virtual object. This ensures the expected hit effect while being closer to the result of the user's own operation, thereby ensuring the user's sense of control, thereby improving the user experience, and facilitating the user to control the aiming of the crosshairs through the terminal, thereby improving the user experience. In addition, this solution does not require the allocation and configuration of different auxiliary aiming configurations for different motion postures of the first virtual object, thus reducing the configuration of auxiliary aiming configurations for different motion postures.

[0125] In the application embodiment, the auxiliary aiming line is used to determine the adsorption point for aiming at the virtual object, so that the crosshairs can move smoothly to aim at the virtual object, thereby avoiding the situation where multiple adsorption points pull the crosshairs when multiple fixed adsorption points are configured on the virtual object, thereby improving the smoothness of the operation and thus improving the user experience.

[0126] Based on the embodiment shown in Figure 3 above, an embodiment of the present application provides a schematic diagram of the movement of the crosshairs toward the first virtual object. As shown in Figure 9, the crosshairs will move toward the first virtual object along the adsorption direction at its current position so that the crosshairs is adsorbed on the first virtual object.

[0127] Based on the embodiment shown in FIG. 3 , the process of determining the third moving speed includes the following six methods.

[0128] The first method includes the following steps 1-2:

[0129] Step 1: Based on the distance between the second virtual object and the first virtual object, query a first correspondence to obtain a first adjustment coefficient corresponding to the distance, where the first correspondence is a correspondence between the distance between the second virtual object and the first virtual object and the adjustment coefficient when the crosshair moves toward the first virtual object.

[0130] In the embodiment of the present application, the first virtual object is referred to as the target virtual object to be aimed at, and the first corresponding relationship is the corresponding relationship applicable when the crosshairs moves in the direction close to the target virtual object. The first corresponding relationship includes a distance and a corresponding adjustment coefficient. Based on the distance between the second virtual object and the first virtual object, the first adjustment parameter corresponding to the distance can be determined from the first corresponding relationship to ensure the accuracy of the determined adjustment coefficient.

[0131] Among them, the distance can be expressed in any unit, for example, the unit of distance is centimeters. The first corresponding relationship can be expressed in any form, for example, the first corresponding relationship is expressed in the form of a curve graph, the X-axis in the curve graph is used to represent the distance, the Y-axis in the curve graph is used to represent the adjustment parameter, and the curve in the curve graph can represent the adjustment parameter corresponding to each distance. For example, the first corresponding relationship is Auto Aim Close Scale By Dist (automatically aiming at the distance and intensity of the target). The first adjustment coefficient is an arbitrary value, for example, the first adjustment coefficient is a value greater than 0 and less than 1, or the first adjustment coefficient is 1, or the first adjustment coefficient is a value greater than 1.

[0132] In a possible implementation, the distance in the first corresponding relationship is negatively correlated with the corresponding adjustment coefficient.

[0133] For example, in the first corresponding relationship, the greater the distance, the smaller the adjustment coefficient corresponding to the distance, and the smaller the distance, the greater the adjustment coefficient corresponding to the distance.

[0134] In the embodiment of the present application, the greater the distance between the first virtual object and the second virtual object, the smaller the displacement of the crosshair from its current position to aim at the first virtual object. The smaller the distance between the first virtual object and the second virtual object, the larger the displacement of the crosshair from its current position to aim at the first virtual object. Therefore, the distance in the first correspondence is negatively correlated with the corresponding adjustment coefficient. By querying the adjustment coefficient from the first correspondence, the second movement speed of the crosshair in the virtual scene is obtained, so that the second movement speed is negatively correlated with the distance, thereby ensuring a consistent feel when the user controls the crosshair through the terminal to aim at virtual objects at different distances in the virtual scene.

[0135] Step 2: Multiply the first adjustment coefficient corresponding to the distance by the second moving speed to determine the third moving speed.

[0136] In the embodiment of the present application, the first adjustment coefficient is equivalent to the adsorption strength of the crosshairs when it approaches the first virtual object. The product of the first adjustment coefficient and the second movement speed is used as the third movement speed, so that when the crosshairs subsequently move toward the first virtual object at the third movement speed, the magnitude of the adsorption strength can be reflected.

[0137] In an embodiment of the present application, the first correspondence is a correspondence applicable when the crosshair moves in a direction close to the first virtual object. When the crosshair moves in a direction close to the first virtual object, the first correspondence is queried through the distance between the second virtual object and the first virtual object, and based on the queried first adjustment coefficient, the second movement speed is mapped to the virtual scene as the movement speed of the crosshair, so that the obtained third movement speed is related to the distance to ensure the accuracy of the determined third movement speed.

[0138] It should be noted that this application uses the product of the first adjustment coefficient and the second moving speed as an example to illustrate the third moving speed. In another embodiment, there is no need to perform the above step 2, but other methods are used to map the second moving speed to the virtual scene based on the first adjustment coefficient to obtain the third moving speed.

[0139] The second method is to display the crosshairs when the second virtual object is holding a virtual item, including the following steps 1-3:

[0140] Step 1: Based on the distance between the second virtual object and the first virtual object, query a first correspondence to obtain a first adjustment coefficient corresponding to the distance, where the first correspondence is a correspondence between the distance between the second virtual object and the first virtual object and the adjustment coefficient when the crosshair moves toward the first virtual object.

[0141] This step 1 is the same as step 1 in the first method above, and will not be repeated here.

[0142] Step 2: Get the adjustment coefficient corresponding to the virtual props.

[0143] In an embodiment of the present application, when the second virtual object controlled by the terminal holds a virtual prop, the crosshairs displayed in the scene interface are equivalent to the crosshairs of the virtual prop, and subsequent interaction can be performed by using the held virtual prop to target the position of the crosshairs. Different virtual props may correspond to different adjustment coefficients, and the adjustment coefficient corresponding to the virtual prop can reflect the flexibility of adjusting the crosshairs of the virtual prop. The larger the adjustment coefficient corresponding to the virtual prop, the more flexible the crosshairs of the virtual prop, and the smaller the adjustment coefficient corresponding to the virtual prop, the less flexible the crosshairs of the virtual prop.

[0144] In one possible implementation, step 2 includes: the terminal queries the third corresponding relationship based on the item identifier of the virtual item held by the second virtual object to obtain an adjustment coefficient corresponding to the virtual item.

[0145] The third correspondence is the correspondence between the item identifier and the adjustment coefficient. The item identifier refers to the corresponding virtual item and can be represented in any form, for example, by a serial number or an item name.

[0146] Step 3: Determine the third moving speed as the product of the adjustment coefficient corresponding to the virtual item, the first adjustment coefficient corresponding to the distance, and the second moving speed.

[0147] In the embodiment of the present application, not only the first adjustment coefficient corresponding to the distance is taken into account, but also the adjustment coefficient corresponding to the virtual prop held by the second virtual object is taken into account. In combination with the adjustment coefficient corresponding to the virtual prop and the first adjustment coefficient corresponding to the distance, the second movement speed is mapped to the virtual scene to obtain the movement speed of the crosshair, so that the movement speed of the crosshair is related to the distance and the virtual prop held by the second virtual object, so that the movement speed of the crosshair matches the virtual prop held by the second virtual object, thereby reflecting the different difficulties in controlling the crosshairs of different virtual props, so as to ensure the accuracy of the determined movement speed of the crosshair.

[0148] The third method includes the following steps 1-3:

[0149] Step 1: Based on the distance between the second virtual object and the first virtual object, query a first correspondence to obtain a first adjustment coefficient corresponding to the distance, where the first correspondence is a correspondence between the distance between the second virtual object and the first virtual object and the adjustment coefficient when the crosshair moves toward the first virtual object.

[0150] This step 1 is the same as step 1 in the first method above, and will not be repeated here.

[0151] Step 2: Obtain a scaling ratio, where the scaling ratio is used to map the second movement speed of the first movement operation to the virtual scene.

[0152] In an embodiment of the present application, the user controls the movement of the crosshairs in the virtual scene through a first movement operation of the crosshairs on the terminal. Through the scaling ratio, the second movement speed of the first movement operation can be mapped to the virtual scene as the movement speed of the crosshairs, so that the crosshairs moves in the virtual scene according to the movement speed of the crosshairs.

[0153] The scaling ratio is an arbitrary value. In the embodiment of the present application, if the scaling ratio is greater than 1, the second movement speed of the first movement operation is amplified and used as the movement speed of the crosshairs in the virtual scene; if the scaling ratio is 1, the second movement speed of the first movement operation is used as the movement speed of the crosshairs in the virtual scene; and if the scaling ratio is less than 1, the second movement speed of the first movement operation is reduced and used as the movement speed of the crosshairs in the virtual scene.

[0154] Step 3: Determine the third moving speed as the product of the first adjustment coefficient corresponding to the distance, the scaling ratio, and the second moving speed.

[0155] In the embodiment of the present application, not only the first adjustment coefficient corresponding to the distance is taken into account, but also the scaling ratio used to map the second moving speed of the first moving operation to the virtual scene is taken into account. In combination with the scaling ratio and the first adjustment coefficient corresponding to the distance, the second moving speed is mapped to the virtual scene to obtain the moving speed of the crosshairs, so that the moving speed of the crosshairs is related to the distance and the scaling ratio, so that the user can accurately control the movement of the crosshairs in the virtual scene by triggering the movement operation of the crosshairs, thereby ensuring the accuracy of the determined moving speed of the crosshairs.

[0156] The fourth method includes the following steps 1-3:

[0157] Step 1: Based on the distance between the second virtual object and the first virtual object, query a first correspondence to obtain a first adjustment coefficient corresponding to the distance, where the first correspondence is a correspondence between the distance between the second virtual object and the first virtual object and the adjustment coefficient when the crosshair moves toward the first virtual object.

[0158] Step 2: Obtain an adjustment coefficient corresponding to the second moving speed, where the adjustment coefficient is positively correlated with the second moving speed.

[0159] In an embodiment of the present application, when the second movement speed of the first movement operation on the crosshairs is greater than a preset speed threshold, the greater the second movement speed, the faster the crosshairs moves toward the first virtual object, and an adjustment coefficient positively correlated with the second movement speed is obtained. The greater the second movement speed, the greater the obtained adjustment coefficient, and the smaller the second movement speed, the smaller the obtained adjustment coefficient, so as to ensure that the greater the subsequent second movement speed, the greater the adjustment range of the movement speed of the crosshairs, so as to ensure that the crosshairs moves toward the first virtual object faster.

[0160] Step 3: Determine the third moving speed as the product of the first adjustment coefficient corresponding to the distance, the adjustment coefficient corresponding to the second moving speed, and the second moving speed.

[0161] In the embodiment of the present application, not only the first adjustment coefficient corresponding to the distance is taken into account, but also the adjustment coefficient corresponding to the second moving speed is taken into account. In combination with the adjustment coefficient corresponding to the second moving speed and the first adjustment coefficient corresponding to the distance, the second moving speed is mapped to the virtual scene to obtain the moving speed of the crosshairs, so that the moving speed of the crosshairs is related to the adjustment coefficient corresponding to the distance and the second moving speed, so that the moving speed of the crosshairs is positively correlated with the second moving speed, so that the greater the second moving speed, the greater the adjustment amplitude of the moving speed of the crosshairs, so as to ensure that the crosshairs moves faster toward the first virtual object, so as to ensure the efficiency of the crosshairs adsorbed on the first virtual object, thereby improving the efficiency of human-computer interaction.

[0162] For example, the preset speed threshold is 8, compared to the second movement speed of 10. When the second movement speed is 20, when obtaining the movement speed of the crosshairs, the greater the adjustment range of the movement speed of the crosshairs, that is, the stronger the auxiliary aiming strength of the crosshairs, so that the crosshairs can be adsorbed on the first virtual object faster to aim at the first virtual object.

[0163] The fifth method includes the following steps 1-3:

[0164] Step 1: Based on the distance between the second virtual object and the first virtual object, query a first correspondence to obtain a first adjustment coefficient corresponding to the distance, where the first correspondence is a correspondence between the distance between the second virtual object and the first virtual object and the adjustment coefficient when the crosshair moves toward the first virtual object.

[0165] Step 2: Based on the distance between the crosshairs and the first virtual object, query the seventh corresponding relationship to obtain an adjustment coefficient corresponding to the distance between the crosshairs and the first virtual object.

[0166] In the embodiment of the present application, the first virtual object is referred to as the target virtual object to be aimed at, and the seventh correspondence is a correspondence applicable when the crosshairs moves in a direction close to the target virtual object. The seventh correspondence includes the distance between the crosshairs and the first virtual object and the corresponding adjustment coefficient. Based on the distance between the crosshairs and the first virtual object, the adjustment parameter corresponding to the distance between the crosshairs and the first virtual object can be determined from the seventh correspondence to ensure the accuracy of the determined adjustment coefficient.

[0167] In one possible implementation, the adjustment coefficient corresponding to the distance between the crosshair and the first virtual object is negatively correlated with the distance between the crosshair and the first virtual object. In this embodiment of the present application, the closer the distance between the crosshair and the first virtual object, the slower the movement of the crosshair. This prevents the crosshair from moving too quickly and missing the first virtual object, thereby ensuring that it can accurately attach to the first virtual object.

[0168] Step 3: Determine the third moving speed as the product of the first adjustment coefficient corresponding to the distance between the second virtual object and the first virtual object, the adjustment coefficient corresponding to the distance between the crosshair and the first virtual object, and the second moving speed.

[0169] In the embodiment of the present application, not only the first adjustment coefficient corresponding to the distance between the second virtual object and the first virtual object is taken into account, but also the adjustment coefficient corresponding to the distance between the crosshair and the first virtual object is taken into account. In combination with the adjustment coefficient corresponding to the distance between the crosshair and the first virtual object and the first adjustment coefficient, the second movement speed is mapped to the virtual scene to obtain the movement speed of the crosshair, so that the movement speed of the crosshair is related to the distance and the distance between the crosshair and the first virtual object, so as to reflect that the movement speed of the crosshair changes with the distance between the crosshair and the first virtual object, thereby ensuring that the crosshair can be accurately adsorbed on the first virtual object without the user having to make multiple adjustments, so as to ensure the efficiency of the crosshair adsorption on the first virtual object, thereby improving the efficiency of human-computer interaction.

[0170] The sixth method includes the following steps 1-3:

[0171] Step 1: Based on the distance between the second virtual object and the first virtual object, query a first correspondence to obtain a first adjustment coefficient corresponding to the distance, where the first correspondence is a correspondence between the distance between the second virtual object and the first virtual object and the adjustment coefficient when the crosshair moves toward the first virtual object.

[0172] Step 2: Obtain the basic adjustment coefficient.

[0173] The basic adjustment coefficient is an arbitrary value, and is used to map the movement speed of the movement operation to a coefficient required in the virtual scene.

[0174] Step 3: Determine the third moving speed as the product of the first adjustment coefficient corresponding to the distance, the basic adjustment coefficient, and the second moving speed.

[0175] In an embodiment of the present application, not only the first adjustment coefficient corresponding to the distance is taken into account, but also the basic adjustment coefficient used to map the moving speed of the moving operation to the virtual scene is taken into account. Combined with the basic adjustment coefficient and the first adjustment coefficient corresponding to the distance, the second moving speed is mapped to the virtual scene to obtain the moving speed of the crosshairs, so that the moving speed of the crosshairs is related to the distance and the basic adjustment coefficient to ensure the accuracy of the determined moving speed of the crosshairs.

[0176] It should be noted that the five methods for determining the third movement speed described above can be combined in any manner. For example, the combination of the three methods described above can be used to determine the third movement speed by multiplying the base adjustment coefficient, the first adjustment coefficient corresponding to the distance, the adjustment coefficient corresponding to the virtual item, and the second movement speed. In the embodiment of the present application, the product of the base adjustment coefficient, the first adjustment coefficient corresponding to the distance, the scaling factor, and the adjustment coefficient corresponding to the virtual item is equivalent to the auxiliary aiming strength. If the movement operation of the crosshairs is a sliding operation by the user on the terminal screen, the adjustment coefficient corresponding to the virtual item is equivalent to the adsorption strength correction coefficient based on the sliding operation.

[0177] Based on the embodiment shown in FIG. 3 , the present application can also adopt three methods to determine the first adsorption point of the crosshair from the auxiliary aiming line.

[0178] The first method: determining the first adsorption point based on the intersection of a ray along the first moving direction and the auxiliary aiming line, where the ray takes the current position of the crosshair as the starting point.

[0179] In an embodiment of the present application, in response to a first movement operation on the crosshair, the crosshair is displayed in the scene interface as moving along the first movement direction, that is, a ray starting from the current position of the crosshair and along the first movement direction can represent the direction of movement of the crosshair, and when the crosshair is aimed at the first virtual object, it will be adsorbed on a point on the auxiliary aiming line. The intersection of the ray and the auxiliary aiming line is equivalent to the point on the first virtual object that the crosshair may aim at when moving along the first movement direction. Therefore, the first adsorption point is determined based on the intersection of the ray along the first movement direction and the auxiliary aiming line.

[0180] In an embodiment of the present application, a first adsorption point is determined based on the intersection of a ray along the first moving direction and the auxiliary aiming line starting from the current position of the crosshairs, so as to ensure that the crosshairs can move in the first moving direction of the first moving operation and can be accurately adsorbed on the first virtual object, so as to ensure the accuracy of the movement of the crosshairs and the accuracy of the adsorption of the crosshairs.

[0181] In one possible implementation, the auxiliary aiming line includes a first line segment, a second line segment, and a third line segment, the first line segment is a line segment between a head key point of the first virtual object and an upper boundary of the adsorption range, the second line segment is a line segment between a torso key point of the first virtual object and a lower boundary of the adsorption range, and the third line segment is a line segment between the head key point and the torso key point; then the first method includes: when the intersection point is the intersection point of the ray and the first line segment, determining the head key point as the first adsorption point; or, when the intersection point is the intersection point of the ray and the second line segment, determining the torso key point as the first adsorption point; or, when the intersection point is the intersection point of the ray and the third line segment, determining the intersection point of the ray and the third line segment as the first adsorption point.

[0182] In an embodiment of the present application, a first virtual object includes a head keypoint and a torso keypoint. The head keypoint and torso keypoint correspond to the head and torso skeletal points of the first virtual object. Regardless of the motion posture of the first virtual object, the relative positional relationship between the head keypoint and torso keypoint remains unchanged. Furthermore, an auxiliary aiming line for the first virtual object is formed by connecting the head keypoint and torso keypoint with the upper and lower boundaries of the first virtual object's attachment range. A first line segment is formed by connecting the head keypoint with the upper boundary of the attachment range. Optionally, the first line segment is a vertical line segment. A second line segment is formed by connecting the torso keypoint with the lower boundary of the attachment range. Optionally, the second line segment is a vertical line segment. A third line segment is formed by connecting the head keypoint and torso keypoint. The third line segment may be a vertical line segment or a diagonal line segment. Since the positions of the head keypoint and torso keypoints in the virtual scene may vary when the first virtual object is in different motion postures, the relative positional relationship between the head keypoint and torso keypoints remains unchanged. Therefore, the style of the third line segment is related to the motion posture of the first virtual object. For example, when the first virtual object stands upright, the third line segment is a vertical line segment; or when the first virtual object squats, the third line segment is a diagonal line segment.

[0183] In an embodiment of the present application, taking into account the habit of users controlling virtual objects to interact with other virtual objects in the game, the auxiliary aiming line is divided into multiple line segments. According to the intersection of the ray along the first moving direction and the different line segments in the auxiliary aiming line, the first adsorption point can be determined in different ways to ensure that the determined first adsorption point meets the user's intention, thereby ensuring the accuracy of the determined first adsorption point, and thus improving the user experience.

[0184] It should be noted that the embodiment of the present application is described using the example of an auxiliary sight line including three line segments. In another embodiment, the auxiliary sight line may further include multiple line segments. That is, the first virtual object includes multiple key points, and the auxiliary sight line of the first virtual object is formed by connecting the multiple key points with the upper and lower boundaries of the adsorption range. When determining the first adsorption point, if the ray intersects with the line segment connected to the upper boundary in the auxiliary sight line, the key point in the line segment connected to the upper boundary is determined as the first adsorption point in accordance with the method of determining the first adsorption point when the ray intersects the first line segment; if the ray intersects with the line segment connected to the lower boundary in the auxiliary sight line, the key point in the line segment connected to the lower boundary is determined as the first adsorption point in accordance with the method of determining the first adsorption point when the ray intersects the second line segment; if the ray intersects with a line segment in the auxiliary sight line that is not connected to the upper or lower boundary, the intersection of the ray and the line segment is determined as the first adsorption point in accordance with the method of determining the first adsorption point when the ray intersects the third line segment.

[0185] The second method is to determine the first adsorption point based on a point in the auxiliary aiming line that is on the same horizontal line as the crosshair.

[0186] In an embodiment of the present application, considering that the user wants to control the crosshairs to move toward the first virtual object in order to aim at the first virtual object as soon as possible, but because the first movement operation triggered by the user is not accurate enough, it takes a long time for the crosshairs to aim at the first virtual object when moving along the first movement direction. Therefore, in response to the first movement operation of the crosshairs, a point on the auxiliary aiming line that is on the same horizontal line as the current position of the crosshairs is determined as the first adsorption point, so that the distance between the determined first adsorption point and the current position of the crosshairs is as small as possible, to ensure that the crosshairs can be adsorbed on the first virtual object as soon as possible when it moves toward the adsorption point, thereby improving the aiming efficiency, and also improving the human-computer interaction efficiency, thereby improving the user experience.

[0187] In one possible implementation, the auxiliary aiming line includes a first line segment, a second line segment, and a third line segment, the first line segment is a line segment between a head key point of the first virtual object and an upper boundary of the adsorption range, the second line segment is a line segment between a torso key point of the first virtual object and a lower boundary of the adsorption range, and the third line segment is a line segment between the head key point and the torso key point; based on a point in the auxiliary aiming line that is on the same horizontal line as the crosshair, determining the first adsorption point includes: when the crosshair and a point in the first line segment are on the same horizontal line, determining the head key point as the first adsorption point; or, when the crosshair and a point in the second line segment are on the same horizontal line, determining the torso key point as the first adsorption point; or, when the crosshair and a point in the third line segment are on the same horizontal line, determining the point in the third line segment that is on the same horizontal line as the crosshair as the first adsorption point.

[0188] In an embodiment of the present application, taking into account the user's habit of controlling virtual objects to interact with other virtual objects in the game, the auxiliary aiming line is divided into multiple line segments. In response to the first movement operation of the crosshairs, different line segments in the auxiliary aiming line and the points on the same horizontal line as the current position of the crosshairs can determine the first adsorption point in different ways to ensure that the determined first adsorption point meets the user's intention, and when the crosshairs moves toward the determined first adsorption point, it can be adsorbed on the first virtual object as soon as possible to achieve aiming at the first virtual object. This not only ensures the accuracy of the determined first adsorption point, but also improves the aiming efficiency, as well as the human-computer interaction efficiency, thereby improving the user experience.

[0189] The third method: determine the point in the auxiliary aiming line with the smallest distance to the crosshairs as the first adsorption point.

[0190] In an embodiment of the present application, in response to the first movement operation of the crosshairs, the point in the auxiliary aiming line with the smallest distance from the crosshairs is determined as the first adsorption point, so that the distance between the determined first adsorption point and the current position of the crosshairs is minimized, to ensure that the crosshairs can be adsorbed on the first virtual object as soon as possible when they are subsequently moved toward the adsorption point, thereby improving the aiming efficiency, improving the human-computer interaction efficiency, and thus improving the user experience.

[0191] Based on the embodiment shown in Figure 3 above, the embodiment of the present application can also take the adsorption range including multiple sub-ranges, and the first adsorption point is located in the first sub-range of the multiple sub-ranges as an example. When the crosshairs switches between the multiple sub-ranges, a new adsorption point can be determined for the crosshairs, and the movement speed of the crosshairs can be adjusted to ensure that the movement speed transition of the crosshairs when moving between the multiple sub-ranges is smooth. That is, the method also includes the following steps 1-3.

[0192] Step 1: In response to the sight entering the second sub-range from the first sub-range, a second adsorption point located in the second sub-range is determined from the auxiliary aiming line, where the second sub-range is a sub-range adjacent to the first sub-range among the multiple sub-ranges.

[0193] In an embodiment of the present application, based on the embodiment shown in Figure 3 above, the crosshairs moves to the first adsorption point located in the first sub-range. Afterwards, the crosshairs may have been adsorbed on the first adsorption point, or it may be just closer to the first adsorption point but not yet adsorbed on the first adsorption point. At this time, in response to other movement operations on the crosshairs, the crosshairs changes its movement direction from the first sub-range to the second sub-range. Then, from the auxiliary aiming line, the second adsorption point located in the second sub-range is determined, so as to control the crosshairs to move toward the second adsorption point when moving within the second sub-range to aim at the first virtual object.

[0194] It should be noted that in response to the crosshairs entering the second sub-range from the first sub-range, the process of determining the adsorption point located in the second sub-range from the auxiliary aiming line is the same as the process of determining the first adsorption point mentioned above, and will not be repeated here.

[0195] In a possible implementation, the auxiliary aiming line includes multiple skeleton points of the first virtual object, and the adsorption range is divided into multiple sub-ranges based on a horizontal line where the multiple skeleton points are located.

[0196] For example, if the auxiliary aiming line includes two skeletal points of the first virtual object, namely the head skeletal point and the torso skeletal point, the adsorption range is divided into three sub-ranges: the first sub-range is the adsorption range above the horizontal line where the head skeletal point is located, the second sub-range is the adsorption range between the horizontal line where the head skeletal point is located and the horizontal line where the torso skeletal point is located, and the third sub-range is the adsorption range below the horizontal line where the torso skeletal point is located. For example, the first sub-range is the adsorption range above the horizontal line where the head skeletal point is located, and the second sub-range is the adsorption range between the horizontal line where the head skeletal point is located and the horizontal line where the torso skeletal point is located; or, the first sub-range is the adsorption range between the horizontal line where the head skeletal point is located and the horizontal line where the torso skeletal point is located, and the second sub-range is the adsorption range below the horizontal line where the torso skeletal point is located.

[0197] Optionally, when configuring the first virtual object, multiple skeleton points are configured for the first virtual object through the Auto Aim Target Component, so that the configured multiple skeleton points are subsequently used to form an auxiliary aiming line to aim at the first virtual object.

[0198] In one possible implementation, before step 1, the process of moving the crosshairs from the first sub-range to the second sub-range includes: in response to a third movement operation on the crosshairs, determining a moving direction and a moving speed of the third movement operation; when the crosshairs is located within the first sub-range of the first virtual object and the moving direction of the third movement operation points to the second sub-range, determining a sixth moving speed based on the distance between the second virtual object and the first virtual object and the moving speed of the third movement operation, and displaying in the scene interface that the crosshairs moves to the second sub-range at the sixth moving speed.

[0199] It should be noted that the process of controlling the movement of the crosshair in response to the third movement operation is similar to the process of controlling the movement of the crosshair in response to the first movement operation, and will not be described in detail here.

[0200] In this embodiment of the present application, in response to the third movement operation on the crosshair, the crosshair is displayed on the scene interface as moving from the first sub-range to the second sub-range. Once it is determined that the crosshair has entered the second sub-range, the second adsorption point is determined according to step 1 above. In response to the movement operation on the crosshair, the movement direction of the crosshair can be controlled, thereby increasing the flexibility of crosshair control, thereby meeting user needs and improving the user experience.

[0201] Step 2: Determine a first moving speed based on the duration of the crosshair being within the second sub-range and the current moving speed of the crosshair.

[0202] The existence duration is the time period from the moment the crosshair enters the second sub-range, and the time period within the second sub-range. The current movement speed of the crosshair is the movement speed of the crosshair when it enters the second sub-range. For example, based on the embodiment shown in FIG3 , the crosshair moves toward the first adsorption point within the first sub-range, and then, in response to the movement operation on the crosshair, moves from the first sub-range to the second sub-range. During this movement, the crosshair may first move a certain distance within the first sub-range before entering the second sub-range. The movement speed of the crosshair when it enters the second sub-range is the current movement speed of the crosshair in step 2 above.

[0203] In an embodiment of the present application, as the crosshairs moves between multiple sub-ranges, different adsorption points are determined for the crosshairs, and for different adsorption points, the movement speed of the crosshairs is adjusted to match the movement speed of the crosshairs with the current adsorption point, that is, to match the adsorption strength of the current adsorption point to the crosshairs with the movement speed of the crosshairs. In the process of adjusting the movement speed of the crosshairs, the movement speed of the crosshairs is adjusted according to the time when the crosshairs enters the second sub-range to ensure that the movement speed of the crosshairs is smoother when moving between multiple sub-ranges, thereby ensuring that the movement speed of the crosshairs matches the user's control of the crosshairs to ensure the accuracy and controllability of controlling the crosshairs.

[0204] In one possible implementation, step 2 includes: based on the length of time the crosshairs remains in the second sub-range, querying the fourth corresponding relationship to obtain an adjustment coefficient corresponding to the length of time, and multiplying the adjustment coefficient corresponding to the length of time by the current moving speed of the crosshairs to determine the first moving speed.

[0205] In an embodiment of the present application, the fourth correspondence includes a correspondence between the duration of the sight's presence within the second sub-range and the adjustment coefficient when the sight enters the second sub-range from the first sub-range. For example, the fourth correspondence is represented by a graph, where the X-axis represents the duration, the Y-axis represents the adjustment coefficient, and the curves in the graph represent the adjustment coefficients corresponding to the respective durations. For example, the fourth correspondence is "Change Aim Point Time Scale."

[0206] Step 3: In the scene interface, the crosshair is displayed moving toward the second adsorption point at the first moving speed.

[0207] In an embodiment of the present application, the crosshair is displayed in the scene interface moving toward the second adsorption point at the first moving speed, which is equivalent to the crosshair moving toward the first virtual object at the first moving speed, so that the crosshair is subsequently adsorbed on the second adsorption point on the virtual object.

[0208] It should be noted that the embodiment of the present application only illustrates the adjustment of the movement speed of the crosshairs once. In another embodiment, as the time the crosshairs stays in the second sub-range gradually increases, the movement speed of the crosshairs is adjusted in real time according to steps 2-3 to reflect that the speed at which the crosshairs moves toward the second adsorption point will gradually increase, to reflect that after the crosshairs enters the second sub-range, the adsorption strength of the second adsorption point on the crosshairs will gradually increase with the time the crosshairs enters the second sub-range.

[0209] In an embodiment of the present application, when the adsorption range includes multiple sub-ranges, when the crosshairs switches between the multiple sub-ranges, a new adsorption point can be determined for the crosshairs, and the movement speed can be obtained based on the existence time of the crosshairs in the newly entered sub-range, and the crosshairs can be displayed moving toward the new adsorption point according to the movement speed, so that the movement speed of the crosshairs in the newly entered sub-range matches the existence time, so that the movement speed of the crosshairs gradually changes with the existence time, which can ensure that the movement speed transition of the crosshairs when moving between multiple sub-ranges is smooth, and ensure that the movement speed of the crosshairs matches the user's control of the crosshairs, thereby improving the accuracy and controllability of controlling the crosshairs.

[0210] The crosshair control solution provided in the embodiment of the present application can adapt to different distances between the virtual object controlled by the terminal and the virtual object to be aimed, accurately aim at various parts of the virtual object to be aimed, and can adapt to various motion postures of the second virtual object, and can assist the crosshair in aiming at the virtual object. Moreover, when the crosshair moves between multiple sub-ranges within the adsorption range of the targeted first virtual object, it can optimize the movement speed of the crosshair so that the movement speed transition of the crosshair when moving between the multiple sub-ranges is smooth. This not only assists the crosshair in quickly aiming at the virtual object, but also ensures that the movement speed of the crosshair is excessively smooth, making the assisted aiming performance natural, and improving the accuracy of the crosshair in aiming at the virtual object. There is no need for the user to make repeated adjustments, thereby improving the adjustment efficiency and thus improving the efficiency of human-computer interaction.

[0211] It should be noted that the embodiment shown in Figure 3 above is described by taking the example of the crosshairs being only located within the adsorption range of the first virtual object. In another embodiment, multiple virtual objects are displayed in the scene interface, and the crosshairs may be simultaneously located within the adsorption range of multiple virtual objects. In this case, it is necessary to determine the first virtual object from the multiple virtual objects. That is, the process of determining the first virtual object includes: when the crosshairs is located within the adsorption range of multiple virtual objects and the first moving direction points to multiple virtual objects, determining the first virtual object that is closest to the second virtual object among the multiple virtual objects, where the second virtual object is the virtual object controlled by this terminal.

[0212] In the embodiment of the present application, since the adsorption ranges of multiple virtual objects overlap, that is, when the crosshairs is located in the overlapping area of ​​the adsorption ranges of multiple virtual objects, the crosshairs is equivalent to being located within the adsorption ranges of the multiple virtual objects. In addition, there may be occlusions between the multiple virtual objects with overlapping adsorption ranges. For example, with respect to the second virtual object, the virtual object closest to the second virtual object among the multiple virtual objects is not occluded by other virtual objects among the multiple virtual objects, while the virtual object farthest from the second virtual object among the multiple virtual objects may be occluded by other virtual objects among the multiple virtual objects. Therefore, considering that when interacting with the virtual object aimed at by the crosshairs, it is best to interact with the unobstructed virtual object as much as possible, the first virtual object closest to the second virtual object among the multiple virtual objects is used as the virtual object that the user may want to aim at, so that the crosshairs can be subsequently controlled to move toward the first virtual object to aim at the first virtual object, thereby ensuring the accuracy of the determined first virtual object.

[0213] Based on the embodiments shown in Figures 2 to 3 above, the crosshair will also move with the first virtual object, that is, the method further includes: in response to the first virtual object moving away from the crosshair in the virtual scene, displaying the crosshair moving with the first virtual object.

[0214] In an embodiment of the present application, during the process of the crosshairs moving toward the first virtual object to be adsorbed on the first virtual object, the virtual object in the virtual scene may move, and the crosshairs will be controlled to follow the movement of the first virtual object, so that the crosshairs can be adsorbed on the first virtual object to aim at the first virtual object, thereby ensuring the aiming efficiency of the crosshairs. There is no need to manually control the crosshairs to aim at the first virtual object, thereby improving the efficiency of human-computer interaction.

[0215] In one possible implementation, the process of the crosshairs following the movement of the first virtual object includes: in response to the first virtual object moving in a direction away from the crosshairs in the virtual scene, determining a fourth movement speed based on a difference between the displacement of the first movement operation and the displacement of the first virtual object and a third movement speed; and displaying, in the scene interface, the movement of the crosshairs following the first virtual object at the fourth movement speed.

[0216] In an embodiment of the present application, when a user controls the movement of a crosshair toward a first virtual object in response to a first movement operation, the displacement of the first movement operation is mapped to the virtual scene to obtain the displacement of the crosshair toward the first virtual object. That is, when the user triggers the first movement operation to control the movement of the crosshair toward the first virtual object, the greater the displacement of the first movement operation, the closer the crosshair approaches the first virtual object. When the first virtual object moves away from the crosshair, the difference between the displacement of the first movement operation and the displacement of the first virtual object can reflect the change in the relative distance between the crosshair and the first virtual object. A greater difference indicates a greater relative distance between the crosshair and the first virtual object. Based on this difference and the current third movement speed of the crosshair, a fourth movement speed is determined, and the crosshair is displayed to follow the first virtual object at the fourth movement speed, so that the relative distance between the crosshair and the first virtual object gradually decreases, allowing the crosshair to quickly attach to the first virtual object and aim at the first virtual object, thereby ensuring the crosshair's aiming efficiency and improving the efficiency of human-computer interaction.

[0217] It should be noted that when the first virtual object moves away from the crosshairs, the movement speed of the crosshairs will be adjusted in real time based on the difference between the displacement of the first movement operation and the displacement of the first virtual object in the above manner, so that the crosshairs can follow the movement of the first virtual object and be adsorbed on the first virtual object as soon as possible.

[0218] Based on the embodiments shown in Figures 2 to 3 above, in an embodiment of the present application, the user can also control the crosshairs to move in a direction away from the first virtual object through movement operations. The specific process is detailed in the following embodiment.

[0219] FIG10 is a flow chart of a crosshair control method provided in an embodiment of the present application, which is executed by a terminal. As shown in FIG10 , the method includes:

[0220] 1001. In response to a second movement operation on a sight star, the terminal determines a second movement direction and a second movement speed of the second movement operation.

[0221] This step is similar to the above step 302 and will not be described again here.

[0222] 1002. In response to the crosshairs being within the adsorption range of the first virtual object and the second movement direction indicating that the crosshairs are moving away from the virtual object, the terminal queries a second correspondence based on the distance between the second virtual object controlled by the terminal and the first virtual object, and obtains a second adjustment coefficient corresponding to the distance, where the second correspondence is a correspondence between the distance between the second virtual object and the first virtual object and the adjustment coefficient when the crosshairs moves in a direction away from the first virtual object.

[0223] In the embodiment of the present application, the first virtual object is referred to as the target virtual object to be aimed at, and the second corresponding relationship is the corresponding relationship applicable when the crosshairs moves in a direction away from the target virtual object. The first corresponding relationship includes a distance and a corresponding adjustment coefficient. Based on the distance between the second virtual object and the first virtual object, the second adjustment parameter corresponding to the distance can be determined from the first corresponding relationship to ensure the accuracy of the determined adjustment coefficient.

[0224] The second correspondence can be represented in any form, for example, as a graph, where the X-axis represents distance, the Y-axis represents adjustment parameters, and the curves in the graph represent adjustment parameters corresponding to respective distances. For example, the second correspondence is Auto Aim Away Scale By Dist (auto aim away from target distance and intensity).

[0225] In a possible implementation, the distance in the second corresponding relationship is negatively correlated with the corresponding adjustment coefficient.

[0226] For example, in the second corresponding relationship, the greater the distance, the smaller the adjustment coefficient corresponding to the distance, and the smaller the distance, the greater the adjustment coefficient corresponding to the distance.

[0227] 1003. The terminal determines a fifth moving speed as a product of a second adjustment coefficient corresponding to the distance and a moving speed of the second moving operation.

[0228] In the embodiment of the present application, the second adjustment coefficient is equivalent to the adsorption strength of the crosshairs when they are away from the first virtual object. The product of the second adjustment coefficient and the movement speed of the second movement operation is used as the fifth movement speed, so that when the crosshairs subsequently move away from the first virtual object at the fifth movement speed, the size of the adsorption strength can be reflected.

[0229] In an embodiment of the present application, the second correspondence is a correspondence applicable when the crosshairs moves in a direction away from the target virtual object. When the crosshairs moves in a direction away from the first virtual object, the second correspondence is queried through the distance between the second virtual object and the first virtual object, and the movement speed of the crosshairs is adjusted based on the queried second adjustment coefficient so that the obtained fifth movement speed is related to the distance.

[0230] In a possible implementation, the adjustment coefficient in the second corresponding relationship is less than 1.

[0231] In an embodiment of the present application, the fifth movement speed obtained by the second adjustment coefficient is less than the movement speed of the second movement operation, so that the movement speed of the crosshairs when moving in the direction away from the first virtual object is as small as possible, so as to avoid the situation where the crosshairs is no longer aimed at the first virtual object due to user's misoperation, so as to ensure that the crosshairs can aim at the virtual object as much as possible.

[0232] It should be noted that this application uses the product of the second adjustment coefficient and the second moving speed as an example to illustrate the fifth moving speed. In another embodiment, there is no need to perform the above step 2, but other methods are used to adjust the second moving speed based on the second adjustment coefficient to obtain the fifth moving speed.

[0233] 1004. In the scene interface, the terminal displays the crosshair moving in a direction away from the virtual object at a fifth moving speed.

[0234] In an embodiment of the present application, the second corresponding relationship is a corresponding relationship applicable when the crosshair moves in a direction away from the target virtual object. When the crosshair moves in a direction away from the first virtual object, the movement speed of the crosshair is adjusted based on the distance between the second virtual object and the first virtual object and the second corresponding relationship, so that the obtained fifth movement speed is related to the distance, so that the determined movement speed is consistent with the situation where the crosshair is controlled to move away from the first virtual object when the assisted aiming function has been triggered, so as to ensure that the determined movement speed matches the user's actual intention, so as to ensure the accuracy of the determined fifth movement speed.

[0235] Moreover, when the adjustment coefficient in the second corresponding relationship is less than 1, the fifth moving speed obtained by the second adjustment coefficient is less than the moving speed of the second moving operation, so that the moving speed of the crosshairs when moving in the direction away from the first virtual object is as small as possible, so as to avoid the situation where the crosshairs deviates from the targeted first virtual object due to the user's misoperation, and to ensure that the crosshairs can aim at the virtual object as much as possible.

[0236] Based on the embodiment shown in FIG. 10 , the user can also determine the fourth movement speed in combination with the adjustment parameter corresponding to the movement speed of the second movement operation. The specific process is detailed in the following embodiment.

[0237] FIG11 is a flow chart of a crosshair control method provided in an embodiment of the present application, which is executed by a terminal. As shown in FIG11 , the method includes:

[0238] 1101. In response to a second movement operation on a sight star, the terminal determines a second movement direction and a second movement speed of the second movement operation.

[0239] 1102. In response to the crosshairs being within the adsorption range of the first virtual object and the second movement direction indicating that the crosshairs are moving away from the virtual object, the terminal queries a second correspondence based on the distance between the second virtual object controlled by the terminal and the first virtual object, and obtains a second adjustment coefficient corresponding to the distance, where the second correspondence is a correspondence between the distance between the second virtual object and the first virtual object and the adjustment coefficient when the crosshairs moves in a direction away from the first virtual object.

[0240] Steps 1101-1102 are similar to the above steps 1001-1002 and will not be repeated here.

[0241] 1103. The terminal obtains an adjustment parameter corresponding to the moving speed of the second moving operation.

[0242] In an embodiment of the present application, when the second movement operation is an operation of controlling the crosshairs to move away from the first virtual object, an adjustment parameter corresponding to the movement speed of the second movement operation is also obtained, and the adjustment parameter is used to adjust the movement speed of the crosshairs away from the first virtual object.

[0243] In a possible implementation, step 1103 includes: the terminal queries the fifth corresponding relationship based on the moving speed of the second moving operation to obtain an adjustment parameter corresponding to the moving speed of the second moving operation.

[0244] The fifth correspondence is a correspondence between a movement speed and an adjustment parameter for controlling the movement of the crosshair away from the first virtual object when the crosshair is away from the first virtual object. The fifth correspondence can be represented in any form, for example, as a graph, where the X-axis of the graph represents the movement speed, the Y-axis of the graph represents the adjustment parameter, and the curves in the graph can represent the adjustment parameters corresponding to the respective movement speeds. For example, the fifth correspondence is Lock Degress Factor Away Mid (adjustment coefficient for moving away from the locked target).

[0245] In one possible implementation, the second movement operation on the aiming star is a sliding operation of the user on the screen of the terminal. Step 1103 includes: the terminal determines the sliding coefficient of the moving speed of the second movement operation, queries the sixth correspondence, obtains the adjustment parameter corresponding to the sliding coefficient, and determines the adjustment parameter corresponding to the sliding coefficient as the adjustment parameter corresponding to the moving speed of the second movement operation.

[0246] The sliding coefficient is used to indicate the situation in which the second movement operation is triggered. The sixth correspondence is the correspondence between the sliding coefficient and the adjustment parameter corresponding to the movement operation of controlling the crosshair to move away from the first virtual object when the crosshair moves away from the first virtual object. The sixth correspondence can be represented in any form, for example, as a graph, where the X-axis of the graph represents the sliding coefficient, the Y-axis of the graph represents the adjustment parameter, and the curves in the graph can represent the adjustment parameters corresponding to the respective sliding coefficients.

[0247] In one possible implementation, the moving speed of the second moving operation is represented by the rotation angle of a virtual camera in a virtual scene, and the rotation angle of the virtual camera includes a pitch angle and a yaw angle. The process of determining the sliding coefficient of the moving speed of the second moving operation includes: determining the larger value of the pitch angle and the yaw angle included in the rotation angle of the virtual camera as the sliding coefficient of the second moving operation.

[0248] Optionally, the process of obtaining the pitch angle and the yaw angle includes: the terminal extracts the pitch angle and the yaw angle from the Rotation Input Cache.

[0249] In the embodiment of the present application, the Rotation Input Cache is used to store the rotation angle input by the user.

[0250] Optionally, the process of determining the rotation angle of the virtual camera includes: the terminal responds to a sliding operation toward the aiming star, determines the direction from the starting point of the sliding operation to the end point as the rotation direction of the virtual camera in the virtual scene, determines the ratio between the distance between the starting point and the end point and the sliding duration as the sliding speed of the sliding operation, maps the sliding speed of the sliding operation to the virtual scene, and obtains the rotation angle of the virtual camera.

[0251] 1104. The terminal determines a product of the second adjustment coefficient corresponding to the distance, the adjustment parameter corresponding to the moving speed of the second moving operation, and the moving speed of the second moving operation as a fifth moving speed.

[0252] This step is similar to the above step 1003 and will not be repeated here.

[0253] It should be noted that the embodiment of the present application determines the fifth moving speed in combination with the adjustment parameters corresponding to the moving speed of the second moving operation. In another embodiment, there is no need to execute the above steps 1103-1104, but other methods are adopted to multiply the second adjustment coefficient corresponding to the distance and the moving speed of the second moving operation to determine the fifth moving speed.

[0254] 1105. The terminal displays, in the scene interface, a crosshair moving in a direction away from the first virtual object at a fifth moving speed.

[0255] In an embodiment of the present application, the second correspondence is a correspondence applicable when the crosshairs moves in a direction away from the target virtual object. When the crosshairs moves in a direction away from the first virtual object, a mechanism of locking the crosshairs on the first virtual object is adopted. Based on the distance between the second virtual object and the first virtual object and the second correspondence, combined with the adjustment parameters corresponding to the moving speed of the second moving operation, the moving speed of the crosshairs is adjusted so that the obtained fifth moving speed is related to the distance and the moving speed of the second moving operation to ensure the accuracy of the determined fifth moving speed, to avoid the situation where the crosshairs deviates from the targeted first virtual object due to user's misoperation, and to ensure that the crosshairs can aim at the virtual object as much as possible.

[0256] In addition, based on the above-described embodiment, when the crosshair is within the adsorption range of the first virtual object, the assisted aiming function remains in effect, and the crosshair's movement speed is adjusted according to the method provided in the embodiment of the present application to ensure that the crosshair is aligned with the first virtual object as closely as possible. Furthermore, the user can control the crosshair to move outside the adsorption range of the first virtual object. After the crosshair moves out of the adsorption range of the first virtual object, if the duration of the crosshair's absence from the adsorption range is less than a threshold, the assisted aiming function remains in effect, and the crosshair's movement speed is adjusted according to the above-described embodiment to ensure that the crosshair is aligned with the first virtual object as closely as possible. If the duration of the crosshair's absence from the adsorption range is greater than or equal to the threshold, the assisted aiming function becomes ineffective, and the crosshair's movement speed is no longer adjusted. Instead, the speed of the crosshair's movement operation is simply mapped to the virtual scene, and the crosshair is displayed moving in the direction of the movement operation according to the mapped speed.

[0257] In addition, in the crosshair control method provided in the embodiment of the present application, the terminal displays the video frames one by one in the form of game video frames, so as to present the game screen in the scene interface. In the above embodiment, the process of controlling the movement of the crosshair in response to the movement operation of the crosshair can be based on the time interval of the terminal displaying the game video frame. At each time interval, the crosshair control method provided in the embodiment of the present application is used to control the crosshair so that the position of the crosshair after the movement is displayed in the next video frame. Then, during the process of continuously displaying multiple video frames of the game, the terminal presents a picture of the crosshair moving toward the first virtual object. The time interval between two adjacent video frames can be of any duration, for example, 0.3 seconds or 0.2 seconds. In the embodiment of the present application, the first movement operation triggered by the user may correspond to multiple time intervals. In response to the first movement operation, based on the currently displayed video frame, according to the embodiments shown in Figures 2 to 11 above, a second movement speed of the crosshair is determined, and the display position of the crosshair in the next video frame is determined. The next video frame is then displayed, and the above steps are repeated. During the process of continuously displaying multiple video frames of the game, the terminal presents a picture of the crosshair moving toward the first virtual object.

[0258] In the embodiments of the present application, based on the above-described embodiments, the process of controlling the movement of the crosshair toward the first virtual object in response to a movement operation of the crosshair falls under active attachment logic, meaning that the user actively controls the crosshair's attachment to a virtual object. Furthermore, embodiments of the present application also provide passive attachment logic, meaning that the attachment logic is not based on user-initiated aiming. The passive attachment logic for the crosshair is triggered when the crosshair is within the attachment range of the first virtual object. Passive attachment logic is independent of user-initiated movement of the crosshair. Even without user-initiated movement of the crosshair, the passive attachment logic is triggered as long as the crosshair is within the attachment range of the first virtual object. When the passive attachment logic is triggered, the process of the crosshair attaching to the first virtual object is similar to the process described above when the user triggers the active attachment logic, and will not be further described here. Under both active and passive attachment logic, aiming speeds are configured in both the fired and unfired states, meaning that the crosshair's movement speed is configured in both the fired and unfired states. For example, Passive Auto Aim Speed ​​(passive adsorption aiming speed in the unfired state), Passive Auto Aim Fire Speed ​​(passive adsorption aiming speed in the fired state), Auto Aim Speed ​​(active adsorption aiming speed in the unfired state), and Auto Aim Fire Speed ​​(active adsorption aiming speed in the fired state). In addition, in the fired state, according to the above-mentioned active adsorption logic, the crosshairs are adsorbed on a certain adsorption point of the first virtual object. After a period of time, the active adsorption logic is turned off. At this time, the crosshairs are already aimed at the first virtual object, and there is no need to trigger the active adsorption logic. The interval period can be of any length, for example, 5 seconds, or the length of time required for the second virtual object to shoot any number of projectiles based on the handheld virtual prop.

[0259] Based on the embodiments shown in FIG. 2 to FIG. 1 , the present application also provides a flowchart of a crosshair control method, as shown in FIG. 12 , the method includes:

[0260] Step 1: The user triggers a crosshair movement operation through the terminal to control the crosshair's movement within the virtual scene to locate the virtual object to be targeted. If the crosshair is within the adsorption range of multiple virtual objects, a ray detection method is used to select the first virtual object closest to the second virtual object controlled by the user through the terminal as the virtual object to be targeted.

[0261] In the embodiment of the present application, an aiming priority (Auto Aim Order) is adopted, and the first virtual object that is closest to the second virtual object controlled by the user through the terminal is prioritized as the virtual object to be aimed.

[0262] Step 2: The terminal determines the adsorption mode, and determines whether it is active adsorption or passive adsorption.

[0263] Step 3. The terminal calculates the user operation factor and determines whether the crosshair is close to or away from the first virtual object based on the movement operation triggered by the user. Based on the movement direction indicated by the movement operation, the terminal determines the first adsorption point from the auxiliary aiming line to determine whether to aim at the head or torso of the first virtual object. When approaching or moving away from the first virtual object, the terminal determines the movement speed of the crosshair based on the movement speed of the movement operation in accordance with the method provided in the above embodiment.

[0264] Step 4: The terminal determines the enemy status factors, that is, whether the virtual prop held by the second virtual object is firing, the movement speed of the second virtual object, whether the second virtual object uses a skill Buff, etc.

[0265] Step 5: The terminal displays the crosshair in the scene interface and moves toward the first adsorption point of the first virtual object at the determined moving speed, so that the crosshair is adsorbed on the first adsorption point to achieve aiming at the first virtual object.

[0266] Step 6. When the terminal moves the crosshairs toward the first virtual object to aim at the first virtual object, once the first virtual object moves, the terminal automatically displays the crosshairs following the movement of the first virtual object. When the crosshairs moves between multiple sub-ranges included in the adsorption range of the first virtual object, the terminal can determine a new adsorption point for the crosshairs and control the movement speed of the crosshairs so that the movement speed of the crosshairs is smooth when the crosshairs moves between the multiple sub-ranges.

[0267] FIG13 is a schematic structural diagram of a crosshair control device provided in an embodiment of the present application. As shown in FIG13 , the device includes:

[0268] The display module 1301 is configured to display a scene interface of a virtual scene, and display a first virtual object and a crosshair in the scene interface;

[0269] A determination module 1302 is configured to, when the crosshair is outside the adsorption range of the first virtual object, determine a first movement direction of the crosshair indicated by the first movement operation in response to a first movement operation on the crosshair;

[0270] An acquisition module 1303 is configured to determine a first adsorption point located in the first virtual object based on a motion posture of the first virtual object when the crosshair is located within the adsorption range of the first virtual object and the first moving direction points to the first virtual object;

[0271] The display module 1301 is further used to display the movement of the crosshair toward the first adsorption point in the scene interface.

[0272] In a possible implementation, the acquisition module 1303 is configured to determine an auxiliary sight line of the first virtual object based on the motion posture of the first virtual object; and determine the first adsorption point from the auxiliary sight line of the first virtual object.

[0273] In another possible implementation, the acquisition module 1303 is configured to determine positions of key points on the first virtual object when the first virtual object is in motion; and connect the key points according to the positions of the key points to form an auxiliary aiming line.

[0274] In another possible implementation, the acquisition module 1303 is used to determine the first adsorption point based on the intersection of a ray along the first moving direction and the auxiliary aiming line, where the ray takes the current position of the crosshair as a starting point; or, to determine the first adsorption point based on a point in the auxiliary aiming line that is on the same horizontal line as the crosshair; or, to determine the point in the auxiliary aiming line that has the smallest distance to the crosshair as the first adsorption point.

[0275] In another possible implementation, the auxiliary aiming line includes a first line segment, a second line segment, and a third line segment, the first line segment is a line segment between the head key point of the first virtual object and the upper boundary of the adsorption range, the second line segment is a line segment between the torso key point of the first virtual object and the lower boundary of the adsorption range, and the third line segment is a line segment between the head key point and the torso key point; the determination module 1302 is used to determine the head key point as the first adsorption point when the intersection point is the intersection point of the ray and the first line segment; or, when the intersection point is the intersection point of the ray and the second line segment, determine the torso key point as the first adsorption point; or, when the intersection point is the intersection point of the ray and the third line segment, determine the intersection point of the ray and the third line segment as the first adsorption point.

[0276] In another possible implementation, the auxiliary aiming line includes a first line segment, a second line segment, and a third line segment, the first line segment is a line segment between the head key point of the first virtual object and the upper boundary of the adsorption range, the second line segment is a line segment between the torso key point of the first virtual object and the lower boundary of the adsorption range, and the third line segment is a line segment between the head key point and the torso key point; the determination module 1302 is used to determine the head key point as the first adsorption point when the crosshair and the point in the first line segment are on the same horizontal line; or, when the crosshair and the point in the second line segment are on the same horizontal line, determine the torso key point as the first adsorption point; or, when the crosshair and the point in the third line segment are on the same horizontal line, determine the point in the third line segment on the same horizontal line as the crosshair as the first adsorption point.

[0277] In another possible implementation, the adsorption range includes a plurality of sub-ranges; the first adsorption point is located in a first sub-range of the plurality of sub-ranges;

[0278] The determining module 1302 is further configured to determine, in response to the crosshair moving from the first subrange into the second subrange, a second adsorption point located in the second subrange from the auxiliary aiming line, where the second subrange is a subrange adjacent to the first subrange among the plurality of subranges;

[0279] The acquisition module 1303 is further configured to determine a fifth movement speed based on a duration of time the crosshair has been within the second sub-range and a current movement speed of the crosshair;

[0280] The display module 1301 is further configured to display, in the scene interface, the crosshair moving toward the second adsorption point at the fifth moving speed.

[0281] In another possible implementation, the acquisition module 1303 is further configured to determine a third movement speed based on the distance between the second virtual object controlled by the terminal and the first virtual object and the second movement speed, where the second movement speed is the movement speed of the first movement operation, and the third movement speed is negatively correlated with the distance.

[0282] The display module 1301 is configured to display, in the scene interface, the crosshair moving toward the first adsorption point at a third moving speed.

[0283] In a possible implementation, the acquisition module 1303 is configured to determine a third movement speed based on the distance between the second virtual object and the first virtual object and the second movement speed when the second movement speed is greater than a preset speed threshold.

[0284] In another possible implementation, the acquisition module 1303 is used to query the first correspondence based on the distance between the second virtual object and the first virtual object to obtain a first adjustment coefficient corresponding to the distance, where the first correspondence is the correspondence between the distance between the second virtual object and the first virtual object and the adjustment coefficient when the crosshair moves toward the first virtual object; and the product of the first adjustment coefficient corresponding to the distance and the second moving speed is determined as the third moving speed.

[0285] In another possible implementation, the crosshairs is displayed when the second virtual object holds a virtual prop; an acquisition module 1303 is configured to query a first correspondence based on the distance between the second virtual object and the first virtual object to obtain a first adjustment coefficient corresponding to the distance, where the first correspondence is a correspondence between the distance between the second virtual object and the first virtual object and the adjustment coefficient when the crosshairs moves toward the first virtual object; obtain the adjustment coefficient corresponding to the virtual prop; and determine the third movement speed as the product of the adjustment coefficient corresponding to the virtual prop, the first adjustment coefficient corresponding to the distance, and the second movement speed.

[0286] In another possible implementation, the acquisition module 1303 is used to query the first correspondence based on the distance between the second virtual object and the first virtual object, and obtain a first adjustment coefficient corresponding to the distance, where the first correspondence is the correspondence between the distance between the second virtual object and the first virtual object and the adjustment coefficient when the crosshair moves toward the first virtual object; obtain a scaling ratio, which is used to map the second moving speed of the first moving operation to the virtual scene; and determine the product of the first adjustment coefficient corresponding to the distance, the scaling ratio, and the second moving speed as the third moving speed.

[0287] In another possible implementation, multiple virtual objects are displayed in the scene interface; the acquisition module 1303 is used to determine a first virtual object that is closest to a second virtual object among the multiple virtual objects when the crosshairs is within the adsorption range of the multiple virtual objects and the first moving direction points to the multiple virtual objects, where the second virtual object is a virtual object controlled by this terminal; and determine a first adsorption point located in the first virtual object based on the motion posture of the first virtual object.

[0288] In another possible implementation, the display module 1301 is further configured to, in response to the first virtual object moving in a direction away from the crosshair in the virtual scene, display the crosshair to move with the first virtual object.

[0289] In another possible implementation, the display module 1301 is used to determine a fourth movement speed in response to the first virtual object moving away from the crosshair in the virtual scene, based on the difference between the displacement of the first movement operation and the displacement of the first virtual object and the third movement speed, where the third movement speed is the speed at which the crosshair moves toward the first adsorption point; in the scene interface, the crosshair is displayed to move along with the first virtual object at the fourth movement speed.

[0290] In another possible implementation, as shown in FIG14 , the apparatus further includes:

[0291] The determining module 1302 is further configured to determine a second moving direction and a moving speed of the second moving operation in response to the second moving operation on the aiming star;

[0292] a query module 1304 configured to query a second correspondence based on a distance between the second virtual object controlled by the terminal and the first virtual object in response to the crosshair being within the adsorption range of the first virtual object and the second movement direction indicating that the crosshair is moving away from the first virtual object, to obtain a second adjustment coefficient corresponding to the distance, the second correspondence being a correspondence between the distance between the second virtual object and the first virtual object and the adjustment coefficient when the crosshair is moving in a direction away from the first virtual object;

[0293] The determining module 1302 is further configured to determine a fifth moving speed by multiplying a second adjustment coefficient corresponding to the distance by a moving speed of the second moving operation;

[0294] The display module 1301 is further configured to display, in the scene interface, the crosshair moving in a direction away from the first virtual object at a fifth moving speed.

[0295] In another possible implementation, the acquisition module 1303 is further configured to acquire an adjustment parameter corresponding to the movement speed of the second movement operation;

[0296] The determining module 1302 is configured to determine a fifth moving speed by multiplying the second adjustment coefficient corresponding to the distance, the adjustment parameter corresponding to the moving speed of the second moving operation, and the moving speed of the second moving operation.

[0297] It should be noted that the crosshair control device provided in the above embodiment is merely an example of the division of the aforementioned functional modules. In actual applications, the aforementioned functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the crosshair control device provided in the above embodiment and the crosshair control method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0298] An embodiment of the present application also provides a computer device, which includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed by the crosshair control method of the above embodiment.

[0299] Optionally, the computer device is provided as a terminal. FIG15 shows a block diagram of a terminal 1500 provided in an exemplary embodiment of the present application. The terminal 1500 includes: a processor 1501 and a memory 1502.

[0300] The processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0301] Memory 1502 may include one or more computer-readable storage media, which may be non-transitory. Memory 1502 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1502 is used to store at least one computer program, which is executed by processor 1501 to implement the crosshair control method provided in the method embodiment of the present application.

[0302] In some embodiments, terminal 1500 may optionally include a peripheral device interface 1503 and at least one peripheral device. The processor 1501, memory 1502, and peripheral device interface 1503 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 1503 via a bus, signal lines, or circuit boards. Specifically, the peripheral device may include at least one of a radio frequency circuit 1504, a display screen 1505, a camera assembly 1506, an audio circuit 1507, and a power supply 1508.

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

[0304] RF circuit 1504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. RF circuit 1504 communicates with communication networks and other communication devices via electromagnetic signals. RF circuit 1504 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. RF circuit 1504 may optionally include an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. RF circuit 1504 may communicate with other terminals via at least one wireless communication protocol. Such wireless communication protocols include, but are not limited to, the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, RF circuit 1504 may also include circuitry related to Near Field Communication (NFC), although this application does not limit this.

[0305] The display screen 1505 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1505 is a touch screen display, the display screen 1505 also has the ability to collect touch signals on the surface or above the surface of the display screen 1505. The touch signal can be input as a control signal to the processor 1501 for processing. In this case, the display screen 1505 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, there can be one display screen 1505, which is set on the front panel of the terminal 1500; in other embodiments, there can be at least two display screens 1505, which are respectively set on different surfaces of the terminal 1500 or in a folding design; in other embodiments, the display screen 1505 can be a flexible display screen, which is set on the curved surface or folding surface of the terminal 1500. Even more, the display screen 1505 can be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1505 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0306] The camera assembly 1506 is used to capture images or videos. Optionally, the camera assembly 1506 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1506 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. The dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0307] The audio circuit 1507 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input into the processor 1501 for processing, or input into the radio frequency circuit 1504 to achieve voice communication. For the purpose of stereo sound collection or noise reduction, there may be multiple microphones, each located in different parts of the terminal 1500. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert electrical signals from the processor 1501 or the radio frequency circuit 1504 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1507 may also include a headphone jack.

[0308] Power supply 1508 is used to power various components in terminal 1500. Power supply 1508 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When power supply 1508 includes a rechargeable battery, the rechargeable battery can be wired or wirelessly rechargeable. A wired rechargeable battery is charged via a wired line, while a wireless rechargeable battery is charged via a wireless coil. The rechargeable battery can also support fast charging technology.

[0309] Those skilled in the art will understand that the structure shown in FIG15 does not constitute a limitation on the terminal 1500 , and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0310] Optionally, the computer device is provided as a server. Figure 16 is a schematic diagram of the structure of a server provided in an embodiment of the present application. The server 1600 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1601 and one or more memories 1602, wherein at least one computer program is stored in the memory 1602, and at least one computer program is loaded and executed by the processor 1601 to implement the methods provided in the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server may also include other components for implementing device functions, which will not be described in detail here.

[0311] An embodiment of the present application further provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the operations performed by the crosshair control method of the above embodiment.

[0312] An embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the operations performed by the crosshair control method of the above embodiment.

[0313] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0314] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.

Claims

1. A crosshair control method, executed by a terminal, the method include: Displaying a scene interface of a virtual scene, wherein a first virtual object and a crosshair are displayed in the scene interface; When the crosshair is outside the adsorption range of the first virtual object, in response to a first movement operation on the crosshair, determining a first movement direction of the crosshair indicated by the first movement operation; In response to the crosshair being within the adsorption range and the first movement direction pointing to the first virtual object, determining a first adsorption point located in the first virtual object based on a motion posture of the first virtual object; and In the scene interface, the crosshair is displayed moving toward the first adsorption point.

2. The method according to claim 1, wherein the first adsorption point located in the first virtual object is determined based on the motion posture of the first virtual object. include: Determining an auxiliary aiming line of the first virtual object based on a motion posture of the first virtual object; The first adsorption point is determined from an auxiliary sighting line of the first virtual object.

3. The method according to claim 2, wherein the auxiliary aiming line of the first virtual object is determined based on the motion posture of the first virtual object. include: Determining positions of key points on the first virtual object when the first virtual object is in the motion posture; The key points are connected according to their positions to form the auxiliary aiming line.

4. The method according to claim 2 or 3, wherein the first adsorption point is determined from an auxiliary sighting line of the first virtual object. include: The first adsorption point is determined based on an intersection of a ray along the first moving direction and the auxiliary aiming line, wherein the ray takes the current position of the crosshair as a starting point.

5. The method according to claim 2 or 3, wherein the first adsorption point is determined from an auxiliary sighting line of the first virtual object. include: The first adsorption point is determined based on a point in the auxiliary sighting line that is on the same horizontal line as the crosshair.

6. The method according to claim 2 or 3, wherein the first adsorption point is determined from an auxiliary sighting line of the first virtual object. include: The point in the auxiliary sighting line that is at the shortest distance from the crosshair is determined as the first adsorption point.

7. The method according to any one of claims 2 to 6, wherein the adsorption range includes a plurality of sub-ranges ; The first adsorption point is located in a first sub-range of the multiple sub-ranges; the method further includes: In response to the crosshairs entering a second subrange from the first subrange, determining a second adsorption point located in the second subrange from the auxiliary sight line, the second subrange being a subrange adjacent to the first subrange among the plurality of subranges; Determine a first moving speed based on the existence time of the crosshair within the second sub-range and the current moving speed of the crosshair; In the scene interface, the crosshair is displayed moving toward the second adsorption point at the first moving speed.

8. The method according to any one of claims 1 to 7, further comprising: include: determining a second virtual object controlled by the terminal, and determining a third moving speed based on a distance between the second virtual object and the first virtual object and a second moving speed, wherein the second moving speed is a moving speed of the first moving operation, and the third moving speed is negatively correlated with the distance; The step of displaying, in the scene interface, that the crosshair moves toward the first adsorption point includes: In the scene interface, the crosshair is displayed moving toward the first adsorption point at the third moving speed.

9. The method according to claim 8, wherein the third moving speed is determined based on the distance between the second virtual object and the first virtual object and the second moving speed, include: When the second moving speed is greater than a preset speed threshold, the third moving speed is determined based on the distance between the second virtual object and the first virtual object and the second moving speed.

10. The method according to claim 8, wherein the third moving speed is determined based on the distance between the second virtual object and the first virtual object and the second moving speed, include: Based on the distance between the second virtual object and the first virtual object, query a first corresponding relationship to obtain a first adjustment coefficient corresponding to the distance, wherein the first corresponding relationship is a corresponding relationship between the distance between the second virtual object and the first virtual object and the adjustment coefficient when the crosshair moves toward the first virtual object; The third moving speed is determined as a product of a first adjustment coefficient corresponding to the distance and the second moving speed.

11. The method according to claim 8, wherein the crosshair is displayed when the second virtual object holds a virtual prop; and the third moving speed is determined based on the distance between the second virtual object and the first virtual object and the second moving speed. include: Based on the distance between the second virtual object and the first virtual object, query a first corresponding relationship to obtain a first adjustment coefficient corresponding to the distance, wherein the first corresponding relationship is a corresponding relationship between the distance between the second virtual object and the first virtual object and the adjustment coefficient when the crosshair moves toward the first virtual object; Obtaining the adjustment coefficient corresponding to the virtual prop; The third moving speed is determined by multiplying the adjustment coefficient corresponding to the virtual item, the first adjustment coefficient corresponding to the distance, and the second moving speed.

12. The method according to claim 8, wherein the third moving speed is determined based on the distance between the second virtual object and the first virtual object and the second moving speed, include: Based on the distance between the second virtual object and the first virtual object, query a first corresponding relationship to obtain a first adjustment coefficient corresponding to the distance, wherein the first corresponding relationship is a corresponding relationship between the distance between the second virtual object and the first virtual object and the adjustment coefficient when the crosshair moves toward the first virtual object; Acquire a scaling ratio, where the scaling ratio is used to map a second movement speed of the first movement operation to the virtual scene; The third moving speed is determined by multiplying a first adjustment coefficient corresponding to the distance, the scaling ratio, and the second moving speed.

13. The method according to any one of claims 1 to 12, wherein a plurality of virtual objects are displayed in the scene interface; in response to the crosshair being within the adsorption range and the first moving direction pointing to the first virtual object, determining a first adsorption point located in the first virtual object based on a motion posture of the first virtual object, include: In response to the crosshair being within the adsorption range and the first moving direction pointing to the multiple virtual objects, determining a first virtual object that is closest to a second virtual object among the multiple virtual objects, the second virtual object being a virtual object controlled by the terminal; Based on the motion posture of the first virtual object, a first adsorption point located in the first virtual object is determined.

14. The method according to any one of claims 1 to 13, further comprising: include: In response to the first virtual object moving in the virtual scene in a direction away from the crosshair, the crosshair is displayed to move along with the first virtual object.

15. The method according to claim 14, wherein in response to the first virtual object moving in the virtual scene in a direction away from the crosshair, the crosshair is displayed to move with the first virtual object, include: In response to the first virtual object moving in the virtual scene in a direction away from the crosshair, determining a fourth movement speed based on a difference between a displacement of the first movement operation and a displacement of the first virtual object and a third movement speed, wherein the third movement speed is a speed at which the crosshair moves toward the first adsorption point; In the scene interface, the crosshair is displayed to move along with the first virtual object at the fourth moving speed.

16. The method according to any one of claims 1 to 15, further comprising: include: In response to a second movement operation on the crosshair, determining a second movement direction and a movement speed of the second movement operation; In response to the crosshair being located within the adsorption range of the first virtual object and the second moving direction indicating that the crosshair is moving away from the first virtual object, based on the distance between the second virtual object controlled by the terminal and the first virtual object, a second corresponding relationship is queried to obtain a second adjustment coefficient corresponding to the distance, wherein the second corresponding relationship is when the crosshair moves in a direction away from the first virtual object, the second virtual object moves away from the first virtual object. The correspondence between the distance between the simulated objects and the adjustment coefficient; determining a fifth moving speed based on a product of a second adjustment coefficient corresponding to the distance and a moving speed of the second moving operation; In the scene interface, the crosshair is displayed moving in a direction away from the first virtual object at the fifth moving speed.

17. The method according to claim 16, further comprising: include: Obtaining an adjustment parameter corresponding to the moving speed of the second moving operation; The determining the fifth moving speed based on the product of the second adjustment coefficient corresponding to the distance and the moving speed of the second moving operation includes: The fifth moving speed is determined by multiplying a second adjustment coefficient corresponding to the distance, an adjustment parameter corresponding to the moving speed of the second moving operation, and the moving speed of the second moving operation.

18. A sight control device, the device include: A display module, used to display a scene interface of a virtual scene, wherein a first virtual object and a crosshair are displayed in the scene interface; a determination module, configured to determine, in response to a first movement operation on the crosshair, a first movement direction of the crosshair indicated by the first movement operation when the crosshair is outside the adsorption range of the first virtual object; An acquisition module, configured to determine a first adsorption point located in the first virtual object based on a motion posture of the first virtual object when the crosshair is located within an adsorption range of the first virtual object and the first moving direction points to the first virtual object; The display module is further used to display the movement of the crosshair toward the first adsorption point in the scene interface.

19. A computer device, comprising a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed by the crosshair control method according to any one of claims 1 to 17.

20. A computer-readable storage medium, wherein at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor to implement the operations performed by the crosshair control method according to any one of claims 1 to 17.

21. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the operations performed by the crosshair control method according to any one of claims 1 to 17.

Citation Information

Patent Citations

  • Method and device for locating target in virtual interactive scene and electronic equipment

    CN109529327A

  • Target positioning method and device in virtual interaction scene and electronic equipment

    CN110147159A

  • Virtual scene display method and device, electronic equipment and storage medium

    CN110732135A

  • Virtual item control method and device, equipment, storage medium and program product

    CN114130006A

  • Front sight display method and device in virtual scene, equipment and storage medium

    CN114762773A