Unlock instant, AI-driven research and patent intelligence for your innovation.

A collision detection method and device

A technology for collision detection and position information, applied in the electronic field, can solve the problems of insufficient accuracy, manual re-mounting, and heavy mounting workload, and achieve the effect of ensuring accuracy.

Active Publication Date: 2021-11-09
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This solution is easy to implement and the calculation rules are relatively simple, but it has two disadvantages: first, each object needs to mount several graphics, and since the object action frame is an irregular graphics, these tasks can only be mounted manually ; When there are many objects, the workload of mounting is relatively large, and these mounted graphics also need to be manually remounted when the object is modified later
The second is that the method of mounting graphics cannot guarantee the absolute accuracy of collision detection. Some places that are not mounted to regular graphics may become fish that slip through the net, resulting in insufficient accuracy.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A collision detection method and device
  • A collision detection method and device
  • A collision detection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In the embodiment of the present invention, in a fighting game, it is necessary to judge whether two characters hit each other during the fighting process. It is not enough to only judge whether the images of the characters intersect and overlap, because the images are rectangular, and the characters only occupy a part of the image and The character is an irregular shape, most of the transparent pixels around the character, these transparent pixels cannot participate in the collision detection, otherwise it will trigger the logic of the collision of the two characters, but in fact the user does not seem to be in contact with the two characters , so it is necessary to exclude the surrounding transparent pixels for collision detection.

[0033] Among them, collision detection refers to: during the fighting process of two or more objects in a fighting game, it is necessary to judge whether the attack action of an object hits the opponent. This judgment process is collision ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a collision detection method and device. The method includes: judging whether an object in the current frame has an attack action; if the object in the current frame has an attack action, determining at least two objects associated with the attack action Identification information of the at least two objects; determining the position information of the contour points of the at least two objects from preset association information according to the identification information of the at least two objects; determining the positions of the at least two objects in the current scene respectively Information; according to the position information of the at least two objects in the current scene and the position information of the contour points of the at least two objects to judge whether the attack action hits, and obtain a judgment result; determine the judgment result as The attack result of the attack action.

Description

technical field [0001] The invention relates to electronic technology, in particular to a collision detection method and device. Background technique [0002] Fighting game (Fight Technology Game, FTG) is a kind of action game. This type of game has obvious characteristics of action games and is also an important branch of action games. The picture is usually that players are divided into two or more camps to fight each other, using fighting skills to defeat opponents to win. This type of game is usually strongly required to set delicate characters and moves to achieve the principle of fair competition. The sparring process (fighting process) is an important part of fighting games. [0003] At present, in two-dimensional (2D) fighting games, collision detection is an important judgment process during the running of the game program. In the fighting game, when two or more objects are fighting, it is necessary to judge whether the attack action of a certain object is Hitting...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06T13/80
CPCG06T13/80G06T2213/12
Inventor 吴庆扬
Owner TENCENT TECH (SHENZHEN) CO LTD