CN111437606A - Collision detection method and device, storage medium and electronic device - Google Patents

Collision detection method and device, storage medium and electronic device Download PDF

Info

Publication number
CN111437606A
CN111437606A CN202010238667.0A CN202010238667A CN111437606A CN 111437606 A CN111437606 A CN 111437606A CN 202010238667 A CN202010238667 A CN 202010238667A CN 111437606 A CN111437606 A CN 111437606A
Authority
CN
China
Prior art keywords
virtual object
collision
determining
reporting
abnormal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010238667.0A
Other languages
Chinese (zh)
Other versions
CN111437606B (en
Inventor
李建兴
陈强
彭慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010238667.0A priority Critical patent/CN111437606B/en
Publication of CN111437606A publication Critical patent/CN111437606A/en
Application granted granted Critical
Publication of CN111437606B publication Critical patent/CN111437606B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program

Abstract

The invention discloses a collision detection method and device, a storage medium and an electronic device. Wherein, the method comprises the following steps: determining the abnormal type of the first virtual object with abnormal collision under the condition that the first virtual object in the target game map collides with the second virtual object and the first virtual object in the collision is abnormal collision; determining a reporting judgment result according to the abnormal type and the related information of the first virtual object; reporting first abnormal information under the condition that the first virtual object is required to be reported to be in collision abnormity according to the reporting judgment result, wherein the first abnormal information is used for representing that the first virtual object is in collision abnormity; and when the reporting judgment result shows that the first virtual object is not required to be reported to be in collision abnormity, the mode of reporting the first abnormal information is cancelled, so that the technical problems that in the prior art, the detected target virtual object is in collision and the abnormal false alarm occurs when the collision abnormity is reported are solved.

Description

Collision detection method and device, storage medium and electronic device
Technical Field
The invention relates to the field of games, in particular to a collision detection method and device, a storage medium and an electronic device.
Background
Now, games using the open world are more and more, scenes are larger, and objects in the scenes are also multiplied. In the scene iteration process at any time, the situation that collision of some objects is abnormal in the process of adding collision boxes for some objects can inevitably occur due to operations such as terrain adjustment and object placement position movement. In the prior art, when a collision abnormality occurs, the collision abnormality is directly reported according to a collision result, and when some collision results are normal for the attributes of a target virtual object, reporting is also performed, which causes an abnormal false report. For example, in the case of collision of a mountain, the mountain has no rendering phenomenon, and the rendering phenomenon should be a normal phenomenon, and an abnormal result is reported without reporting collision abnormality.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a collision detection method and device, a storage medium and an electronic device, and at least solves the technical problems that in the prior art, a detected target virtual object collides and an abnormal false alarm occurs when a collision abnormality is reported.
According to an aspect of an embodiment of the present invention, there is provided a method of collision detection, including: under the condition that a first virtual object and a second virtual object in a target game map are detected to collide, and the first virtual object in the collision is in collision abnormity, determining the abnormity type of the first virtual object in the collision abnormity; determining a reporting judgment result according to the abnormal type and the related information of the first virtual object, wherein the reporting judgment result is used for indicating whether the first virtual object needs to be reported and the collision abnormality occurs; reporting first abnormal information under the condition that the first virtual object is required to be reported to have collision abnormality according to the reporting judgment result, wherein the first abnormal information is used for representing that the first virtual object has collision abnormality; and canceling the reporting of the first abnormal information under the condition that the reporting judgment result is that the first virtual object is not required to be reported to have collision abnormality.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for collision detection, including: the game control device comprises a first determining unit, a second determining unit and a control unit, wherein the first determining unit is used for determining the abnormal type of the first virtual object with abnormal collision when the first virtual object in the target game map collides with a second virtual object and the first virtual object in the collision is abnormal collision; a second determining unit, configured to determine a reporting determination result according to the exception type and the related information of the first virtual object, where the reporting determination result is used to indicate whether it is necessary to report that the first virtual object has a collision exception; a reporting unit, configured to report first abnormal information when the reporting determination result indicates that the first virtual object needs to be reported that the first virtual object is in a collision abnormality, where the first abnormal information is used to indicate that the first virtual object is in a collision abnormality; and a report canceling unit, configured to cancel reporting of the first abnormal information when the report determination result indicates that the first virtual object is not required to be reported, where the first virtual object is in a collision abnormality.
According to a further aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned collision detection method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for collision detection through the computer program.
In the embodiment of the invention, the method comprises the steps of determining the abnormal type of the first virtual object with abnormal collision when the first virtual object in the target game map is detected to collide with the second virtual object and the first virtual object in the collision is detected to have abnormal collision; determining a reporting judgment result according to the abnormal type and the related information of the first virtual object, wherein the reporting judgment result is used for indicating whether the first virtual object needs to be reported and the collision abnormality occurs; reporting first abnormal information under the condition that the first virtual object is required to be reported to be in collision abnormity according to the reporting judgment result, wherein the first abnormal information is used for representing that the first virtual object is in collision abnormity; and when the reporting judgment result shows that the first virtual object is not required to be reported to have collision abnormity, the mode of reporting the first abnormal information is cancelled, and the purpose of determining whether to report the collision abnormity according to the abnormal type and the related information of the virtual object after the abnormal type of the collision is determined is achieved, so that the technical effect of reporting the collision abnormity phenomenon according to the related information of the virtual object under different collision abnormity types is realized, namely, the type of the collision abnormity of the virtual object is judged firstly, and because the collision is abnormal and does not belong to the abnormal condition under the same abnormity type of different virtual objects, the collision is determined to be abnormal according to the related information of the virtual object, and the condition of false reporting of the collision abnormity of the virtual object is avoided. And the technical problems that the detected target virtual object is collided and abnormal false alarm occurs when the collision abnormity is reported in the prior art are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic illustration of an environment in which an alternative method of collision detection may be used in accordance with embodiments of the present invention;
FIG. 2 is a flow diagram of an alternative method of collision detection according to an embodiment of the present invention;
FIG. 3 is a flow chart of an alternative method of determining a collision anomaly of an object according to an embodiment of the present invention;
FIG. 4 is a schematic illustration of an alternative volume of object collisions and object rendering volume according to embodiments of the present invention;
fig. 5 is a flowchart of determining and reporting a determination result according to an optional collision parameter and rendering parameter in the embodiment of the present invention;
FIG. 6 is a diagram illustrating an alternative result of detecting an object collision according to an embodiment of the present invention;
FIG. 7 is a schematic diagram (one) illustrating data associated with an alternative crash anomaly object according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of an alternative data associated with an anomalous crash zone in accordance with an embodiment of the present invention;
FIG. 9 is a schematic diagram of an alternative collision detection apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For a better understanding of the examples provided herein, some of the terms will now be described as follows:
unity Editor: a game editor is mainly used for tools for making game scenes and game objects.
GameObject: a GameObject is created which can be a camera, a light, or a simple model, most widely used in Unity Editor.
Three-dimensional coordinates: colloquially, world coordinates, including three locations (x, y, z), are used to locate the location of an object in the world
Component: component is a general name of an attribute in the GameObject, the attribute of the Component can be added and deleted in the GameObject, and some sub-attributes can be added in the Component in a customized mode.
Crash box (Collider): there are mainly the following crash boxes in Unity: box cooler, sphere cooler, capsule cooler, mesh cooler, wheel cooler. The main function of the crash box is to add object collisions in the scene, which can generate various physical phenomena (including physical effects such as blocking, friction, bounce, etc.) consistent in the real world within the game.
According to an aspect of the embodiments of the present invention, a method for collision detection is provided, and optionally, as an optional implementation manner, the method for collision detection may be applied to, but is not limited to, a hardware environment as shown in fig. 1, where the hardware environment may include, but is not limited to, the terminal device 102, the network 110, and the server 112. The terminal device 102 runs a game client, and is configured to control a target virtual character to complete a game task in a game scene.
The terminal device 102 may include, but is not limited to: a human-computer interaction screen 104, a processor 106 and a memory 108. The man-machine interaction screen 104 is used for acquiring a man-machine interaction instruction through a man-machine interaction interface and is also used for presenting a game picture in a game task; the processor 106 is used for controlling the target virtual character to execute the specified operation to complete the game task in response to the human-computer interaction instruction. The memory 108 is used for storing attribute information of the first virtual object, attribute information of the second virtual object, a transmission collision of the first virtual object and the second virtual object, and a transmission collision of the first virtual object render volume data, and the like. Here, the server may include but is not limited to: the database 114 and the processing engine 116, the processing engine 116 is configured to invoke the collision data stored in the database 114, and determine an abnormal type of the first virtual object with abnormal collision when it is detected that the first virtual object in the target game map collides with the second virtual object and the first virtual object in the collision is abnormal collision; determining a reporting judgment result according to the abnormal type and the related information of the first virtual object, wherein the reporting judgment result is used for indicating whether the first virtual object needs to be reported and the collision abnormality occurs; reporting first abnormal information under the condition that the first virtual object is required to be reported to be in collision abnormity according to the reporting judgment result, wherein the first abnormal information is used for representing that the first virtual object is in collision abnormity; and when the reporting judgment result shows that the first virtual object is not required to be reported to have collision abnormity, the mode of reporting the first abnormal information is cancelled, and the purpose of determining whether to report the collision abnormity according to the abnormal type and the related information of the virtual object after the abnormal type of the collision is determined is achieved, so that the technical effect of reporting the collision abnormity phenomenon according to the related information of the virtual object under different collision abnormity types is realized, namely, the type of the collision abnormity of the virtual object is judged firstly, and because the collision is abnormal and does not belong to the abnormal condition under the same abnormity type of different virtual objects, the collision is determined to be abnormal according to the related information of the virtual object, and the condition of false reporting of the collision abnormity of the virtual object is avoided. And the technical problems that the detected target virtual object is collided and abnormal false alarm occurs when the collision abnormity is reported in the prior art are solved.
The specific process comprises the following steps: an interactive interface of a game client running a game task (as shown in fig. 1, a shooting game is adopted, and a target virtual character snipes a target object at a far position) is displayed on a human-computer interaction screen 104 in the terminal device 102. In steps S102-S108, an exception type of the first virtual object having the collision exception is obtained, and the exception type is sent to the server 112 through the network 110. Determining a reporting judgment result at the server 112 according to the abnormal type and the related information of the first virtual object, wherein the reporting judgment result is used for indicating whether the first virtual object needs to be reported and the collision abnormality occurs; reporting first abnormal information under the condition that the first virtual object is required to be reported to be in collision abnormity according to the reporting judgment result, wherein the first abnormal information is used for representing that the first virtual object is in collision abnormity; and canceling the reporting of the first abnormal information under the condition that the reporting judgment result is that the first virtual object is not required to be reported to have collision abnormality. And then returns the determined result to the terminal device 102.
Then, as in steps S102-S108, the terminal device 102 determines an abnormal type of the first virtual object having collision abnormality in the case where it is detected that the first virtual object in the target game map collides with the second virtual object and the first virtual object has collision abnormality in the collision; determining a reporting judgment result according to the abnormal type and the related information of the first virtual object, wherein the reporting judgment result is used for indicating whether the first virtual object needs to be reported and the collision abnormality occurs; reporting first abnormal information under the condition that the first virtual object is required to be reported to be in collision abnormity according to the reporting judgment result, wherein the first abnormal information is used for representing that the first virtual object is in collision abnormity; and when the reporting judgment result shows that the first virtual object is not required to be reported to have collision abnormity, the mode of reporting the first abnormal information is cancelled, and the purpose of determining whether to report the collision abnormity according to the abnormal type and the related information of the virtual object after the abnormal type of the collision is determined is achieved, so that the technical effect of reporting the collision abnormity phenomenon according to the related information of the virtual object under different collision abnormity types is realized, namely, the type of the collision abnormity of the virtual object is judged firstly, and because the collision is abnormal and does not belong to the abnormal condition under the same abnormity type of different virtual objects, the collision is determined to be abnormal according to the related information of the virtual object, and the condition of false reporting of the collision abnormity of the virtual object is avoided. And the technical problems that the detected target virtual object is collided and abnormal false alarm occurs when the collision abnormity is reported in the prior art are solved.
Optionally, in this embodiment, the collision detection method may be, but is not limited to, applied to the server 112 for assisting the terminal device 102, and also applied to the terminal device 102, where the terminal device 102 may be, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a PC, and other terminal devices that support running an application client. The server 112 and the terminal device 102 may implement data interaction through a network, which may include but is not limited to a wireless network or a wired network. Wherein, this wireless network includes: bluetooth, WIFI, and other networks that enable wireless communication. Such wired networks may include, but are not limited to: wide area networks, metropolitan area networks, and local area networks. The above is merely an example, and this is not limited in this embodiment.
Optionally, as an optional implementation manner, as shown in fig. 2, the method for detecting a collision includes:
in step S202, when it is detected that the first virtual object in the target game map collides with the second virtual object and the first virtual object in the collision is in collision abnormality, an abnormality type of the first virtual object in which the collision abnormality occurs is determined.
And step S204, determining a reporting judgment result according to the abnormal type and the related information of the first virtual object, wherein the reporting judgment result is used for indicating whether the first virtual object needs to be reported and the collision abnormality occurs.
And step S206, reporting first abnormal information under the condition that the reporting judgment result indicates that the first virtual object is in collision abnormity, wherein the first abnormal information is used for indicating that the first virtual object is in collision abnormity.
And step S208, under the condition that the reporting judgment result is that the first virtual object is not required to be reported to have collision abnormity, the reporting of the first abnormal information is cancelled.
It should be noted that there are many virtual objects (virtual objects) in the target game, and there is a collision box around the virtual objects, which can generate various physical phenomena (including physical effects such as blocking, friction, and bouncing) consistent in the real world in the game when the virtual objects are collided.
Optionally, the method in this embodiment may be applied to test whether some physical phenomena exist in the event that an object (virtual object) existing in the target game map is sent to collide, and whether the physical phenomena occur abnormally, in the game testing stage.
In this embodiment, the first virtual object may include, but is not limited to, mountains, grass, map boundaries, etc. existing in a game map designed when the target game is designed, and also include new virtual devices appearing during the game, such as virtual grenades, virtual smoke bombs, etc. The second virtual object may include, but is not limited to, a virtual operation object controlled by a player, a virtual animal existing in a game map, and the like. It should be noted that the "first" in the first virtual object and the "second" in the second virtual object are used only for distinguishing the differences.
In the present embodiment, the first virtual object and the second virtual object transmit a collision, and a collision situation of the first virtual object may be determined, and the type of the collision abnormality may be determined according to the collision situation.
In practical applications, the collision situation of the virtual object existing in the target game virtual map, which includes the collision abnormal type of the first virtual object, can be determined through the Unity Editor game Editor. The exception type of the collision exception of the first virtual object is determined in three types of NoCollision (no collision with rendering), NoMeshRender (collision with rendering without rendering), and CollisionNotMatch.
The scanning detection may be performed for each virtual object in the virtual map in the target game, and the type of the collision abnormality of the virtual object, that is, which of the three types the collision abnormality of the virtual object belongs to, may be determined. The determination procedure for each virtual object is specifically as follows:
as shown in fig. 3, a flow chart for determining an object collision abnormality is shown.
Step S31, acquiring the object to be detected, i.e. scanning the object to be detected. That is, the data of the assembly or sub-assembly of the object to be detected can be obtained by scanning the virtual object (virtual object, such as lawn, house, tree, etc.) in the virtual map through the tool.
Step S32, detecting whether the object is in the activated state, if yes, executing step S3, if no, returning to step S1;
step S33, acquiring the collision attribute of the object;
step S34, judging and comparing the inconsistency of collision rendering;
step S35, finding the object under the condition that the collision rendering is inconsistent, namely judging that the object has collision abnormity;
step S36, when the object has no collision attribute and the sub-object of the object has no collision attribute, finding out the object, namely judging that the object has collision abnormity;
in step S37, when the collision rendering matches, step S31 is executed.
That is, the virtual object with collision abnormality can be determined through the above steps.
Optionally, in this embodiment, determining an abnormal type of the first virtual object having the collision abnormality may include:
s1, acquiring component parameters of the first virtual object, wherein the component parameters are used for rendering the rendering phenomenon of the first virtual object;
s2, determining the abnormal type of the first virtual object collision abnormity as no collision and rendering under the condition that the collision attribute parameters do not exist in the component parameters but the rendering phenomenon of the first virtual object occurs in the target game;
s3, determining the abnormal type of the first virtual object collision abnormity as collision or no rendering under the condition that the collision attribute parameters exist in the component parameters but the rendering phenomenon of the first virtual object does not occur in the target game;
and S4, determining the abnormal type of the first virtual object collision abnormity as the inconsistency between the rendering volume and the collision volume when the collision attribute parameter exists in the component parameters but the rendering volume of the first virtual object does not coincide with the collision attribute parameter in the target game.
Optionally, in this embodiment, determining to report the determination result according to the exception type and the related information of the first virtual object may include at least one of the following:
determining a reporting judgment result according to the position of the first virtual object and the attribute of the first virtual object under the condition that the abnormal type indicates that the first virtual object has collision or no rendering, wherein the related information comprises the position and the attribute;
determining a reporting judgment result according to the type of the first virtual object under the condition that the abnormal type indicates that the first virtual object has no collision and has rendering, wherein the related information comprises the type;
and under the condition that the abnormal type indicates that the collision volume and the rendering volume of the first virtual object are not consistent, determining and reporting a judgment result according to the collision parameter and the rendering parameter of the first virtual object, wherein the related information comprises the collision parameter and the rendering parameter.
Determining to report the determination result according to the position of the first virtual object and the attribute of the first virtual object may include:
and under the condition that the position of the first virtual object is located in a preset area at the edge of the target game map and the attribute of the first virtual object comprises the attribute of the target object, determining that the reporting judgment result is that the first virtual object is not required to be reported and collision abnormity occurs.
It should be noted that, when the position of the first virtual object is located in a preset area at the edge of the target game map and the attribute of the first virtual object includes the attribute of the target object, determining that the reporting of the determination result is that it is not necessary to report that the first virtual object has a collision abnormality may include:
and under the condition that the position of the first virtual object is located in a preset area at the edge of the target game map and the attribute of the first virtual object comprises the air wall attribute, determining that the first virtual object is not required to be reported to have collision abnormity according to the reporting judgment result, wherein the target object attribute comprises the air wall attribute.
It should be further noted that the target object attributes may further include: the attribute information of the mountain and the attribute of the solid in the virtual scene indicates that the object does not need to be sent or the render cannot be sent after the sending collision. For example, an air wall attribute is usually set at an edge position of a target game map, a virtual operation object controlled by a player runs to the edge of the game map, and collides with a collision box at the edge of the game map, if no rendering occurs, the collision belongs to a normal collision, and the collision abnormality is not allowed to be reported.
The embodiment can be understood that, when there is a collision or no rendering in the first virtual object, whether to report the collision exception is determined according to the attribute information of the first virtual object, in other words, a filtering condition is added according to the attribute information of the first virtual object, thereby preventing false alarm.
Optionally, in this embodiment, determining to report the determination result according to the type of the first virtual object may include:
and under the condition that the type of the first virtual object is the type which does not need to be collided, determining that the first virtual object does not need to be reported and the collision abnormity occurs in the reporting judgment result.
Determining to report the determination result according to the type of the first virtual object may include:
and under the condition that the type of the first virtual object is in a preset white list, determining that the reporting judgment result is that the first virtual object is not required to be reported and collision abnormity occurs, wherein the white list comprises one or at least two preset collision-free types.
In practical applications, objects such as grass, high-voltage wires, windmill blades and the like exist in the target game map, and the objects can also be rendered without collision. For example, the physical phenomenon of electric flashover can occur on a high-voltage line, and the phenomena can occur according to the weather phenomenon in a game, and the physical phenomenon can be rendered without collision. The object can be added into a white list in advance, and after the collision abnormity type of the first object is judged to be no collision and rendering, the first virtual object is judged to belong to the virtual object of the white list, so that the collision abnormity information can not be reported, and the false alarm is prevented.
In order to avoid false alarm of collision abnormality, determining a report judgment result according to the collision parameter and the rendering parameter of the first virtual object, which may include:
acquiring the central position of the first virtual object, which is collided by the second virtual object, and the central position rendered by the first virtual object;
and under the condition that the deviation value between the center position of the collision and the center position of the rendering is larger than or equal to a first preset threshold value, determining to report that the first virtual object has abnormal collision.
Wherein the rendering volume and the collision volume are calculated in case an offset value between the center position of the collision and the center position of the rendering is smaller than a predetermined threshold;
and under the condition that the difference value between the rendering volume and the collision volume is larger than or equal to a second preset threshold value, determining that the first virtual object is reported to have collision abnormity.
In the case of collision and mesh of an object, a schematic diagram of the volume of collision of the object and the rendering volume of the object can be shown in fig. 4. The method is divided into two parts, namely a meshRender and a meshColllier, and the volumes and the central points of two geometric bodies are required to be calculated respectively to judge whether the sizes of the display and the collision of the objects are consistent. The reason for obtaining the center point here is mainly: the crash boxes with a part of the objects are moved to other positions, so that the sizes of the crash boxes mesh are the same, but the positions of the crash boxes mesh are different, and the part of the objects can be scanned through the displacement of the central point.
As shown in fig. 5, a flow chart of reporting the determination result is determined by the collision parameter and the rendering parameter.
Step S501, an object to be detected is obtained;
step S503, detecting that the collision rendering is inconsistent;
step S505, calculating the central point position of the collision body and the central position of the rendering body;
step S507, determining whether the offset between the central position of the collision volume and the central position of the rendering volume exceeds a threshold, if yes, executing step 509, and if no, executing step S511;
step S509, finding the object and reporting collision abnormity information;
the positions of two central points of the meshRender and the meshCollider are calculated, then whether the position offset of the two central points exceeds a threshold value or not is judged, if the position offset of the two central points exceeds the threshold value, the object is judged to have a problem, and the object does not need to be judged by calculating the volume again.
Step S511, calculating a collision volume and a rendering volume;
in step S513, whether the rendering volume and the collision volume match is calculated, and if yes, step S501 is executed, and if no, step S509 is executed.
If the position deviation of the central point does not exceed the threshold, the volumes of the MeshRender and the MeshCollider need to be calculated respectively, after the volumes are calculated, whether the difference value exceeds the set threshold or not is calculated, if the difference value exceeds the set threshold, the collision of the object is judged to be abnormal, the object needs to be repaired in time, and if the threshold is not found, the object is considered to be normal in collision.
According to the embodiment provided by the application, under the condition that the first virtual object and the second virtual object in the target game map are detected to collide, and the first virtual object in the collision is in collision abnormity, the abnormity type of the first virtual object in the collision abnormity is determined; determining a reporting judgment result according to the abnormal type and the related information of the first virtual object, wherein the reporting judgment result is used for indicating whether the first virtual object needs to be reported and the collision abnormality occurs; reporting first abnormal information under the condition that the first virtual object is required to be reported to be in collision abnormity according to the reporting judgment result, wherein the first abnormal information is used for representing that the first virtual object is in collision abnormity; and when the reporting judgment result shows that the first virtual object is not required to be reported to have collision abnormity, the mode of reporting the first abnormal information is cancelled, and the purpose of determining whether to report the collision abnormity according to the abnormal type and the related information of the virtual object after the abnormal type of the collision is determined is achieved, so that the technical effect of reporting the collision abnormity phenomenon according to the related information of the virtual object under different collision abnormity types is realized, namely, the type of the collision abnormity of the virtual object is judged firstly, and because the collision is abnormal and does not belong to the abnormal condition under the same abnormity type of different virtual objects, the collision is determined to be abnormal according to the related information of the virtual object, and the condition of false reporting of the collision abnormity of the virtual object is avoided. And the technical problems that the detected target virtual object is collided and abnormal false alarm occurs when the collision abnormity is reported in the prior art are solved.
As an alternative embodiment, the application also provides a method for detecting an object collision abnormity in the scene in the Unity3D engine.
The collision exceptions are divided into three types according to the rendering and non-collision of NoCollision, the rendering and non-collision of NoMeshRender and the rendering and collision of Collision NotMatch.
The core idea of the embodiment is as follows: when the condition that rendering exists but no collision box exists/the condition that the rendering exists and the rendering does not exist/the condition that the rendering volume and the collision volume are inconsistent (corresponding to the virtual object) is detected, the object can be added into a confirmation queue; after the object queue to be confirmed is obtained, collision abnormity is further confirmed through preset conditions (some white lists and secondary judgment), and therefore false alarm of collision detection is reduced.
In practical application, if there is a collision or no rendering, if the map is in a map edge zone, the map edge zone is a normal air wall attribute, and if the map edge zone is a normal map edge zone, a filtering condition needs to be added to prevent false alarm. If the rendering is performed without collision, if some objects (grass, high-voltage wires, windmill blades and the like) do not need collision, white list filtering is required to be added to prevent false alarm. And under the condition that the collision volume is inconsistent with the rendering volume, calculating the collision volume and the rendering volume, and comparing the position conditions of each central point and each vertex to judge so as to prevent false alarm and missing report.
In this embodiment, the actual object attribute values (including sub-attributes) are used to determine whether the collision of the object is normal by determining whether the object attribute exists or not or determining the attributes such as size.
It should be noted that, in the method in this embodiment, the detection tool may detect the collision abnormality of the virtual object in the virtual map in the target game, and the tool may select collision detection (collision check) in a menu bar in an editor (unity editor) in a plug-in manner, that is, pop up the tool to use a TAB list. As shown in fig. 6, an interface diagram for detecting an object collision anomaly.
Upon selection of collision detection in the menu bar, the result of scanning the virtual object in the target game will be displayed in fig. 6 on the interface of fig. 6, where some adjustable parameters are also provided, which can narrow down the type data of the detected collision anomaly:
the checking rati: a decision needs to be made as to whether there is a problematic ratio threshold.
Drawline showTime: the presentation time of the logo is plotted on the editor.
Select Type: the mode of the selected scan is selectable here in three ways: NoCollision, NoMeshRender and CollisonNotMatch correspond to three conditions of no collision in scanning, no mesh and inconsistent collision. By selecting a mode from the selection type parameters, the virtual object with abnormal collision corresponding to the mode is detected, for example, if the mode is selected to be inconsistent, the virtual object with abnormal collision is displayed in a list in the sub-interface, that is, the judgment of the false alarm abnormality in the abnormal mode is further facilitated to be detected.
Filter L ist Filter list, which is mainly used to fill out the Filter condition that the objects (e.g. air wall, picking point) which have these conditions but are normal need to be filtered to prevent the scanning result from being affected.
The scanning of single Object Check is mainly for debugging.
Finding Object: all objects in the current scene are scanned.
After collision scanning is selected in a menu bar of the tool, after scanned parameter configuration is completed, collision abnormal data corresponding to the parameters are scanned, that is, identification information of a collision abnormal object with a corresponding parameter type is displayed in a list form, execution of the identification information of the object in the interface can be directly jumped to the corresponding object with collision abnormality by, but not limited to, single click, double click and long press operations, as shown in fig. 7, a data schematic diagram (one) related to the collision abnormal object is displayed. In fig. 7, the left side is a schematic diagram corresponding to the presence of the crash anomaly object, and the right side is the selected attribute data of the crash anomaly object. As in fig. 7, by clicking on the corresponding object, the collision diagram corresponding to the object will be displayed on the left side in fig. 7.
As shown in fig. 8, a diagram (two) of data related to the crash anomaly object is shown. In fig. 8, the left side is a schematic diagram corresponding to the presence of the crash anomaly object, and the right side is the selection attribute data of the crash anomaly object. As in fig. 8, the object corresponding to the arrow may be double-clicked, and the collision diagram corresponding to the object will be displayed on the left side in fig. 8.
It should be noted that, after the target object is selected in fig. 6, the process jumps to fig. 7 and fig. 8 to present a collision schematic diagram of the object with abnormal collision, which can intuitively help the developer to determine the type of the abnormal collision of the object and further determine whether the object needs to be modified according to the attribute information of the object, so as to avoid the false alarm of the abnormal collision of the object.
Through this embodiment, to the adjustment and the restoration of the unusual thing collision in the scene, have following beneficial effect:
1) the cost for discovering the object collision abnormity problem in the scene is reduced, and the manual coverage test time is shortened. Most map scenes in the existing games are large maps such as 4 × 4/8 × 8, the number of objects on the map is very large, most objects are manually visited on the map by scene designers, the situation that no ground is attached or collision objects are attached may occur in the placing process, the time and the labor are consumed by only manually covering, more than 70% of abnormal collision situations on the map can be scanned after the tool is used, and the collision judgment threshold value and result display can be adjusted, so that the game is very convenient.
2) The scene problem repairing cost is reduced, and the repairing effect is fed back in time. Without tools, all repair validation procedures are tedious and time consuming. After the tool is used, all the modifications are obtained, the problems are found and solved at the source, and the problem processing time can be effectively reduced.
3) Under the condition that the scene continuously changes, the problem is fed back in time, and the problem is effectively killed in the manufacturing stage. After the tool is used, the scene can be scanned in the process of placing the scene, and the scene does not need to be processed after being constructed. Greatly improving the working efficiency of scene designers.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for collision detection for implementing the above method for collision detection. As shown in fig. 9, the apparatus includes: a first determining unit 91, a second determining unit 93, a reporting unit 95 and a report canceling unit 97.
A first determining unit 91, configured to determine an abnormal type of the first virtual object having a collision abnormality if it is detected that the first virtual object in the target game map collides with the second virtual object and the first virtual object has a collision abnormality during the collision.
A second determining unit 93, configured to determine a reporting determination result according to the exception type and the related information of the first virtual object, where the reporting determination result is used to indicate whether it is necessary to report that the first virtual object has a collision exception.
The reporting unit 95 is configured to report first abnormal information when the reporting determination result indicates that the first virtual object is in a collision abnormality, where the first abnormal information is used to indicate that the first virtual object is in a collision abnormality.
A report canceling unit 97, configured to cancel reporting of the first abnormal information when the report determination result indicates that the first virtual object does not need to be reported, where the first virtual object is in a collision abnormality.
Optionally, the second determining unit 93 includes at least one of:
the first determining module is used for determining a reporting judgment result according to the position of the first virtual object and the attribute of the first virtual object under the condition that the abnormal type indicates that the first virtual object has collision or no rendering, wherein the related information comprises the position and the attribute;
the second determining module is used for determining and reporting a judgment result according to the type of the first virtual object under the condition that the abnormal type indicates that the first virtual object has no collision and has rendering, wherein the related information comprises the type;
and a third determining module, configured to determine, when the exception type indicates that the collision volume and the rendering volume of the first virtual object are not consistent, a reporting determination result according to the collision parameter and the rendering parameter of the first virtual object, where the relevant information includes the collision parameter and the rendering parameter.
Wherein, the first determining module includes:
and the first determining submodule is used for determining that the reporting judgment result is that the first virtual object is not required to be reported to have collision abnormity under the condition that the position of the first virtual object is positioned in a preset area at the edge of the target game map and the attribute of the first virtual object comprises the attribute of the target object.
It should be noted that, the first determining sub-module is further configured to perform the following operations: and under the condition that the position of the first virtual object is located in a preset area at the edge of the target game map and the attribute of the first virtual object comprises the air wall attribute, determining that the first virtual object is not required to be reported to have collision abnormity according to the reporting judgment result, wherein the target object attribute comprises the air wall attribute.
Optionally, in this embodiment, the second determining module includes:
and the second determining submodule is used for determining that the reporting judgment result is that the first virtual object is not required to be reported to have collision abnormity under the condition that the type of the first virtual object is the type which is not required to be collided.
Wherein the second determining submodule is further configured to perform the following operations:
and under the condition that the type of the first virtual object is in a preset white list, determining that the reporting judgment result is that the first virtual object is not required to be reported and collision abnormity occurs, wherein the white list comprises one or at least two preset collision-free types.
The third determining module may include:
the first acquisition submodule is used for acquiring the central position of the first virtual object, which is collided by the second virtual object, and the central position of the first virtual object rendered;
and the third determining submodule is used for determining that the first virtual object is reported to have collision abnormity under the condition that the deviation value between the center position of the collision and the center position of the rendering is greater than or equal to a first preset threshold value.
It should be noted that the above apparatus may further include:
a calculation submodule for calculating a rendering volume and a collision volume in a case where an offset value between a center position of the collision and a center position of the rendering is smaller than a predetermined threshold value;
and the fourth determining submodule is used for determining that the first virtual object is reported to have collision abnormity under the condition that the difference value between the rendering volume and the collision volume is greater than or equal to a second preset threshold value.
Optionally, in this embodiment, the first determining unit 93 may include:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring component parameters of a first virtual object, and the component parameters are used for rendering a rendering phenomenon of the first virtual object;
and the fourth determining module is used for determining that the abnormal type of the first virtual object collision abnormity is no collision and rendering under the condition that the collision attribute parameters do not exist in the component parameters but the rendering phenomenon of the first virtual object occurs in the target game.
And the fifth determining module is used for determining that the abnormal type of the first virtual object collision abnormity is the rendering with or without collision under the condition that the collision attribute parameters exist in the component parameters but the rendering phenomenon of the first virtual object does not occur in the target game.
And the sixth determining module is used for determining that the abnormal type of the first virtual object collision abnormality is that the rendering volume is inconsistent with the collision volume under the condition that the collision attribute parameter exists in the component parameters but the rendering volume of the first virtual object is not inconsistent with the collision attribute parameter in the target game.
By the embodiment provided by the application, the first determining unit 91 determines the abnormal type of the first virtual object with collision abnormality when detecting that the first virtual object in the target game map collides with the second virtual object and the first virtual object in the collision has collision abnormality; a second determining unit 93, configured to determine a reporting determination result according to the exception type and the related information of the first virtual object, where the reporting determination result is used to indicate whether it is necessary to report that the first virtual object has a collision exception; the reporting unit 95 reports first abnormal information when the reporting judgment result indicates that the first virtual object is in collision abnormality, wherein the first abnormal information is used for indicating that the first virtual object is in collision abnormality; the report cancellation unit 97 cancels the report of the first abnormal information when the report determination result indicates that the first virtual object does not need to be reported. Therefore, the technical effect of reporting the abnormal collision phenomenon according to the related information of the virtual object under different abnormal collision types is achieved, and the technical problem that in the prior art, the detected target virtual object is in collision and abnormal false alarm occurs when the abnormal collision is reported is solved.
According to yet another aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the method for collision detection, as shown in fig. 10, the electronic device includes a memory 1002 and a processor 1004, the memory 1002 stores therein a computer program, and the processor 1004 is configured to execute the steps in any one of the method embodiments by the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, determining the abnormal type of the first virtual object with abnormal collision when the first virtual object in the target game map is detected to collide with the second virtual object and the first virtual object in the collision is abnormal;
s2, determining a reporting judgment result according to the abnormal type and the related information of the first virtual object, wherein the reporting judgment result is used for indicating whether the first virtual object needs to be reported and the collision abnormality occurs;
s3, reporting first abnormal information under the condition that the reporting judgment result is that the first virtual object is required to be reported to be in collision abnormity, wherein the first abnormal information is used for representing that the first virtual object is in collision abnormity;
and S4, under the condition that the reporting judgment result is that the first virtual object is not required to be reported to be in collision abnormity, the reporting of the first abnormal information is cancelled.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 10 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 10 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 10, or have a different configuration than shown in FIG. 10.
The memory 1002 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for collision detection in the embodiments of the present invention, and the processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, implementing the method for collision detection described above. The memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1002 may further include memory located remotely from the processor 1004, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1002 may be specifically, but not limited to, configured to store attribute information of the first virtual object, collision attribute information, rendering attribute information, and the like. As an example, as shown in fig. 10, the memory 1002 may include, but is not limited to, a first determining unit 91, a second determining unit 93, a reporting unit 95, and a report canceling unit 97 of the apparatus for collision detection. In addition, other module units in the above-mentioned collision detection device may also be included, but are not limited to them, and are not described in detail in this example.
Optionally, the above-mentioned transmission device 1006 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1006 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices so as to communicate with the internet or a local area Network. In one example, the transmission device 1006 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: the display 1010 is used for displaying the first abnormal information to be reported; and a connection bus 1010 for connecting the respective module parts in the above-described electronic apparatus.
According to a further aspect of an embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, determining the abnormal type of the first virtual object with abnormal collision when the first virtual object in the target game map is detected to collide with the second virtual object and the first virtual object in the collision is abnormal;
s2, determining a reporting judgment result according to the abnormal type and the related information of the first virtual object, wherein the reporting judgment result is used for indicating whether the first virtual object needs to be reported and the collision abnormality occurs;
s3, reporting first abnormal information under the condition that the reporting judgment result is that the first virtual object is required to be reported to be in collision abnormity, wherein the first abnormal information is used for representing that the first virtual object is in collision abnormity;
and S4, under the condition that the reporting judgment result is that the first virtual object is not required to be reported to be in collision abnormity, the reporting of the first abnormal information is cancelled.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A method of collision detection, comprising:
under the condition that a first virtual object and a second virtual object in a target game map are detected to collide, and the first virtual object in the collision is in collision abnormity, determining the abnormity type of the first virtual object in the collision abnormity;
determining a reporting judgment result according to the abnormal type and the related information of the first virtual object, wherein the reporting judgment result is used for indicating whether the first virtual object needs to be reported and the collision abnormality occurs;
reporting first abnormal information under the condition that the first virtual object is required to be reported to have collision abnormality according to the reporting judgment result, wherein the first abnormal information is used for representing that the first virtual object has collision abnormality;
and canceling the reporting of the first abnormal information under the condition that the reporting judgment result is that the first virtual object is not required to be reported to have collision abnormality.
2. The method according to claim 1, wherein determining a reporting determination result according to the anomaly type and the information related to the first virtual object includes at least one of:
determining the reporting judgment result according to the position of the first virtual object and the attribute of the first virtual object under the condition that the abnormal type indicates that the first virtual object is subjected to collision or not to be rendered, wherein the related information comprises the position and the attribute;
determining the reporting judgment result according to the type of the first virtual object under the condition that the abnormal type indicates that the first virtual object has no collision and has rendering, wherein the related information comprises the type;
and under the condition that the abnormal type indicates that the collision volume and the rendering volume of the first virtual object are not consistent, determining the reporting judgment result according to the collision parameter and the rendering parameter of the first virtual object, wherein the related information comprises the collision parameter and the rendering parameter.
3. The method of claim 2, wherein the determining the reporting determination result according to the position of the first virtual object and the attribute of the first virtual object comprises:
and under the condition that the position of the first virtual object is located in a preset area at the edge of the target game map and the attribute of the first virtual object comprises the attribute of the target object, determining that the reporting judgment result is that the first virtual object does not need to be reported to have collision abnormity.
4. The method of claim 3, wherein when the position of the first virtual object is located in a preset area at an edge of the target game map and the attribute of the first virtual object includes an attribute of the target object, determining that the reporting of the judgment result is that it is not necessary to report that the first virtual object is in an abnormal collision condition includes:
and under the condition that the position of the first virtual object is located in a preset area at the edge of the target game map and the attribute of the first virtual object comprises an air wall attribute, determining that the reporting judgment result is that the first virtual object is not required to be reported to have abnormal collision, wherein the target object attribute comprises the air wall attribute.
5. The method of claim 2, wherein the determining the reporting determination result according to the type of the first virtual object comprises:
and under the condition that the type of the first virtual object is the type which does not need to be collided, determining that the reporting judgment result is that the first virtual object does not need to be reported and is in collision abnormity.
6. The method of claim 5, wherein the determining the reported determination result according to the type of the first virtual object comprises:
and under the condition that the type of the first virtual object is a type in a preset white list, determining that the reporting judgment result is that the first virtual object is not required to be reported and collision abnormity occurs, wherein the white list comprises one or at least two preset collision-free types.
7. The method of claim 2, wherein determining the reported determination result according to the collision parameter and the rendering parameter of the first virtual object comprises:
acquiring the central position of the first virtual object, which is collided by the second virtual object, and the central position of the first virtual object rendered;
and under the condition that the deviation value between the center position of the collision and the center position of the rendering is larger than or equal to a first preset threshold value, determining to report that the first virtual object has abnormal collision.
8. The method of claim 7, further comprising:
calculating the rendered volume and the collision volume if an offset value between the center position of the collision and the center position of the rendering is less than a predetermined threshold;
and under the condition that the difference value between the rendering volume and the collision volume is larger than or equal to a second preset threshold value, determining to report that the first virtual object has collision abnormity.
9. The method according to any one of claims 1 to 8, wherein the determining the type of the first virtual object having the collision anomaly comprises:
acquiring component parameters of the first virtual object, wherein the component parameters are used for rendering a rendering phenomenon of the first virtual object;
determining that the abnormal type of the first virtual object collision is no collision and rendering under the condition that the collision attribute parameters do not exist in the component parameters but the first virtual object has rendering phenomena in the target game;
determining whether the abnormal type of the first virtual object collision is collision or rendering under the condition that the collision attribute parameters exist in the component parameters but the first virtual object does not have a rendering phenomenon in the target game;
and determining the exception type of the first virtual object collision exception to be rendering volume inconsistency and collision volume inconsistency under the condition that the collision attribute parameter exists in the component parameters but the rendering volume of the first virtual object does not coincide with the collision attribute parameter in the target game.
10. An apparatus for collision detection, comprising:
the game control device comprises a first determining unit, a second determining unit and a control unit, wherein the first determining unit is used for determining the abnormal type of the first virtual object with abnormal collision when the first virtual object in the target game map collides with a second virtual object and the first virtual object in the collision is abnormal collision;
a second determining unit, configured to determine a reporting determination result according to the exception type and the related information of the first virtual object, where the reporting determination result is used to indicate whether it is necessary to report that the first virtual object has a collision exception;
a reporting unit, configured to report first abnormal information when the reporting determination result indicates that the first virtual object needs to be reported that the first virtual object is in a collision abnormality, where the first abnormal information is used to indicate that the first virtual object is in a collision abnormality;
and a report canceling unit, configured to cancel reporting of the first abnormal information when the report determination result indicates that the first virtual object is not required to be reported, where the first virtual object is in a collision abnormality.
11. The apparatus of claim 10, wherein the second determining unit comprises at least one of:
a first determining module, configured to determine the reporting determination result according to a position of the first virtual object and an attribute of the first virtual object when the abnormal type indicates that the first virtual object is rendered in a collision or not, where the relevant information includes the position and the attribute;
a second determining module, configured to determine the reporting determination result according to a type of the first virtual object when the abnormal type indicates that the first virtual object has no collision or rendering, where the related information includes the type;
a third determining module, configured to determine the report determination result according to a collision parameter and a rendering parameter of the first virtual object when the abnormality type indicates that the collision volume and the rendering volume of the first virtual object are not consistent, where the relevant information includes the collision parameter and the rendering parameter.
12. The apparatus of claim 11, wherein the first determining module comprises:
and the first determining submodule is used for determining that the reporting judgment result is that the first virtual object does not need to be reported that the first virtual object has collision abnormity under the condition that the position of the first virtual object is located in a preset area at the edge of the target game map and the attribute of the first virtual object comprises the attribute of the target object.
13. The apparatus of claim 12, wherein the first determining submodule is further configured to: and under the condition that the position of the first virtual object is located in a preset area at the edge of the target game map and the attribute of the first virtual object comprises an air wall attribute, determining that the reporting judgment result is that the first virtual object is not required to be reported to have abnormal collision, wherein the target object attribute comprises the air wall attribute.
14. A computer-readable storage medium comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 9.
15. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 9 by means of the computer program.
CN202010238667.0A 2020-03-30 2020-03-30 Collision detection method and device, storage medium and electronic device Active CN111437606B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010238667.0A CN111437606B (en) 2020-03-30 2020-03-30 Collision detection method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010238667.0A CN111437606B (en) 2020-03-30 2020-03-30 Collision detection method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN111437606A true CN111437606A (en) 2020-07-24
CN111437606B CN111437606B (en) 2021-08-06

Family

ID=71649323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010238667.0A Active CN111437606B (en) 2020-03-30 2020-03-30 Collision detection method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN111437606B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111760279A (en) * 2020-07-31 2020-10-13 腾讯科技(深圳)有限公司 Picture display method, device, terminal and storage medium
CN111773723A (en) * 2020-07-29 2020-10-16 网易(杭州)网络有限公司 Collision detection method and device
CN112619143A (en) * 2020-12-23 2021-04-09 上海米哈游天命科技有限公司 Role identification display method, device, equipment and storage medium
CN112657199A (en) * 2020-12-23 2021-04-16 上海米哈游天命科技有限公司 Role arm length calculation method, device, equipment and storage medium
CN116036603A (en) * 2023-01-28 2023-05-02 腾讯科技(深圳)有限公司 Data processing method, device, computer and readable storage medium
CN117244243A (en) * 2023-11-20 2023-12-19 腾讯科技(深圳)有限公司 Virtual object processing method, device, equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850726A (en) * 2014-02-13 2015-08-19 博雅网络游戏开发(深圳)有限公司 Abnormal data detection method and system based on bump game
CN105354872A (en) * 2015-11-04 2016-02-24 深圳墨麟科技股份有限公司 Rendering engine, implementation method and producing tools for 3D web game
CN107019913A (en) * 2017-04-27 2017-08-08 腾讯科技(深圳)有限公司 Object generation method and device
CN107357563A (en) * 2017-05-25 2017-11-17 腾讯科技(深圳)有限公司 Object moving method and device and storage medium, electronic installation
CN107622524A (en) * 2017-09-29 2018-01-23 百度在线网络技术(北京)有限公司 Display methods and display device for mobile terminal
CN107930123A (en) * 2017-12-15 2018-04-20 玖万里网络科技(上海)有限公司 Collision system and its information processing method
CN108579085A (en) * 2018-03-12 2018-09-28 腾讯科技(深圳)有限公司 Treating method and apparatus, storage medium and the electronic device of barrier collision
JP6496954B2 (en) * 2017-10-16 2019-04-10 豊丸産業株式会社 Game machine
CN109621421A (en) * 2018-12-24 2019-04-16 网易(杭州)网络有限公司 Information processing method and device
CN109710357A (en) * 2018-12-24 2019-05-03 曙光信息产业(北京)有限公司 A kind of method and system based on Unity3D engine implementation server operation
CN109933319A (en) * 2019-01-24 2019-06-25 福建天晴数码有限公司 A kind of method and terminal that the object based on Unity avoids collision

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850726A (en) * 2014-02-13 2015-08-19 博雅网络游戏开发(深圳)有限公司 Abnormal data detection method and system based on bump game
CN105354872A (en) * 2015-11-04 2016-02-24 深圳墨麟科技股份有限公司 Rendering engine, implementation method and producing tools for 3D web game
CN107019913A (en) * 2017-04-27 2017-08-08 腾讯科技(深圳)有限公司 Object generation method and device
CN107357563A (en) * 2017-05-25 2017-11-17 腾讯科技(深圳)有限公司 Object moving method and device and storage medium, electronic installation
CN107622524A (en) * 2017-09-29 2018-01-23 百度在线网络技术(北京)有限公司 Display methods and display device for mobile terminal
JP6496954B2 (en) * 2017-10-16 2019-04-10 豊丸産業株式会社 Game machine
CN107930123A (en) * 2017-12-15 2018-04-20 玖万里网络科技(上海)有限公司 Collision system and its information processing method
CN108579085A (en) * 2018-03-12 2018-09-28 腾讯科技(深圳)有限公司 Treating method and apparatus, storage medium and the electronic device of barrier collision
CN109621421A (en) * 2018-12-24 2019-04-16 网易(杭州)网络有限公司 Information processing method and device
CN109710357A (en) * 2018-12-24 2019-05-03 曙光信息产业(北京)有限公司 A kind of method and system based on Unity3D engine implementation server operation
CN109933319A (en) * 2019-01-24 2019-06-25 福建天晴数码有限公司 A kind of method and terminal that the object based on Unity avoids collision

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JISS318: ""Unity3D在WebPlayer模式下的异常上报探索", 《HTTPS://BLOG.CSDN.NET/JJISS318/ARTICLE/DETAILS/7626322》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111773723A (en) * 2020-07-29 2020-10-16 网易(杭州)网络有限公司 Collision detection method and device
CN111760279A (en) * 2020-07-31 2020-10-13 腾讯科技(深圳)有限公司 Picture display method, device, terminal and storage medium
CN111760279B (en) * 2020-07-31 2023-08-25 腾讯科技(深圳)有限公司 Picture display method, device, terminal and storage medium
CN112619143A (en) * 2020-12-23 2021-04-09 上海米哈游天命科技有限公司 Role identification display method, device, equipment and storage medium
CN112657199A (en) * 2020-12-23 2021-04-16 上海米哈游天命科技有限公司 Role arm length calculation method, device, equipment and storage medium
CN112619143B (en) * 2020-12-23 2023-03-21 上海米哈游天命科技有限公司 Role identification display method, device, equipment and storage medium
CN116036603A (en) * 2023-01-28 2023-05-02 腾讯科技(深圳)有限公司 Data processing method, device, computer and readable storage medium
CN116036603B (en) * 2023-01-28 2023-05-30 腾讯科技(深圳)有限公司 Data processing method, device, computer and readable storage medium
CN117244243A (en) * 2023-11-20 2023-12-19 腾讯科技(深圳)有限公司 Virtual object processing method, device, equipment and storage medium
CN117244243B (en) * 2023-11-20 2024-02-02 腾讯科技(深圳)有限公司 Virtual object processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111437606B (en) 2021-08-06

Similar Documents

Publication Publication Date Title
CN111437606B (en) Collision detection method and device, storage medium and electronic device
CN108815849B (en) Method and device for displaying articles in virtual scene and storage medium
CN111339997B (en) Fire point area determination method and device, storage medium and electronic device
CN111111194B (en) Virtual object control method, device, storage medium and electronic device
CN110704914B (en) Sight line analysis method, device, computer equipment and storage medium
CN111737800A (en) Primitive selection method and device and electronic equipment
CN111001158A (en) Attribute parameter updating method and device, storage medium and electronic device
CN108123389A (en) A kind of substation safety measure arrangement system
CN111813282A (en) Data form display method and device
CN111265856A (en) Control method and device of virtual operation object, storage medium and electronic device
CN109885089B (en) Control method of unmanned aerial vehicle and related device
CN111465045B (en) AP monitoring method, monitoring server and monitoring system
CN115035483B (en) Indoor fire safety hidden danger monitoring method and system, electronic equipment and storage medium
CN110160579A (en) A kind of method and relevant apparatus of object detection
CN112052566A (en) Intelligent cable analog simulation method and system
CN114138253A (en) Test feedback method, device, equipment and storage medium of graphical programming code
CN113117334A (en) Method for determining visible area of target point and related device
CN113595797A (en) Alarm information processing method and device, electronic equipment and storage medium
CN113542036B (en) Demonstration method, electron and demonstration device for network attack behaviors
CN113268057A (en) Obstacle avoidance processing method and device for unmanned vehicle
CN112037451A (en) Early warning method and device
CN116739353B (en) Construction method and device of security facility 3D model and storage medium
CN110881189B (en) Monitoring method and terminal for distribution state of base station
CN111481110A (en) Anti-theft alarm method and device and sweeping robot
CN113406726B (en) Oil and gas station lightning accident early warning method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant