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

Hierarchical management method and device based on Box2D

A management method and a technology of a management device, which are applied in special data processing applications, sports accessories, indoor games, etc., and can solve the problems of 2D planes without thickness and wear-through, etc.

Pending Publication Date: 2022-03-01
宝宝巴士股份有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The disadvantage of the above method is that it is limited to a 2D plane without thickness. When the viewing angle of the screen is changed and the object has a certain thickness, there will still be a problem of piercing

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
  • Hierarchical management method and device based on Box2D
  • Hierarchical management method and device based on Box2D

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] Please refer to figure 1 , a hierarchical management method based on Box2D, including steps:

[0028] S1. Send rays through Box2D according to the edge of the selected object, and record the contact point where the rays pass through the rigid body;

[0029] The step S1 is specifically:

[0030] Send rays through Box2D according to the left and right edges of the selected object, and record the contact point where each ray passes through the rigid body.

[0031] S2. Establish a table corresponding to the ray, and store the contact points of the ray into the table;

[0032] The step S2 is specifically:

[0033] Create a table corresponding to each ray, and store the contact points of this ray into the table.

[0034] S3. Traverse the nodes corresponding to all contact points in the table, and perform hierarchical management according to the nodes and the nodes in the hierarchical management table.

[0035] Described step S3 specifically comprises:

[0036] S31. Trav...

Embodiment 2

[0039] The difference between this embodiment and Embodiment 1 is that this embodiment will further illustrate how the above-mentioned Box2D-based hierarchical management method of the present invention is realized in combination with specific application scenarios:

[0040] When an object is touched, rays are sent through Box2D according to the left and right edges of the touched object, and the contact point where each ray passes through the rigid body is recorded.

[0041] The height of the contact point obtained by the ray is used as the basis. The higher the y value of the contact point, the smaller the level, and vice versa;

[0042] Create a table corresponding to each ray, and store the contact points of this ray into the table.

[0043] Specifically, the table corresponding to the left ray is the left table, and the table corresponding to the right ray is the right table;

[0044] Respectively traversing the nodes corresponding to all contact points in the left table...

Embodiment 3

[0048] Please refer to figure 2 , a hierarchical management device 1 based on Box2D, comprising a memory 2, a processor 3 and a computer program stored in the memory 2 and operable on the processor 3, the processor 3 implements the first embodiment when executing the program each step in the .

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 provides a Box2D-based hierarchical management method and device, and the method comprises the steps: transmitting a ray through Box2D according to the edge of a selected object, and recording a contact point where the ray passes through a rigid body; establishing a table corresponding to the ray, and storing the contact point of the ray into the table; and traversing nodes corresponding to all contact points in the table, performing hierarchical management according to the nodes and the nodes in the hierarchical management table, and performing correspondence by using the heights of the contact points acquired by the rays and the index values in the hierarchical management table, thereby ensuring that the problem of penetration does not occur.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a Box2D-based hierarchical management method and device. Background technique [0002] In the process of game production, there will be a lot of problems in the gameplay. The conventional method of level adjustment is to change the anchor point of the node to the bottom, and then adjust the level through the height of the y-axis. The higher the y, the smaller the level. So as to solve the problem of layer wear. [0003] The disadvantage of the above method is that it is limited to a 2D plane without thickness. When the viewing angle of the picture is changed and the object has a certain thickness, there will still be a problem of piercing. Contents of the invention [0004] (1) Technical problems to be solved [0005] In order to solve the above-mentioned problems in the prior art, the present invention provides a Box2D-based hierarchical management method and device, which...

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 Applications(China)
IPC IPC(8): A63F13/60G06F8/30G06F16/901
CPCG06F16/901G06F8/30A63F13/60
Inventor 苏佳顺唐光宇闫乃永卢学明
Owner 宝宝巴士股份有限公司