Method and Apparatus for Throwing Virtual Projectile, Device, and Storage Medium

By displaying offset information to adjust aiming positions based on environmental factors, the method and apparatus enhance the accuracy and realism of virtual projectile throwing, improving interaction experience and hit rates in virtual environments.

US20260373597A1Pending Publication Date: 2026-11-26TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/679873
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2024-08-08
Filing Date
2026-05-18
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing virtual projectile throwing systems in virtual environments suffer from low accuracy due to environmental factors like wind and gravity, leading to reduced hit rates and diminished interaction experience.

Method used

A method and apparatus that display offset information to adjust the aiming position based on environmental factors, allowing for a more accurate prediction of the virtual projectile's landing position, enhancing the interaction experience and human-computer interaction rate.

Benefits of technology

The method and apparatus improve the accuracy of virtual projectile throwing by accounting for environmental factors, thereby increasing the hit rate and realism in virtual environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260373597A1-D00000_ABST
    Figure US20260373597A1-D00000_ABST
Patent Text Reader

Abstract

Disclosed are a method and apparatus for controlling an object to throw a virtual projectile in a virtual environment. The method comprises: displaying an image of a virtual environment; and displaying offset information of an aiming position in the image of the virtual environment. The aiming position is a position to be hit by the virtual projectile. The offset information is configured to prompt, under the impact of environmental factors in the virtual environment, an offset of a landing position of the virtual projectile relative to the aiming position, and the landing position is a predicted position at which the virtual projectile lands after the virtual projectile is thrown toward the aiming position. The method further comprises in response to a throwing operation directed to a target position, rendering movement of the virtual projectile toward the target position.
Need to check novelty before this filing date? Find Prior Art

Description

RELATED APPLICATIONS

[0001] This application claims priority to PCT / CN2025 / 103105, filed on Jun. 24, 2025, which claims priority to Chinese Patent Application No. 202411091294.3, entitled “METHOD AND APPARATUS FOR THROWING VIRTUAL PROJECTILE, DEVICE, AND STORAGE MEDIUM” filed on Aug. 8, 2024, each of which is incorporated herein by reference in its entirety.FIELD OF THE TECHNOLOGY

[0002] This application relates to the field of computer technologies, and in particular, to a method and apparatus for controlling an object to throw a virtual projectile in a virtual environment.BACKGROUND OF THE DISCLOSURE

[0003] With the development of computer technologies, an increasing number of application programs capable of providing virtual environments have emerged. In some application programs, an interaction object is capable of performing a throwing operation of a virtual projectile (e.g., a virtual bullet, a virtual bomb, a virtual flash grenade, and a virtual smoke grenade) in a virtual environment, and a computer device can achieve the effects of throwing the virtual projectile according to the throwing operation.SUMMARY

[0004] The application provide a method and apparatus for throwing a virtual projectile, a device, and a storage medium, which can be used to enhance a hit rate of the virtual projectile, thereby enhancing an interaction experience of an interaction object and enhancing a human-computer interaction rate. The technical solutions are as follows:

[0005] In one aspect, the examples of this application provide a method for throwing a virtual projectile, the method being performed by a computer device, and the method including: displaying an image of a virtual environment; displaying offset information of an aiming position in the image of the virtual environment, the aiming position being a position to be hit by the virtual projectile, the offset information being configured to prompt, under the impact of environmental factors in the virtual environment, an offset of a landing position of the virtual projectile relative to the aiming position, and the landing position being a predicted position at which the virtual projectile lands after the virtual projectile is thrown toward the aiming position; obtaining a target position by adjusting the aiming position according to the offset information; and in response to a throwing operation directed to the target position, rendering movement of the virtual projectile toward the target position.

[0006] In another aspect, an apparatus for throwing a virtual projectile is provided, the apparatus including: a first display module configured to display an image of a virtual environment; a second display module configured to display offset information of an aiming position in the image of the virtual environment, the aiming position being a position to be hit by the virtual projectile, the offset information being configured to prompt, under the impact of environmental factors in the virtual environment, an offset of a landing position of the virtual projectile relative to the aiming position, and the landing position being a predicted position at which the virtual projectile lands after the virtual projectile is thrown toward the aiming position; and obtain a target position by adjusting the aiming position according to the offset information. The apparatus includes a throwing module configured to, in response to a throwing operation directed to the target position, throw the virtual projectile toward the target position.

[0007] In another aspect, the examples of this application provide a computer device, including a processor and a memory, the memory having at least one computer program stored therein, and the at least one computer program being loaded and executed by the processor to cause the computer device to perform the method for throwing a virtual projectile according to any one of the above aspects.

[0008] In another aspect, the examples of this application provide a non-transitory non-volatile computer-readable storage medium having at least one computer program stored therein, the at least one computer program being loaded and executed by a processor to cause a computer to perform the method for throwing a virtual projectile according to any one of the above aspects.

[0009] In another aspect, the examples of this application provide a computer program product or a computer program, the computer program product or the computer program including computer instructions, the computer instructions being loaded and executed by a processor to cause a computer to perform the method for throwing a virtual projectile according to any one of the above aspects.

[0010] According to the technical solutions provided in the examples of this application, offset information of an aiming position is displayed to prompt an interaction object, such that the interaction object is informed of how to adjust the aiming position for throwing so that a virtual projectile lands at the aiming position. Accordingly, the interaction object is prompted to trigger a throwing operation after adjusting the aiming position to a target position that increases a probability of the virtual projectile landing at the aiming position, such that a computer device throws the virtual projectile toward the target position, thereby increasing the probability that the virtual projectile lands at the aiming position. Thus, the throwing accuracy of the virtual projectile is enhanced, which is conducive to enhancing a hit rate of the virtual projectile, thereby enhancing an interaction experience of the interaction object and enhancing human-computer interaction rate.

[0011] In addition, the offset information of the aiming information is determined based on environmental factors in the virtual environment. By introducing environmental factors in the virtual environment that more closely approximate those in a real environment (e.g., wind and gravity), an experience of throwing in a real environment can be provided to the interaction object, thereby enhancing the realism of throwing and further enhancing the interaction experience of the interaction object and the human-computer interaction rate.BRIEF DESCRIPTION OF THE DRAWINGS

[0012] FIG. 1 is a schematic structural diagram of a computer system according to an example of this application.

[0013] FIG. 2 is a flowchart of a method for throwing a virtual projectile according to an example of this application.

[0014] FIG. 3 is a schematic diagram of display of a wind icon according to an example of this application.

[0015] FIG. 4 is a schematic diagram of display of a wind icon in the related art.

[0016] FIG. 5 is a schematic diagram of display of a throwing trajectory according to an example of this application.

[0017] FIG. 6 is a schematic diagram of display of another throwing trajectory according to an example of this application.

[0018] FIG. 7 is a schematic diagram of display of a lateral dense scale line according to an example of this application.

[0019] FIG. 8 is a schematic diagram of display of another lateral dense scale line according to an example of this application.

[0020] FIG. 9 is a schematic diagram of display of offset information according to an example of this application.

[0021] FIG. 10 is a schematic diagram of display of another piece of offset information according to an example of this application.

[0022] FIG. 11 is a schematic diagram of display of another piece of offset information according to an example of this application.

[0023] FIG. 12 is a schematic diagram of display of an auxiliary throwing interface according to an example of this application.

[0024] FIG. 13 is a schematic diagram of display of a throwing interface according to an example of this application.

[0025] FIG. 14 is a schematic diagram of display of another throwing interface according to an example of this application.

[0026] FIG. 15 is a schematic diagram of display of another auxiliary throwing interface according to an example of this application.

[0027] FIG. 16 is a schematic diagram of display of another throwing interface according to an example of this application.

[0028] FIG. 17 is a schematic diagram of display of another throwing interface according to an example of this application.

[0029] FIG. 18 is a schematic diagram of display of another throwing interface according to an example of this application.

[0030] FIG. 19 is an overall flowchart of a method for throwing a virtual projectile according to an example of this application.

[0031] FIG. 20 is a schematic structural diagram of an apparatus for throwing a virtual projectile according to an example of this application.

[0032] FIG. 21 is a schematic structural diagram of a server according to an example of this application.

[0033] FIG. 22 is a schematic structural diagram of a terminal device according to an example of this application.DETAILED DESCRIPTION

[0034] To make objectives, technical solutions, and advantages of this application clearer, implementations of this application are described in further detail below with reference to the drawings.

[0035] The terms “first”, “second”, and the like in this application are used to distinguish similar objects and are not intended to describe a specific order or sequence. The data used in this manner can, where appropriate, be interchanged so that embodiments of this application described herein can be implemented in orders other than those illustrated or described. The implementations described in the following examples do not represent all implementations consistent with this application. Rather, the implementations are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0036] To further illustrate the technical solutions provided in the examples of this application, the following provides a detailed description with reference to the drawings and specific implementations. Although the examples of this application provide operations of the method as described in the following examples or shown in the drawings, the method may include more or fewer operations based on routine or non-creative efforts. For operations that do not have a necessary logical causal relationship, the execution order of such operations is not limited to the execution order provided in the examples of this application. In actual processing, or when the method is performed by a control device, the method may be performed in the order shown in the examples or drawings, or may be performed in parallel.

[0037] Other features and advantages of this application are set forth in the following specification and, in part, become apparent from the specification or may be learned through the implementation of this application. The objectives and other advantages of this application can be achieved and obtained through the structures specifically described in the written specification, the claims, and the drawings.

[0038] FIG. 1 illustrates a schematic structural diagram of a computer system according to an example of this application. The computer system includes a terminal device 101 and a server 102.

[0039] In a possible implementation, the terminal device 101 may be any electronic product capable of human-computer interaction with an interaction object (e.g., a user, an avatar, a player character) via one or more means such as a keyboard, touchpad, touchscreen, remote control, gamepad, voice interaction, or handwriting device. For example, the terminal device may be a personal computer (PC), mobile phone, smartphone, personal digital assistant (PDA), wearable device, handheld portable gaming device, pocket PC (PPC), tablet, laptop, desktop computer, smart in-vehicle system, smart TV, smart speaker, smartwatch, or on board terminal, but is not limited thereto.

[0040] The server 102 may be an independent physical server, a server cluster or a distributed system including a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN), as well as big data and artificial intelligence (AI) platforms, which is not limited in this application. The server 102 and the terminal device 101 are communicatively connected, directly or indirectly, via wired or wireless communication, which is not limited in this application. The server 102 has a data receiving function, a data processing function, and a data transmitting function. Additionally, the server 102 may have other functions, which are not limited in the examples of this application.

[0041] The server 102 is configured to provide backend services for the client mounted on the terminal device 101. In a possible implementation, the server 102 performs the primary computational tasks, while the terminal device 101 performs the secondary computational tasks. Alternatively, the server 102 performs the secondary computational tasks, while the terminal device 101 performs the primary computational tasks. Alternatively, the terminal device 101 and the server 102 perform collaborative computation using a distributed computing architecture.

[0042] The terminal device 101 may generally refer to one of a plurality of terminal devices, and this example is described merely by way of example with reference to the terminal device 101. A person skilled in the art may understand that the number of terminal devices 101 described above may be greater or fewer. For example, the terminal device 101 may be a single device, or there may be dozens, hundreds, or even more terminal devices 101. The examples of this application do not impose any limitation on the number or type of terminal devices 101.

[0043] The method for throwing a virtual projectile provided in the examples of this application may be performed by the terminal device 101, by the server 102, or collaboratively by the terminal device 101 and the server 102, which is not limited in the examples of this application. In some examples, the terminal device 101 may transmit an aiming position to the server 102. The server 102 processes the aiming position transmitted by the terminal device 101 using the method for throwing a virtual projectile provided in the examples of this application to obtain a target scale, and transmits the target scale to the terminal device 101.

[0044] In an example where at least one direction includes a lateral direction and a longitudinal direction, the target scale includes a first target scale along the lateral direction and a second target scale along the longitudinal direction. As shown in FIG. 1, the server 102 may generate the first target scale and the second target scale based on the following process: determining, by the server 102, a lateral acceleration exerted on the virtual projectile by environmental factors; determining, based on the lateral acceleration, a lateral offset speed of the virtual projectile; determining, based on the lateral offset speed and a throwing duration of the virtual projectile, an offset corresponding to the lateral direction; determining, based on the offset corresponding to the lateral direction and an offset represented by each scale on a scale line corresponding to the lateral direction, the first target scale on the scale line corresponding to the lateral direction; determining a longitudinal acceleration exerted on the virtual projectile by the environmental factors; determining, based on the longitudinal acceleration, a longitudinal offset speed of the virtual projectile; determining, based on the longitudinal offset speed and a throwing duration of the virtual projectile, an offset corresponding to the longitudinal direction; and determining, based on the offset corresponding to the longitudinal direction and an offset represented by each scale on a scale line corresponding to the longitudinal direction, the second target scale on the scale line corresponding to the longitudinal direction. The terminal device 101 is configured to: display, on a straight line perpendicular to a scale line corresponding to any direction and passing through the target scale, an offset marker corresponding to the direction; display offset information of an aiming position in an image of a virtual environment; and, in response to a throwing operation directed to a target position, throw a virtual projectile toward the target position, the target position being obtained by adjusting the aiming position according to the offset information.

[0045] One of ordinary skill in the art is to understand that the terminal device 101 and the server 102 described above are merely illustrative, and that other existing or future terminal devices or servers, if applicable to this application, shall also fall within the scope of protection of this application and are incorporated herein by reference.

[0046] In related approaches, a user directly performs a throwing operation at an aiming position, and a computer device directly throws a virtual projectile toward the aiming position based on the throwing operation.

[0047] Due to the possible presence of factors in the virtual environment that affect a throwing trajectory of the virtual projectile, under the impact of these factors, after the virtual projectile is thrown toward the aiming position, a deviation may occur between a landing position of the virtual projectile and the aiming position, resulting in relatively low throwing accuracy of the virtual projectile, and reducing the hit rate of the virtual projectile and lowering the interaction experience of the interaction object and the human-computer interaction rate.

[0048] Based on the computer system shown in FIG. 1, the examples of this application provide a method for throwing a virtual projectile. The method may be performed by the terminal device 101, by the server 102, or collaboratively by the terminal device 101 and the server 102, which is not limited in the examples of this application. The examples of this application are illustrated in an example where the method is performed by a computer device, and the computer device may be a terminal device or a server. As shown in FIG. 2, the method for throwing a virtual projectile provided in the examples of this application may include the following operations 201 to 203.

[0049] Operation 201: Display an image of a virtual environment.

[0050] The virtual environment is a scenario provided (or displayed) by an application program when running on a computer device, and the virtual environment refers to an artificially created scenario for virtual objects to perform activities. The virtual environment is a two-dimensional virtual environment, a two-and-a-half-dimensional virtual environment, or a three-dimensional virtual environment. The virtual environment may be a simulated scenario of the real world, a semi-simulated and semi-fictional scenario, or a purely fictional scenario. In some examples, the virtual environment may be referred to as a virtual scenario.

[0051] In an example, application programs that support a virtual environment include, but are not limited to, virtual reality (VR) application programs, augmented reality (AR) application programs, three-dimensional map programs, game application programs, social application programs, interactive entertainment application programs, and the like. In some examples, the application program may be referred to as a client. In an example, game application programs include, but are not limited to, shooting games, such as first-person shooting games, third-person shooting games, and other games in which attack props are used for ranged attacks. In an example, a first-person shooting game is a shooting game in which an interaction object can operate from a first-person perspective, and an image of the virtual environment in the first-person shooting game is observed from a first-person perspective of a virtual object controlled by the interaction object.

[0052] In an example, manners of displaying an image of the virtual environment include, but are not limited to: displaying, by a computer device based on a startup operation of an application program, the image of the virtual environment on a display interface.

[0053] In an example, the image of the virtual environment is captured from a perspective of a virtual object observing the virtual environment, and the virtual object is an object configured to throw the virtual projectile in the virtual environment. The perspective of the virtual object may be a first-person perspective of the virtual object, a third-person perspective of the virtual object, or the like, which is not limited in the examples of this application.

[0054] In an example, the perspective of the virtual object is an angle from which the virtual object is observed via a camera model in the virtual environment. The camera model automatically follows the virtual object in the virtual environment. That is, when the position of the virtual object in the virtual environment changes, the position of the camera model in the virtual environment changes correspondingly to follow the position of the virtual object in the virtual environment, and the camera model always remains within a predetermined distance from the virtual object in the virtual environment. In an example, during the automatic following process, the relative position between the camera model and the virtual object remains unchanged.

[0055] In an example, in addition to the first-person perspective and the third-person perspective, other perspectives are also included, such as a top-down view. A top-down view is a perspective from which the virtual environment is observed from an overhead angle.

[0056] In an example, the camera model is not actually displayed in the virtual environment, that is, the camera model is not shown in the displayed image of the virtual environment.

[0057] In an example, in addition to displaying the virtual object that throws the virtual projectile, the image of the virtual environment may display other virtual objects and other elements. In an example, other virtual objects may refer to virtual objects controlled by other application programs, or virtual objects not controlled by any interaction object, etc. In an example, other elements include, but are not limited to, mountains, plains, rivers, lakes, oceans, deserts, swamps, quicksand, the sky, vegetation, buildings, vehicles, and the like.

[0058] The virtual object is an object configured to throw the virtual projectile in the virtual environment. The virtual object may be a virtual character, a virtual animal, an animated character, or the like. The interaction object may control the virtual object via a peripheral part or by tapping on a touch display screen. Each virtual object has its own shape and volume in the virtual environment and occupies a portion of space in the virtual environment.

[0059] A virtual projectile is a virtual item that can be thrown in the virtual environment when it is intended to hit a specific target. The type of the virtual projectile is not limited in this application. In an example, the type of the virtual projectile may include, but is not limited to, a virtual bullet, a virtual bomb, a virtual flash grenade, a virtual smoke grenade, and the like.

[0060] Operation 202: Display offset information of an aiming position in the image of the virtual environment, the aiming position being a position to be hit by the virtual projectile, the offset information being configured to prompt, under the impact of environmental factors in the virtual environment, an offset of a landing position of the virtual projectile relative to the aiming position, and the landing position being a predicted position at which the virtual projectile lands after the virtual projectile is thrown toward the aiming position.

[0061] The aiming position is a position in the virtual environment that the user intends to hit with the virtual projectile. The aiming position is not limited in examples of this application. In an example, the aiming position includes the position of any virtual object in the opposing team, where the opposing team is a team that is hostile to the team of the virtual object controlled by the current computer device in a battle mode. In an example, the aiming position includes the position of any virtual explosive object in the virtual environment, such as a virtual fuel tank or a virtual gas cylinder in the virtual environment. In an example, the aiming position includes the position of any obstacle in the virtual environment, such as a virtual high-rise building, a virtual courtyard, or a virtual windbreak in the virtual environment.

[0062] When an object to be hit is a moving object in the virtual environment, the aiming position changes with the movement of moving object; when the object to be hit is a stationary object in the virtual environment, the aiming position corresponds to the fixed position of the stationary object.

[0063] Environmental factors are factors in the virtual environment that affect the trajectory offset of the virtual projectile during the throwing process. The manner of configuring the environmental factors includes, but is not limited to: configuring according to human experience and / or empirical data; determining, according to a correspondence between the virtual environment and environmental factors, environmental factors corresponding to a current virtual environment; or determining, according to historical throwing data of virtual projectiles in the virtual environment, at least one environmental factor having the greatest impact weight on the throwing trajectory, and determining a reference quantity of environmental factors from the at least one environmental factor as final environmental factors in the virtual environment. The reference quantity may be any value and may be configured according to experience or flexibly adjusted according to application scenarios, which is not limited in the examples of this application.

[0064] In this application, environmental factors may prompt the interaction object by displaying the prompt information, thereby enabling the interaction object to promptly and clearly understand the parameters corresponding to the environmental factors that affect the motion trajectory of the virtual projectile.

[0065] As an exemplary implementation, the method further includes: displaying prompt information of the environmental factors in the image of the virtual environment, the manner of displaying the prompt information including at least one of an icon and text.

[0066] The prompt information is configured for prompting the interaction object about the different parameter values corresponding to different environmental factors in the current virtual environment. The prompt information is described in detail below with reference to the manner of displaying the prompt information and different environmental factors.

[0067] The categories of environmental factors are not limited in examples of this application. As an exemplary implementation, the environmental factors include at least one of gravity and wind.

[0068] By considering gravity and / or wind, the impact of environmental factors on the offset of the throwing process of the virtual projectile is determined, so that the resulting offset information more closely matches the throwing process in the real physical world (namely, the real world), thereby providing the interaction object with an experience of throwing in a real environment, enhancing the realism of throwing, enhancing the interaction experience of the interaction object, and enhancing the human-computer interaction rate.

[0069] Gravity is the gravity in the current virtual environment. The magnitude of gravity may be a fixed value corresponding to each virtual environment, or the same virtual environment may correspond to different gravity values at different time periods. The magnitude of gravity in the virtual environment is not limited in examples of this application. Wind is the magnitude of the force exerted by the wind in the current virtual environment on any object in the virtual environment.

[0070] As an exemplary implementation, the environmental factor includes wind. The method further includes: displaying prompt information of the wind in the image of the virtual environment, the prompt information including at least one of wind direction prompt information and wind magnitude prompt information.

[0071] In the image of the virtual environment, the wind direction and / or wind magnitude in the current virtual environment are presented to the interaction object via the prompt information, enabling the interaction object to intuitively and clearly understand the wind-related parameters, thereby facilitating the interaction object to determine the final target position and enhancing the throwing accuracy of the virtual projectile.

[0072] If the environmental factor includes wind, the prompt information of the wind is configured for prompting the interaction object about the different parameter values corresponding to the wind in the current virtual environment.

[0073] The wind direction prompt information is configured for prompting the interaction object about the wind direction in the current virtual environment. For example, an east wind refers to wind blowing from east to west, and a southeast wind refers to wind blowing from the southeast toward the northwest. The wind magnitude prompt information is configured for prompting the interaction object about the wind magnitude in the current virtual environment, for example, the wind speed in the current virtual environment.

[0074] In an example, the manner of configuring the wind direction prompt information includes: using information that indicates the wind direction as the wind direction prompt information. In this case, the wind direction prompt information does not change with the orientation of the virtual object. For example, if the wind direction in the virtual environment is toward the east, the wind direction prompt information is information indicating that the wind direction is toward the east.

[0075] In an example, the manner of configuring the wind direction prompt information includes: using information that indicates the direction of the wind relative to the orientation of the virtual object as the wind direction prompt information. That is, the wind direction prompt information changes with the orientation of the virtual object. In an example, if the wind direction in the virtual environment is toward the north and the virtual object is facing north, the wind direction prompt information is configured to indicate that the wind direction relative to the orientation of the virtual object is a tailwind. When the virtual object rotates 180 degrees, the wind direction prompt information also changes with the orientation of the virtual object, that is, the wind direction prompt information is configured to indicate that the wind direction relative to the virtual object is now a headwind, with wind blowing from the front. This more realistically reproduces the wind in the virtual environment, enhancing the interaction experience of the interaction object and thereby enhancing the human-computer interaction rate.

[0076] In an example, the direction of the wind relative to the orientation of the virtual object can be represented by the angle between the wind direction and the orientation of the virtual object, or by the rotation direction and rotation angle from the orientation of the virtual object to the wind direction.

[0077] For the manner of displaying the wind direction prompt information, as an exemplary implementation, the wind direction prompt information is represented by an icon. For the case where the wind direction prompt information is information configured to indicate the wind direction, a pointing direction of the icon is the wind direction. For the case where the wind direction prompt information is information configured to indicate the direction of the wind relative to the orientation of the virtual object, a pointing direction of the icon is the direction of the wind relative to the orientation of the virtual object, where the virtual object is the object configured to throw the virtual projectile.

[0078] When the wind direction prompt information is represented by an icon, it can more clearly present the wind direction in the current virtual environment to the interaction object, enhancing the realism of throwing, enhancing the interaction experience, and thereby enhancing the human-computer interaction rate.

[0079] The virtual object is described with reference to the relevant description in operation 201, which is not repeated herein.

[0080] The display style of the icon includes, but is not limited to, an icon with an arrow. In a case that the pointing direction of the icon is the wind direction, the pointing direction of the arrow is the wind direction. In a case that the pointing direction of the icon is the direction of the wind relative to the orientation of the virtual object, the pointing direction of the arrow is the direction of the wind relative to the orientation of the virtual object. Referring to FIG. 3, a wind icon representing the wind direction prompt information according to this application is illustrated, and the pointing direction of the arrow 301 of the wind icon is the wind direction.

[0081] As an exemplary implementation, when the prompt information is textual information, the content of the prompt information includes at least one of the gravitational acceleration and the wind magnitude in the current virtual environment. The display position of the textual information includes, but is not limited to, a reference range of the aiming position (as described below); or a list pre-configured in the virtual environment for displaying the prompt information. The display position of the textual information is not limited in examples of this application, and may be displayed at a position configured by customization, as long as the user can access the textual information. The reference range of the aiming position refers to a region within a range centered on the aiming position.

[0082] When the wind magnitude is displayed as textual information, the wind magnitude may be displayed below the icon of the wind direction prompt information. In an example, referring to FIG. 3, the number 302 indicates the wind magnitude, and the wind speed in the current virtual environment is 2.87 meters per second (m / s).

[0083] Although related approaches also involve wind icons for representing wind direction and wind magnitude, in such wind icons, the representation of wind's impact on the throwing trajectory is primarily decorative, that is, it does not realistically reflect the physical impact of the wind parameters, nor does it provide the interaction object with any means to measure the wind magnitude. Referring to FIG. 4, the manner of displaying the wind parameters is to display a wind scale 401 in the virtual scope of the interaction object. The wind scale 401 only displays whether the wind direction in the current virtual environment is biased to the left or right, as well as the wind strength. The wind scale does not directly display the numerical value of the wind strength, but roughly represents the wind strength by the number of divisions on the wind scale 401. The correspondence between the number of divisions and the wind strength can be configured by customization. For example, the first division represents a relatively weak wind strength, the second division represents a weak wind strength, and the third division represents a strong wind strength.

[0084] In an example, the numeral 402 in FIG. 4 represents that the wind in the current virtual environment is biased to the right, with a relatively weak wind strength. In this case, when the interaction object is at the aiming position, the crosshair can be offset to the left of the aiming position, with the magnitude of the offset entirely determined by the interaction experience of the interaction object.

[0085] The impact of wind on the throwing trajectory of the virtual projectile is described below with reference to the drawings.

[0086] Referring to FIG. 5, the icon indicates that the wind direction in the current virtual environment is northeast. When the virtual projectile is thrown along the −x direction, due to the impact of the wind from the northeast on the virtual projectile, the final throwing trajectory 601 of the virtual projectile is offset in the z direction, as shown in FIG. 6.

[0087] The prompt information may be a type of offset information, that is, the interaction object can learn the different parameter values corresponding to various environmental factors via the prompt information, such as wind speed, wind direction, and gravitational acceleration. Based on the interaction experience of the interaction object and the above different parameter values, the interaction object can independently derive the final target position and the landing position of the virtual projectile after the virtual projectile is thrown. In other words, the offset information may prompt the interaction object in the form of prompt information of the environmental factors. Since the image of the virtual environment provides sufficiently rich and accurate parameter values corresponding to the environmental factors, the interaction object can, based on sufficient parameter values, derive the offset between the landing position of the virtual projectile and the aiming position, enhancing the accuracy of determining the offset, and thereby enhancing the accuracy of the resulting target position.

[0088] The offset information is described in detail below.

[0089] The offset information refers to the offset of the landing position of the virtual projectile relative to the aiming position when the virtual projectile is thrown toward the aiming position under the impact of the environmental factors in the virtual environment.

[0090] As an exemplary implementation, the offset information includes offset sub-information corresponding to at least one direction. Before the displaying offset information of an aiming position in the image of the virtual environment, the method further includes: displaying scale lines corresponding to the at least one direction in the image of the virtual environment; and the displaying offset information of an aiming position in the image of the virtual environment including: displaying, based on the scale lines corresponding to the at least one direction, the offset sub-information corresponding to the at least one direction.

[0091] By comprehensively considering the offset sub-information corresponding to at least one direction, the interaction object can receive the offset information more intuitively, clearly, and comprehensively. Consequently, when adjusting the aiming position, the interaction object has a clearer indication of the adjustment direction and magnitude, which enhances the throwing accuracy of the virtual projectile, thereby enhancing the interaction experience and the human-computer interaction rate.

[0092] Since the offset directions caused by the environmental factors on the virtual projectile include at least one direction, the offset information includes offset sub-information corresponding to at least one direction. Each offset sub-information is configured to prompt the offset caused by any direction on the virtual projectile. The relationship between any two directions among at least one direction is not limited in examples of this application. The relationship between any two directions among at least one direction may include a 30-degree angle between the two directions or a 90-degree angle between the two directions. A 30-degree angle between any two directions may refer to an angle of 30 degrees between the two directions, and a 90-degree angle between any two directions may refer to an angle of 90 degrees between the two directions.

[0093] When the offset information includes offset sub-information corresponding to two mutually perpendicular directions, that is, when the number of directions among at least one direction is two and the angle between the two directions is 90 degrees, the two directions are mutually perpendicular directions, and the offset sub-information corresponding to the two mutually perpendicular directions are lateral offset sub-information and longitudinal offset sub-information, respectively. As an exemplary implementation, the lateral offset sub-information is configured for indicating the lateral offset of the landing position of the virtual projectile relative to the aiming position when the virtual projectile is thrown toward the aiming position under the impact of the environmental factors in the virtual environment; the longitudinal offset sub-information is configured for indicating the longitudinal offset of the landing position of the virtual projectile relative to the aiming position when the virtual projectile is thrown toward the aiming position under the impact of the environmental factors in the virtual environment.

[0094] The scale lines are configured to assist the interaction object in aiming at the aiming position before throwing the virtual projectile. The number of scale lines is the same as the number of directions in which an offset occurs during the throwing of the virtual projectile, that is, one scale line corresponds to one direction. In some examples, the scale lines corresponding to the directions among at least one direction intersect at the same position, which may be referred to as the intersection position of the scale lines corresponding to the directions.

[0095] In an example, when the offset information includes offset sub-information corresponding to two mutually perpendicular directions, namely the lateral offset sub-information and the longitudinal offset sub-information, the scale lines include lateral dense scale lines and longitudinal dense scale lines. Aiming at the aiming position is achieved by moving the intersection of the lateral dense scale lines and the longitudinal dense scale lines to the aiming position. That is, the interaction object only needs to move the intersection of the lateral dense scale lines and the longitudinal dense scale lines to the location in the virtual environment where it intends to hit.

[0096] The lateral dense scale lines are horizontal lines with dense scales, in which the scale marks are made based on units of length. The lateral dense scale lines include a plurality of scales, each representing a graduation value. The graduation value represented by each scale on the lateral dense scale lines is not limited in examples of this application, and may, for example, be 1 meter or 10 meters. Each scale on the lateral dense scale lines may represent the same graduation value or different graduation values, which is not limited in examples of this application.

[0097] The longitudinal dense scale lines are lines with dense scales that are perpendicular to the lateral dense scale lines, in which the scale marks are made based on units of length. The longitudinal dense scale lines include a plurality of scales, each representing a graduation value. The graduation value represented by each scale on the longitudinal dense scale lines is not limited in examples of this application, and may, for example, be 1 meter or 10 meters. Each scale on the longitudinal dense scale lines may represent the same graduation value or different graduation values, which is not limited in examples of this application.

[0098] The graduation values represented by the scales on the lateral dense scale lines may be the same as or different from the graduation values represented by the scales on the longitudinal dense scale lines, and may be partially the same or partially different. The graduation values represented by the scales on the lateral dense scale lines and the longitudinal dense scale lines may be configured according to pre-customized settings, respectively. In addition, the lateral dense scale lines are not limited to lateral scale lines parallel to the ground in the virtual environment, and the longitudinal dense scale lines are not limited to longitudinal scale lines perpendicular to the ground in the virtual environment. The manner of configuring the lateral dense scale lines and the longitudinal dense scale lines is not limited in examples of this application, as long as the lateral dense scale lines remain perpendicular to the longitudinal dense scale lines.

[0099] The manner of presenting the offset sub-information corresponding to any direction includes, but is not limited to, an icon or text. In an example, when the offset sub-information corresponding to any direction is presented as an icon, the offset sub-information corresponding to any direction may be represented by an offset marker. When the offset sub-information corresponding to any direction is presented as text, the offset sub-information corresponding to any direction may be represented by the prompt information. The manner of presenting the offset sub-information corresponding to any direction is not limited in this application, as long as it serves to prompt the interaction object about the offset corresponding to the direction.

[0100] The displaying, based on the scale lines corresponding to the at least one direction, the offset sub-information corresponding to the at least one direction includes: displaying, based on the lateral dense scale lines, the lateral offset information; and displaying, based on the longitudinal dense scale lines, the longitudinal offset information, where the lateral dense scale lines are scale lines correspond to the lateral direction, and the longitudinal dense scale lines are scale lines correspond to the longitudinal direction. The lateral direction and the longitudinal direction are two mutually perpendicular directions. In some embodiments, the lateral direction is a direction parallel to the lower (or upper) edge of the display interface of the computer device, and the longitudinal direction is a direction perpendicular to the lower (or upper) edge of the display interface of the computer device. Exemplarily, the lateral direction may be understood as a direction parallel to the ground in the virtual environment, and the longitudinal direction may be understood as a direction perpendicular to the ground in the virtual environment. In other embodiments, the lateral direction and the longitudinal direction may correspond to other cases, as long as the two directions remain mutually perpendicular.

[0101] The displaying, based on the scale lines corresponding to the at least one direction, the offset sub-information corresponding to the at least one direction is described in detail below in an example where the offset sub-information corresponding to any direction is represented by an offset marker corresponding to the direction. As an exemplary implementation, a target scale is determined on the scale line corresponding to any direction, based on an offset corresponding to the direction and an offset represented by each scale on a scale line corresponding to the direction; the offset corresponding to the direction is an offset of a landing position of the virtual projectile relative to the aiming position in the direction under the impact of the environmental factors; and the offset marker corresponding to the direction is displayed on a straight line perpendicular to the scale line corresponding to the direction and passing through the target scale.

[0102] The target scale refers to a scale on the scale line corresponding to any direction that is configured to indicate the offset corresponding to any direction. In an example, the offset corresponding to any direction includes the offset distance corresponding to any direction, and the offset represented by each scale on a scale line corresponding to the direction includes the offset distance represented by each scale. In this case, the distance between the target scale and the starting scale of the scale line corresponding to any direction represents the offset distance corresponding to any direction.

[0103] In an example, displaying the offset marker corresponding to any direction on a straight line perpendicular to the scale line corresponding to any direction and passing through the target scale may refer to displaying the offset marker corresponding to any direction at any position on the straight line perpendicular to the scale line corresponding to any direction and passing through the target scale. For example, the offset marker corresponding to any direction may be displayed at the target scale. For another example, the offset marker corresponding to any direction may be displayed at a position on the straight line perpendicular to the scale line corresponding to any direction and passing through the target scale, where the distance from the target scale is a first distance. The first distance may be configured according to experience or flexibly adjusted according to the application scenario, which is not limited in the examples of this application.

[0104] Displaying the offset marker based on the scale lines allows the offset information to be presented more intuitively to the interaction object, thereby enhancing the interaction experience of the interaction object and further enhancing the human-computer interaction rate.

[0105] The manner of displaying the lateral offset sub-information is described below in an example where any direction is the lateral direction parallel to the lower edge of the display interface, and the lateral offset sub-information in the lateral direction is represented by a lateral offset marker.

[0106] As an exemplary implementation, a lateral target scale is determined on the lateral dense scale line, based on the lateral offset corresponding to the lateral direction and the offset represented by each scale on the lateral dense scale line; and a lateral offset marker is displayed on a straight line perpendicular to the lateral dense scale line and passing through the lateral target scale.

[0107] The environmental factors causing the landing position of the virtual projectile to be offset in the lateral direction relative to the aiming position include, but are not limited to, wind, that is, lateral wind in the virtual environment may cause the landing position of the virtual projectile to be offset in the lateral direction. The lateral wind refers to wind that has a component in the lateral direction.

[0108] The offset represented by each scale on the lateral dense scale line corresponds to the graduation value represented by the scale. For a description of the lateral dense scale line, reference may be made to the detailed description above, which is not repeated herein.

[0109] The manner of determining, based on the lateral offset and the offset represented by each scale on the lateral dense scale line, the lateral target scale includes: starting from the intersection position of the lateral dense scale line and the longitudinal dense scale line, sequentially adding the offsets represented by each scale to determine a cumulative graduation value, and when the cumulative graduation value is equal to the lateral offset distance included in the lateral offset, determining the scale on the lateral dense scale line corresponding to the cumulative graduation value as the lateral target scale.

[0110] Since the graduation value represented by each scale on the lateral dense scale line can be configured by customization, the graduation values may be the same or different. Therefore, the lateral target scale does not necessarily fall exactly on one of the scales on the lateral dense scale line, and may lie between any two adjacent scales on the lateral dense scale line, which is not limited in this application, provided that the total distance from the intersection of the lateral dense scale line and the longitudinal dense scale line to the lateral target scale is equal to the lateral offset distance in the lateral offset.

[0111] In an example, referring to the lateral dense scale line shown in FIG. 7, when the lateral offset is determined to be 100, the scales on the lateral dense scale line are uniformly distributed, and the graduation value between adjacent scales is 50, the lateral target scale is the B scale.

[0112] As an exemplary implementation, the method further includes: in response to a trigger operation of an auxiliary throwing tool, measuring, by means of the auxiliary throwing tool, the environmental factors in the virtual environment and a throwing distance of the virtual projectile; and determining, based on the environmental factors and the throwing distance of the virtual projectile, an offset corresponding to the at least one direction.

[0113] By configuring the auxiliary throwing tool, the interaction object can conveniently and quickly trigger the measurement of the environmental factors and the throwing distance, thereby facilitating the determination of the offset, enhancing the interaction experience of the interaction object, and thus enhancing the human-computer interaction rate.

[0114] The auxiliary throwing tool is a tool provided by the application program for measuring the environmental factors in the virtual environment and the throwing distance of the virtual projectile. The type of the auxiliary throwing tool may be configured according to experience or flexibly adjusted according to requirements. In some examples, the auxiliary throwing tool may include a telescope. Measuring the environmental factors in the virtual environment refers to detecting the specific parameters of the environmental factors in the virtual environment. In an example, when the environmental factors include wind, the auxiliary throwing tool may include, but is not limited to, a tool for detecting the wind direction and wind magnitude in the virtual environment, for example, an anemometer. When the aiming position is determined, after triggering the auxiliary throwing tool, the interaction object can acquire the throwing distance.

[0115] The throwing distance of the virtual projectile refers to the distance from the position of the virtual object throwing the virtual projectile to the aiming position. The manner of determining the throwing distance includes, but is not limited to: in response to the triggering of the auxiliary throwing tool and the operation of determining the aiming position, performing ray detection via a backend server to determine the throwing distance. In this application, the throwing distance is not limited to the aiming position. For any position in the image of the virtual environment, in response to the triggering of the auxiliary throwing tool and the operation of determining the aiming position, the backend server can determine the throwing distance between any position and the current virtual object by ray detection. The trigger operation of the auxiliary throwing tool includes, but is not limited to: a trigger operation on an auxiliary throwing control, the auxiliary throwing control being a control displayed in the image of the virtual environment for representing the auxiliary throwing tool; or a trigger operation on any key of the computer device. In an example, when the auxiliary throwing tool is a telescope, the interaction object completes the trigger operation of the telescope by pressing the B key on the keyboard. The trigger operation of the auxiliary throwing tool is not limited in examples of this application.

[0116] As an exemplary implementation, the in response to a trigger operation of an auxiliary throwing tool, measuring, by means of the auxiliary throwing tool, the environmental factors in the virtual environment and a throwing distance of the virtual projectile includes: in response to the trigger operation of the auxiliary throwing tool, displaying the auxiliary throwing tool in the image of the virtual environment; and in response to aiming at the aiming position using the auxiliary throwing tool, measuring, by means of the auxiliary throwing tool, the environmental factors in the virtual environment and the throwing distance of the virtual projectile.

[0117] By displaying the auxiliary throwing tool, the measurement function can be performed after aiming at the aiming position with the auxiliary throwing tool, thereby enriching the interaction process for the interaction object and enriching the interaction experience and the human-computer interaction rate.

[0118] In some examples, the auxiliary throwing tool has an aiming point. In an example, aiming at the aiming position with the auxiliary throwing tool may refer to the aiming point of the auxiliary throwing tool being located at the aiming position. In an example, aiming at the aiming position with the auxiliary throwing tool may refer to detecting a confirmation operation when the aiming point of the auxiliary throwing tool is located at the aiming position. The confirmation operation may refer to a click operation, a trigger operation on a confirmation control, or the like. In an example, aiming at the aiming position with the auxiliary throwing tool may refer to the aiming point of the auxiliary throwing tool remaining at the aiming position for a duration greater than a duration threshold. The duration threshold may be configured according to experience or flexibly adjusted according to the application scenario.

[0119] In some examples, the interface displaying the auxiliary throwing tool in the virtual environment may be referred to as an auxiliary throwing interface. By providing the auxiliary throwing interface, the interaction object can aim at the position required to be hit in the auxiliary throwing interface and measure environmental factors and the throwing distance using the auxiliary throwing tool in the auxiliary throwing interface. This enables the interaction object to more clearly and conveniently understand the overall throwing environment, which is conducive to enhancing the throwing efficiency of the interaction object, thereby enhancing the interaction experience of the interaction object and the human-computer interaction rate.

[0120] The auxiliary throwing interface is configured for assisting the interaction object in initially determining the aiming position and performing preliminary aiming on the aiming position. The content displayed on the auxiliary throwing interface includes, but is not limited to, the image of the virtual environment and the auxiliary throwing tool. In some examples, the content displayed on the auxiliary throwing interface may further include at least one of the aiming position determined by the interaction object, wind parameters in the virtual environment, and the throwing distance. In some examples, the auxiliary throwing interface may be referred to as an aiming interface.

[0121] As an exemplary implementation, the at least one direction includes a lateral direction, and the determining, based on the environmental factors and the throwing distance of the virtual projectile, an offset corresponding to the at least one direction includes: determining a lateral acceleration exerted on the virtual projectile by the environmental factors; determining, based on the lateral acceleration, a lateral offset speed of the virtual projectile; and determining, based on the lateral offset speed and a throwing duration of the virtual projectile, an offset corresponding to the lateral direction, the throwing duration being determined based on an initial throwing speed and the throwing distance of the virtual projectile.

[0122] The final lateral offset is determined according to the lateral acceleration and the throwing duration. Since the lateral acceleration and the throwing duration are quantitative, the resulting lateral offset can be more accurate, thereby enhancing the accuracy of the resulting target position and enhancing the hit rate of the virtual projectile.

[0123] The initial throwing speed is the initial speed of the virtual projectile when thrown. The manner of determining the initial throwing speed includes, but is not limited to: being configured according to human experience; or, as an exemplary implementation, being determined based on at least one of attributes of the virtual throwing apparatus and attributes of the virtual projectile, where the virtual throwing apparatus is the apparatus used to throw the virtual projectile.

[0124] Determining the initial throwing speed based on the attributes of the virtual throwing apparatus and / or the attributes of the virtual projectile allows the initial throwing speed to be more accurate, thereby making the resulting offset more precise, enhancing the accuracy of the resulting target position, enhancing the hit rate of the virtual projectile, and enhancing the interaction experience of the interaction object and the human-computer interaction rate.

[0125] The attributes of the virtual throwing apparatus may include the type of the virtual throwing apparatus and the model of the virtual throwing apparatus. The attributes of the virtual throwing apparatus may differ, and such differences may include, but are not limited to, differences in the type or model of the virtual throwing apparatus. For virtual throwing apparatuses with different attributes, the corresponding initial throwing speed when the virtual projectile is thrown differs.

[0126] In an example, the recoil of virtual throwing apparatuses with different attributes varies, and the greater the recoil of the virtual throwing apparatus, the higher the initial throwing speed; alternatively, the power of virtual throwing apparatuses with different attributes varies, and the greater the power of the virtual throwing apparatus, the higher the initial throwing speed. The attributes of the virtual throwing apparatus are not limited in this application, and the initial throwing speed may be determined based on the attributes of the virtual throwing apparatus selected by the interaction object.

[0127] The virtual projectile is an object used at the aiming position to be hit, and may include, but is not limited to, a virtual bullet, a virtual bomb, a virtual flash grenade, or a virtual smoke grenade. The attributes of the virtual projectile may include the type of the virtual projectile and the model of the virtual projectile. That is, virtual projectiles with different attributes may refer to different types of virtual projectiles as described above, or to virtual projectiles of the same type but with different models, for example, virtual bullets of different models, or virtual grenades of different models. In some examples, the model may be referred to as a specification.

[0128] The manner of determining the initial throwing speed based on the attributes of the virtual throwing apparatus or the attributes of the virtual projectile includes: determining, based on a preset correspondence between the attributes of the virtual projectile and the initial throwing speed, the current initial throwing speed corresponding to the attributes of the virtual projectile determined by the current interaction object; or, determining, based on a preset correspondence between the attributes of the virtual throwing apparatus and the initial throwing speed, the current initial throwing speed corresponding to the attributes of the virtual throwing apparatus determined by the current interaction object.

[0129] In addition, when the initial throwing speed of the virtual projectile is determined based on both the attributes of the virtual throwing apparatus and the attributes of the virtual projectile, the manner of determining the initial throwing speed may include, but is not limited to: using an average of the current initial throwing speed determined based on the attributes of the virtual throwing apparatus and the current initial throwing speed determined based on the attributes of the virtual projectile, and using the average as the final initial throwing speed; or, determining the final initial throwing speed based on pre-configured weight ratios for the virtual throwing apparatus and weight ratios for the virtual projectile, as well as the current initial throwing speed determined based on the attributes of the virtual throwing apparatus and the current initial throwing speed determined based on the attributes of the virtual projectile. The manner of determining the initial throwing speed is not limited in examples of this application.

[0130] The throwing distance is as described above and is not repeated herein.

[0131] The throwing duration is the time elapsed for the virtual projectile to travel from the position of the virtual object to the aiming position. The throwing duration can be accurately determined based on the initial throwing speed and the throwing distance of the virtual projectile.

[0132] In an example, the throwing duration is determined based on the initial throwing speed and the throwing distance according to the following Formula (1).t1=<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>xh→<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics><semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>v0<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>,Formula⁢ (1)

[0133] where in Formula (1), v0 represents the initial throwing speed; xh represents the throwing distance, the distance xh in this application being a vector with direction; and t1 represents the throwing duration. The throwing duration t1 can be determined by the quotient of the magnitude |{right arrow over (xh)}| of xh to the magnitude |v0| of v0.

[0134] In an example, when the throwing distance is 450 meters, and the initial throwing speed of the virtual projectile is 900 m / s, the throwing duration is 450 / 900=0.5 seconds.

[0135] The lateral acceleration exerted on the virtual projectile by the environmental factors refers to the sum of the accelerations exerted on the virtual projectile by each environmental factor in the lateral direction. The acceleration exerted on the virtual projectile by any environmental factor in the lateral direction may refer to the component of the acceleration exerted on the virtual projectile by any environmental factor in the lateral direction.

[0136] In an example, when the environmental factors are gravity and wind, since gravity does not exert acceleration on the virtual projectile in the lateral direction, the determining a lateral acceleration exerted on the virtual projectile by the environmental factors includes: determining the first acceleration generated by the virtual projectile in the lateral direction under the impact of wind, and using the first acceleration as the lateral acceleration. The manner of determining the first acceleration includes: determining, based on a correspondence between wind and acceleration, a first component of the acceleration in the lateral direction corresponding to the wind in the current virtual environment, and using the first component as the first acceleration. The direction of the acceleration corresponding to the wind is the wind direction, and the magnitude of the acceleration corresponding to the wind is related to the magnitude of the wind and / or the mass of the virtual projectile. For example, the magnitude of the acceleration corresponding to the wind may be the ratio of the magnitude of the wind to the mass of the virtual projectile.

[0137] The manner of determining, based on the lateral acceleration, a lateral offset speed of the virtual projectile includes, but is not limited to: determining, based on the integration of the lateral acceleration over the throwing duration, the lateral offset speed of the virtual projectile.

[0138] In an example, based on the integration of the lateral acceleration over the throwing duration, the lateral offset speed of the virtual projectile is determined according to the following Formula (2).v⁢1→=∫0t1a→⁢dt,Formula⁢ (2)

[0139] where in Formula (2), {right arrow over (a)} represents the lateral acceleration of the current virtual projectile; t1 represents the throwing duration, the calculation of which is described with reference to Formula (1);∫0t1a→⁢dtrepresents the integration of the lateral acceleration of the current virtual projectile over the throwing duration; and {right arrow over (v1)} represents the lateral offset speed. The current lateral offset speed of the virtual projectile is a vector with direction.Based on the lateral offset speed and a throwing duration of the virtual projectile, the lateral offset is determined, including: determining, based on the integration of the lateral offset speed over the throwing duration, the lateral offset. The lateral offset refers to the offset corresponding to the lateral direction.

[0141] In an example, based on the integration of the lateral offset speed over the throwing duration, the lateral offset is determined according to the following Formula (3).s⁢1→⁢(t)=∫0t1v⁢1→⁢dt,Formula⁢ (3)

[0142] where in Formula (3),∫0t1v⁢1→⁢dtrepresents the integration of the lateral offset speed over the throwing duration; and {right arrow over (s1)}(t) represents the lateral offset. The lateral offset is a vector with direction. In some examples, the lateral offset includes lateral offset distance, where the lateral offset distance refers to the distance by which the landing position of the virtual projectile is offset from the aiming position in the lateral direction under the impact of environmental factors in the virtual environment.The above Formula (2) and Formula (3) can be combined to form the following Formula (4), in which the lateral acceleration is integrated twice over the throwing duration to determine the final lateral offset.s⁢1→⁢(t)=∫∫0t1a→⁢dt2Formula⁢ (4)In summary, the lateral offset speed of the virtual projectile under the impact of wind is first determined by performing a first integration of the lateral acceleration generated by the virtual projectile under the impact of wind over the throwing duration; then, the final lateral offset is determined by performing a second integration of the lateral offset speed of the virtual projectile over the throwing duration.

[0145] After the determining, based on the lateral offset and the graduation value represented by each scale on the lateral dense scale line, the manner of displaying the lateral offset marker, the lateral target scale, the manner of displaying the lateral offset marker includes: displaying the lateral offset marker on the lateral target scale. In an example, referring to the above FIG. 7, if the lateral target scale corresponds to the B scale at 100, the lateral offset marker can be displayed at the B scale; alternatively, the lateral offset marker is displayed on a straight line perpendicular to the lateral dense scale line and passing through the lateral target scale. When the lateral offset marker is displayed on the straight line perpendicular to the lateral dense scale line and passing through the lateral target scale, the specific display position of the lateral offset marker is not limited in this application, which may be displayed at a position on the straight line perpendicular to the lateral dense scale line and passing through the lateral target scale, at a reference distance and / or reference direction from the lateral target scale.

[0146] In an example, referring to FIG. 8, in an example of the lateral target scale as the B scale, the lateral offset marker is displayed on the straight line 801 perpendicular to the B scale and perpendicular to the lateral dense scale line.

[0147] The display style of the lateral offset marker is not limited in this application and may be an arrow with a direction indicator.

[0148] The manner of displaying the longitudinal offset sub-information is described below in an example where the longitudinal offset information is the longitudinal offset marker.

[0149] As an exemplary implementation, based on the longitudinal dense scale line, the longitudinal offset sub-information is displayed, including: determining, based on the longitudinal offset of the virtual projectile and the offset represented by each scale on the longitudinal dense scale line, the longitudinal target scale on the longitudinal dense scale line; and displaying the longitudinal offset marker on a straight line perpendicular to the longitudinal dense scale line and passing through the longitudinal target scale.

[0150] The environmental factors causing the landing position of the virtual projectile to be offset in the longitudinal direction relative to the aiming position include, but are not limited to, wind, that is, longitudinal wind in the virtual environment may cause the landing position of the virtual projectile to be offset in the longitudinal direction. The longitudinal wind refers to wind that has a component in the longitudinal direction. In an example, the environmental factors causing the landing position of the virtual projectile to be offset in the longitudinal direction relative to the aiming position further include gravity, that is, the gravity in the virtual environment may cause the landing position of the virtual projectile to be offset in the longitudinal direction.

[0151] The offset represented by each scale on the longitudinal dense scale line corresponds to the graduation value represented by the scale. For a description of the longitudinal dense scale line, reference may be made to the detailed description above, which is not repeated herein.

[0152] The manner of determining, based on the longitudinal offset and the offset represented by each scale on the longitudinal dense scale line, the longitudinal target scale includes: starting from the intersection position of the lateral dense scale line and the longitudinal dense scale line, sequentially adding the graduation values represented by each scale to determine a cumulative graduation value, and when the cumulative graduation value is equal to the longitudinal offset distance included in the longitudinal offset, determining the scale on the longitudinal dense scale line corresponding to the cumulative graduation value as the longitudinal target scale.

[0153] Since the offset value represented by each scale on the longitudinal dense scale line can be configured by customization, the graduation values may be the same or different. Therefore, the longitudinal target scale does not necessarily fall exactly on one of the scales on the longitudinal dense scale line, and may lie between any two adjacent scales on the longitudinal dense scale line, which is not limited in examples of this application, provided that the total graduation value from the intersection of the lateral dense scale line and the longitudinal dense scale line to the longitudinal target scale is equal to the longitudinal offset distance in the longitudinal offset.

[0154] As an exemplary implementation, the at least one direction includes a longitudinal direction, and the determining, based on the environmental factors and the throwing distance of the virtual projectile, an offset corresponding to the at least one direction includes: determining a longitudinal acceleration exerted on the virtual projectile by the environmental factors; determining, based on the longitudinal acceleration, a longitudinal offset speed of the virtual projectile; and determining, based on the longitudinal offset speed and a throwing duration of the virtual projectile, an offset corresponding to the longitudinal direction, the throwing duration being determined based on an initial throwing speed and the throwing distance of the virtual projectile.

[0155] The final longitudinal offset is determined according to the longitudinal acceleration and the throwing duration. Since the longitudinal acceleration and the throwing duration are quantitative, the resulting longitudinal offset can be more accurate, thereby enhancing the accuracy of the resulting target position and enhancing the hit rate of the virtual projectile.

[0156] The description of the throwing duration is the same as the description in Formula (1) for the lateral offset distance and is not repeated herein.

[0157] The longitudinal acceleration exerted on the virtual projectile by the environmental factors refers to the sum of the accelerations exerted on the virtual projectile by each environmental factor in the longitudinal direction. The acceleration exerted on the virtual projectile by any environmental factor in the longitudinal direction may refer to the component of the acceleration exerted on the virtual projectile by any environmental factor in the longitudinal direction.

[0158] In an example, when a factor (gravity) in the environmental factor affects the motion trajectory of the virtual projectile in the longitudinal direction, determining the longitudinal acceleration exerted on the virtual projectile by the environmental factors includes: determining the gravitational acceleration generated by the virtual projectile under the impact of gravity, and using the gravitational acceleration as the longitudinal acceleration. The manner of determining the longitudinal acceleration includes: determining, based on the correspondence between the virtual environment and the gravitational acceleration, the gravitational acceleration corresponding to the current virtual environment; or determining, based on the correspondence between the virtual environment and gravity, the gravity corresponding to the current virtual environment, and determining the gravitational acceleration by the ratio of the gravity to the mass of the virtual projectile. The manner of determining the gravitational acceleration is not limited in examples of this application.

[0159] When only gravity in the environmental factors affects the motion trajectory of the virtual projectile in the longitudinal direction, the determining, based on the longitudinal acceleration, a longitudinal offset speed of the virtual projectile includes: determining, based on the integration of the gravitational acceleration over the throwing duration, the longitudinal offset velocity of the virtual projectile. In an example, based on the integration of the gravitational acceleration over the throwing duration, the longitudinal offset speed of the virtual projectile is determined according to the following Formula (5).v⁢2→=∫0t1g→⁢dt,Formula⁢ (5)

[0160] where in Formula (5), {right arrow over (g)} represents the gravitational acceleration in the current virtual environment; t1 represents the throwing duration, the calculation of t1 being described with reference to Formula (1);∫0t1g→⁢dtrepresents the integration of the gravitational acceleration of the current virtual projectile over the throwing duration; and {right arrow over (v2)} represents the longitudinal offset speed. The current longitudinal offset speed of the virtual projectile is a vector with direction.Based on the longitudinal offset speed and a throwing duration of the virtual projectile, the longitudinal offset is determined, including: determining, based on the integration of the longitudinal offset speed over the throwing duration, the longitudinal offset. The longitudinal offset refers to the offset corresponding to the longitudinal direction.

[0162] In an example, based on the integration of the longitudinal offset speed over the throwing duration, the longitudinal offset is determined according to the following Formula (6).s⁢2→⁢(t)=∫∫0t1v⁢2→⁢dt,Formula⁢ (6)

[0163] where in Formula (6),∫0t1v⁢2→⁢dtrepresents the integration of the longitudinal offset speed over the throwing duration; and {right arrow over (s2)}(t) represents the longitudinal offset. The longitudinal offset is a vector with direction. In some examples, the longitudinal offset distance refers to the distance by which the landing position of the virtual projectile is offset from the aiming position in the longitudinal direction under the impact of environmental factors in the virtual environment.In an example, when two factors (a first factor and a second factor) in the environmental factors affect the motion trajectory of the virtual projectile in the longitudinal direction, determining the longitudinal acceleration exerted on the virtual projectile by the environmental factors includes: determining a first longitudinal acceleration exerted on the virtual projectile by the first factor and a second longitudinal acceleration exerted on the virtual projectile by the second factor. The determining, based on the longitudinal acceleration, a longitudinal offset speed of the virtual projectile includes: determining, based on the first longitudinal acceleration and the second longitudinal acceleration, the longitudinal offset speed.

[0165] When the environmental factors include wind and gravity, and the wind direction has a longitudinal direction in addition to the lateral wind direction (i.e., the direction of the lateral wind parallel to the horizontal plane in the virtual environment), the wind in the longitudinal direction and gravity together exert a force on the virtual projectile in the longitudinal direction. In this case, the longitudinal offset is related to the wind in the longitudinal direction and gravity.

[0166] In an example, the first factor includes wind, and the second factor includes gravity. The first longitudinal acceleration includes the wind longitudinal acceleration, and the second longitudinal acceleration includes the gravitational acceleration. When the wind direction has a longitudinal direction, the determining a first longitudinal acceleration exerted on the virtual projectile by the first factor and a second longitudinal acceleration exerted on the virtual projectile by the second factor includes: determining the wind longitudinal acceleration exerted on the virtual projectile by the wind in the longitudinal direction and the gravitational acceleration. The determining, based on the first longitudinal acceleration and the second longitudinal acceleration, the longitudinal offset speed includes: determining, based on the wind longitudinal acceleration and the gravitational acceleration, the longitudinal offset speed. The manner of determining the wind longitudinal acceleration includes, but is not limited to, determining, according to the correspondence between the wind and the longitudinal acceleration, the longitudinal acceleration corresponding to the wind in the current virtual environment.

[0167] In some examples, the wind direction having a longitudinal direction refers to the wind direction having a component in the longitudinal direction. The wind in the longitudinal direction refers to the component of the wind in the longitudinal direction. In some examples, the wind longitudinal acceleration refers to the component of the acceleration corresponding to the wind in the longitudinal direction. The direction of the acceleration corresponding to the wind is the wind direction, and the magnitude of the acceleration corresponding to the wind is related to the magnitude of the wind and / or the mass of the virtual projectile. For example, the magnitude of the acceleration corresponding to the wind may be the ratio of the magnitude of the wind to the mass of the virtual projectile.

[0168] In summary, the offset information may be displayed not only in the form of the above prompt information, but also in the form of offset markers based on the scale lines. In addition, the offset information may be displayed simultaneously in the form of prompt information and the form of offset markers.

[0169] Referring to FIG. 9, the offset information for the current aiming position A is as follows: the lateral offset information is displayed as an offset of three units to the left on the lateral dense scale line 901 via the lateral offset marker 904, and the longitudinal offset information is displayed as an offset of one unit downward on the longitudinal dense scale line 902 via the longitudinal offset marker 903.

[0170] As an exemplary implementation, the offset information includes a position marker for marking the landing position, and the displaying offset information of an aiming position in the image of the virtual environment includes: displaying the position marker in the image of the virtual environment.

[0171] A position marker for marking the landing position of the virtual projectile is displayed in the image of the virtual environment, which can more clearly and intuitively prompt the interaction object about the offset, thereby enabling the interaction object to adjust the aiming position more accurately, enhancing the hit rate of the virtual projectile, and enhancing the interaction experience of the interaction object and the human-computer interaction rate.

[0172] The offset between the landing position marked by the position marker and the aiming position is the offset information. The display style of the position marker includes, but is not limited to, being represented by the center point of a crosshair. In an example, referring to FIG. 9, the center point B of the crosshair represents the position marker of the landing position of the virtual projectile.

[0173] As an exemplary implementation, before the displaying the position marker in the image of the virtual environment, the method further includes: displaying at least two circular contours in the image of the virtual environment, centers of the at least two circular contours coinciding with the aiming position, and radii of the at least two circular contours being different. The offset includes an offset direction and an offset distance of the landing position of the virtual projectile relative to the aiming position under the impact of environmental factors in the virtual environment, and the displaying the position marker in the image of the virtual environment includes: determining, based on the offset distance and the radii of the at least two circular contours, a target circular contour from the at least two circular contours; and displaying, based on the target circular contour and the offset direction, the position marker.

[0174] A position marker is displayed based on a circular contour, enabling the interaction object to more clearly understand the offset of the landing position of the virtual projectile when the virtual projectile is thrown based on the aiming position, according to the circular contour. This allows the interaction object to more intuitively perceive the offset information, thereby enhancing the throwing accuracy of the interaction object and enhancing the interaction experience and the human-computer interaction rate.

[0175] At least two circular contours form at least two concentric circles centered on the aiming position. The annular region between any two adjacent circular contours may be the same or different, which is not limited in examples of this application, and the circular contours can be determined according to the radius of each circular contour as customized.

[0176] In an example, referring to FIG. 10, three circular contours form three concentric circles centered at 1001 (the aiming position).

[0177] The offset distance is configured for indicating the straight-line distance between the landing position and the aiming position. The offset direction is configured for indicating the relative orientation of the landing position with respect to the aiming position. According to the offset distance, the offset direction, and the aiming position, the landing position can be uniquely determined.

[0178] The manner of representing the offset direction is not limited in the examples of this application. For example, the offset direction may be represented by the angle between a first connecting line and the horizontal line, where the first connecting line is the connecting line connecting the landing position and the aiming position. For another example, the offset direction may be represented by the angle through which a reference line needs to be rotated to coincide with the first connecting line. The reference line may be any straight line passing through the aiming position. For example, the reference line may be a straight line passing through the aiming position and parallel to the horizontal plane, or a straight line passing through the aiming position and perpendicular to the horizontal plane, etc. For another example, the offset direction may be represented by the orientation relative to the aiming position (for example, southeast and due north).

[0179] The target circular contour is the circular contour among at least two circular contours on which the display of the position marker is based, determined according to the offset distance. In an example, the manner of determining, based on the offset distance and the radii of the at least two circular contours, a target circular contour from the at least two circular contours includes: when the offset distance is equal to a radius of any one of the at least two circular contours, selecting the circular contour as the target circular contour; and when the offset distance is greater than a radius of a first circular contour and less than a radius of a second circular contour, selecting the first circular contour and the second circular contour as the target circular contours, the first circular contour and the second circular contour being two adjacent circular contours in the at least two circular contours.

[0180] According to the manner of determining the target circular contour described above, the number of target circular contours may be one or two. In a case that the number of target circular contours differs, the manner of displaying, based on the target circular contour and the offset direction, the position marker also differs. The following description is provided with respect to different cases.

[0181] When the number of target circular contours is one, as an exemplary implementation, the manner of displaying, based on the target circular contour and the offset direction, the position marker includes: displaying the position marker at a first position of the target circular contour, the first position being offset from a center of the target circular contour in a same direction as the offset direction. The manner of representing the direction of the offset of the first position relative to the center of the target circular contour is the same as the manner of representing the offset direction, to facilitate comparison.

[0182] In a case that the number of target circular contours is one, the position marker may be displayed directly on the contour of the target circular contour according to the offset direction. Referring to FIG. 10, three circular contours with different radii are centered at the aiming position 1001, and the position marker B corresponding to the landing position is displayed on the contour of the target circular contour 1002.

[0183] When the number of target circular contours is two, as an exemplary implementation, the manner of displaying, based on the target circular contour and the offset direction, the position marker includes: displaying the position marker at a reference position in an annular region formed by the two target circular contours, a distance between the reference position and a center of the annular region being equal to the offset distance, and the reference position being offset from the center of the annular region in a same direction as the offset direction.

[0184] In a case that the number of target circular contours is two, the position marker is displayed in the annular region formed by the two target circular contours according to the offset distance and offset direction. In an example, referring to FIG. 11, the position marker B is located within the annular region formed by the first target circular contour 1101 and the second target circular contour 1102.

[0185] The above manner of displaying the position marker based on at least two circular contours is merely an exemplary illustration, which is not limited in the examples of this application. In some examples, the position marker may be displayed based on at least two contours of other shapes, such as square contours, rectangular contours, and elliptical contours. The principle of displaying the position marker based on at least two contours of other shapes is similar to the principle of displaying the position marker based on at least two circular contours, which is not repeated herein.

[0186] The content included in the above offset information and the manner of displaying the offset information are merely exemplary illustrations, and the examples of this application are not limited thereto. In some examples, the offset information may further include the offset sub-information corresponding to at least one direction and a position marker for marking the landing position. In this case, the manner of displaying the offset information includes: displaying the offset sub-information corresponding to at least one direction and the position marker in the image of the virtual environment.

[0187] The offset information includes the offset sub-information corresponding to at least one direction and the position marker, that is, while presenting the offset sub-information corresponding to at least one direction to the interaction object, the position marker marking the landing position is presented directly. This enables the interaction object to have a clearer and more precise understanding of the impact of environmental factors in the current virtual environment on the throwing process of the virtual projectile, allowing the interaction object to more clearly know how to adjust the aiming position, thereby enhancing the interaction experience of the interaction object and enhancing the human-computer interaction rate.

[0188] In an example, when the offset information includes the offset sub-information corresponding to at least one direction and the position marker, the manner of displaying the offset information may include simultaneously displaying the longitudinal offset marker 903, the lateral offset marker 904, and the position marker B in the virtual environment based on the scale lines shown in FIG. 9. The manner of displaying the offset information may include displaying the longitudinal offset marker 903 and the lateral offset marker 904 in the virtual environment based on the scale lines shown in FIG. 9, while simultaneously displaying the position marker based on at least two circular contours shown in FIG. 10.

[0189] In this application, in addition to prompting the offset of the landing position of the virtual projectile relative to the aiming position, the offset information, as an exemplary implementation, may be displayed in the virtual environment for a positioning location. The positioning location may be any position in the image of the virtual environment. The offset information of the positioning location is configured to prompt, under the impact of environmental factors in the virtual environment, the offset of a first landing position of the virtual projectile relative to any aiming position. The first landing position of the virtual projectile refers to the predicted position where the virtual projectile would land after the virtual projectile is thrown toward the positioning location.

[0190] The manner of determining the positioning location includes, but is not limited to, the interaction object randomly positioning the intersection of the lateral dense scale line and the vertical fine-grained scale line at any position in the virtual environment, where this position is determined as the positioning location. That is, the offset information can be displayed for the positioning location in the virtual environment. In this case, the offset information of the positioning location can be used to determine, under the impact of current environmental factors, the offset of the virtual projectile in the lateral direction and the longitudinal direction when the virtual projectile is thrown toward the aiming position. Subsequently, when throwing toward the aiming position, the interaction object can accurately predict, under the impact of current environmental factors, the offset of the landing position of the virtual projectile relative to the aiming position when the virtual projectile is thrown toward the aiming position. In other words, if the interaction object first obtains the offset information of the virtual projectile under the impact of current environmental factors through the positioning location, then subsequently, when aiming at the aiming position, the interaction object can accurately predict the offset information of the aiming position even if the offset information of the aiming position is not displayed or continuously constrained in the virtual environment.

[0191] Operation 203: In response to a throwing operation directed to a target position, throw the virtual projectile toward the target position, the target position being obtained by adjusting the aiming position according to the offset information.

[0192] The target position refers to the aiming position adjusted according to the offset information when the virtual projectile is required to hit the aiming position. After the virtual projectile is thrown toward the target position, the landing position of the virtual projectile may be the aiming position, or may be a position at a distance from the aiming position. That is, after the interaction object determines the target position based on the offset information, the virtual projectile may not be thrown exactly to the aiming position. However, the distance between the landing position of the virtual projectile and the aiming position can be significantly reduced, enhancing the throwing accuracy of the virtual projectile, thereby enhancing the interaction experience of the interaction object and enhancing the human-computer interaction rate. The interaction experience and the interaction skills of the interaction object are required to determine the interaction ranking and the interaction capability during the interaction process.

[0193] The accuracy of the final throwing operation directed to the target position is related to the timing of displaying the offset information. The timing of displaying the offset information after the offset information is determined is described in detail below. That is, the closer the display time of the offset information is to the moment of throwing the virtual projectile, the higher the accuracy in determining the target position.

[0194] As an exemplary implementation, the method further includes: in response to the trigger operation of the throwing tool, displaying a throwing interface without the offset information. The content displayed on the throwing interface includes the image of the virtual environment and the throwing trajectory of the virtual projectile toward the target position.

[0195] The throwing interface may be a separate display interface independent of the above auxiliary throwing interface. That is, the interaction object first determines the offset information through the auxiliary throwing interface and then throws the virtual projectile through the throwing interface.

[0196] When the auxiliary throwing interface and the throwing interface are two separate display interfaces, the display of the auxiliary throwing interface and the throwing interface includes the following two cases. When the auxiliary throwing interface and the throwing interface are two separate display interfaces, and the offset information is displayed in the form of scale lines, the position coordinates of the intersection of scale lines corresponding to at least one direction in the auxiliary throwing interface are the same as the position coordinates of the intersection of scale lines corresponding to at least one direction in the throwing interface. In other words, the positions represented by each scale in the scale lines are synchronized in the two interfaces and fully identical.

[0197] Scenario 1: First, the offset information of any position is determined via the auxiliary throwing interface. Then, the aiming position is determined via the throwing interface, and based on the offset information, the aiming offset information for the aiming position is determined. Finally, the aiming position is adjusted to the target position via the throwing interface according to the aiming offset information. In response to a throwing operation directed to the target position, an image of throwing the virtual projectile toward the target position is displayed on the throwing interface.

[0198] Scenario 2: First, the aiming position and the offset information of the aiming position are determined via the auxiliary throwing interface. Then, the target position is determined via the throwing interface, and an image of throwing the virtual projectile toward the target position is displayed on the throwing interface.

[0199] Regardless of whether Scenario 1 or Scenario 2 is applied, if the scale lines include lateral dense scale lines in the lateral direction and longitudinal dense scale lines in the longitudinal direction, a common premise exists: the position coordinates of the intersection of the lateral dense scale lines and the longitudinal dense scale lines in the auxiliary throwing interface are the same as the position coordinates of the intersection of the lateral dense scale lines and the longitudinal dense scale lines in the throwing interface. In other words, the positions represented by the scales of the lateral dense scale lines and the longitudinal dense scale lines are synchronized in the two interfaces and fully identical. As a result, after the interaction object acquires the offset information of the aiming position on the auxiliary throwing interface, even if the offset information is no longer displayed on the throwing interface, the interaction object can determine the offset of the aiming position on the throwing interface according to the perceived offset information, thereby accurately estimating the target position and throwing the virtual projectile toward the target position.

[0200] The throwing interface and the above auxiliary throwing interface may be the same display interface. In this case, the interaction object first determines the offset information via the display interface and then throws the virtual projectile via the display interface.

[0201] The timing of displaying the offset information includes, but is not limited to, the following: when the auxiliary throwing interface and the throwing interface are two separate display interfaces, the offset information is displayed only on the auxiliary throwing interface; or the offset information is continuously displayed on the auxiliary throwing interface and the throwing interface. When the auxiliary throwing interface and the throwing interface are the same display interface, the offset information is displayed only during the aiming of the aiming position, and the offset information is hidden when the throwing operation of the virtual projectile is triggered; alternatively, the offset information is continuously displayed during the aiming of the aiming position and when the throwing operation of the virtual projectile is triggered.

[0202] The timing for displaying the wind direction prompt information includes displaying the information at any moment during the overall process of throwing the virtual projectile, or continuously displaying the information throughout the entire process of throwing the virtual projectile. In an example, the wind direction prompt information may be continuously displayed on the auxiliary throwing interface; or the wind direction prompt information may be continuously displayed on the throwing interface; or the wind direction prompt information may be continuously displayed on the auxiliary throwing interface and the throwing interface; or the wind direction prompt information may be displayed on the auxiliary throwing interface at intervals of a reference time; or the wind direction prompt information may be displayed on the throwing interface at intervals of a reference time. The timing of displaying the wind direction prompt information is not limited in this application.

[0203] In an example, in response to the trigger operation of the auxiliary throwing tool, the auxiliary throwing interface is displayed in the image of the virtual environment. Referring to FIG. 12, the display interface is the auxiliary throwing interface. An icon 1201 indicates that the current wind direction is southeast and the wind speed is 5.96 m / s. In addition, the wind speed of 5.96 m / s is also displayed around the lateral dense scale lines, and at 1202 around the longitudinal dense scale lines, the throwing distance between the virtual object and the current aiming position is displayed as 277 m. Based on the current aiming position A, the lateral offset information is displayed as an offset of three units to the right, and the longitudinal offset information is displayed as an offset of one unit downward. The attribute value representation box 1203 in FIG. 12 indicates that there is an interaction object nearby that needs to be hit, and in this case, the attribute value of the interaction object is full.

[0204] In response to the trigger operation of the throwing tool, the throwing interface is displayed in the image of the virtual environment. Referring to FIG. 13, the display interface 1301 is the throwing interface. In this case, the offset information is no longer displayed on the throwing interface. However, the interaction object determines the target position B on the throwing interface based on the offset information in the auxiliary throwing interface. That is, after the virtual projectile is thrown toward the target position B, the virtual projectile may approximately land at the intersection of the arrow 1302 and the arrow 1303, which corresponds to the current position of the enemy 1304. For ease of illustration, the arrow 1302 and the arrow 1303 are added to the throwing interface. In the practical application, however, the throwing interface does not include the arrow 1302 and the arrow 1303. After the in response to a throwing operation directed to a target position, throwing a virtual projectile toward the target position, referring to FIG. 14, the lateral dense scale lines and the longitudinal dense scale lines are offset relative to the positions of the lateral dense scale lines and the longitudinal dense scale lines in FIG. 13 due to the force generated by the throwing. In addition, the enemy 1401 is hit, and the attribute value in the attribute value representation box 1402 decreases. The black portion in the attribute value representation box 1402 represents the remaining attribute value after the decrease, while the white portion represents the decreased attribute value.

[0205] In an example, in response to the trigger operation of the auxiliary throwing tool, the auxiliary throwing interface is displayed in the image of the virtual environment. Referring to FIG. 15, the display interface is the auxiliary throwing interface. A wind icon 1501 indicates that the current wind direction is southeast and the wind speed is 8.13 m / s. In addition, the wind speed of 8.13 m / s is also displayed around the lateral dense scale lines, and at 1502 around the longitudinal dense scale lines, the throwing distance between the virtual object and the current aiming position is displayed as 297 m. Based on the current aiming position A, the lateral offset information is displayed as an offset of two units to the right, and the longitudinal offset information is displayed as an offset of one unit downward.

[0206] In response to the trigger operation of the throwing tool, the throwing interface is displayed in the image of the virtual environment. Referring to FIG. 16, the display interface 1601 is the throwing interface. In this case, the offset information is no longer displayed on the throwing interface. However, the interaction object determines the target position B on the throwing interface based on the offset information in the auxiliary throwing interface. That is, after the virtual projectile is thrown toward the target position B, the virtual projectile may approximately land at the position of a gas cylinder 1602. After the in response to a throwing operation directed to a target position, throwing a virtual projectile toward the target position, referring to FIG. 17, the virtual projectile 1701 is thrown toward the target position B. Referring to FIG. 18, since there is an offset between the landing position of the virtual projectile and the target position B, the gas cylinder 1801 is hit and explodes.

[0207] In addition, the offset information may be continuously displayed on the auxiliary throwing interface, or the offset information may be hidden in response to changes in the aiming position. That is, when the aiming position changes, the offset information is updated to correspond to the new aiming position, and the offset information of the previous aiming position is hidden.

[0208] For this case, as an exemplary implementation, after the displaying the offset information of the aiming position of the virtual projectile in the virtual environment, the method further includes: in response to a marking operation on the aiming position, marking the offset information displayed in the image of the virtual environment within a reference region of the aiming position.

[0209] The aiming position is marked so that the object can simultaneously mark a plurality of target positions to be hit in the virtual environment, avoiding the interaction object from forgetting the offset information associated with previously aimed positions after switching the aiming position, thereby enhancing the accuracy of the resulting target position.

[0210] To avoid the offset information corresponding to a previous aiming position from being hidden and no longer displayed after the aiming position is updated during the aiming process, a marking operation may be performed on the aiming position to mark the offset information of the aiming position within a reference region of the aiming position.

[0211] The reference region of the aiming position refers to a region located near the aiming position. The reference region of the aiming position may be configured according to experience or may be flexibly adjusted according to application scenarios, which is not limited in the examples of this application. In an example, the reference region of the aiming position may refer to a region centered on the aiming position. For example, the reference region of the aiming position may be a circular region centered on the aiming position with a first radius as the radius. For another example, the reference region of the aiming position may be a rectangular region centered on the aiming position with a first length and a first width as the length and width, respectively. The first radius, the first length, and the first width may be configured according to experience. In an example, the reference region of the aiming position may be a sector-shaped region centered on the aiming position. In an example, marking the offset information of the aiming position within the reference region of the aiming position refers to marking the offset information of the aiming position at any position within the reference region of the aiming position.

[0212] The marking operation includes, but is not limited to, a trigger operation on a marking control. The marking control is a control that can be triggered by the interaction object to determine the aiming position. The marking control may be a button at any position on the display interface. For example, the interaction object may tap the corresponding marking control on the display interface to display a marking pointer and drag the marking pointer to the aiming position. Alternatively, the marking control may be any key on a touchpad of the computer device. For example, the interaction object may press the middle mouse button to mark the aiming position.

[0213] As an exemplary implementation, the method further includes, after the displaying the offset information of the aiming position in the image of the virtual environment, in response to an offset information update condition being satisfied, displaying updated offset information in the image of the virtual environment. The offset information update condition being satisfied includes at least one of the following: a change in the aiming position by a virtual object, the virtual object being an object configured to throw the virtual projectile; a change in the environmental factors; a change in a position, in the virtual environment, of a targeted object corresponding to the aiming position; a change in a position, in the virtual environment, of the virtual object; and a change in attributes of a virtual throwing apparatus, the virtual throwing apparatus being an apparatus configured to throw the virtual projectile. That is, if the offset information update condition is satisfied, the interaction object needs to re-trigger the auxiliary throwing interface and re-determine the target position based on the updated offset information.

[0214] When the offset information update condition is satisfied, the offset information is updated in real time, allowing the interaction object to timely acquire the updated offset information, thereby ensuring the accuracy of the resulting target position and enhancing the interaction experience of the interaction object and the human-computer interaction rate.

[0215] When the virtual object changes the aiming position, the offset information of the changed aiming position needs to be displayed in the image of the virtual environment, and the offset information of the changed aiming position corresponds to the updated offset information. When the environmental factors change, under the impact of the environmental factors in the virtual environment, the offset of the landing position of the virtual projectile relative to the aiming position may change. Therefore, the updated offset information needs to be displayed to prompt the offset after the change. When the position of the targeted object corresponding to the aiming position in the virtual environment changes, the aiming position needs to change following the position change of the targeted object. After the aiming position changes, the offset information of the changed aiming position needs to be displayed, and the offset information of the changed aiming position corresponds to the updated offset information. When the position of the virtual object in the virtual environment changes, even if the virtual object maintains the aiming action unchanged, the aiming position may change following the position change of the virtual object. After the aiming position changes, the offset information of the changed aiming position needs to be displayed, and the offset information of the changed aiming position corresponds to the updated offset information. When the attributes of the virtual throwing apparatus change, the landing position of the virtual projectile changes, causing the offset of the landing position of the virtual projectile relative to the aiming position to change. Consequently, the updated offset information needs to be displayed to prompt the offset after the change.

[0216] In an example, a change in the aiming position by the virtual object includes: the virtual object changing the aiming orientation; or the virtual object changing the aiming coordinates. A change in the environmental factors includes: a change in the gravitational acceleration; a change in the wind direction; or a change in the wind magnitude. A change in the position of the targeted object corresponding to the aiming position in the virtual environment includes: when the targeted object is a moving object, the aiming position changes following the position change of the targeted object. A change in the attributes of the virtual throwing apparatus includes: a change in the type or level of the virtual throwing apparatus used by the interaction object.

[0217] In addition, the system detects collisions of the virtual projectile during the throwing process. If the interaction object correctly aims at the target position, but the virtual projectile strikes another obstacle during the throwing process, the virtual projectile may hit the obstacle.

[0218] According to the examples of this application, offset information of an aiming position is displayed to prompt an interaction object, such that the interaction object is informed of how to adjust the aiming position for throwing so that a virtual projectile lands at the aiming position. Accordingly, the interaction object is prompted to trigger a throwing operation after adjusting the aiming position to a target position that increases the probability of the virtual projectile landing at the aiming position, such that a computer device throws the virtual projectile toward the target position, thereby increasing the probability that the virtual projectile lands at the aiming position. Thus, the throwing accuracy of the virtual projectile is enhanced, which is conducive to enhancing the hit rate of the virtual projectile, thereby enhancing the interaction experience of the interaction object and enhancing the human-computer interaction rate.

[0219] In addition, the offset information of the aiming information is determined based on environmental factors in the virtual environment. By introducing environmental factors in the virtual environment that more closely approximate those in a real environment (e.g., wind and gravity), an experience of throwing in a real environment can be provided to the interaction object, thereby enhancing the realism of throwing and further enhancing the interaction experience of the interaction object and the human-computer interaction rate.

[0220] Referring to FIG. 19, the overall process of a method for throwing a virtual projectile is described below.

[0221] Operation 1: In response to a trigger operation of an auxiliary throwing tool, display an auxiliary throwing interface in an image of a virtual environment.

[0222] Operation 2: In response to aiming at an aiming position using the auxiliary throwing tool, measure, by means of the auxiliary throwing tool, environmental factors in the virtual environment and a throwing distance of the virtual projectile; determine, based on the environmental factors and the throwing distance of the virtual projectile, an offset corresponding to at least one direction; and display, based on the offset corresponding to the at least one direction, offset information in the image of the virtual environment.

[0223] The aiming position is a position to be hit by the virtual projectile. The offset information is configured for prompting, under the impact of environmental factors in the virtual environment, an offset of a landing position of the virtual projectile relative to the aiming position. The landing position is a predicted position at which the virtual projectile lands after the virtual projectile is thrown toward the aiming position.

[0224] Operation 3: In response to a marking operation on the aiming position, mark the offset information displayed in the image of the virtual environment within a reference region of the aiming position.

[0225] Operation 4: Aim at a target position using a throwing tool according to the offset information.

[0226] The target position is obtained by adjusting the aiming position according to the offset information.

[0227] Operation 5: Determine whether the aiming position has changed; if the aiming position has changed, return to operation 1; if the aiming position has not changed, perform operation 6.

[0228] Operation 6: In response to a throwing operation directed to the target position, throw the virtual projectile toward the target position.

[0229] Operation 7: Determine whether the aiming position is hit; if the aiming position is hit, perform operation 8; if the aiming position is not hit, return to operation 4.

[0230] Operation 8: End.

[0231] Referring to FIG. 20, the examples of this application provide an apparatus for throwing a virtual projectile, the apparatus including:

[0232] a first display module 2001 configured to display an image of a virtual environment;

[0233] a second display module 2002 configured to display offset information of an aiming position in the image of the virtual environment, the aiming position being a position to be hit by the virtual projectile, the offset information being configured to prompt, under the impact of environmental factors in the virtual environment, an offset of a landing position of the virtual projectile relative to the aiming position, and the landing position being a predicted position at which the virtual projectile lands after the virtual projectile is thrown toward the aiming position; and

[0234] a throwing module 2003 configured to, in response to a throwing operation directed to a target position, throw the virtual projectile toward the target position, the target position being obtained by adjusting the aiming position according to the offset information.

[0235] In a possible implementation, the offset information includes the offset sub-information corresponding to at least one direction. The second display module 2002 is configured to: display scale lines corresponding to at least one direction in the image of the virtual environment; and display, based on the scale lines corresponding to at least one direction, the offset sub-information corresponding to at least one direction.

[0236] In a possible implementation, the offset sub-information corresponding to any direction is represented by an offset marker corresponding to the direction. The second display module 2002 is configured to: determine, based on an offset corresponding to the direction and an offset represented by each scale on a scale line corresponding to the direction, a target scale on the scale line corresponding to the direction, the offset corresponding to the direction being an offset of a landing position of the virtual projectile relative to the aiming position in the direction under the impact of the environmental factors; and display the offset marker corresponding to the direction on a straight line perpendicular to the scale line corresponding to the direction and passing through the target scale.

[0237] In a possible implementation, the second display module 2002 is further configured to: in response to a trigger operation of an auxiliary throwing tool, measure, by means of the auxiliary throwing tool, the environmental factors in the virtual environment and a throwing distance of the virtual projectile; and determine, based on the environmental factors and the throwing distance of the virtual projectile, an offset corresponding to the at least one direction.

[0238] In a possible implementation, the second display module 2002 is configured to: in response to the trigger operation of the auxiliary throwing tool, display the auxiliary throwing tool in the image of the virtual environment; and in response to aiming at the aiming position using the auxiliary throwing tool, measure, by means of the auxiliary throwing tool, the environmental factors in the virtual environment and the throwing distance of the virtual projectile.

[0239] In a possible implementation, the at least one direction includes a lateral direction. The second display module 2002 is configured to: determine a lateral acceleration exerted on the virtual projectile by the environmental factors; determine, based on the lateral acceleration, a lateral offset speed of the virtual projectile; and determine, based on the lateral offset speed and a throwing duration of the virtual projectile, an offset corresponding to the lateral direction, the throwing duration being determined based on an initial throwing speed and the throwing distance of the virtual projectile.

[0240] In a possible implementation, the at least one direction includes a longitudinal direction. The second display module 2002 is configured to: determine a longitudinal acceleration exerted on the virtual projectile by the environmental factors; determine, based on the longitudinal acceleration, a longitudinal offset speed of the virtual projectile; and determine, based on the longitudinal offset speed and a throwing duration of the virtual projectile, an offset corresponding to the longitudinal direction, the throwing duration being determined based on an initial throwing speed and the throwing distance of the virtual projectile.

[0241] In a possible implementation, the initial throwing speed is determined based on at least one of the attributes of a virtual throwing apparatus or the attributes of the virtual projectile, the virtual throwing apparatus being an apparatus configured to throw the virtual projectile.

[0242] In a possible implementation, the offset information includes a position marker for marking the landing position. The second display module 2002 is configured to display the position marker in the image of the virtual environment.

[0243] In a possible implementation, the second display module 2002 is further configured to display at least two circular contours in the image of the virtual environment, centers of the at least two circular contours coinciding with the aiming position, and radii of the at least two circular contours being different.

[0244] The offset includes an offset direction and an offset distance of the landing position of the virtual projectile relative to the aiming position under the impact of environmental factors in the virtual environment. The second display module 2002 is configured to: determine, based on the offset distance and the radii of the at least two circular contours, a target circular contour from the at least two circular contours; and display, based on the target circular contour and the offset direction, the position marker.

[0245] In a possible implementation, the second display module 2002 is configured to, when the offset distance is equal to a radius of any one of the at least two circular contours, select the circular contour as the target circular contour.

[0246] In a possible implementation, the second display module 2002 is configured to, when the offset distance is greater than a radius of a first circular contour and less than a radius of a second circular contour, select the first circular contour and the second circular contour as the target circular contours, the first circular contour and the second circular contour being two adjacent circular contours in the at least two circular contours.

[0247] In a possible implementation, the number of target circular contours is one. The second display module 2002 is configured to display the position marker at a first position of the target circular contour, the first position being offset from a center of the target circular contour in a same direction as the offset direction.

[0248] In a possible implementation, the number of target circular contours is two. The second display module 2002 is configured to display the position marker at a reference position in an annular region formed by the two target circular contours, a distance between the reference position and a center of the annular region being equal to the offset distance, and the reference position being offset from the center of the annular region in a same direction as the offset direction.

[0249] In a possible implementation, the environmental factors include at least one of gravity and wind.

[0250] In a possible implementation, the environmental factors include wind. The second display module 2002 is further configured to display prompt information of the wind in the image of the virtual environment, the prompt information including at least one of wind direction prompt information and wind magnitude prompt information.

[0251] In a possible implementation, the wind direction prompt information is represented by an icon, and a pointing direction of the icon is a direction of the wind relative to the orientation of the virtual object, the virtual object being an object configured to throw the virtual projectile.

[0252] In a possible implementation, the second display module 2002 is further configured to, in response to a marking operation on the aiming position, mark the offset information displayed in the image of the virtual environment within a reference region of the aiming position.

[0253] In a possible implementation, the second display module 2002 is further configured to: in response to an offset information update condition being satisfied, display updated offset information in the image of the virtual environment. The offset information update condition being satisfied includes at least one of the following: a change in the aiming position by a virtual object, the virtual object being an object configured to throw the virtual projectile; a change in the environmental factors; a change in a position, in the virtual environment, of a targeted object corresponding to the aiming position; a change in a position, in the virtual environment, of the virtual object; and a change in attributes of a virtual throwing apparatus, the virtual throwing apparatus being an apparatus configured to throw the virtual projectile.

[0254] When the apparatus provided above implements functions of the apparatus, only division into the above functional modules is used as an example for description. In practical application, the functions may be allocated to and completed by different functional modules based on requirements. In other words, an internal structure of a device is divided into different functional modules, to complete all or a part of the functions described above. In addition, the apparatus provided in the above examples and the method examples belong to the same concept. The specific implementation process is described in the method examples, which is not repeated herein.

[0255] In an exemplary example, a computer device is further provided. The computer device includes a processor and a memory, and the memory has at least one computer program stored therein. The at least one computer program is loaded and executed by one or more processors to enable the computer device to perform the method for throwing a virtual projectile according to any one of the above examples. The computer device may be a server or a terminal device. Next, the structures of the server and the terminal device are described.

[0256] FIG. 21 is a schematic structural diagram of a server according to an example of this application. The server may vary considerably depending on configuration or performance, and may include one or more central processing units (CPUs) 2101 and one or more memories 2102. The one or more memories 2102 have at least one computer program stored therein. The at least one computer program is loaded and executed by the one or more CPUs 2101, to enable the server to perform the method for throwing a virtual projectile according to any one of the method examples. Additionally, the server may further include parts such as a wired or wireless network interface, a keyboard, and an input / output (I / O) interface, to perform input and output. The server may further include other parts configured to implement a device function, which is not repeated herein.

[0257] FIG. 22 is a schematic structural diagram of a terminal device according to an example of this application. The terminal device may be a PC, mobile phone, smartphone, PDA, wearable device, PPC, tablet, in-vehicle intelligent system, smart TV, smart speaker, intelligent voice-interactive device, smart home appliance, on board terminal device, VR device, or AR device. The terminal device may be referred to by other names, such as user equipment, a portable terminal device, a laptop terminal device, or a desktop terminal device.

[0258] Generally, the terminal device includes a processor 2201 and a memory 2202.

[0259] The processor 2201 may include one or more processing cores, for example, a quad-core processor or an octa-core processor. The processor 2201 may be implemented using at least one hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 2201 may further include a main processor and a co-processor. The main processor is configured to process data in a wake state and is also referred to as a CPU. The co-processor is a low-power processor configured to process data in a standby state. In some examples, the processor 2201 may be integrated with a graphics processing unit (GPU). The GPU is configured to render and draw content that needs to be displayed on a display screen. In some examples, the processors 2201 may further include an AI processor. The AI processor is configured to process computing operations related to machine learning.

[0260] The memory 2202 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 2202 may further include a high-speed random-access memory and a non-volatile memory, such as one or more disk storage devices and flash storage devices. In some examples, the non-transitory computer-readable storage medium in the memory 2202 is configured to store at least one instruction. The at least one instruction is executed by the processor 2201 to enable the terminal device to perform the method for throwing a virtual projectile provided in the method examples of this application.

[0261] In some examples, the terminal device may further include a display screen 2205.

[0262] The display screen 2205 is configured to display a user interface (UI). The UI may include graphics, text, icons, video, or any combination thereof. When the display screen 2205 is a touch display screen, the display screen 2205 further has a capability of acquiring a touch signal on or above a surface of the display screen 2205. The touch signal may be input to the processor 2201 as a control signal for processing. In this case, the display screen 2205 may further be configured to provide a virtual button and / or a virtual keyboard, also referred to as a soft button and / or a soft keyboard. In some examples, there may be one display screen 2205 disposed on a front panel of the terminal device. In other examples, there may be at least two display screens 2205 disposed on different surfaces of the terminal device or in a foldable design. In other examples, the display screen 2205 may be a flexible display screen disposed on a curved surface or a folded surface of the terminal device. The display screen 2205 may further be configured as a non-rectangular irregular shape, i.e., a special-shaped screen. The display screen 2205 may be fabricated using materials such as a liquid crystal display (LCD) or an organic light-emitting diode (OLED). In some examples, the image of the virtual environment, the offset information of the aiming position, and the like in this application are displayed via the display screen 2205.

[0263] One of ordinary skill in the art may understand that the structure shown in FIG. 22 constitutes no limitation on the terminal device, and the terminal device may include more or fewer assemblies than those shown in the drawing, or some assemblies may be combined, or a different assembly deployment may be used.

[0264] In an exemplary example, a non-volatile computer-readable storage medium is further provided. The non-volatile computer-readable storage medium has at least one computer program stored therein. The at least one computer program is loaded and executed by a processor of a computer device to cause a computer to perform the method for throwing a virtual projectile according to any one of the above examples.

[0265] In a possible implementation, the non-volatile computer-readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0266] In an exemplary example, a computer program product or a computer program is further provided. The computer program product or the computer program includes computer instructions. The computer instructions are loaded and executed by a processor to cause a computer to perform the method for throwing a virtual projectile according to any one of the above examples.

[0267] Information (including, but not limited to, user equipment information, user personal information, and the like), data (including, but not limited to, data for analysis, data for storage, data for display, and the like), and signals involved in this application are all authorized by users or fully authorized by all parties, and collection, use, and processing of the relevant data need to comply with relevant laws, regulations, and standards of the relevant countries and regions. For example, the plurality of reference regions and the like involved in this application are acquired under full authorization.

[0268] The term “a plurality of” as used herein refers to two or more. The term “and / or”, describing an association relationship between associated objects, indicates that three relationships may exist. For example, A and / or B may indicate the following three cases: only A exists, both A and B exist, and only B exists. The character “ / ” generally indicates an “or” relationship between the associated objects.

[0269] The above descriptions are merely exemplary examples of this application, and are not intended to limit this application. Any modification, equivalent replacement, or improvement made within the principle of this application shall fall within the protection scope of this application.

Claims

1. A method for throwing a virtual projectile in a virtual environment, performed by a computer device, comprising:displaying an image of the virtual environment;displaying offset information of an aiming position in the image of the virtual environment, wherein the aiming position is a position to be hit by the virtual projectile, the offset information is configured to prompt, under an impact of environmental factors in the virtual environment, an offset of a landing position of the virtual projectile relative to the aiming position, and the landing position is a predicted position at which the virtual projectile lands after the virtual projectile is thrown toward the aiming position;obtaining a target position by adjusting the aiming position according to the offset information; andin response to a throwing operation directed to the target position, rendering movement of the virtual projectile toward the target position in the image of the virtual environment.

2. The method according to claim 1, wherein the offset information comprises offset sub-information corresponding to at least one direction, and the method further comprises:displaying scale lines corresponding to the at least one direction in the image of the virtual environment; anddisplaying, based on the scale lines corresponding to the at least one direction, the offset sub-information corresponding to the at least one direction.

3. The method according to claim 2, wherein the offset sub-information corresponding to the at least one direction is represented by a respective offset marker, and the displaying, based on the scale lines corresponding to the at least one direction, the offset sub-information corresponding to the at least one direction comprises:determining, based on an offset corresponding to the at least one direction and an offset represented by each scale on a scale line corresponding to the at least one direction, a target scale on the scale line corresponding to the at least one direction, the offset corresponding to the at least one direction being an offset of a landing position of the virtual projectile relative to the aiming position in the at least one direction under an impact of the environmental factors; anddisplaying the respective offset marker on a straight line perpendicular to the scale line corresponding to the at least one direction and passing through the target scale.

4. The method according to claim 3, further comprising:in response to a trigger operation of an auxiliary throwing tool, measuring, using the auxiliary throwing tool, the environmental factors in the virtual environment and a throwing distance of the virtual projectile; anddetermining, based on the environmental factors and the throwing distance of the virtual projectile, the offset corresponding to the at least one direction.

5. The method according to claim 4, wherein the measuring comprises:in response to the trigger operation of the auxiliary throwing tool, displaying the auxiliary throwing tool in the image of the virtual environment; andin response to aiming at the aiming position using the auxiliary throwing tool, measuring, using the auxiliary throwing tool, the environmental factors in the virtual environment and the throwing distance of the virtual projectile.

6. The method according to claim 4, wherein the at least one direction comprises a lateral direction, and the determining, based on the environmental factors and the throwing distance of the virtual projectile, the offset corresponding to the at least one direction comprises:determining a lateral acceleration exerted on the virtual projectile by the environmental factors;determining, based on the lateral acceleration, a lateral offset speed of the virtual projectile; anddetermining, based on the lateral offset speed and a throwing duration of the virtual projectile, an offset corresponding to the lateral direction, the throwing duration being determined based on an initial throwing speed and the throwing distance of the virtual projectile.

7. The method according to claim 4, wherein the at least one direction comprises a longitudinal direction, and the determining, based on the environmental factors and the throwing distance of the virtual projectile, the offset corresponding to the at least one direction comprises:determining a longitudinal acceleration exerted on the virtual projectile by the environmental factors;determining, based on the longitudinal acceleration, a longitudinal offset speed of the virtual projectile; anddetermining, based on the longitudinal offset speed and a throwing duration of the virtual projectile, an offset corresponding to the longitudinal direction, the throwing duration being determined based on an initial throwing speed and the throwing distance of the virtual projectile.

8. The method according to claim 6, wherein the initial throwing speed is determined based on at least one of attributes of a virtual throwing apparatus or attributes of the virtual projectile, the virtual throwing apparatus being an apparatus configured to throw the virtual projectile.

9. The method according to claim 1, wherein the offset information comprises a position marker for marking the landing position, and the displaying the offset information of the aiming position in the image of the virtual environment comprises:displaying the position marker in the image of the virtual environment.

10. The method according to claim 9, further comprising:displaying at least two circular contours in the image of the virtual environment, centers of the at least two circular contours coinciding with the aiming position, and radii of the at least two circular contours being different,wherein the offset comprises an offset direction and an offset distance of the landing position of the virtual projectile relative to the aiming position under the impact of environmental factors in the virtual environment, and the displaying the position marker in the image of the virtual environment comprises:determining, based on the offset distance and the radii of the at least two circular contours, a target circular contour from the at least two circular contours; anddisplaying, based on the target circular contour and the offset direction, the position marker.

11. An apparatus, comprising:a processor; andmemory storing instructions that, when executed by the processor, cause the apparatus to:display an image of a virtual environment;display offset information of an aiming position in the image of the virtual environment, wherein the aiming position is a position to be hit by a virtual projectile, the offset information is configured to prompt, under an impact of environmental factors in the virtual environment, an offset of a landing position of the virtual projectile relative to the aiming position, and the landing position is a predicted position at which the virtual projectile lands after the virtual projectile is thrown toward the aiming position;obtain a target position by adjusting the aiming position according to the offset information; andin response to a throwing operation directed to the target position, render movement of the virtual projectile toward the target position in the image of the virtual environment.

12. The apparatus according to claim 11, wherein the offset information comprises offset sub-information corresponding to at least one direction, and the instructions, when executed by the processor, cause the apparatus to:display scale lines corresponding to the at least one direction in the image of the virtual environment; anddisplay, based on the scale lines corresponding to the at least one direction, the offset sub-information corresponding to the at least one direction.

13. The apparatus according to claim 12, wherein the offset sub-information corresponding to the at least one direction is represented by a respective offset marker, and the instructions, when executed by the processor, cause the apparatus to display, based on the scale lines corresponding to the at least one direction, the offset sub-information corresponding to the at least one direction by:determining, based on an offset corresponding to the at least one direction and an offset represented by each scale on a scale line corresponding to the at least one direction, a target scale on the scale line corresponding to the at least one direction, the offset corresponding to the at least one direction being an offset of a landing position of the virtual projectile relative to the aiming position in the at least one direction under an impact of the environmental factors; anddisplaying the respective offset marker on a straight line perpendicular to the scale line corresponding to the at least one direction and passing through the target scale.

14. The apparatus according to claim 13, wherein the instructions, when executed by the processor, cause the apparatus to:in response to a trigger operation of an auxiliary throwing tool, measure, using the auxiliary throwing tool, the environmental factors in the virtual environment and a throwing distance of the virtual projectile; anddetermine, based on the environmental factors and the throwing distance of the virtual projectile, the offset corresponding to the at least one direction.

15. The apparatus according to claim 14, wherein the instructions, when executed by the processor, cause the apparatus to measure the environmental factors in the virtual environment and the throwing distance of the virtual projectile by:in response to the trigger operation of the auxiliary throwing tool, displaying the auxiliary throwing tool in the image of the virtual environment; andin response to aiming at the aiming position using the auxiliary throwing tool, measuring, using the auxiliary throwing tool, the environmental factors in the virtual environment and the throwing distance of the virtual projectile.

16. The apparatus according to claim 14, wherein the at least one direction comprises a lateral direction, and the instructions, when executed by the processor, cause the apparatus to determine, based on the environmental factors and the throwing distance of the virtual projectile, the offset corresponding to the at least one direction by:determining a lateral acceleration exerted on the virtual projectile by the environmental factors;determining, based on the lateral acceleration, a lateral offset speed of the virtual projectile; anddetermining, based on the lateral offset speed and a throwing duration of the virtual projectile, an offset corresponding to the lateral direction, the throwing duration being determined based on an initial throwing speed and the throwing distance of the virtual projectile.

17. The apparatus according to claim 14, wherein the at least one direction comprises a longitudinal direction, and the instructions, when executed by the processor, cause the apparatus to determine, based on the environmental factors and the throwing distance of the virtual projectile, the offset corresponding to the at least one direction by:determining a longitudinal acceleration exerted on the virtual projectile by the environmental factors;determining, based on the longitudinal acceleration, a longitudinal offset speed of the virtual projectile; anddetermining, based on the longitudinal offset speed and a throwing duration of the virtual projectile, an offset corresponding to the longitudinal direction, the throwing duration being determined based on an initial throwing speed and the throwing distance of the virtual projectile.

18. The apparatus according to claim 11, wherein the offset information comprises a position marker for marking the landing position, and the instructions, when executed by the processor, cause the apparatus to display the offset information of the aiming position in the image of the virtual environment by:displaying the position marker in the image of the virtual environment.

19. The apparatus according to claim 18, wherein the instructions, when executed by the processor, cause the apparatus to:display at least two circular contours in the image of the virtual environment, centers of the at least two circular contours coinciding with the aiming position, and radii of the at least two circular contours being different, wherein the offset comprises an offset direction and an offset distance of the landing position of the virtual projectile relative to the aiming position under the impact of environmental factors in the virtual environment, anddisplay the position marker in the image of the virtual environment by:determining, based on the offset distance and the radii of the at least two circular contours, a target circular contour from the at least two circular contours; anddisplaying, based on the target circular contour and the offset direction, the position marker.

20. A non-transitory computer-readable medium storing instructions, when executed, cause:displaying an image of a virtual environment;displaying offset information of an aiming position in the image of the virtual environment, wherein the aiming position is a position to be hit by a virtual projectile, the offset information is configured to prompt, under an impact of environmental factors in the virtual environment, an offset of a landing position of the virtual projectile relative to the aiming position, and the landing position is a predicted position at which the virtual projectile lands after the virtual projectile is thrown toward the aiming position;obtaining a target position by adjusting the aiming position according to the offset information; andin response to a throwing operation directed to the target position, rendering movement of the virtual projectile toward the target position in the image of the virtual environment.