CN107930124B - Method and device for matching movement between doll models, terminal equipment and storage medium - Google Patents
Method and device for matching movement between doll models, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN107930124B CN107930124B CN201711038133.8A CN201711038133A CN107930124B CN 107930124 B CN107930124 B CN 107930124B CN 201711038133 A CN201711038133 A CN 201711038133A CN 107930124 B CN107930124 B CN 107930124B
- Authority
- CN
- China
- Prior art keywords
- doll
- models
- model
- collision
- doll model
- 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.)
- Active
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
- A63F13/57—Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game
- A63F13/577—Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game using determination of contact between game characters or objects, e.g. to avoid collision between virtual racing cars
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features 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/60—Methods for processing data by generating or executing the game program
- A63F2300/64—Methods for processing data by generating or executing the game program for computing dynamical parameters of game objects, e.g. motion determination or computation of frictional forces for a virtual car
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Processing Or Creating Images (AREA)
- Toys (AREA)
Abstract
The invention discloses a method for matching motion between doll models, which comprises the following steps: monitoring operating events of doll models located in a stack of doll models; wherein each doll model is provided with a rigid body component and a collider component; the rigid body component configured on each doll model is provided with a gravity attribute; detecting a change in a motion state of each doll model according to a rigid body component on each doll model; upon detecting that a first doll model is moved, performing collision detection on the first doll model and the other doll models according to a collider component of the doll model; when the collision between the first doll model and the other doll models is detected, obtaining a collision response result according to the gravity attributes of the doll models. The invention also discloses a device, terminal equipment and a storage medium for matching motion among the doll models, which can simulate the physical collision effect among the doll models and effectively improve the game experience of players.
Description
Technical Field
The invention relates to the technical field of virtualization, in particular to a method and a device for matching motion between doll models, terminal equipment and a storage medium.
Background
A doll catching machine, also called article vending, is an electronic game originated in japan, and is a relatively simple one in a large-sized game machine. In reality, there are many doll dolls in a real machine of a physical doll-grabbing machine, and when one of the doll dolls is moved, the doll may collide with an adjacent doll.
With the development of electronic technology, many mechanically constructed physical games are made into virtual games for players to enjoy. In the current virtual doll machine game, when one doll model is clamped from the doll model stack, the adjacent doll models are still kept in an original state after collision occurs, no collision effect is generated, the sense of reality is lacked, and the game experience of a player is reduced.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide a method, an apparatus, a terminal device and a storage medium for coordinating motions between doll models, which can interact with each other when the doll models are moved and collide with other doll models, so as to simulate a physical collision effect between the doll models, thereby implementing a coordinating motion between the doll models, enhancing a sense of reality of a game, and effectively improving a game experience of a player.
In order to solve the technical problems, the invention provides a method for matching motion between adjacent doll models, which comprises the following steps:
monitoring operating events of doll models located in a stack of doll models; wherein each doll model is provided with a rigid body component and a collider component; the rigid body component configured on each doll model is provided with a gravity attribute;
detecting a change in a motion state of each doll model according to a rigid body component on each doll model;
upon detecting that a first doll model of the stack of doll models is moved, performing collision detection on the first doll model and other doll models adjacent to the first doll based on the collider components of the first doll model and the collider components of the other doll models;
when a collision between the first doll model and the other doll models is detected, obtaining a collision response result according to the gravity attributes of the first doll model and the other doll models.
Preferably, the collision detection of the first doll model and other doll models according to the collider assembly of the first doll model and the collider assemblies of the other doll models adjacent to the first doll specifically comprises:
judging whether the space occupied by the first doll model after being moved is intersected or overlapped with the space occupied by the other doll models or not according to the collider assembly of the first doll model and the collider assemblies of the other doll models;
if the fact that the space occupied by the first doll model after being moved is intersected with the space occupied by the other doll models is detected, it is determined that a collision occurs between the first doll model and the other doll models;
and if the fact that the space occupied by the first doll model after being moved does not intersect with the space occupied by the other doll models is detected, determining that no collision occurs between the first doll model and the other doll models.
Preferably, the obtaining a collision response result according to the gravity attributes of the first doll model and the other doll models specifically includes:
simulating the gravity of the first doll model and the other doll models and the mutual acting force of the first doll model and the other doll models according to the gravity attribute;
and completing motion simulation of the other doll models according to the gravity and the acting force to obtain the change results of the motion states of the other doll models.
Further, the simulating the gravity and the mutual acting force of the first doll model and the other doll models according to the gravity attribute specifically comprises:
when detecting that the first doll model collides with other doll models, calculating a collision point;
and obtaining the gravity of the first doll model and the other doll models and the mutual acting force of the first doll model and the other doll models according to the collision point and the gravity attribute of the doll models.
Preferably, the impactor assembly of each doll model is provided with material properties, and the method for coordinating movement between the doll models further comprises:
and realizing the effect of the first doll model after the first doll model collides with the other doll models according to the material properties.
The invention also provides a device for matching movement between doll models, which comprises:
a monitoring module for monitoring an operational event to a doll model located in a stack of doll models; wherein each doll model is provided with a rigid body component and a collider component; the rigid body component configured on each doll model is provided with a gravity attribute;
the state detection module is used for detecting the change of the motion state of each doll model according to the rigid body component on each doll model;
a collision detection module for, when it is detected that a first doll model of the stack of doll models is moved, performing collision detection on the first doll model and other doll models adjacent to the first doll according to a collider component of the first doll model and collider components of the other doll models;
and the obtaining response module is used for obtaining a collision response result according to the gravity attributes of the first doll model and the other doll models when the collision between the first doll model and the other doll models is detected.
Preferably, the collision detection module specifically includes:
the judging unit is used for judging whether the space occupied by the first doll model after being moved is intersected with or overlapped with the space occupied by the other doll models according to the collider component of the first doll model and the collider components of the other doll models;
a first determining unit, configured to determine that a collision has occurred between the first doll model and the other doll models if it is detected that a space occupied by the first doll model after being moved intersects with a space occupied by the other doll models;
a second determining unit, configured to determine that no collision occurs between the first doll model and the other doll models if it is detected that a space occupied by the first doll model after being moved does not intersect with a space occupied by the other doll models.
Preferably, the obtaining response module specifically includes:
the force simulation unit is used for simulating the gravity of the first doll model and the other doll models and the acting force between the first doll model and the other doll models according to the gravity attribute;
and the motion simulation unit is used for completing motion simulation of the other doll models according to the gravity and the acting force and obtaining the change result of the motion state of the other doll models.
The invention also provides a terminal device comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to realize the method for matching motion between doll models.
The present disclosure also provides a computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform a method for coordinating movement between doll models as described in any of the above.
The invention aims to provide a method, a device, terminal equipment and a storage medium for coordinating movement between doll models, when a first doll model is detected to be moved, if collision between the first doll model and other doll models is detected, a collision response result is obtained according to the gravity attributes of the first doll model and the other doll models, and a physical collision effect between the doll models is simulated, so that the doll models can act, the reality of a game is enhanced, and the game experience of a player can be effectively improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow diagram of a method for coordinating play between doll models according to a first embodiment of the present disclosure.
Fig. 2 is a rigid body component schematic diagram of a method of cooperative motion between doll models according to a first embodiment of the present disclosure.
Fig. 3 is a schematic illustration of a impactor assembly for a method of cooperative movement between doll models according to a first embodiment of the present disclosure.
Fig. 4 is a schematic illustration of an apparatus for cooperative motion between doll models according to a fifth embodiment of the present disclosure.
Detailed Description
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.
Referring to fig. 1, a first embodiment of the present disclosure provides a method for cooperative motion between doll models, comprising the steps of:
s10, monitoring the operation events of the doll models in the doll model pile; wherein each doll model is provided with a rigid body component and a collider component; the rigid body component configured on each doll model is provided with a gravity attribute.
The present invention can be implemented based on a game engine, which is the core component of some well-programmed editable computer game systems or some interactive real-time image applications, and provides game designers with various tools needed to write games, which aims to allow game designers to easily and quickly make game programs without starting from zero, most of which support various operating platforms, such as L inux, Mac OS X, microsoft windows.
In embodiments of the present disclosure, each doll model may be subjected to forces in a virtual doll machine, thereby requiring the addition of rigid body components to each doll model. As an example, a game object of a doll model is built on a game engine, a rigid body component is added on the game object, and the added rigid body component is shown in fig. 2. By setting the gravity of the game object through the attributes on the rigid body component of the game object, the interaction force between the gravity and the game object can be simulated through the game engine.
In embodiments of the present disclosure, in a virtual doll machine, when one of a stack of doll models is clipped up, it may collide with adjacent other doll models, thus requiring the addition of a collider assembly to each doll model first. By way of example, in a game composition object list of a game engine, the game objects of the doll model created above are found, the game objects are selected and the bump assemblies are added, one of which is shown in fig. 3. The striker assembly may be a combination of one or more of the following: cartridge colliders, ball colliders, capsule colliders, grid colliders, wheel colliders.
In an embodiment of the present disclosure, the operational event on the doll models located in the stack of doll models may be a user operating a gripper of the virtual doll machine to grasp one or more doll models in the stack of doll models.
S20, detecting the change of the motion state of each doll model according to the rigid body component on each doll model.
In the embodiment of the invention, the game object added with the rigid body component can receive external force and can receive friction force and gravity as a real object. As an example, assuming a first doll model in a stack of doll models is at rest, when a force is applied to the first doll model with the rigid body added, the first doll model will behave in motion, i.e., from rest to motion, under the action of the force. And the game object without the rigid body component can not receive external force, so that the behavior of an object subjected to the force in the real world, namely the motion under the game engine, can not be simulated. It will be appreciated that a force may be applied to the first doll model by script.
S30, when it is detected that a first doll model in the stack of doll models is moved, performing collision detection on the first doll model and other doll models adjacent to the first doll according to the collider components of the first doll model and the collider components of the other doll models.
In the embodiment of the present invention, in the case where no collision detection is made, the colliding object passes through the counterpart, a penetration phenomenon is generated without triggering a collision. To avoid such problems, collision detection work is necessary.
In the embodiment of the present invention, the rigid bodies to which no striker assembly is added do not have a collision event but pass each other, that is, if two game objects provided with rigid body assemblies collide with each other, the game engine calculates the collision only in the case where the striker assembly is provided on both game objects. As an example, when the first doll model starts moving, i.e., it is detected that the first doll model is moved, the collider of the first doll model is collided with the colliders of the other doll models.
In an embodiment of the present disclosure, the collision detection mode in the rigid body component of each doll model defaults to a discontinuous mode, and the discontinuous collision detection mode is used to detect collisions of the collider of the first doll model with colliders of other doll models, although such a mode may also be applied to collisions of other doll models with the first doll model.
S40, when a collision is detected between the first doll model and the other doll models, obtaining a collision response result according to the gravity attributes of the first doll model and the other doll models.
In the embodiment of the present invention, the collision is generated due to the motion of the game object, and the collision response result is to deal with the change in the motion state of the game object caused by the collision. For example, when a first doll model is clamped to collide with other adjacent doll models, the game engine simulates the gravity of the first doll model and the other doll models and the interaction force between the first doll model and the other doll models according to the gravity attributes of the first doll model and the other doll models, thereby realizing the change of the motion state of the other doll models after the collision.
In summary, an object of the present invention is to provide a method for coordinating motions between doll models, wherein after a first doll model is detected to be moved, if a collision between the first doll model and another doll model is detected, a collision response result is obtained, and a physical collision effect between the doll models is simulated, so that the doll models can act on each other, a coordinating motion between adjacent doll models is realized, a sense of reality of a game is enhanced, and a game experience of a player can be effectively improved.
Second embodiment of the invention:
on the basis of the first embodiment, the method further comprises the following steps:
the collision detection of the first doll model and other doll models according to the collider component of the first doll model and the collider components of the other doll models adjacent to the first doll specifically comprises:
judging whether the space occupied by the first doll model after being moved is intersected or overlapped with the space occupied by the other doll models or not according to the collider assembly of the first doll model and the collider assemblies of the other doll models;
if the fact that the space occupied by the first doll model after being moved is intersected with the space occupied by the other doll models is detected, it is determined that a collision occurs between the first doll model and the other doll models;
and if the fact that the space occupied by the first doll model after being moved does not intersect with the space occupied by the other doll models is detected, determining that no collision occurs between the first doll model and the other doll models.
In the present embodiments, as an example, when a first doll model is moved, the space occupied by the first doll model is changed, and at this time, the first doll model releases the originally occupied space and needs to occupy a new space (hereinafter, referred to as a new space). If the desired new space is already occupied by a second doll model, the first doll model and the second doll model will collide. If the desired new space is not occupied by other doll models, the first doll will not collide with any objects.
It should be noted that, the collision is initiated by a moving rigid body, that is, the doll model in the stationary state does not initiate a collision, so that the detection of a collision of the doll model in the stationary state on other doll models can be avoided.
Third embodiment of the invention:
on the basis of the first embodiment, the method further comprises the following steps:
the obtaining of the collision response result according to the gravity attributes of the first doll model and the other doll models specifically includes:
simulating the gravity of the first doll model and the other doll models and the mutual acting force of the first doll model and the other doll models according to the gravity attribute;
specifically, when a collision between the first doll model and other doll models is detected, a collision point is calculated; obtaining the gravity of the first doll model and the other doll models and the mutual acting force of the first doll model and the other doll models according to the collision point and the gravity attribute of the doll models;
and completing motion simulation of the other doll models according to the gravity and the acting force to obtain the change results of the motion states of the other doll models.
In the embodiment of the present disclosure, as an example, to simulate a collision response effect between two doll models, a collision point at which the two doll models collide may be solved while performing collision detection of the two doll models, and the game engine solves the gravity of the two doll models and an interaction force between the two doll models according to the collision point and the gravity attributes of the two doll models.
In an embodiment of the present disclosure, as an example, the game engine may perform motion simulation of the two doll models by combining the gravity and the interaction force of the two doll models with general motion simulation of a rigid body.
The fourth embodiment of the present invention:
on the basis of the first embodiment, the method further comprises the following steps:
the impactor assembly of each doll model is provided with material properties, and the method for coordinating movement of the doll models further comprises the following steps:
and realizing the effect of the first doll model after the first doll model collides with the other doll models according to the material properties.
In the embodiment of the invention, the material properties are set in the impactor component of each doll model configuration, different physical materials can be selected according to actual conditions, and the physical materials determine how each doll model acts with other doll models, for example, the collision effect between metal and stone is definitely different. More realistic collision effects may also be simulated by changing the physical parameters in the physical material, for example, when a force is applied to a doll model, the doll model is found not to move, which may be due to too little force being applied to the doll model to move the doll model, and then the physical parameters of the material of the doll model impactor assembly may be changed, such as by attempting to set the friction parameter to 0.
Referring to fig. 4, a fifth embodiment of the present disclosure further provides an apparatus for cooperative motion between doll models, comprising:
a monitoring module 10 for monitoring an operational event for a doll model located in a stack of doll models; wherein each doll model is provided with a rigid body component and a collider component; the rigid body component configured on each doll model is provided with a gravity attribute;
a state detection module 20, configured to detect a change in a motion state of each doll model according to a rigid body component on each doll model;
a collision detection module 30 for, when it is detected that a first doll model of the stack of doll models is moved, performing collision detection on the first doll model and other doll models adjacent to the first doll according to the collider components of the first doll model and the collider components of the other doll models;
an obtaining response module 40, configured to, when a collision between the first doll model and the other doll models is detected, obtain a collision response result according to the gravity attributes of the first doll model and the other doll models.
Preferably, the collision detection module 30 specifically includes:
the judging unit is used for judging whether the space occupied by the first doll model after being moved is intersected with or overlapped with the space occupied by the other doll models according to the collider component of the first doll model and the collider components of the other doll models;
a first determining unit, configured to determine that a collision has occurred between the first doll model and the other doll models if it is detected that a space occupied by the first doll model after being moved intersects with a space occupied by the other doll models;
a second determining unit, configured to determine that no collision occurs between the first doll model and the other doll models if it is detected that a space occupied by the first doll model after being moved does not intersect with a space occupied by the other doll models.
Preferably, the response obtaining module 40 specifically includes:
the force simulation unit is used for simulating the gravity of the first doll model and the other doll models and the acting force between the first doll model and the other doll models according to the gravity attribute;
and the motion simulation unit is used for completing motion simulation of the other doll models according to the gravity and the acting force and obtaining the change result of the motion state of the other doll models.
Further, the force simulation unit specifically includes:
a first calculation unit, configured to calculate a collision point when a collision between the first doll model and another doll model is detected;
and the second computing unit is used for obtaining the gravity of the first doll model and the other doll models and the mutual acting force of the first doll model and the other doll models according to the collision point and the gravity attribute of the doll models.
Preferably, the impactor assembly of each doll model is provided with material properties, then the get response module 40 is further configured to:
and realizing the effect of the first doll model after the first doll model collides with the other doll models according to the material properties.
The sixth embodiment of the invention also provides terminal equipment for the cooperative motion between the doll models. The terminal device for cooperative motion between doll models of this embodiment includes: a processor, a display, a memory, and a computer program stored thereon and executable on the processor, such as a program for coordinating movements between doll models. The processor, when executing the computer program, performs the steps in an embodiment of a method for coordinated movement between doll models described above, such as step S10 shown in fig. 1. Alternatively, the processor, when executing the computer program, implements the functions of the units in the above-described device embodiments, such as the listening module 10 shown in fig. 4.
Illustratively, the computer program may be partitioned into one or more modules that are stored in the memory and executed by the processor to implement the invention. The one or more modules may be a series of computer program instruction segments capable of performing certain functions that describe the execution of the computer program in a terminal device that coordinates movement between doll models.
The terminal devices which move in a matched manner among the doll models can be computing devices such as desktop computers, notebooks, palm computers and cloud servers. The terminal equipment for cooperative motion between the doll models may include, but is not limited to, a processor, a memory, and a display. Those skilled in the art will appreciate that the schematic illustrations are merely exemplary of end devices coupled for movement between doll models, and do not constitute a limitation on end devices coupled for movement between doll models, and may include more or fewer components than those shown, or some components in combination, or different components, e.g., end devices coupled for movement between doll models may also include input-output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor is a control center of the terminal equipment cooperating with the doll models, and various interfaces and lines are used to connect various parts of the terminal equipment cooperating with the doll models.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the end device for coordinating movements between doll models by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, a text conversion function, etc.), and the like; the storage data area may store data (such as audio data, text message data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the integrated module of the terminal device for cooperating motion between the doll models can be stored in a computer readable storage medium if the integrated module is realized in the form of a software functional unit and sold or used as an independent product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.
Claims (8)
1. A method of coordinating play between doll patterns, comprising:
monitoring a grabbing event of the doll models positioned in the doll model pile; wherein each doll model is provided with a rigid body component and a collider component; the rigid body component configured on each doll model is provided with a gravity attribute;
detecting a change in a motion state of each doll model according to a rigid body component on each doll model;
upon detecting that a first doll model of the stack of doll models is moved, performing collision detection on the first doll model and other doll models adjacent to the first doll model according to the collision assembly of the first doll model and the collision assemblies of the other doll models;
when a collision between the first doll model and the other doll models is detected, obtaining a collision response result according to the gravity attributes of the first doll model and the other doll models; wherein the collision detection of the first doll model and other doll models according to the collider component of the first doll model and the collider components of other doll models adjacent to the first doll specifically comprises:
judging whether the space occupied by the first doll model after being moved is intersected or overlapped with the space occupied by the other doll models or not according to the collider assembly of the first doll model and the collider assemblies of the other doll models;
if the fact that the space occupied by the first doll model after being moved is intersected with the space occupied by the other doll models is detected, it is determined that a collision occurs between the first doll model and the other doll models;
and if the fact that the space occupied by the first doll model after being moved does not intersect with the space occupied by the other doll models is detected, determining that no collision occurs between the first doll model and the other doll models.
2. The method of claim 1, wherein obtaining collision response results based on the gravitational properties of the first doll model and the other doll models comprises:
simulating the gravity of the first doll model and the other doll models and the mutual acting force of the first doll model and the other doll models according to the gravity attribute;
and completing motion simulation of the other doll models according to the gravity and the acting force to obtain the change results of the motion states of the other doll models.
3. The method of coordinating play between doll models of claim 2, wherein simulating the weight and interaction forces of the first doll model and the other doll models based on the gravitational pull profile comprises:
when detecting that the first doll model collides with other doll models, calculating a collision point;
and obtaining the gravity of the first doll model and the other doll models and the mutual acting force of the first doll model and the other doll models according to the collision point and the gravity attribute of the doll models.
4. The method of claim 1, wherein the impactor assembly of each doll model is provided with material properties, and the method further comprises:
and realizing the effect of the first doll model after the first doll model collides with the other doll models according to the material properties.
5. An apparatus for cooperative movement between doll patterns, comprising:
a monitoring module for monitoring grabbing events of the doll models in the doll model stack; wherein each doll model is provided with a rigid body component and a collider component; the rigid body component configured on each doll model is provided with a gravity attribute;
the state detection module is used for detecting the change of the motion state of each doll model according to the rigid body component on each doll model;
a collision detection module for, when it is detected that a first doll model of the stack of doll models is moved, performing collision detection on the first doll model and other doll models adjacent to the first doll according to a collider component of the first doll model and collider components of the other doll models;
an obtaining response module, configured to, when a collision between the first doll model and the other doll models is detected, obtain a collision response result according to the gravity attributes of the first doll model and the other doll models;
wherein, the collision detection module specifically includes:
the judging unit is used for judging whether the space occupied by the first doll model after being moved is intersected with or overlapped with the space occupied by the other doll models according to the collider component of the first doll model and the collider components of the other doll models;
a first determining unit, configured to determine that a collision has occurred between the first doll model and the other doll models if it is detected that a space occupied by the first doll model after being moved intersects with a space occupied by the other doll models;
a second determining unit, configured to determine that no collision occurs between the first doll model and the other doll models if it is detected that a space occupied by the first doll model after being moved does not intersect with a space occupied by the other doll models.
6. The apparatus for coordinating movement between doll models of claim 5, wherein the means for obtaining a response specifically comprises:
the force simulation unit is used for simulating the gravity of the first doll model and the other doll models and the acting force between the first doll model and the other doll models according to the gravity attribute;
and the motion simulation unit is used for completing motion simulation of the other doll models according to the gravity and the acting force and obtaining the change result of the motion state of the other doll models.
7. A terminal device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor when executing the computer program implementing a method of orchestrating motion between doll models according to any one of claims 1-4.
8. A computer-readable storage medium comprising a stored computer program, wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform a method of orchestrating movement between doll models according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711038133.8A CN107930124B (en) | 2017-10-26 | 2017-10-26 | Method and device for matching movement between doll models, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711038133.8A CN107930124B (en) | 2017-10-26 | 2017-10-26 | Method and device for matching movement between doll models, terminal equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107930124A CN107930124A (en) | 2018-04-20 |
CN107930124B true CN107930124B (en) | 2020-07-10 |
Family
ID=61935837
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711038133.8A Active CN107930124B (en) | 2017-10-26 | 2017-10-26 | Method and device for matching movement between doll models, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107930124B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109350966B (en) * | 2018-10-12 | 2019-12-10 | 深圳仓谷创新软件有限公司 | mobile phone AR doll grabbing system and interaction method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106204697B (en) * | 2016-07-14 | 2019-05-28 | 燕山大学 | A kind of cloth tearing dynamic simulator system |
-
2017
- 2017-10-26 CN CN201711038133.8A patent/CN107930124B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107930124A (en) | 2018-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6125108B1 (en) | Method, apparatus and terminal for simulating sound in a virtual scenario | |
US10282882B2 (en) | Augmented reality simulation continuum | |
CN110292771B (en) | Method, device, equipment and medium for controlling tactile feedback in game | |
JP2016126766A (en) | Virtual sensor in virtual environment | |
CN112915542B (en) | Collision data processing method and device, computer equipment and storage medium | |
US10963365B2 (en) | System for testing command execution latency within an application | |
EP2453414A2 (en) | Virtual world processing device and method | |
US11020658B2 (en) | System for testing command execution latency within a video game | |
CN112233253B (en) | Virtual sphere deformation control method and device, electronic equipment and storage medium | |
CN110694276B (en) | Physical effect simulation method and device, storage medium, processor and electronic device | |
CN107773978B (en) | Method and device for controlling grabbing of prop model, terminal equipment and storage medium | |
US11617953B2 (en) | Virtual object interaction scripts | |
CN107930124B (en) | Method and device for matching movement between doll models, terminal equipment and storage medium | |
CN111714875B (en) | System for testing command execution delay in video game | |
CN110152292B (en) | Display control method and device for jumping characters in game, storage medium and electronic equipment | |
CN107789828B (en) | Decorative rope state adjusting method and device, terminal equipment and storage medium | |
CN111862345B (en) | Information processing method and device, electronic equipment and computer readable storage medium | |
CN107895067A (en) | Realize method, apparatus, terminal device and storage medium that doll model drops | |
CN113041616A (en) | Method and device for controlling jumping display in game, electronic equipment and storage medium | |
Anagnostopoulos et al. | An industrial simulator utilizing a gaming platform | |
Drudis Mola | Joc 3D basat en Unity estil Tower Defense | |
Ding et al. | Numerical Calculation and Optimization Algorithm Based on Unity Physics Engine | |
CN117643727A (en) | Plug-in data identification method and device, storage medium and electronic equipment | |
JP2024076923A (en) | Program, method, and system | |
CN113476840A (en) | Special effect processing method, device, equipment and storage medium in game |
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 |