Information determination method, device, equipment and storage medium
By obtaining recoil information for virtual firearms and adjusting aiming positions, the problem of low hit rate in shooting games is solved, achieving a higher hit rate and a more realistic interactive experience.
Patent Information
- Application Number
- CN202111625812.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-10-20
- Filing Date
- 2021-12-28
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2041-12-28
AI Technical Summary
In shooting games, users rely on aiming to shoot with a low hit rate.
By obtaining the recoil information of the virtual firearm, determine the shooting assist intensity and adjust the aiming position based on this to improve the hit rate.
It improves the hit rate of virtual firearms, makes the aiming information more realistic, and improves the user's interactive experience and shooting visual effects.
Smart Images

Figure CN114191811B_ABST
Abstract
Description
[0001] This application claims priority to Chinese patent application No. 202111223472.X filed on October 20, 2021, with invention name “Information determination method, device, equipment and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer and Internet technology, and in particular to an information determination method, device, equipment and storage medium. Background Art
[0003] Currently, in shooting games, users can control virtual objects and shoot with virtual guns.
[0004] In the related art, before controlling a virtual object to use a virtual firearm to shoot, a user can aim at a hostile virtual object in the virtual object according to the observed virtual environment, and then control the virtual object to use the virtual firearm by firing the virtual firearm, and further, fire a virtual bullet at the location aimed at by the user.
[0005] However, in the above-mentioned related technologies, shooting at the hostile virtual object only relies on the user's aiming, and the shooting hit rate is low. Summary of the invention
[0006] The embodiments of the present application provide an information determination method, device, equipment and storage medium, which can improve the hit rate of virtual firearms. The technical solution is as follows:
[0007] According to one aspect of an embodiment of the present application, a method for determining information is provided, the method comprising:
[0008] In response to a target firing operation on a virtual firearm, acquiring recoil information of the virtual firearm, the recoil information including information related to the recoil strength of the virtual firearm;
[0009] Determining a shooting assistance strength of the virtual firearm according to the recoil information, wherein the shooting assistance strength is used to determine an offset amount for adsorbing an aiming position of the virtual firearm toward a target object;
[0010] Based on the shooting assistance intensity and the recoil intensity, aiming information of the virtual firearm is determined.
[0011] According to one aspect of an embodiment of the present application, there is provided an information determination device, the device comprising:
[0012] An information acquisition module, configured to acquire recoil information of the virtual firearm in response to a target firing operation on the virtual firearm, wherein the recoil information includes information related to the recoil strength of the virtual firearm;
[0013] A strength determination module, used to determine the shooting assistance strength of the virtual firearm according to the recoil information, wherein the shooting assistance strength is used to determine an offset for adsorbing the aiming position of the virtual firearm to the target object;
[0014] The aiming determination module is used to determine aiming information of the virtual firearm based on the shooting assistance intensity and the recoil intensity.
[0015] According to one aspect of an embodiment of the present application, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the above-mentioned information determination method.
[0016] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the above-mentioned information determination method.
[0017] According to one aspect of an embodiment of the present application, a computer program product or a computer program is provided, wherein the computer program product or the computer program includes computer instructions, wherein the computer instructions are stored in a computer-readable storage medium, and a processor reads and executes the computer instructions from the computer-readable storage medium to implement the above-mentioned information determination method.
[0018] The technical solution provided in the embodiments of the present application can bring the following beneficial effects:
[0019] The aiming position of the virtual firearm is determined by the intensity of shooting assistance, that is, during the firing process of the virtual firearm, the aiming information of the virtual firearm is adjusted by shooting assistance to improve the hit rate of the virtual firearm; moreover, in the process of adjusting the aiming position of the virtual firearm according to the intensity of shooting assistance, the influence of the recoil of the virtual firearm on the aiming position is also considered, so that the content displayed by the aiming information of the virtual firearm is more realistic, that is, the effect presented by the aiming information after the firing of the virtual firearm is more consistent with the real firing effect of the virtual firearm, thereby improving the user's interactive experience and shooting visual effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a schematic diagram of an information determination system provided by an embodiment of the present application;
[0022] Figure 2 is a flow chart of an information determination method provided by an embodiment of the present application;
[0023] Figure 3 A schematic diagram showing, by way of example, the effects of shooting assistance intensity and recoil force intensity;
[0024] Figure 4 is a flow chart of an information determination method provided by another embodiment of the present application;
[0025] Figure 5 A schematic diagram showing an effective range is shown as an example;
[0026] Figure 6 A schematic diagram showing an exemplary relationship between a shooting assistance mechanism and a recoil action mechanism;
[0027] Figure 7 A schematic diagram exemplarily shows a method for determining aiming information;
[0028] Figure 8 A schematic diagram of a targeting information determination process is exemplarily shown;
[0029] Fig. 9 is a block diagram of an information determination device provided by an embodiment of the present application;
[0030] Fig.10 is a block diagram of an information determination device provided by another embodiment of the present application;
[0031] Fig.11 It is a structural block diagram of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0033] Please refer to Figure 1 , which shows a schematic diagram of an information determination system provided by an embodiment of the present application. The information determination system may include: a terminal 10 and a server 20.
[0034] The terminal 10 may be an electronic device such as a mobile phone, a tablet computer, a game console, an e-book reader, a multimedia player, a wearable device, a PC (Personal Computer), etc. A client of an application (such as a game application) may be installed in the terminal 10. Optionally, the application may be an application that needs to be downloaded and installed, or may be a click-to-use application, which is not limited in the embodiments of the present application.
[0035] In the embodiment of the present application, the above-mentioned application refers to any application that can control a virtual firearm to fire. For example, the application can be a TPS (Third-Personal Shooting Game), an FPS (First-Person Shooting Game), a multiplayer gunfight survival game, a MOBA (Multiplayer Online Battle Arena), a virtual reality (VR) shooting application, an augmented reality (AR) application, a three-dimensional map program, and the like.
[0036] The server 20 is used to provide background services for the client of the application in the terminal 10. For example, the server 20 can be the background server of the above application. The server 20 can be a single server, or a server cluster composed of multiple servers, or a cloud computing service center. Optionally, the server 20 provides background services for the applications in multiple terminals 10 at the same time.
[0037] The terminal 10 and the server 20 can communicate with each other via a network.
[0038] Optionally, in the embodiment of the present application, when the virtual firearm is controlled to fire, the aiming information of the virtual firearm is determined by the shooting assistance mechanism and the recoil mechanism of the virtual firearm. In one possible implementation, the server 20 provides the aiming information of the virtual firearm to the terminal 10 according to the shooting assistance mechanism and the recoil mechanism of the virtual firearm; in another possible implementation, the terminal 10 determines the aiming information of the virtual firearm by itself according to the shooting assistance mechanism and the recoil mechanism of the virtual firearm, which is not limited in the embodiment of the present application.
[0039] The present application is introduced below in conjunction with specific embodiments.
[0040] Please refer to Figure 2 , which shows a flow chart of an information determination method provided by an embodiment of the present application. The method can be applied to Figure 1 In the terminal 10 of the information determination system shown in FIG. 1 , the execution subject of each step may be a client of an application installed in the terminal 10; or, the method may also be applied to Figure 1 The information determination system server 20 (hereinafter, the client and the server are collectively referred to as computer devices) shown in FIG. 1 may include the following steps (201-203):
[0041] Step 201 : In response to a target firing operation on a virtual firearm, recoil information of the virtual firearm is obtained.
[0042] A virtual firearm refers to a virtual weapon that can be used for shooting. Optionally, the application can provide users with different types of virtual firearms. A firing operation refers to an operation triggered by a user for controlling a virtual firearm to shoot. Optionally, the user triggers the generation of the above-mentioned firing operation through a firing operation control in a user interface.
[0043] In the embodiment of the present application, the computer device obtains the recoil information of the virtual firearm when determining that the user triggers the generation of a target firing operation for the virtual firearm. The target firing operation refers to any firing operation of the virtual firearm; the recoil information includes information related to the recoil strength of the virtual firearm.
[0044] Recoil refers to the reaction force that a virtual firearm experiences when shooting. The above-mentioned recoil strength is used to indicate the strength of the recoil that a virtual firearm experiences after firing. Optionally, in an embodiment of the present application, after acquiring the above-mentioned recoil information, the computer device determines the recoil strength of the virtual firearm based on the recoil information, and generates a jitter parameter of the virtual firearm according to the recoil strength, and then generates and displays a jitter animation of the virtual firearm according to the jitter parameter.
[0045] One point that needs to be explained is that, in the embodiment of the present application, firing can also be referred to as shooting, that is, controlling a virtual firearm to fire can also be referred to as controlling a virtual firearm to shoot.
[0046] Step 202, determining the shooting assistance intensity of the virtual firearm according to the recoil information.
[0047] In an embodiment of the present application, after obtaining the above-mentioned recoil information, the computer device determines the shooting assistance strength of the virtual firearm according to the recoil information. The shooting assistance strength is used to determine the offset of the aiming position of the virtual firearm to be adsorbed to the target object. Optionally, the offset is positively correlated with the shooting assistance strength, that is, the greater the shooting assistance strength, the greater the offset. It should be noted that the above-mentioned aiming position refers to the actual aiming position of the virtual firearm.
[0048] Optionally, when determining the above-mentioned shooting assistance intensity, the computer device can directly determine the shooting assistance intensity according to the content contained in the recoil information; or, the computer device first determines the recoil intensity according to the content contained in the recoil information, and then determines the shooting assistance intensity according to the recoil intensity.
[0049] In a possible implementation, the computer device directly determines the shooting assistance intensity according to the content contained in the recoil information. Optionally, the computer device stores the correspondence between the recoil information and the shooting assistance intensity. After acquiring the above-mentioned recoil information, the computer device determines the shooting assistance intensity corresponding to the recoil information according to the stored correspondence, and then determines the shooting assistance intensity corresponding to the recoil information as the shooting assistance intensity of the above-mentioned virtual firearm. Among them, the correspondence between the above-mentioned recoil information and the shooting assistance intensity can be stored in the computer device in the form of a table, and can also be stored in the computer device in the form of a curve, which is not limited in the embodiment of the present application.
[0050] In another possible implementation, the computer device first determines the recoil strength according to the content included in the recoil information, and then determines the shooting assistance strength according to the recoil strength. Optionally, the computer device stores a correspondence between the recoil strength and the shooting assistance strength. After acquiring the above-mentioned recoil information, the computer device determines the recoil strength of the virtual firearm based on the recoil information, and then determines the shooting assistance strength corresponding to the recoil strength according to the stored correspondence, and determines the shooting assistance strength corresponding to the recoil strength as the shooting assistance strength of the virtual firearm.
[0051] Step 203, determining aiming information of the virtual firearm based on the shooting assistance strength and the recoil strength.
[0052] In an embodiment of the present application, after obtaining the above-mentioned shooting assistance intensity, the computer device determines the aiming information of the virtual firearm based on the shooting assistance intensity and the above-mentioned recoil intensity.
[0053] Optionally, in an embodiment of the present application, when determining the aiming information of the virtual firearm, the computer device determines a first offset of the aiming position based on the shooting assistance intensity, and determines a second offset of the aiming position based on the recoil intensity, and then adjusts the aiming position of the virtual firearm based on the first offset and the second offset to obtain the aiming information of the virtual firearm.
[0054] Optionally, the virtual firearm has multiple recoil action stages, and different recoil action stages correspond to different recoil strengths and different shooting assistance strengths. Since each recoil action stage has different recoil strengths and different shooting assistance strengths, when determining the aiming information of the virtual firearm, the computer device needs to determine the aiming information corresponding to each recoil action stage according to the above method. Exemplarily, for the target recoil action stage in the multiple recoil action stages, the computer device determines the first offset of the aiming position of the target recoil action stage according to the shooting assistance strength of the target recoil action stage, and determines the second offset of the aiming position of the target recoil action stage according to the recoil strength of the target recoil action stage, and then adjusts the aiming position of the target recoil action stage according to the first offset and the second offset to obtain the aiming information of the target recoil action stage. Among them, the aiming information of the target recoil action stage refers to the front sight position of the previous recoil action stage adjacent in time sequence.
[0055] Optionally, the aiming information includes at least one of the following: a crosshair position of a virtual firearm, a bullet position of the virtual firearm.
[0056] In a possible implementation, the aiming information includes the crosshair position of the virtual firearm. Optionally, after obtaining the shooting assistance strength and the recoil strength, the computer device adjusts the aiming position of the virtual firearm based on the shooting assistance strength and the recoil strength to obtain the crosshair position of the virtual firearm. The aiming position refers to the hit position of the virtual firearm in the absence of recoil and shooting assistance; the crosshair position refers to the hit position of the virtual firearm in the presence of recoil and shooting assistance. In this case, after the computer device obtains the crosshair position, the crosshair position is displayed to the user in the user interface instead of the aiming position.
[0057] In another possible implementation, the aiming information includes the bullet position of the virtual firearm. Optionally, after obtaining the shooting assistance intensity and the recoil intensity, the computer device adjusts the aiming position of the virtual firearm based on the shooting assistance intensity and the recoil intensity to obtain the bullet position of the virtual firearm. The aiming position refers to the hit position of the virtual bullet of the virtual firearm without recoil and shooting assistance; the sight position refers to the hit position of the virtual bullet of the virtual firearm under the action of recoil and shooting assistance. In this case, after the computer device obtains the bullet position, the hit position of the virtual bullet is directly displayed to the user in the user interface without displaying the aiming position.
[0058] It should be noted that the above-mentioned virtual bullets refer to any type of virtual items fired by virtual firearms.
[0059] Optionally, the recoil strength is determined based on the recoil information.
[0060] In a possible implementation, the recoil strength is calculated and determined based on the recoil information. Optionally, after acquiring the recoil information, the computer device determines the recoil strength of the virtual firearm based on the recoil information.
[0061] In another possible implementation, the recoil strength is set based on the above-mentioned recoil information. Optionally, the designer pre-sets the corresponding relationship between the recoil strength and the recoil information, and stores the corresponding relationship in the computer device. After acquiring the above-mentioned recoil information, the computer device determines the recoil strength corresponding to the recoil information based on the stored corresponding relationship, and determines the recoil strength corresponding to the recoil information as the recoil strength of the virtual firearm.
[0062] To summarize, in the technical solution provided in the embodiment of the present application, the aiming position of the virtual firearm is determined by the shooting assistance intensity, that is, in the process of firing the virtual firearm, the aiming information of the virtual firearm is adjusted by shooting assistance to improve the hit rate of the virtual firearm; moreover, in the process of adjusting the aiming position of the virtual firearm according to the shooting assistance intensity, the influence of the recoil of the virtual firearm on the aiming position is also considered, so that the content displayed by the aiming information of the virtual firearm is more realistic, that is, the effect presented by the aiming information after firing the virtual firearm is more in line with the real firing effect of the virtual firearm, thereby improving the user's interactive experience and shooting visual effect.
[0063] The following is an introduction to the method of obtaining the shooting assistance strength. Optionally, the recoil information includes but is not limited to at least one of the following: the order of the target firing operation in the multiple consecutive firing operations, the multiple recoil action stages of the virtual firearm, and the auxiliary strength base corresponding to the shooting state of the virtual firearm.
[0064] In a possible implementation, the recoil information includes the order of the target firing operation in a plurality of consecutive firing operations, and the order is positively correlated with the recoil strength.
[0065] Optionally, in an embodiment of the present application, after obtaining the order of the target firing operation in multiple consecutive firing operations, the computer device determines the shooting assistance intensity of the virtual firearm based on the order.
[0066] In a possible implementation, the computer device stores a correspondence between the order and the shooting assistance strength. Optionally, after acquiring the order, the computer device determines the shooting assistance strength corresponding to the order based on the stored correspondence, and determines the shooting assistance strength corresponding to the order as the shooting assistance strength of the virtual firearm.
[0067] In another possible implementation, the computer device stores a correspondence between the recoil strength and the shooting assistance strength. Optionally, after acquiring the above order, the computer device determines the recoil strength of the virtual firearm based on the order, and then determines the shooting assistance strength corresponding to the recoil strength according to the stored correspondence, and determines the shooting assistance strength corresponding to the recoil strength as the shooting assistance strength of the above virtual firearm.
[0068] Of course, in other possible implementations, the relationship between the sequence, the shooting assistance intensity, and the recoil intensity may also be stored in the computer device at the same time. Figure 2 As shown in FIG. 1 , when the order gradually increases, the shooting assistance strength of the virtual firearm gradually weakens, and the recoil strength of the virtual firearm gradually increases. That is, during the continuous firing of the virtual firearm, the shooting assistance received by the virtual firearm gradually weakens, and the recoil received by the virtual firearm gradually increases. For example, Figure 3 As shown, in the process of continuous firing of the virtual firearm at the same aiming position, the shooting assistance intensity of the virtual firearm is large and the recoil intensity is small during the first three continuous firings. Affected by the shooting assistance intensity, the hit position 31 during the first firing is far from the target object 32, the hit position 33 during the second firing is close to the target object 32, and the hit position 34 during the third firing has hit the target object. These are all affected by the shooting assistance and have nothing to do with the aiming position of the virtual firearm. At this time, the recoil intensity is small and can be ignored; in the last three continuous firings, the shooting assistance intensity of the virtual firearm is small and the recoil intensity is large. Affected by the recoil intensity, the hit position 35 during the fourth firing, the hit position 36 during the fifth firing, and the hit position 37 during the sixth firing are all changed on the basis of the hit position 34 during the third firing. At this time, they are mainly affected by the recoil, and the shooting assistance intensity is small and can be ignored.
[0069] In another possible implementation, the recoil information includes multiple recoil action stages of the virtual firearm, wherein different recoil action stages correspond to different recoil strengths, and in this case, the shooting assistance strength includes shooting assistance strengths corresponding to the multiple recoil action stages.
[0070] It should be noted that the division method of the recoil action stage corresponding to the virtual firearm can be flexibly divided according to the instance situation, and the embodiment of the present application does not limit this. For example, the recoil action stage is divided according to the flight time of the virtual bullet. For example, if the flight time of the virtual bullet is 0.5s, 0.1s is used as a recoil action stage to divide it, and 5 recoil action stages are obtained; or, it is divided according to the motion state of the virtual firearm after the recoil is received. For example, after the virtual firearm is received by the recoil, it is first lifted up and then maintained at the peak and then falls back. The recoil action stage is divided based on the motion state, and 3 recoil action stages are obtained: lifting stage, peak stage, and falling stage. Of course, the number of recoil action stages corresponding to the virtual firearm can also be flexibly set and adjusted, and the embodiment of the present application does not limit this.
[0071] Optionally, in an embodiment of the present application, after acquiring multiple recoil action stages of the virtual firearm, the computer device determines the shooting assistance intensity of the virtual firearm corresponding to each recoil action stage.
[0072] In a possible implementation, the computer device stores a correspondence between the recoil action stages and the shooting assistance strength. Optionally, after acquiring the recoil action stages, the computer device determines the shooting assistance strength of the virtual firearm corresponding to each recoil action stage based on the stored correspondence.
[0073] In another possible implementation, the computer device stores a correspondence between the recoil strength and the shooting assistance strength. Optionally, after acquiring the above-mentioned recoil action stages, the computer device determines the recoil strength of the virtual firearm corresponding to each recoil action stage, and then determines the shooting assistance strength of the virtual firearm corresponding to each recoil action stage according to the stored correspondence.
[0074] Of course, in other possible implementations, the relationship between the recoil action stage, the shooting assistance intensity and the recoil intensity may also be stored in the computer device at the same time, and the embodiment of the present application does not limit this.
[0075] In another possible implementation, the recoil information includes an auxiliary strength base corresponding to the shooting state of the virtual firearm, and different shooting states correspond to different recoil intensities, and different shooting states correspond to different auxiliary strength bases. The shooting state is used to indicate the shooting mode of the virtual firearm, such as aiming shooting, hip shooting, etc.
[0076] Optionally, in an embodiment of the present application, after obtaining the auxiliary strength base corresponding to the shooting state of the virtual firearm, the computer device determines the shooting auxiliary strength of the virtual firearm based on the auxiliary strength base.
[0077] In a possible implementation, a correspondence between the auxiliary strength base and the shooting auxiliary strength is stored in the computer device. Optionally, after acquiring the auxiliary strength base, the computer device determines the shooting auxiliary strength corresponding to the auxiliary strength base based on the stored correspondence, and determines the shooting auxiliary strength corresponding to the auxiliary strength base as the shooting auxiliary strength of the virtual firearm.
[0078] In another possible implementation, the computer device stores a correspondence between the recoil strength and the shooting assistance strength. Optionally, after acquiring the above-mentioned assistance strength base, the computer device determines the recoil strength of the virtual firearm based on the assistance strength base, and then determines the shooting assistance strength corresponding to the recoil strength according to the stored correspondence, and determines the shooting assistance strength corresponding to the recoil strength as the shooting assistance strength of the above-mentioned virtual firearm.
[0079] Of course, in other possible implementations, the relationship among the auxiliary intensity base, the shooting auxiliary intensity and the recoil intensity may also be stored in the computer device at the same time.
[0080] One point that needs to be explained is that the above is an introduction to the order of target firing operations in multiple consecutive firing operations, the multiple recoil action stages of the virtual firearm, and the auxiliary strength base corresponding to the shooting state of the virtual firearm. In an exemplary embodiment, the recoil information may include any one, any two or all of the three, and the embodiment of the present application is not limited to this.
[0081] Of course, in other possible embodiments, the above-mentioned recoil information may also directly include the recoil strength of the virtual firearm, and the embodiment of the present application is not limited to this.
[0082] Next, the method for determining the aiming information is introduced.
[0083] In an exemplary embodiment, the above step 203 includes the following steps:
[0084] 1. Determine the first offset of the aiming position based on the shooting assistance intensity.
[0085] In an embodiment of the present application, after obtaining the above-mentioned shooting assistance intensity, the computer device determines the first offset of the aiming position according to the shooting assistance intensity.
[0086] Optionally, the first offset includes an offset direction of the aiming position and a displacement distance of the aiming position in the offset direction.
[0087] In an embodiment of the present application, when the computer device obtains the above-mentioned first offset, it determines the first offset direction of the aiming position according to the positional relationship between the aiming position and the above-mentioned target object. The first offset direction is the direction of action of the above-mentioned shooting assistance intensity. Afterwards, the computer device determines the first displacement parameter of the aiming position according to the above-mentioned shooting assistance intensity. The first displacement parameter is used to indicate the displacement distance of the aiming position in the above-mentioned first offset direction. At this time, the above-mentioned first offset includes the above-mentioned first offset direction and the above-mentioned first displacement parameter. Optionally, the above-mentioned first displacement parameter directly includes the above-mentioned displacement distance, such as the first displacement parameter: 1 meter, 2 meters, 3 meters, etc.; or, the above-mentioned first displacement parameter includes the position after displacement, such as the first displacement parameter: displacement to the head of the target object.
[0088] Optionally, the first offset direction includes a horizontal direction and / or a vertical direction, wherein the horizontal direction is parallel to a horizontal plane of the virtual environment where the virtual firearm is located, and the vertical direction is perpendicular to the horizontal plane.
[0089] In a possible implementation, the first offset direction includes a horizontal direction or a vertical direction. When acquiring the first offset direction, the computer device acquires the horizontal distance and the vertical distance between the aiming position and the target object. The horizontal distance refers to the distance between the center point of the target object and the aiming position in the horizontal direction, and the vertical distance refers to the distance between the center point of the target object and the aiming position in the vertical direction; or, the horizontal distance refers to the shortest distance between the boundary point of the target object and the aiming position in the horizontal direction, and the vertical distance refers to the shortest distance between the boundary point of the target object and the aiming position in the vertical direction; or, the horizontal distance refers to the shortest distance between the boundary point of the hit range of the target object and the aiming position in the horizontal direction, and the vertical distance refers to the shortest distance between the boundary point of the hit range of the target object and the aiming position in the vertical direction. Further, the computer device compares the horizontal distance and the vertical distance. If the horizontal distance is less than or equal to the vertical distance, the first offset direction is determined to be the horizontal direction; if the horizontal distance is greater than the vertical distance, the first offset direction is determined to be the vertical direction.
[0090] It should be noted that the horizontal direction and the vertical direction can be represented by a non-directional straight line or a directional ray. For example, if the horizontal direction and the vertical direction are represented by a non-directional straight line, the content included in the first offset can be: moving 1 meter to the right in the horizontal direction; if the horizontal direction and the vertical direction are represented by a directional ray, when the horizontal direction is parallel to the horizontal plane to the right, the content included in the first offset can be: -2 meters (indicating a horizontal movement of 2 meters to the left).
[0091] In another possible implementation, the first offset direction includes a horizontal direction and a vertical direction. When acquiring the first offset direction, the computer device acquires a line corresponding to the shortest distance between the aiming position and the target object, and determines the direction of the line as the first offset direction. The shortest distance refers to the shortest distance between the aiming position and the boundary point of the target object, or the shortest distance refers to the shortest distance between the aiming position and the boundary point of the hit range of the target object; the direction of the line refers to the direction from the aiming position to the target object.
[0092] 2. Determine the second offset of the aiming position based on the strength of the recoil.
[0093] In the embodiment of the present application, after obtaining the above-mentioned recoil strength, the computer device determines the second offset of the aiming position according to the recoil strength.
[0094] Optionally, the second offset includes an offset direction of the aiming position and a displacement distance of the aiming position in the offset direction.
[0095] In an embodiment of the present application, when the computer device obtains the above-mentioned second offset, it first determines the second offset direction of the aiming position. The second offset direction is the direction of action of the recoil strength, and the second offset direction includes a horizontal action direction and a vertical action direction. Further, the computer device determines the second displacement parameter of the aiming position according to the recoil strength. The second displacement parameter is used to indicate the displacement distance of the aiming position in the horizontal action direction, and the displacement distance of the aiming position in the vertical action direction. At this time, the above-mentioned second offset includes the above-mentioned second offset direction and the above-mentioned second displacement parameter. The above-mentioned horizontal action direction is parallel to the horizontal plane of the virtual environment in which the above-mentioned virtual firearm is located, and the vertical action direction is perpendicular to the horizontal plane.
[0096] Optionally, in the embodiment of the present application, different shooting postures correspond to different second offset directions, and when the computer device obtains the second offset direction, it determines the second offset direction based on the shooting posture of the virtual firearm. The shooting posture is used to indicate the firing posture of the firearm user when the virtual firearm is fired, such as firing from the right side with hip fire, firing from the left side with hip fire, firing from the left side with aiming, firing from the right side with aiming, etc.
[0097] 3. Adjust the aiming position of the virtual firearm according to the first offset and the second offset to obtain aiming information of the virtual firearm.
[0098] In the embodiment of the present application, after acquiring the first offset and the second offset, the computer device adjusts the aiming position of the virtual firearm according to the first offset and the second offset to obtain aiming information of the virtual firearm.
[0099] Please refer to Figure 4 , which shows a flowchart of an information determination method provided by another embodiment of the present application. The method can be applied to Figure 1 In the terminal 10 of the information determination system shown in FIG. 1 , the execution subject of each step may be a client of an application installed in the terminal 10; or, the method may also be applied to Figure 1 The information determination system server 20 (hereinafter, the client and the server are collectively referred to as computer devices) shown in FIG. 1 may include the following steps (401-404):
[0100] Step 401 : when the aiming position of the virtual firearm is within the effective range of the shooting assistance mechanism, in response to a target firing operation on the virtual firearm, the recoil information of the virtual firearm is obtained.
[0101] Optionally, the shooting assistance mechanism corresponds to an effective range, and the shooting assistance for the virtual firearm will only take effect when the aiming position of the virtual firearm is within the effective range.
[0102] In an embodiment of the present application, a computer device detects the aiming position of a virtual firearm. If the aiming position is within the effective range of a shooting assistance mechanism, then when it is determined that a target firing operation is detected for the virtual firearm, the computer device obtains the recoil information of the virtual firearm, and executes subsequent steps 402 to 404 based on the recoil information to determine the aiming information of the virtual firearm. If the aiming position is outside the effective range of the shooting assistance mechanism, then when it is determined that a target firing operation is detected for the virtual firearm, subsequent steps 402 to 404 are not executed, and the aiming position of the virtual firearm is kept unchanged. At this time, the aiming information of the virtual firearm is determined based on the aiming position of the virtual firearm.
[0103] The above-mentioned effective range refers to the area in the detection range of the target object excluding the hit range of the target object, the hit range of the target object refers to the area where the target object is determined to be hit, and the detection range is the area that includes and is larger than the hit range of the target object. For example, Figure 5 As shown, the area around the display range 51 of the target object is the hit range 52 of the target object, and the area around the hit range 52 of the target object is the effective range 53 of the shooting assistance mechanism. Among them, the hit range 52 includes the display range 51, and the effective range 53 does not include the hit range 52.
[0104] Optionally, in an embodiment of the present application, when the computer device determines whether the aiming position is within the effective range of the shooting assistance mechanism, it first obtains the hit range of the target object closest to the aiming position, and then obtains the shortest distance between the aiming position and the hit range of the closest target object.
[0105] Optionally, the closest distance may be the distance between the aiming position and the boundary of the nearest hit range, or the distance between the aiming position and the boundary point of the nearest hit range. In one possible implementation, the hit range is a rectangular range. After the computer device obtains the aiming position and the hit range, it determines the boundary closest to the aiming position on the hit range, and determines the vertical distance between the aiming position and the boundary as the closest distance. In another possible implementation, the hit range is an irregular range. After the computer device obtains the aiming position and the hit range, it determines the boundary point closest to the aiming position on the hit range, and determines the straight-line distance between the aiming position and the boundary point as the closest distance.
[0106] Optionally, after obtaining the above-mentioned closest distance, the computer device compares the closest distance with a threshold value. If the closest distance is less than or equal to the threshold value, it is determined that the aiming position is within the effective range of the shooting assistance mechanism; if the closest distance is greater than the threshold value, it is determined that the aiming position is outside the effective range of the shooting assistance mechanism. The above-mentioned threshold value is determined according to the distance between the boundary of the hit range and the boundary of the effective range.
[0107] Of course, in an exemplary embodiment, the computer device may also determine whether the aiming position is within the effective range based on the relationship between the coordinates of the aiming position and the coordinates included in the effective range. Exemplarily, if the coordinates included in the effective range include the coordinates of the aiming position, then it is determined that the aiming position is within the effective range; if the coordinates included in the effective range do not include the coordinates of the aiming position, then it is determined that the aiming position is outside the effective range.
[0108] Step 402 : determining the distance between the aiming position of the virtual firearm and the boundary of the hitting range of the target object.
[0109] In the embodiment of the present application, after determining that the aiming position of the virtual firearm is within the effective range of the shooting assistance mechanism, the computer device determines the distance between the aiming position of the virtual firearm and the boundary of the hit range of the target object, wherein the distance refers to the shortest distance between the aiming position and the boundary of the hit range of the target object.
[0110] Step 403, determining the shooting assistance intensity according to the distance and recoil information.
[0111] In the embodiment of the present application, after obtaining the above distance and the above recoil information, the computer device determines the shooting assistance strength of the virtual firearm according to the distance and the recoil information, wherein the distance and the shooting assistance strength are negatively correlated.
[0112] Optionally, the recoil information includes but is not limited to at least one of the following: the order of the target firing operation in the multiple consecutive firing operations, multiple recoil action stages of the virtual firearm, and the auxiliary strength base corresponding to the shooting state of the virtual firearm. For the introduction of the recoil information, please refer to the above and will not be repeated here.
[0113] For example, if the recoil information includes: the order of the target firing operation in the multiple consecutive firing operations, multiple recoil action stages of the virtual firearm, and the auxiliary strength base corresponding to the shooting state of the virtual firearm, then the relationship between the various calculation parameters of the shooting auxiliary strength can be expressed as:
[0114] Shooting assistance strength = (sequence parameter * recoil phase parameter * assistance strength base) / distance;
[0115] One thing that needs to be explained is that the above formula only expresses the relationship between various parameters, and does not represent the specific calculation method of shooting assistance intensity.
[0116] Step 404, determining aiming information of the virtual firearm based on the shooting assistance strength and the recoil strength.
[0117] The above step 404 and Figure 2 Step 203 in the embodiment is the same, see Figure 2 The embodiments are not described in detail here.
[0118] To sum up, in the technical solution provided in the embodiment of the present application, the shooting assistance intensity is constrained from the spatial perspective of the effective range of the shooting assistance mechanism and the temporal perspective of the recoil information, thereby improving the coupling effect between the shooting assistance intensity and the recoil intensity. The effect presented by the aiming information after the virtual firearm is fired is more consistent with the real firing effect of the virtual firearm, thereby improving the user's interactive experience and shooting visual effect.
[0119] In addition, the above mainly introduces the situation where the shooting assistance mechanism and the recoil action mechanism act at the same time. For example, Figure 6 As shown, the shooting assistance mechanism and the recoil mechanism also have the situation of acting separately. When the user only triggers the aiming operation but does not trigger the firing operation, and in the first few shots of continuous firing, the shooting assistance mechanism acts alone; in the last few shots of continuous firing, and when the aiming position is outside the effective range of the shooting assistance mechanism, the recoil mechanism acts alone; when the firing order of continuous firing does not belong to the first few shots and the last few shots, and the aiming position is within the effective range of the shooting assistance mechanism, the shooting assistance mechanism and the recoil mechanism act together. For example, as Figure 7As shown, in the present application, the aiming information of the virtual firearm under the shooting assistance mechanism and the recoil mechanism is determined by three aspects: the firing order constraint 71, the recoil action phase constraint 72 and the effective range constraint 73 of the shooting assistance mechanism.
[0120] In addition, combined with reference Figure 8 , a complete introduction to this application. The specific steps are as follows:
[0121] Step 801: In response to a firing operation on a virtual firearm, an aiming position of the virtual firearm is obtained.
[0122] Step 802, determine whether the aiming position of the virtual firearm is within the effective range of the shooting assistance mechanism. If the aiming position of the virtual firearm is within the effective range of the shooting assistance mechanism, execute step 803; if the aiming position of the virtual firearm is outside the effective range of the shooting assistance mechanism, execute step 806.
[0123] Step 803, obtaining the recoil information of the virtual firearm, and the distance between the aiming position and the boundary of the hit range corresponding to the effective range.
[0124] Step 804, determining the shooting assistance intensity of the virtual firearm according to the recoil information and the distance.
[0125] Step 805, determining aiming information of the virtual firearm based on the shooting assistance strength and the recoil strength.
[0126] Step 806, determining aiming information of the virtual firearm based on the aiming position.
[0127] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0128] Please refer to Fig. 9 , which shows a block diagram of an information determination device provided by an embodiment of the present application. The device has the function of implementing the above-mentioned information determination method, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be a terminal, or can be set in a terminal. The device 900 can include: an information acquisition module 910, a strength determination module 920 and a targeting determination module 930.
[0129] The information acquisition module 910 is used to acquire recoil information of the virtual firearm in response to a target firing operation on the virtual firearm, wherein the recoil information includes information related to the recoil strength of the virtual firearm.
[0130] The strength determination module 920 is used to determine the shooting assistance strength of the virtual firearm according to the recoil information, and the shooting assistance strength is used to determine the offset of adsorbing the aiming position of the virtual firearm to the target object.
[0131] The aiming determination module 930 is used to determine aiming information of the virtual firearm based on the shooting assistance intensity and the recoil intensity.
[0132] In an exemplary embodiment, the recoil force information includes an order of the target firing operations in a plurality of consecutive firing operations, and the order is positively correlated with the recoil force intensity.
[0133] In an exemplary embodiment, the recoil information includes multiple recoil action stages of the virtual firearm, different recoil action stages correspond to different recoil intensities, and the shooting assistance intensity includes the shooting assistance intensities corresponding to the multiple recoil action stages respectively.
[0134] In an exemplary embodiment, the recoil information includes an auxiliary strength base corresponding to a shooting state of the virtual firearm, and different shooting states correspond to different recoil intensities, and different shooting states correspond to different auxiliary strength bases.
[0135] In an exemplary embodiment, if Fig.10 As shown, the device 900 also includes: a distance determination module 940.
[0136] The distance determination module 940 is used to determine the distance between the aiming position of the virtual firearm and the boundary of the hit range of the target object; wherein the hit range of the target object refers to the area where the target object is determined to be hit.
[0137] The intensity determination module 920 is used to determine the shooting assistance intensity according to the distance and the recoil information; wherein the distance is negatively correlated with the shooting assistance intensity.
[0138] In an exemplary embodiment, the strength determination module 920 is further used to execute the step of determining the shooting assistance strength of the virtual firearm according to the recoil information when the aiming position of the virtual firearm is within the effective range of the shooting assistance mechanism; wherein the effective range refers to the area of the detection range of the target object excluding the hit range of the target object, the hit range of the target object refers to the area where the target object is determined to be hit, and the detection range is an area that includes and is larger than the hit range of the target object.
[0139] In an exemplary embodiment, if Fig.10As shown, the device 900 further includes: a range acquisition module 950 and a position determination module 960 .
[0140] The range acquisition module 950 is used to acquire the hit range of the target object that is closest to the aiming position.
[0141] The distance determination module 940 is further configured to obtain the shortest distance between the aiming position and the hit range of the nearest target object.
[0142] The position determination module 960 is used to determine that the aiming position is within the effective range of the shooting assistance mechanism if the closest distance is less than or equal to a threshold.
[0143] In an exemplary embodiment, if Fig.10 As shown, the aiming determination module 930 includes: a first determination unit 931 , a second determination unit 932 and an aiming determination unit 933 .
[0144] The first determination unit 931 is used to determine a first offset of the aiming position according to the shooting assistance intensity.
[0145] The second determining unit 932 is used to determine a second offset of the aiming position according to the recoil strength.
[0146] The aiming determination unit 933 is used to adjust the aiming position of the virtual firearm according to the first offset and the second offset to obtain aiming information of the virtual firearm.
[0147] In an exemplary embodiment, the first determining unit 931 includes: a first direction determining subunit and a first parameter determining subunit.
[0148] The first direction determination subunit is used to determine a first offset direction of the aiming position according to a positional relationship between the aiming position and the target object; wherein the first offset direction is an action direction of the shooting assistance intensity;
[0149] The first parameter determination subunit is used to determine a first displacement parameter of the aiming position according to the shooting assistance intensity; wherein the first displacement parameter is used to indicate the displacement distance of the aiming position in the first offset direction; wherein the first offset amount includes the first offset direction and the first displacement parameter.
[0150] In an exemplary embodiment, the first direction determining subunit is configured to:
[0151] Acquire the horizontal distance and the vertical distance between the aiming position and the target object;
[0152] In response to the horizontal distance being smaller than the vertical distance, determining the first offset direction to be a horizontal direction;
[0153] In response to the horizontal distance being greater than the vertical distance, the first offset direction is determined to be a vertical direction.
[0154] In an exemplary embodiment, the first direction determining subunit is configured to:
[0155] Obtaining a connecting line corresponding to the shortest distance between the aiming position and the target object;
[0156] The direction of the connecting line is determined as the first offset direction.
[0157] In an exemplary embodiment, the second determining unit 932 includes: a second direction determining subunit and a second parameter determining subunit.
[0158] The second direction determination subunit is used to determine a second offset direction of the aiming position; wherein the second offset direction is the action direction of the recoil force intensity, and the second offset direction includes a horizontal action direction and a vertical action direction.
[0159] The second parameter determination subunit is used to determine a second displacement parameter of the aiming position according to the recoil strength; wherein the second displacement parameter is used to indicate the displacement distance of the aiming position in the horizontal action direction, and the displacement distance of the aiming position in the vertical action direction; wherein the second offset includes the second offset direction and the second displacement parameter.
[0160] In an exemplary embodiment, the second direction determining subunit is used to determine the second offset direction based on the shooting posture of the virtual firearm.
[0161] In an exemplary embodiment, the virtual firearm has multiple recoil action stages, and different recoil action stages correspond to different recoil strengths and different shooting assistance strengths.
[0162] In an exemplary embodiment, the aiming information includes at least one of the following: a crosshair position of the virtual firearm, a bullet position of the virtual firearm.
[0163] To summarize, the aiming position of the virtual firearm is determined by the shooting assistance intensity, that is, during the firing process of the virtual firearm, the aiming information of the virtual firearm is adjusted by the shooting assistance to improve the hit rate of the virtual firearm; moreover, in the process of adjusting the aiming position of the virtual firearm according to the shooting assistance intensity, the influence of the recoil of the virtual firearm on the aiming position is also considered, so that the content displayed by the aiming information of the virtual firearm is more realistic, that is, the effect presented by the aiming information after the firing of the virtual firearm is more consistent with the real firing effect of the virtual firearm, thereby improving the user's interactive experience and shooting visual effect.
[0164] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0165] Please refer to Fig.11 , which shows a structural block diagram of a computer device provided by an embodiment of the present application. The computer device can be used to implement the functions of the above-mentioned information determination method. Specifically:
[0166] The computer device 1100 includes a central processing unit (CPU) 1101, a system memory 1104 including a random access memory (RAM) 1102 and a read only memory (ROM) 1103, and a system bus 1105 connecting the system memory 1104 and the central processing unit 1101. The computer device 1100 also includes a basic input / output system (I / O system) 1106 for facilitating information transmission between various components in the computer, and a mass storage device 1107 for storing an operating system 1113, application programs 1114, and other program modules 1115.
[0167] The basic input / output system 1106 includes a display 1108 for displaying information and an input device 1109 such as a mouse and a keyboard for user inputting information. The display 1108 and the input device 1109 are connected to the central processing unit 1101 through an input / output controller 1111 connected to the system bus 1105. The basic input / output system 1106 may also include an input / output controller 1110 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 1110 also provides output to a display screen, a printer, or other types of output devices.
[0168] The mass storage device 1107 is connected to the central processing unit 1101 through a mass storage controller (not shown) connected to the system bus 1105. The mass storage device 1107 and its associated computer readable media provide non-volatile storage for the computer device 1100. That is, the mass storage device 1107 may include a computer readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.
[0169] Without loss of generality, computer-readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory or other solid-state storage technologies, CD-ROM, DVD (Digital Video Disc) or other optical storage, cassettes, magnetic tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media are not limited to the above. The above-mentioned system memory 1104 and mass storage device 1107 can be collectively referred to as memory.
[0170] According to various embodiments of the present application, the computer device 1100 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 1100 can be connected to the network 1112 through the network interface unit 1111 connected to the system bus 1105, or the network interface unit 1111 can be used to connect to other types of networks or remote computer systems (not shown).
[0171] The memory further includes a computer program, which is stored in the memory and configured to be executed by one or more processors to implement the above information determination method.
[0172] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and when the at least one instruction, the at least one program, the code set or the instruction set is executed by a processor, the above-mentioned information determination method is implemented.
[0173] Optionally, the computer readable storage medium may include: ROM (Read Only Memory), RAM (Random Access Memory), SSD (Solid State Drives) or optical disks, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0174] In an exemplary embodiment, a computer program product or a computer program is also provided, wherein the computer program product or the computer program includes computer instructions, wherein the computer instructions are stored in a computer-readable storage medium, and a processor reads and executes the computer instructions from the computer-readable storage medium to implement the above-mentioned information determination method.
[0175] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.
[0176] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for determining information, characterized in that: The method comprises: In response to a target firing operation on a virtual firearm, acquiring recoil information of the virtual firearm, the recoil information including information related to the recoil strength of the virtual firearm; Determining a shooting assistance strength of the virtual firearm according to the recoil information, wherein the shooting assistance strength is used to determine an offset amount for adsorbing an aiming position of the virtual firearm toward a target object; Determining a first offset of the aiming position according to the shooting assistance intensity; determining a second offset of the aiming position according to the recoil strength; The aiming position of the virtual firearm is adjusted according to the first offset and the second offset to obtain aiming information of the virtual firearm.
2. The method according to claim 1, characterized in that The recoil information includes the order of the target firing operation in a plurality of consecutive firing operations, and the order is positively correlated with the recoil strength.
3. The method according to claim 1, characterized in that The recoil information includes multiple recoil action stages of the virtual firearm, different recoil action stages correspond to different recoil strengths, and the shooting assistance strength includes the shooting assistance strengths corresponding to the multiple recoil action stages respectively.
4. The method according to claim 1, characterized in that: The recoil information includes an auxiliary strength base corresponding to the shooting state of the virtual firearm, and different shooting states correspond to different recoil intensities, and different shooting states correspond to different auxiliary strength bases.
5. The method according to claim 1, characterized in that The method further comprises: Determine the distance between the aiming position of the virtual firearm and the boundary of the hit range of the target object; wherein the hit range of the target object refers to the area where the target object is determined to be hit; Determining the shooting assistance intensity of the virtual firearm according to the recoil information includes: The shooting assistance intensity is determined according to the distance and the recoil information; wherein the distance is negatively correlated with the shooting assistance intensity.
6. The method according to claim 1, characterized in that The method further comprises: In the case where the aiming position of the virtual firearm is within the effective range of the shooting assistance mechanism, performing the step of determining the shooting assistance intensity of the virtual firearm according to the recoil information; Among them, the effective range refers to the area in the detection range of the target object excluding the hit range of the target object, the hit range of the target object refers to the area determined to hit the target object, and the detection range is an area that includes and is larger than the hit range of the target object.
7. The method according to claim 6, characterized in that The method further comprises: Acquire a hit range of the target object that is closest to the aiming position; Acquire the shortest distance between the aiming position and the hit range of the target object that is closest to the aiming position; If the closest distance is less than or equal to a threshold, it is determined that the aiming position is within the effective range of the shooting assistance mechanism.
8. The method according to claim 1, characterized in that Determining the first offset of the aiming position according to the shooting assistance intensity includes: Determining a first offset direction of the aiming position according to a positional relationship between the aiming position and the target object; wherein the first offset direction is an action direction of the shooting assistance intensity; Determining a first displacement parameter of the aiming position according to the shooting assistance strength; wherein the first displacement parameter is used to indicate a displacement distance of the aiming position in the first offset direction; The first offset includes the first offset direction and the first displacement parameter.
9. The method according to claim 8, characterized in that The step of determining a first offset direction of the aiming position according to a positional relationship between the aiming position and the target object comprises: Acquire the horizontal distance and the vertical distance between the aiming position and the target object; In response to the horizontal distance being smaller than the vertical distance, determining the first offset direction to be a horizontal direction; In response to the horizontal distance being greater than the vertical distance, the first offset direction is determined to be a vertical direction.
10. The method according to claim 8, characterized in that The step of determining a first offset direction of the aiming position according to a positional relationship between the aiming position and the target object comprises: Obtaining a connecting line corresponding to the shortest distance between the aiming position and the target object; The direction of the connecting line is determined as the first offset direction.
11. The method according to claim 1, characterized in that: Determining the second offset of the aiming position according to the recoil strength includes: Determine a second offset direction of the aiming position; wherein the second offset direction is an action direction of the recoil strength, and the second offset direction includes a horizontal action direction and a vertical action direction; Determining a second displacement parameter of the aiming position according to the recoil strength; wherein the second displacement parameter is used to indicate a displacement distance of the aiming position in the horizontal direction of action and a displacement distance of the aiming position in the vertical direction of action; The second offset includes the second offset direction and the second displacement parameter.
12. The method according to claim 11, characterized in that Determining the second offset direction of the aiming position includes: The second offset direction is determined based on the shooting posture of the virtual firearm.
13. The method according to claim 1, characterized in that The virtual firearm has multiple recoil action stages, and different recoil action stages correspond to different recoil strengths and different shooting assistance strengths.
14. The method according to any one of claims 1 to 13, characterized in that: The aiming information includes at least one of the following: the crosshair position of the virtual firearm, and the bullet position of the virtual firearm.
15. An information determination device, characterized in that: The device comprises: An information acquisition module, configured to acquire recoil information of the virtual firearm in response to a target firing operation on the virtual firearm, wherein the recoil information includes information related to the recoil strength of the virtual firearm; A strength determination module, used to determine the shooting assistance strength of the virtual firearm according to the recoil information, wherein the shooting assistance strength is used to determine an offset for adsorbing the aiming position of the virtual firearm to the target object; The aiming determination module is used to determine a first offset of the aiming position according to the shooting assistance intensity; determine a second offset of the aiming position according to the recoil intensity; and adjust the aiming position of the virtual firearm according to the first offset and the second offset to obtain aiming information of the virtual firearm.
16. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the information determination method according to any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that: The storage medium stores at least one program, and the at least one program is loaded and executed by the processor to implement the information determination method according to any one of claims 1 to 14.
18. A computer program product, characterized in that The computer program product comprises computer instructions, which are stored in a computer-readable storage medium. A processor reads and executes the computer instructions from the computer-readable storage medium to implement the information determination method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Virtual object control method and device, terminal and storage medium
CN110339562A
Virtual prop control method and device, computer equipment and storage medium
CN112169325A