Virtual item control method and device, medium, equipment and product

By configuring multiple collision detection objects for virtual props in a virtual scene and displaying virtual props based on collision points in the display interface of the virtual scene, the problem of hanging display of virtual attack objects is solved, and the hit rate and display accuracy of virtual props are improved.

CN119868943APending Publication Date: 2025-04-25BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510273131.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In virtual scenes, in order to improve the hit rate of the remote attack method, it is usually necessary to increase the hit detector of the character in the virtual scene, which leads to an increase in the distance between the attack object and the character, causing attack objects such as arrows to be displayed in the air.

Method used

A control method for virtual props is provided. By obtaining the detection results of collision detection of multiple collision detection objects of virtual props and hit detectors in virtual scenes, the collision point of the target hit detector and the target collision detection object that collides in virtual props, and displaying the virtual props based on the collision point in the display interface of the virtual scene.

Benefits of technology

By configuring multiple collision detection bodies, the hit rate of virtual props to different types of hit detection bodies is improved, the problem of amplification of hit detection bodies is avoided, and the possibility of floating display of virtual props when hit is reduced, ensuring the accuracy of display of virtual props and the accurate display of hit effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119868943A_ABST
    Figure CN119868943A_ABST
Patent Text Reader

Abstract

The invention provides a virtual item control method and device, a medium, equipment and a product. The method comprises: in response to a trigger operation of a virtual item, obtaining a detection result of collision detection of a plurality of collision detection bodies of the virtual item and hit detection bodies in a virtual scene, each collision detection body being used for collision detection with a hit detection body of a corresponding type; if the detection result indicates that a target hit detection body colliding with the virtual prop exists, determining a collision point of the target hit detection body and a target collision detection body colliding with the virtual prop; and displaying the virtual item based on the collision point in a display interface corresponding to the virtual scene. Therefore, the virtual prop can perform collision detection on different types of hit detection bodies based on different collision detection bodies, and the collision detection fineness is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular, to a control method, device, medium, equipment and product for a virtual prop. Background Art

[0002] In a virtual scene, in order to improve the hit rate of long-range attacks, the hit detection volume of the character in the virtual scene is generally enlarged. For example, the size of the hit detection volume of the character is usually larger than the actual model of the character. However, in this way, when the attack object (such as an arrow, etc.) in the virtual scene hits the virtual character object, due to the large hit detection volume of the character, there is a certain distance between the arrow and the character object, causing the arrow to be displayed in the air. Summary of the invention

[0003] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0004] In a first aspect, the present disclosure provides a method for controlling a virtual prop, the method comprising: In response to a trigger operation of a virtual prop, a detection result of a collision detection between a plurality of collision detection bodies of the virtual prop and a hit detection body in a virtual scene is obtained, wherein each of the collision detection bodies is used to perform a collision detection with a hit detection body of a corresponding type; If the detection result indicates that there is a target hit detection body that collides with the virtual prop, determining a collision point between the target hit detection body and a target collision detection body that collides with the virtual prop; In a display interface corresponding to the virtual scene, the virtual props are displayed based on the collision point.

[0005] In a second aspect, the present disclosure provides a control device for a virtual prop, the device comprising: an acquisition module, configured to acquire, in response to a trigger operation of a virtual prop, a detection result of a collision detection between a plurality of collision detection bodies of the virtual prop and a hit detection body in a virtual scene, wherein each of the collision detection bodies is configured to perform a collision detection with a hit detection body of a corresponding type; a determination module, configured to determine a collision point between the target hit detection body and the target collision detection body in the virtual prop that collides if the detection result indicates that there is a target hit detection body that collides with the virtual prop; The first display module is used to display the virtual prop based on the collision point in a display interface corresponding to the virtual scene.

[0006] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which implements the steps of the method described in the first aspect when the computer program is executed by a processing device.

[0007] In a fourth aspect, the present disclosure provides an electronic device, including: a storage device having a computer program stored thereon; A processing device is used to execute the computer program in the storage device to implement the steps of the method described in the first aspect.

[0008] In a fifth aspect, the present disclosure provides a computer program product, including a computer program, which implements the steps of the method described in the first aspect when executed by a processor.

[0009] Through the above technical scheme, multiple collision detection bodies can be configured for virtual props for collision detection, so that it can perform collision detection on different types of hit detection bodies based on different collision detection bodies, thereby improving the precision of collision detection. In addition, each of the collision detection bodies is used to perform collision detection with the corresponding type of hit detection body, so as to improve the hit rate of virtual props for some types of hit detection bodies without affecting the hit rate of other types of hit detection bodies, thereby improving the diversity of virtual prop hit detection. In addition, in the method disclosed in the present invention, it is not necessary to enlarge the hit detection body, so that while improving the hit rate of virtual props for hit detection bodies of corresponding types, the possibility of floating display of the virtual props can be reduced to a certain extent, thereby ensuring the accuracy of virtual prop display, and realizing accurate display of the hit effect of virtual props, so that the display of the hit effect of virtual props is more real and natural, which conforms to the visual experience of users.

[0010] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings: Figure 1 The present invention is a flowchart of a method for controlling a virtual prop according to an embodiment of the present invention.

[0012] Figure 2 A schematic diagram of a collision detection body of a virtual prop provided according to an embodiment of the present disclosure.

[0013] Figure 3The present invention is a block diagram of a control device for a virtual prop according to an embodiment of the present invention.

[0014] Figure 4 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0015] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0016] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0017] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0018] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0019] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0020] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0021] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0022] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0023] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0024] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0025] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0026] Figure 1 As shown in FIG. 1 , it is a flow chart of a method for controlling a virtual prop according to an embodiment of the present disclosure. Figure 1 As shown, the method may include: In step 11, in response to the triggering operation of the virtual prop, the detection results of collision detection between multiple collision detection bodies of the virtual prop and the hit detection body in the virtual scene are obtained, wherein each of the collision detection bodies is used for collision detection with the hit detection body of the corresponding type.

[0027] As an example, virtual props may be virtual props used for attacking, such as bullets, arrows, etc., which can be determined by collision detection whether they hit the virtual object. Virtual objects may be objects in a virtual scene, and the virtual scene may be a game scene. Taking the game scene as an example, virtual objects may be objects in the game scene, such as virtual characters and props associated with the virtual characters (such as shields, helmets, etc.). Among them, the virtual characters may be characters controlled by the player, or characters not controlled by the player in the virtual scene, such as monsters in the virtual scene, etc.

[0028] In a virtual scene, a virtual character can control the corresponding virtual props to attack another virtual character. When performing attack detection in a virtual scene, in order to improve the attack hit rate, the collision detection body of the virtual prop can be pre-configured. The collision detection body can be configured based on the actual application scenario, such as a cylindrical detection body, a spherical detection body, etc. Figure 2 As shown, the virtual prop is an arrow, which can correspond to three collision detection bodies to realize collision detection of different types of hit detection bodies in the virtual scene. The three collision detection bodies are respectively shown as spheres pointed by arrows as shown in A1, A2 and A3, and are hereinafter referred to as collision detection bodies A1, A2 and A3. For example, A2 can be used for collision detection with a hit detection body of a character type, and the hit detection body of the character type can represent the hit detection body of a virtual character. Then, when collision detection is performed based on A2, it will only perform collision detection with the hit detection body of the virtual character, and will not perform collision detection with the hit detection body of a non-virtual character in the virtual scene.

[0029] The collision detection body is used to indicate the collision range of the virtual props when performing collision detection with other objects. When the hit detection body of other objects falls into the collision range, it is considered that the virtual props and virtual objects collide, that is, the virtual props hit the object. The hit detection body is used to indicate the hit range of the virtual objects in the virtual scene when performing collision detection. When the hit detection body and the collision detection body overlap, it is considered that the virtual object is hit by the attack.

[0030] The hit detection body in the virtual scene can be determined based on the movement information of the virtual prop, such as the hit detection body in the virtual scene that is on the movement path of the virtual prop can be used as the hit detection body in the virtual scene. As an example, after determining the collision detection body of the virtual prop and the hit detection body in the virtual scene, collision detection can be implemented based on the common collision detection logic in the art to determine whether the collision detection body and the hit detection body can collide, so as to determine whether the virtual prop can hit the virtual object in the virtual scene.

[0031] In step 12, if the detection result indicates that there is a target hit detection body that collides with the virtual prop, a collision point between the target hit detection body and the target collision detection body that collides with the virtual prop is determined.

[0032] Among them, if the virtual prop has multiple collision detection bodies, collision detection can be performed with the hit detection body in sequence. When it is determined that a certain collision detection body collides with the hit detection body, the collision detection body that collides is used as the target collision detection body, and the hit detection body that collides is used as the target hit detection body. At this time, it can be considered that the virtual prop hits the virtual object to which the target hit detection body belongs, and the collision point where the two collide is determined by the range of the target hit detection body and the range of the target collision detection body. The method for determining the collision point can be determined based on the method for determining collision detection commonly used in the field, and the present disclosure does not limit this.

[0033] In step 13, in a display interface corresponding to the virtual scene, virtual props are displayed based on the collision points.

[0034] Here, the electronic device may display a graphical user interface, which at least partially displays the game screen corresponding to the virtual scene. In this step, the screen in the virtual scene may be displayed in the display interface, and the center point of the virtual prop may be moved to the collision point, so as to display the virtual prop in the display interface.

[0035] Thus, through the above technical scheme, multiple collision detection bodies can be configured for virtual props for collision detection, so that it can perform collision detection on different types of hit detection bodies based on different collision detection bodies, thereby improving the precision of collision detection. Moreover, each of the collision detection bodies is used to perform collision detection with the corresponding type of hit detection body, so as to improve the hit rate of virtual props for some types of hit detection bodies while not affecting the hit rate of other types of hit detection bodies, thereby improving the diversity of virtual prop hit detection. Moreover, in the method disclosed in the present invention, it is not necessary to enlarge the hit detection body, so that while improving the hit rate of virtual props for hit detection bodies of corresponding types, the possibility of floating display of the virtual props when hitting virtual objects can be reduced to a certain extent, thereby ensuring the accuracy of virtual prop display, realizing accurate display of the hit effect of virtual props, and making the display of the hit effect of virtual props more real and natural, in line with the user's visual experience.

[0036] In some embodiments, the collision detection body of the virtual prop includes a first detection body, and the first detection body is used to perform collision detection with the impact detection body of the virtual object. The first detection body can be used as the default detection body of the virtual prop, which can be used for collision detection of any virtual object in the virtual scene, such as virtual environment objects (such as tree trunks, stones, etc.), virtual characters (such as people, monsters, etc.), defense props (such as shields, helmets, etc.) and other virtual objects. As an example, the first detection body is Figure 2As shown in A1, it can be a spherical detection body, and the collision detection range of the first detection body can be determined based on the detection radius. The configuration personnel can configure the collision detection range of the first detection body by configuring its detection radius, such as configuring the radius of its Collision Component.

[0037] As an example, the collision detection body of the virtual prop may also include a second detection body, such as Figure 2 As shown in A2, the second detection body is used for collision detection with the hit detection body of the character type. Among them, the type of the hit detection body can be determined based on the configuration information of the virtual object to which the hit detection body belongs. If the virtual object to which the hit detection body belongs is a virtual character, its type can be a character type. For such a hit detection body, the second detection body can be used for collision detection during collision detection. The second detection body can be a spherical detection body, and its collision detection range can be determined based on the detection radius. The configuration personnel can configure the Hit Radius in its collision component as the detection radius of the second detection body, and then determine its collision detection range.

[0038] Among them, the detection radius of the first detection body is smaller than the detection radius of the second detection body, so that the hit rate of the virtual props on the virtual character can be improved, while avoiding the impact on the hit judgment of other virtual objects in the virtual scene. Through the above scheme, the virtual props can use a collision detection body with a larger detection radius when performing collision detection with the virtual character, so as to improve the hit rate of the virtual props hitting the virtual character. At the same time, when the virtual props perform collision detection with non-virtual characters, such as trees in the virtual environment, the collision detection body with a smaller detection radius can be used, so that the virtual props can also pass through the narrow gaps formed by trees in the virtual environment, thereby improving the hit rate of the virtual props on the virtual character while avoiding the impact on the use of the virtual props in other scenes, thereby improving the user experience.

[0039] Alternatively or additionally, the collision detection body of the virtual prop may further include a third detection body, such as Figure 2As shown in A3, the third detection body is used to perform collision detection with the defense-type hit detection body. Similarly, the type of the hit detection body can be determined based on the configuration information of the virtual object to which the hit detection body belongs. For example, when it is determined that the virtual object to which the hit detection body belongs is a virtual prop and the virtual prop has a defense function, the hit detection body can be considered to be a defense-type detection body, such as the hit detection bodies corresponding to the shield, helmet, etc. mentioned above, which can be pre-set based on the actual application scenario. For such hit detection bodies, the third detection body can be used for collision detection when performing collision detection. The collision detection range of the third detection body can be determined based on the offset distance and the detection radius, and the offset distance is used to represent the offset of the attack point of the virtual prop relative to the center of the virtual prop.

[0040] In order to improve the diversity of user interaction feedback in the scene, more obvious feedback can be given to the user when the attack point of the virtual prop directly hits the virtual object to enhance the user's interactive interest. In this embodiment, a third detection body can be configured at the attack point of the virtual prop to determine whether the attack point of the virtual prop can directly hit the virtual object, so as to achieve accurate detection of the hit effect. For example, the attack point can be set based on the actual application scenario, such as a position point in the game scene that is considered to have a stronger attack power, such as the head position point of an arrow or a bullet. Accordingly, the configuration personnel can configure the collision detection range of the third detection body based on the configuration of the offset distance and the detection radius.

[0041] Based on the above embodiments, the collision detection body of the virtual prop may include a first detection body and a second detection body, or may include a first detection body and a third detection body, or may include a first detection body, a second detection body and a third detection body, thereby realizing personalized configuration of the collision detection body of the virtual prop.

[0042] Therefore, through the above technical solution, it is possible to configure different collision detection bodies, so that different collision detection ranges can be set for the same virtual prop, so that collision detection can be performed for different types of hit detection bodies. Accordingly, during the collision detection process of the virtual prop, its hit rate for virtual objects of the type corresponding to the collision detection body can be improved, while at the same time, the impact of the collision detection range of the collision detection body on the hit rate of other types of virtual objects can be avoided, thereby ensuring the effectiveness and rationality of collision detection when the virtual prop is used. For example, through the configuration of the above collision detection body, the hit rate of the virtual prop hitting the virtual character can be improved, and the virtual prop can be enabled to pass through the narrow gap in the virtual environment to enhance the user experience.

[0043] In some embodiments, the step of obtaining the detection results of the collision detection between the multiple collision detection bodies of the virtual prop and the hit detection body in the virtual scene may include: Based on the detection order of the plurality of collision detection bodies, a current collision detection body is determined.

[0044] The detection order can be preset based on actual application scenarios. Continuing with the above example, the detection order of collision detection bodies A1, A2, and A3 can be A3, A2, and A1. Based on the detection order, collision detection body A3 can be used as the current collision detection body.

[0045] Afterwards, a candidate hit detection object for collision detection with the current collision detection object is determined from the hit detection objects in the virtual scene.

[0046] Different collision detection bodies are used to perform collision detection with different types of impact detection bodies. As an example, this step may include: Determine the type of the hit detection object. The method for determining the type of the hit detection object has been described above and will not be repeated here.

[0047] If the type of the hit detection object is the type corresponding to the current collision detection object, the hit detection object is used as the candidate hit detection object.

[0048] Among them, the current collision detection body is the third detection body, and its corresponding type is the defense type. When it is determined that the type of the hit detection body is the defense type, the hit detection body is used as the candidate hit detection body, so that the current collision detection body only performs collision detection on the hit detection body of the type for which it is effective.

[0049] Afterwards, collision detection is performed based on the current collision detection body and the candidate hit detection body. The collision detection can be performed based on the general collision detection logic in the art, such as determining the position points of the current collision detection body and the candidate hit detection body at multiple moments based on their respective motion states, combining the collision detection range of the current collision detection body and the detection range of the candidate hit detection body, and determining that the current collision detection body and the candidate hit detection body have overlapping positions at a certain moment, then it is considered that the current collision detection body and the candidate hit detection body collide.

[0050] If it is determined that the current collision detection object collides with the candidate hit detection object, the candidate hit detection object that collides with is determined as the target hit detection object. In this scenario, it is not necessary to continue collision detection based on other collision detection objects.

[0051] As another example, the obtaining of detection results of collision detection between the multiple collision detection bodies of the virtual prop and the hit detection body in the virtual scene may also include: If it is determined that the current collision detection body and the candidate impact detection body have not collided, and if it is determined based on the detection order that there is a next collision detection body, the next collision detection body is used as the new current collision detection body, and the step of determining a candidate impact detection body for collision detection with the current collision detection body from the impact detection bodies in the virtual scene is returned to be executed.

[0052] For example, the current collision detection body is the third detection body, and it is determined that the third detection body and the candidate hit detection body of the defense type have not collided. At this time, based on the detection order, the next collision detection body is determined to be the second detection body A2. The second detection body can be used as the current collision detection body to execute the step of determining the candidate hit detection body for collision detection with the current collision detection body from the hit detection bodies in the virtual scene, and the step of performing collision detection based on the current collision detection body and the candidate hit detection body.

[0053] During the execution process, the hit detection body of the character type can be used as a candidate hit detection body for collision detection of the second detection body. Afterwards, collision detection is performed based on the second detection body and the hit detection body of the character type. If it is determined that the second detection body and the hit detection body of the character type collide, the hit detection body that collided is determined as the target hit detection body. If it is determined that the current collision detection body and the candidate hit detection body do not collide, and based on the detection sequence, it is determined that there is a next collision detection body, that is, the first detection body A1, then the first detection body A1 is used as the new current collision detection body to perform collision detection based on a similar process as described above.

[0054] If it is determined that the current collision detection body and the candidate hit detection body do not collide, and it is determined based on the detection order that there is no next collision detection body, it is considered that the virtual prop has not hit the virtual object and can be displayed on the display interface based on the movement path of the virtual prop.

[0055] Therefore, through the above technical scheme, collision detection can be performed on the hit detection body in the virtual scene based on the detection order of multiple collision detection bodies, and in the process of collision detection, the current collision detection body only performs collision detection with the hit detection body of its effective type, so as to support the separate configuration of corresponding collision detection bodies for some hit detection bodies, improve the accuracy of virtual props hit detection, and expand the application scope of the method disclosed herein.

[0056] In some embodiments, displaying the virtual prop based on the collision point in the display interface corresponding to the virtual scene may include: Based on the mapping relationship between the target hit detection body and the hit surface of the target virtual object, a mapping point of the collision point on the hit surface of the target virtual object is determined, wherein the target virtual object is the virtual object to which the target hit detection body belongs.

[0057] Among them, the hit surface of the virtual object is used to represent the surface of the virtual object that withstands the attack. If the virtual object is a virtual character, then its hit surface is the body surface of the virtual character. The hit detection body of the virtual character can be a cylindrical detection body, then the hit surface of the target virtual object is contained within the range of its hit detection body, that is, the hit detection range of the target hit detection body is usually larger than the hit surface of the target virtual object. In order to ensure the degree of fit between the virtual prop and the target virtual object, it is necessary to determine the association between the virtual prop and the point on the hit surface of the target virtual object. Then, in this step, the position point where the virtual prop hits the target virtual object, that is, the mapping point of the virtual prop on the hit surface of the target virtual object can be further determined.

[0058] As an example, the mapping relationship between the point on the surface of the target hit detection body and the point on the hit surface of the target virtual object can be pre-set based on the actual application scenario. The determined collision point is the point on the surface of the target hit detection body. Then, based on the mapping relationship, it can be determined which point on the hit surface of the target virtual object the point corresponds to. That is, the point on the hit surface corresponding to the collision point in the mapping relationship is used as the mapping point, thereby determining which point on the target virtual object the virtual prop hits.

[0059] Afterwards, in the display interface, the virtual props are displayed based on the mapping points.

[0060] In this step, the mapping point is a point on the hit surface of the target virtual object. When the virtual prop is displayed based on the mapping point, the virtual prop can be adsorbed on the surface of the target virtual object it hits for display, ensuring that the virtual prop and the virtual object it hits are displayed in a close fit. Therefore, through the above technical solution, after determining the collision point between the target collision detection body and the target hit detection body, the mapping point of the collision point on the hit surface of the target virtual object can be further determined to ensure that when the virtual prop is determined to hit the target virtual object, it can be displayed in a close fit with the target virtual object, avoiding the problem of floating display of the virtual prop due to the large range of the collision detection body or the hit detection body. At the same time, there is no need to pre-configure the corresponding prop insertion point in the virtual object, ensuring the real and natural display of the virtual prop hit effect.

[0061] In some embodiments, the method may further include: A display effect corresponding to the target collision detection body in the virtual prop is displayed at the mapping point.

[0062] Among them, when different collision detection bodies collide with the hit detection body, the accuracy and degree of collision are different, so different special effects can be displayed for users. In this embodiment, different display special effects can be set for different collision detection bodies. For example, according to the different degrees of collision, display special effects corresponding to the third detection body, the second detection body, and the first detection body can be set respectively, and the significance of the display special effects decreases in turn. Therefore, if the target collision detection body is the third detection body, the display special effects of the third detection body of the virtual prop can be displayed at the mapping point to display the hit effect.

[0063] Therefore, through the above technical solution, when the virtual props hit the virtual object with different collision detection bodies, different special effects can be displayed, thereby improving the diversity of special effect display, providing users with rich operation results display, and improving users' usage experience and interest.

[0064] In some embodiments, the obtaining of detection results of collision detection between the plurality of collision detection bodies of the virtual prop and the hit detection body in the virtual scene may include: Determine the usage status of the plurality of collision detection bodies of the virtual prop, wherein the usage status of the collision detection body is used to indicate whether the collision detection body is enabled to perform collision detection.

[0065] The virtual props may be pre-configured with a plurality of collision detection bodies. In some scenarios, the use status of each collision detection body may also be configured based on different application requirements, so as to use the collision detection body required in the scenario for detection.

[0066] Among them, the collision detection body of the virtual prop to be enabled can be determined based on actual application needs. The detection radius is used to adjust the size of the collision detection body, and its value is a positive number. As an example, the usage status of the collision detection body can be determined based on the detection radius. During the configuration process, the configuration personnel can determine the collision detection body enabled by the virtual prop based on actual needs. When determining to enable the collision detection body, a radius value with a positive value can be configured for it. When determining not to enable collision detection, the detection radius can be set to a preset value, which can be a value that cannot construct a collision detection body, such as -1. As another example, a usage label can be set for each collision detection body. When the label is 1, it indicates that the usage status is enabled, and when the label is 0, it indicates that the usage status is not enabled.

[0067] Afterwards, the detection results of the collision detection performed by the collision detection body in the enabled use state and the impact detection body are obtained. Therefore, in this step, only the collision detection body in the enabled use state is used for collision detection.

[0068] For example, for virtual prop D1, the detection radius of the first detection body is R11, the detection radius of the second detection body is R12, and the detection radius of the third detection body is R13, where R11, R12, and R13 are all positive numbers. For virtual prop D2, the detection radius of the first detection body is R21, the detection radius of the second detection body is R22, and the detection radius of the third detection body is R23, where R21 and R22 are both positive numbers, and R23 is -1.

[0069] For the virtual prop D1, collision detection can be performed based on the first detection body, the second detection body and the third detection body respectively with the hit detection body. For the virtual prop D2, collision detection can be performed based on the first detection body and the second detection body respectively with the hit detection body.

[0070] Therefore, through the above technical solution, the enabled collision detection body among multiple collision detection bodies of the virtual props can be determined, so that different configurations of collision detection bodies can be performed for different virtual props, thereby improving the diversity of collision detection body configurations of virtual props and ensuring the accuracy of hit detection results of virtual props.

[0071] Based on the same inventive concept, the present disclosure also provides a control device for a virtual prop, such as Figure 3 As shown, the device 10 comprises: The acquisition module 100 is used to obtain the detection results of the collision detection between the multiple collision detection bodies of the virtual props and the hit detection body in the virtual scene in response to the trigger operation of the virtual props, wherein each of the collision detection bodies is used to perform collision detection with the hit detection body of the corresponding type; A determination module 200 is configured to determine a collision point between the target hit detection body and the target collision detection body in the virtual prop that collides if the detection result indicates that there is a target hit detection body that collides with the virtual prop; The first display module 300 is used to display the virtual prop based on the collision point in a display interface corresponding to the virtual scene.

[0072] Optionally, the acquisition module includes: A first determination submodule, configured to determine a current collision detection object based on a detection order of the plurality of collision detection objects; A second determination submodule is used to determine, from the hit detection bodies in the virtual scene, candidate hit detection bodies for collision detection with the current collision detection body; A first processing submodule, configured to perform collision detection based on the current collision detection body and the candidate hit detection body; The third determination submodule is used to determine the candidate hit detection body that has collided as the target hit detection body if it is determined that the current collision detection body and the candidate hit detection body have collided.

[0073] Optionally, the acquisition module further includes: The second processing submodule is used to, if it is determined that the current collision detection body and the candidate impact detection body have not collided, and if it is determined that there is a next collision detection body based on the detection order, use the next collision detection body as the new current collision detection body, and trigger the second determination submodule to determine the candidate impact detection body for collision detection with the current collision detection body from the impact detection bodies in the virtual scene.

[0074] Optionally, the second determining submodule includes: A fourth determination submodule is used to determine the type of the struck detection object; The fifth determining submodule is used to use the struck detection object as the candidate struck detection object if the type of the struck detection object is the type corresponding to the current collision detection object.

[0075] Optionally, the first display module includes: a sixth determination submodule, configured to determine a mapping point of the collision point on the struck surface of the target virtual object based on a mapping relationship between the target struck detection body and the struck surface of the target virtual object, wherein the target virtual object is a virtual object to which the target struck detection body belongs; The display submodule is used to display the virtual props based on the mapping points in the display interface.

[0076] Optionally, the device further comprises: The second display module is used to display the display special effects corresponding to the target collision detection body in the virtual prop at the mapping point.

[0077] Optionally, the collision detection body of the virtual prop includes a first detection body, and the first detection body is used to perform collision detection with the hit detection body of the virtual object; The collision detection body of the virtual prop further includes a second detection body, and the second detection body is used for collision detection with the hit detection body of the character type. The collision detection range of the first detection body and the second detection body is determined based on the detection radius, and the detection radius of the first detection body is smaller than the detection radius of the second detection body. and / or The collision detection body of the virtual prop also includes a third detection body, which is used to perform collision detection with a defense-type impact detection body. The collision detection range of the third detection body is determined based on an offset distance and a detection radius. The offset distance is used to represent the offset of the attack point of the virtual prop relative to the center of the virtual prop.

[0078] Optionally, the acquisition module includes: a seventh determination submodule, configured to determine the use status of the plurality of collision detection bodies of the virtual prop, wherein the use status of the collision detection body is used to indicate whether the collision detection body is enabled to perform collision detection; The acquisition submodule is used to obtain the detection result of the collision detection performed by the collision detection body in the enabled usage state and the impact detection body.

[0079] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device (such as a terminal device or a server) 600 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0080] like Figure 4 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0081] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0082] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0083] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0084] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0085] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0086] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: in response to the triggering operation of the virtual prop, obtains the detection results of collision detection between multiple collision detection bodies of the virtual prop and the impact detection body in the virtual scene, wherein each of the collision detection bodies is used to perform collision detection with the corresponding type of impact detection body; if the detection result indicates that there is a target impact detection body that collides with the virtual prop, determines the collision point between the target impact detection body and the target collision detection body that collides in the virtual prop; and displays the virtual prop based on the collision point in the display interface corresponding to the virtual scene.

[0087] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0088] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0089] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of the module does not limit the module itself in some cases. For example, the acquisition module may also be described as "a module for acquiring the detection results of collision detection between multiple collision detection bodies of the virtual props and the hit detection body in the virtual scene in response to the triggering operation of the virtual props".

[0090] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0091] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0092] According to one or more embodiments of the present disclosure, Example 1 provides a method for controlling a virtual prop, the method comprising: In response to a trigger operation of a virtual prop, a detection result of a collision detection between a plurality of collision detection bodies of the virtual prop and a hit detection body in a virtual scene is obtained, wherein each of the collision detection bodies is used to perform a collision detection with a hit detection body of a corresponding type; If the detection result indicates that there is a target hit detection body that collides with the virtual prop, determining a collision point between the target hit detection body and a target collision detection body that collides with the virtual prop; In a display interface corresponding to the virtual scene, the virtual props are displayed based on the collision point.

[0093] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, wherein obtaining the detection results of collision detection between multiple collision detection bodies of the virtual prop and the hit detection body in the virtual scene includes: Determining a current collision detection object based on a detection order of the plurality of collision detection objects; Determining, from the hit detection bodies in the virtual scene, candidate hit detection bodies for collision detection with the current collision detection body; Performing collision detection based on the current collision detection body and the candidate hit detection body; If it is determined that the current collision detection body collides with the candidate hit detection body, the candidate hit detection body that collides with is determined as the target hit detection body.

[0094] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 2, wherein the obtaining the detection results of the collision detection between the multiple collision detection bodies of the virtual props and the hit detection body in the virtual scene further includes: If it is determined that the current collision detection body and the candidate impact detection body have not collided, and if it is determined based on the detection order that there is a next collision detection body, the next collision detection body is used as the new current collision detection body, and the step of determining a candidate impact detection body for collision detection with the current collision detection body from the impact detection bodies in the virtual scene is returned to be executed.

[0095] According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 2, wherein determining, from the hit detection bodies in the virtual scene, candidate hit detection bodies for collision detection with the current collision detection body comprises: Determining the type of the struck detection object; If the type of the hit detection object is the type corresponding to the current collision detection object, the hit detection object is used as the candidate hit detection object.

[0096] According to one or more embodiments of the present disclosure, Example 5 provides the method of Example 1, wherein displaying the virtual prop based on the collision point in the display interface corresponding to the virtual scene includes: Determine a mapping point of the collision point on the struck surface of the target virtual object based on a mapping relationship between the target struck detection body and the struck surface of the target virtual object, wherein the target virtual object is a virtual object to which the target struck detection body belongs; In the display interface, the virtual props are displayed based on the mapping points.

[0097] According to one or more embodiments of the present disclosure, Example 6 provides the method of Example 1, wherein the method further includes: A display effect corresponding to the target collision detection body in the virtual prop is displayed at the mapping point.

[0098] According to one or more embodiments of the present disclosure, Example 7 provides the method of Example 1, wherein the collision detection body of the virtual prop includes a first detection body, and the first detection body is used to perform collision detection with the hit detection body of the virtual object; The collision detection body of the virtual prop further includes a second detection body, and the second detection body is used for collision detection with the hit detection body of the character type. The collision detection range of the first detection body and the second detection body is determined based on the detection radius, and the detection radius of the first detection body is smaller than the detection radius of the second detection body. and / or The collision detection body of the virtual prop also includes a third detection body, which is used to perform collision detection with a defense-type impact detection body. The collision detection range of the third detection body is determined based on an offset distance and a detection radius. The offset distance is used to represent the offset of the attack point of the virtual prop relative to the center of the virtual prop.

[0099] According to one or more embodiments of the present disclosure, Example 8 provides the method of Example 1, wherein obtaining the detection results of collision detection between multiple collision detection bodies of the virtual prop and the hit detection body in the virtual scene includes: Determine the use status of the plurality of collision detection bodies of the virtual prop, wherein the use status of the collision detection body is used to indicate whether the collision detection body is enabled to perform collision detection; A detection result of collision detection performed between the collision detection object in the enabled usage state and the struck detection object is obtained.

[0100] According to one or more embodiments of the present disclosure, Example 9 provides a control device for a virtual prop, the device comprising: an acquisition module, configured to acquire, in response to a trigger operation of a virtual prop, a detection result of a collision detection between a plurality of collision detection bodies of the virtual prop and a hit detection body in a virtual scene, wherein each of the collision detection bodies is configured to perform a collision detection with a hit detection body of a corresponding type; a determination module, configured to determine a collision point between the target hit detection body and the target collision detection body in the virtual prop that collides if the detection result indicates that there is a target hit detection body that collides with the virtual prop; The first display module is used to display the virtual prop based on the collision point in a display interface corresponding to the virtual scene.

[0101] According to one or more embodiments of the present disclosure, Example 10 provides a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processing device, the steps of the method described in any one of Examples 1-8 are implemented.

[0102] According to one or more embodiments of the present disclosure, Example 11 provides an electronic device, including: a storage device having a computer program stored thereon; A processing device is used to execute the computer program in the storage device to implement the steps of the method described in any one of Examples 1-8.

[0103] According to one or more embodiments of the present disclosure, Example 12 provides a computer program product, including a computer program, which implements the steps of any one of the methods of Examples 1-8 when executed by a processor.

[0104] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0105] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0106] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims

1. A method for controlling a virtual prop, characterized in that: The method comprises: In response to a trigger operation of a virtual prop, a detection result of a collision detection between a plurality of collision detection bodies of the virtual prop and a hit detection body in a virtual scene is obtained, wherein each of the collision detection bodies is used to perform a collision detection with a hit detection body of a corresponding type; If the detection result indicates that there is a target hit detection body that collides with the virtual prop, determining a collision point between the target hit detection body and a target collision detection body that collides with the virtual prop; In a display interface corresponding to the virtual scene, the virtual props are displayed based on the collision point.

2. The method according to claim 1, characterized in that The obtaining of detection results of collision detection between the plurality of collision detection bodies of the virtual prop and the hit detection body in the virtual scene includes: Determining a current collision detection object based on a detection order of the plurality of collision detection objects; Determining, from the hit detection bodies in the virtual scene, candidate hit detection bodies for collision detection with the current collision detection body; Performing collision detection based on the current collision detection body and the candidate hit detection body; If it is determined that the current collision detection body collides with the candidate hit detection body, the candidate hit detection body that collides with is determined as the target hit detection body.

3. The method according to claim 2, characterized in that The step of obtaining detection results of collision detection between the plurality of collision detection bodies of the virtual prop and the hit detection body in the virtual scene further includes: If it is determined that the current collision detection body and the candidate impact detection body have not collided, and if it is determined based on the detection order that there is a next collision detection body, the next collision detection body is used as the new current collision detection body, and the step of determining a candidate impact detection body for collision detection with the current collision detection body from the impact detection bodies in the virtual scene is returned to be executed.

4. The method according to claim 2, characterized in that: The step of determining, from the hit detection objects in the virtual scene, candidate hit detection objects for collision detection with the current collision detection object comprises: Determining the type of the struck detection object; If the type of the hit detection object is the type corresponding to the current collision detection object, the hit detection object is used as the candidate hit detection object.

5. The method according to claim 1, characterized in that The step of displaying the virtual props based on the collision point in the display interface corresponding to the virtual scene includes: Determine a mapping point of the collision point on the struck surface of the target virtual object based on a mapping relationship between the target struck detection body and the struck surface of the target virtual object, wherein the target virtual object is a virtual object to which the target struck detection body belongs; In the display interface, the virtual props are displayed based on the mapping points.

6. The method according to claim 5, characterized in that The method further comprises: A display effect corresponding to the target collision detection body in the virtual prop is displayed at the mapping point.

7. The method according to claim 1, characterized in that The collision detection body of the virtual prop includes a first detection body, and the first detection body is used to perform collision detection with the hit detection body of the virtual object; The collision detection body of the virtual prop further includes a second detection body, and the second detection body is used to perform collision detection with the hit detection body of the character type. The collision detection range of the first detection body and the second detection body is determined based on the detection radius, and the detection radius of the first detection body is smaller than the detection radius of the second detection body. and / or The collision detection body of the virtual prop also includes a third detection body, which is used to perform collision detection with a defense-type impact detection body. The collision detection range of the third detection body is determined based on an offset distance and a detection radius. The offset distance is used to represent the offset of the attack point of the virtual prop relative to the center of the virtual prop.

8. The method according to claim 1, characterized in that The obtaining of detection results of collision detection between the plurality of collision detection bodies of the virtual prop and the hit detection body in the virtual scene includes: Determine the use status of the plurality of collision detection bodies of the virtual prop, wherein the use status of the collision detection body is used to indicate whether the collision detection body is enabled to perform collision detection; A detection result of collision detection performed between the collision detection object in the enabled usage state and the struck detection object is obtained.

9. A control device for a virtual item, characterized in that: The device comprises: an acquisition module, configured to acquire, in response to a trigger operation of a virtual prop, a detection result of a collision detection between a plurality of collision detection bodies of the virtual prop and a hit detection body in a virtual scene, wherein each of the collision detection bodies is configured to perform a collision detection with a hit detection body of a corresponding type; a determination module, configured to determine a collision point between the target hit detection body and the target collision detection body in the virtual prop that collides if the detection result indicates that there is a target hit detection body that collides with the virtual prop; The first display module is used to display the virtual prop based on the collision point in a display interface corresponding to the virtual scene.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processing device, the steps of the method according to any one of claims 1 to 8 are implemented.

11. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 8.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.