Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and terminal for restricting object movement

An object and terminal technology, applied in the field of information visualization, can solve the problems of poor code reusability and lack of generality, and achieve the effect of improving reusability

Active Publication Date: 2022-06-07
FUJIAN TQ DIGITAL
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, the movement of plane area-limited objects in Unity is usually implemented by writing fixed-algorithm codes, but due to the particularity of the area-limited areas for some specific objects, it is not possible to use the originally written fixed-algorithm codes for special objects. Therefore, it can only be realized by rewriting the algorithm, resulting in poor code reusability, and the realization of restricting the movement of objects is not universal

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 method and terminal for restricting object movement
  • A method and terminal for restricting object movement
  • A method and terminal for restricting object movement

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0068] Please refer to figure 1 and Figure 3 to Figure 6 , a method of restricting the movement of objects, including:

[0069] S1. Create a restricted area, preset the offset value of object movement, and calculate the overlapping area between the object and the restricted area after the object moves according to the offset value in an unrestricted state;

[0070] Wherein, the creation of the restricted area includes:

[0071] Create a restricted area corresponding to the moving plane type of the object according to the moving plane type of the object, the coordinate minimum point and the coordinate maximum point of the restricted area;

[0072] Specifically, the specific steps for creating a restricted area are as follows:

[0073] (1) define a self-defined class AreaInfo, described AreaInfo is used to store the information of restricted area, including coordinate minimum point, coordinate maximum point, actual restricted area minimum point and actual restricted area max...

Embodiment 2

[0100] Please refer to figure 2 , a terminal 1 for restricting the movement of objects, comprising a memory 2, a processor 3 and a computer program stored in the memory 2 and running on the processor 3, the processor 3 implements the first embodiment when executing the computer program steps in .

[0101] To sum up, the present invention provides a method and terminal for restricting the movement of an object, by creating a restricted area, presetting the offset value of the object movement, and calculating the movement of the object according to the offset value in an unrestricted state The overlapping area with the restricted area, specifically: when the object moves to the position in the next frame in the unrestricted state passes through the restricted area or is located in the restricted area, calculate the The overlapping area with the restricted area after moving according to the offset value in the unrestricted state, wherein the overlapping area of ​​the restricted...

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 present invention provides a method and a terminal for restricting the movement of an object, by creating a restricted area, preset the offset value of the object's movement, and calculate the distance between the object and the restricted area after moving according to the offset value in an unrestricted state The overlapping area of ​​the object, determine the actual offset value of the object according to the position of the object and the overlapping area; avoid the trouble of restricting the movement of the object by manually rewriting the code, thus providing a general solution for restricting the movement of the object , improving code reusability.

Description

technical field [0001] The present invention relates to the technical field of information visualization, and in particular, to a method and a terminal for restricting the movement of objects. Background technique [0002] At present, the movement of objects in the plane area restriction in Unity is usually realized by writing the code of the fixed algorithm, but due to the particularity of the area restriction for some specific objects, the original code of the fixed algorithm cannot be used for special objects. Therefore, it can only be implemented by rewriting the algorithm, resulting in poor code reusability, and the realization of restricting the movement of objects is not universal. SUMMARY OF THE INVENTION [0003] The technical problem to be solved by the present invention is to provide a method and a terminal for restricting the movement of an object, so as to realize the universality of restricting the movement of the object. [0004] In order to solve the above...

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): G06F8/38G06F8/36
Inventor 刘德建陈宇翔林琛
Owner FUJIAN TQ DIGITAL
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products