CN112843669B - Method and system for simulating physical gyro movement - Google Patents

Method and system for simulating physical gyro movement Download PDF

Info

Publication number
CN112843669B
CN112843669B CN202110121276.5A CN202110121276A CN112843669B CN 112843669 B CN112843669 B CN 112843669B CN 202110121276 A CN202110121276 A CN 202110121276A CN 112843669 B CN112843669 B CN 112843669B
Authority
CN
China
Prior art keywords
acceleration
virtual
tangential
gyroscope
radial
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
Application number
CN202110121276.5A
Other languages
Chinese (zh)
Other versions
CN112843669A (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.)
Hangzhou Electronic Soul Network Technology Co Ltd
Original Assignee
Hangzhou Electronic Soul Network Technology 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 Hangzhou Electronic Soul Network Technology Co Ltd filed Critical Hangzhou Electronic Soul Network Technology Co Ltd
Priority to CN202110121276.5A priority Critical patent/CN112843669B/en
Publication of CN112843669A publication Critical patent/CN112843669A/en
Application granted granted Critical
Publication of CN112843669B publication Critical patent/CN112843669B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • 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/57Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game
    • A63F13/573Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game using trajectories of game objects, e.g. of a golf ball according to the point of impact
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/003Navigation within 3D models or images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality
    • 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/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/105Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals using inertial sensors, e.g. accelerometers, gyroscopes
    • 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
    • A63F2300/65Methods for processing data by generating or executing the game program for computing the condition of a game character
    • 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
    • A63F2300/66Methods for processing data by generating or executing the game program for rendering three dimensional images
    • 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/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8082Virtual reality

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application relates to a method and a system for simulating physical gyro movement, wherein the method for simulating physical gyro movement comprises the following steps: generating a virtual field based on the resource information rendering, and acquiring a first position of the virtual gyroscope in the virtual field; generating tangential acceleration according to a first attribute parameter set of the virtual gyroscope, generating radial acceleration according to a second attribute parameter set of the virtual gyroscope, generating an acceleration vector according to the radial acceleration and the tangential acceleration, determining a second position of the virtual gyroscope in the virtual field based on the acceleration vector, and controlling the virtual gyroscope to move from the first position to the second position. According to the method and the device for simulating the motion state of the virtual gyroscope, the problem that the motion state of the virtual gyroscope cannot be accurately simulated in the related art is solved, and accuracy of motion state simulation of the virtual gyroscope is improved.

Description

Method and system for simulating physical gyro movement
Technical Field
The application relates to the technical field of computer software, in particular to a method and a system for simulating entity gyro movement.
Background
With the rapid development of mobile computer technology and the improvement of living standard, games are increasingly entering the life of the masses. Because of the popularity of gyroscopic toys and related cartoon works, there is a high interest in gyroscopic related products by young people, and along with this, a batch of gyroscopic related games has also emerged.
In the related art, the process of gyro rotation and movement in a virtual scene is simulated by a simple and naive two-dimensional or three-dimensional animation, and the movement path is usually preset according to a certain strategy. However, as the requirement of users on game systems is continuously increased, the method of only controlling the gyro to move according to a preset path and then presenting the movement state of the gyro through a simple two-dimensional or three-dimensional animation is not realistic enough, so that the movement state of the virtual gyro cannot be accurately simulated.
At present, no effective solution is proposed for the problem that the motion state of a virtual gyroscope cannot be accurately simulated in the related art.
Disclosure of Invention
The embodiment of the application provides a method, a device, a system, computer equipment and a computer readable storage medium for simulating the movement of a virtual gyroscope, which at least solve the problem that the movement state of the virtual gyroscope cannot be accurately simulated in the related art.
In a first aspect, an embodiment of the present application provides a method for simulating physical gyro movement, where the method includes:
generating a virtual field based on resource information rendering, and acquiring a first position of a virtual gyroscope in the virtual field;
generating tangential acceleration according to a first attribute parameter set of the virtual gyroscope, wherein the first attribute parameter set comprises: the method comprises the steps of a first preset parameter, a gyro friction force, a virtual field friction force and a virtual field inclination angle;
generating radial acceleration according to a second attribute parameter set of the virtual gyroscope, wherein the second attribute parameter set comprises: the second preset parameter, tangential velocity, radius of the first position relative to the virtual field, radial velocity direction, gyroscopic friction, virtual field friction and virtual field inclination angle;
and generating an acceleration vector according to the radial acceleration and the tangential acceleration, determining a second position of the virtual gyroscope in the virtual field based on the acceleration vector, and controlling the virtual gyroscope to move from the first position to the second position.
In some of these embodiments, the generating tangential acceleration from the first set of attribute parameters of the virtual gyroscope includes:
acquiring the current tangential velocity of the virtual gyroscope, and calculating the tangential acceleration a1 according to the following formula under the condition that the tangential velocity is smaller than the preset tangential velocity:
a1=C1×μ1×μ2×gcosθ
wherein C1 is a first preset parameter, mu 1 is the friction coefficient of the gyroscope, mu 2 is the friction coefficient of the virtual field, g is the gravity proportionality coefficient, and θ is the included angle between the virtual field and the standard horizontal plane.
In some of these embodiments, the method comprises:
and under the condition that the tangential velocity is larger than the preset tangential velocity, generating an updated tangential acceleration a1 according to the opposite number of the specific value of the tangential acceleration a1, and generating a tangential acceleration vector according to the updated tangential acceleration a 1.
In some of these embodiments, the preset tangential velocity V1 is calculated according to the following formula:
wherein K1 is a power parameter, ω is a rotational speed, mobility is a power, and m is a gyro mass.
In some of these embodiments, the generating radial acceleration from the second set of attribute parameters of the virtual gyroscope includes:
the acceleration a2 due to the component force of gravity in the radial direction, the acceleration a3 due to the centrifugal force, and the radial acceleration a4 due to the frictional force are calculated according to the following formulas:
a2=-g×sinθ;
wherein g is a gravity proportionality coefficient, θ is an included angle between the virtual ground and a standard horizontal plane, C is a second preset parameter, v is a radial speed, R is a distance from the current position of the virtual gyroscope to the central position of the virtual ground,is the direction of radial velocity, μ1 and μ2 are the coefficient of friction of the gyroscope and the coefficient of friction of the virtual field, respectively;
the radial acceleration is collectively generated based on the acceleration a2 generated by the component force in the radial direction, the acceleration a3 generated by the centrifugal force, and the radial acceleration a4 generated by the frictional force.
In some of these embodiments, generating an acceleration vector from the radial acceleration and tangential acceleration comprises:
generating a radial acceleration vector by multiplying the radial acceleration by a radial unit vector, and generating a tangential acceleration vector by multiplying the tangential acceleration by a tangential unit vector;
and combining the radial acceleration vector and the tangential acceleration vector to generate the acceleration vector.
In some of these embodiments, the controlling the virtual top to move from the first position to the second position based on the acceleration vector comprises:
acquiring an initial velocity vector of the virtual gyroscope at a first position, and generating a velocity vector through vector calculation based on the acceleration vector and the initial velocity vector;
and determining a second position on the first position in combination with the speed vector, and controlling the virtual gyroscope to move from the first position to the second position.
In a second aspect, an embodiment of the present application provides a system for simulating movement of a physical gyroscope, where the system includes: the device comprises a rendering module, an acquisition module and a processing module;
the rendering module is used for generating a virtual field based on the resource information rendering;
the acquisition module is used for acquiring a first position, a first attribute parameter set and a second attribute parameter set of a virtual gyroscope in the virtual field, wherein the first attribute parameter set comprises: the first preset parameters, the gyro friction force, the virtual field friction force and the virtual field inclination angle, and the second attribute parameter set comprises: the second preset parameter, tangential velocity, radius of the first position relative to the virtual field, radial velocity direction, gyroscopic friction, virtual field friction and virtual field inclination angle;
the processing module is used for generating tangential acceleration according to the first attribute parameter set of the virtual gyroscope; generating radial acceleration according to the second attribute parameter set of the virtual gyroscope; and generating an acceleration vector according to the radial acceleration and tangential acceleration; and determining a second position based on the acceleration vector and controlling the virtual top to move from the first position to the second position.
In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements a method for simulating physical gyro movement according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of simulating physical gyro movements as described in the first aspect above.
Compared with the related art, the method for simulating the movement of the entity gyroscope provided by the embodiment of the application calculates tangential acceleration and radial acceleration according to the first attribute parameter set and the second attribute parameter set, generates tangential acceleration vectors according to the tangential acceleration and tangential unit vectors, generates acceleration vectors according to the radial acceleration and radial unit vectors, determines a speed vector through the acceleration, adds the speed vector to a first position to determine a second position, and finally controls the virtual gyroscope to move from the first position to the second position. The method solves the problem that the motion state of the virtual gyroscope cannot be accurately simulated in the related art, and improves the accuracy of the motion state simulation of the virtual gyroscope.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a schematic view of an application environment of a method for simulating physical gyro movement according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of simulating physical gyro movement according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a virtual venue simulating a physical gyro movement method according to an embodiment of the present application;
FIG. 4 is a block diagram of a simulated entity gyro mobile system according to an embodiment of the present application;
fig. 5 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described and illustrated below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden on the person of ordinary skill in the art based on the embodiments provided herein, are intended to be within the scope of the present application.
It is apparent that the drawings in the following description are only some examples or embodiments of the present application, and it is possible for those of ordinary skill in the art to apply the present application to other similar situations according to these drawings without inventive effort. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the embodiments described herein can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar terms herein do not denote a limitation of quantity, but rather denote the singular or plural. The terms "comprising," "including," "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein refers to two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
The method for simulating entity gyro movement provided by the application can be applied to an application environment shown in fig. 1, fig. 1 is a schematic diagram of an application environment of a method for simulating entity gyro movement according to an embodiment of the application, as shown in fig. 1, a terminal 10 communicates with a server 11 through a network, the terminal 10 uploads data generated by a game client to the server 11, and meanwhile, the server 11 acquires data from other terminals 10; the terminal 10 has installed thereon an application for running the analog entity gyro movement of the present embodiment. The user may send some fixed operation instructions to the virtual top in the scene map through external devices such as a touch screen, physical keys, and a keyboard and mouse on the terminal 10. For this operation instruction, the terminal 10 can make corresponding information processing steps such as calculating the acceleration of the virtual gyro, determining the position to which the virtual gyro will move based on the acceleration. Through the embodiment, the moving path of the virtual gyroscope can be simulated more truly. Further, the terminal 10 may be a smart phone, a tablet computer, a desktop computer, a notebook computer, and a smart wearable device; the server 11 may be a stand-alone server or a server cluster composed of a plurality of servers.
The application provides a method for simulating movement of a physical gyro, and fig. 2 is a flowchart of a method for simulating movement of a physical gyro according to an embodiment of the application, as shown in fig. 2, where the flowchart includes the following steps:
step S201, generating a virtual field based on resource information rendering, and acquiring a first position of a virtual gyroscope in the virtual field; wherein, the resource information is information describing characteristics of a virtual field, the virtual field is a virtual environment for gyro movement, fig. 3 is a schematic diagram of a virtual field simulating a physical gyro movement method according to an embodiment of the present application, as shown in fig. 3, the terminal 10 controls the virtual gyro to move in the virtual field according to an operation instruction; wherein the virtual field can be round, square, irregularly shaped, etc. Further, in the case that the virtual field is circular, the position of the gyro may be represented by a combination of a radius and an angle, for example, at a certain moment, the gyro stays at a first position, a distance from the first position to the central position of the virtual field is obtained to be 4, an included angle between the angle and a horizontal line is 30 °, and then the first position may be represented by (R4, θ30 °;
step S202, tangential acceleration is generated according to a first attribute parameter set of the virtual gyroscope, wherein the first attribute parameter set comprises: the method comprises the steps of a first preset parameter, a gyro friction force, a virtual field friction force and a virtual field inclination angle; tangential acceleration can be calculated by the following equation 1:
a1 =c1×μ1×μ2×gcos θ; equation 1
It should be noted that, the first preset parameter C1 is a parameter customized by a person skilled in the art according to actual practical requirements, μ1 is a friction coefficient of the gyroscope, μ2 is a friction parameter of the field, where in a standard field, the field friction parameter is 0. In this embodiment, the virtual field may be set as a scene with an inclination angle, and accordingly, when calculating the tangential acceleration, the inclination angle of the virtual field needs to be considered, that is, the cosine value of the inclination angle θ needs to be added to the above calculation formula in the process of calculation;
step S203, generating radial acceleration according to a second attribute parameter set of the virtual gyroscope, where the second attribute parameter set includes: the second preset parameter, tangential velocity, radius of the first position relative to the virtual field, radial velocity direction, gyro friction, virtual field friction and virtual field inclination angle, further, radial acceleration can be divided into acceleration generated by component force of gravity along radial direction, acceleration generated by centrifugal force and acceleration generated by friction, and the three acceleration components are calculated respectively and then combined to generate an actual value of the radial acceleration;
step S204, generating an acceleration vector according to the radial acceleration and the tangential acceleration, determining a second position of the virtual gyroscope in the virtual field based on the acceleration vector, and controlling the virtual gyroscope to move from the first position to the second position, wherein generating the acceleration vector according to the radial acceleration and the tangential acceleration comprises: firstly, generating a tangential acceleration vector according to the sum-directional acceleration and the tangential unit vector product, then generating a radial acceleration vector according to the radial acceleration and the radial unit vector product, and finally synthesizing the tangential acceleration and the radial acceleration vector to obtain the acceleration vector. Further, adding the velocity vector to the original velocity vector to obtain an updated velocity vector; further, for a virtual field, a second location is determined at the first location in combination with the updated velocity vector.
Through steps S201 to S204, compared with the method of controlling the gyro to move according to the preset path and then presenting the gyro moving state through a simple two-dimensional or three-dimensional animation in the related art, the present embodiment divides the speed of the virtual gyro into a tangential speed and a radial speed, determines the second position to be moved based on the tangential speed and the radial speed, and finally controls the virtual gyro to move from the first position to the second position. The method and the device solve the problem that the motion state of the virtual gyroscope cannot be accurately simulated in the related technology, and improve the accuracy of simulating the motion state of the virtual gyroscope and the use experience of a player.
In some of these embodiments, generating tangential acceleration from the first set of attribute parameters of the virtual gyroscope includes: obtaining the current tangential velocity of the virtual gyroscope, and calculating tangential acceleration according to the following formula 2 under the condition that the tangential velocity is smaller than the preset tangential velocity:
a1 =c1×μ1×μ2×gcos θ; equation 2
Wherein C1 is a first preset parameter, mu 1 is the friction coefficient of the gyroscope, mu 2 is the friction coefficient of the virtual field, g is the gravity proportionality coefficient, and θ is the included angle between the virtual field and the standard horizontal plane. It should be noted that, when the tangential velocity is greater than the preset tangential velocity, an updated tangential acceleration a1 is generated according to the opposite number of the specific value of the tangential acceleration a1, and a tangential acceleration vector is generated according to the updated tangential acceleration a 1.
In some of these embodiments, the preset tangential velocity V1 is calculated according to the following equation 3:
wherein K1 is a power parameter, ω is a rotation speed, mobility is a power, and m is a gyro mass, and optionally, the rotation speed ω and the power mobility are adjusted to adjust the gyro speed, thereby realizing the configuration of different types of gyroscopes in the game system.
In some of these embodiments, generating radial acceleration from the second set of attribute parameters of the virtual gyroscope includes: the acceleration a2 due to the component force of gravity in the radial direction, the acceleration a3 due to the centrifugal force, and the radial acceleration a4 due to the frictional force are calculated according to the following equations 4, 5, and 6, respectively:
a2 = -g×sin θ; equation 4
Wherein g is the gravity proportionality coefficient, θ is the included angle between the virtual ground and the standard horizontal plane, C is a second preset parameter, v is the radial velocity, R is the distance from the current position of the virtual gyroscope to the center position of the virtual ground,is the direction of radial velocity, μ1 and μ2 are the coefficient of friction of the gyroscope and the coefficient of friction of the virtual field, respectively; the radial acceleration is generated by a combination of the acceleration a2 generated by the component force in the radial direction, the acceleration a3 generated by the centrifugal force, and the radial acceleration a4 generated by the friction force.
In some of these embodiments, controlling the movement of the virtual gyroscope from the first position to the second position based on the acceleration vector comprises: acquiring an initial velocity vector of the virtual gyroscope at a first position, and calculating a velocity vector according to the vector based on the acceleration vector and the initial velocity vector; and determining a second position at the first position by combining the velocity vector, and further controlling the virtual gyroscope to move from the first position to the second position. In the embodiment, the second position to which the virtual gyroscope subsequently moves is determined through the simulated speed, and when the gyroscope continuously moves, the simulation of the real moving path of the virtual gyroscope is realized, and in an actual game system, the virtual gyroscope can present the moving path which is close to the real gyroscope after the method provided by the embodiment is applied, so that the scene of a player in the battle of the gyroscope is truly restored.
It should be noted that the steps illustrated in the above-described flow or flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment also provides a system for simulating the movement of the entity gyroscope, which is used for realizing the embodiment and the preferred implementation manner, and the description is omitted. As used below, the terms "module," "unit," "sub-unit," and the like may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
FIG. 4 is a block diagram of a simulated entity gyro mobile system according to an embodiment of the present application, as shown in FIG. 4, comprising: a rendering module 41, an acquisition module 42, and a processing module 43;
the rendering module 41 is used for generating a virtual field based on the resource information rendering;
the obtaining module 42 is configured to obtain a first position of the virtual gyroscope in the virtual field, a first attribute parameter set, and a second attribute parameter set, where the first attribute parameter set includes: the first preset parameter, the gyro friction force, the virtual field friction force and the virtual field inclination angle, and the second attribute parameter set comprises: the second preset parameter, tangential velocity, radius of the first position relative to the virtual field, radial velocity direction, gyroscopic friction, virtual field friction and virtual field inclination angle;
the processing module 43 is configured to generate tangential acceleration according to a first attribute parameter set of the virtual gyroscope; generating radial acceleration according to the second attribute parameter set of the virtual gyroscope; generating an acceleration vector according to the radial acceleration and the tangential acceleration; and determining a second position based on the acceleration vector and controlling the virtual gyroscope to move from the first position to the second position.
In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of simulating physical gyro movements. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
In one embodiment, fig. 5 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present application, as shown in fig. 5, and an electronic device, which may be a server, may be provided, and an internal structure diagram thereof may be shown in fig. 5. The electronic device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the electronic device is for storing data. The network interface of the electronic device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of simulating physical gyro movements.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the electronic device to which the present application is applied, and that a particular electronic device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be understood by those skilled in the art that the technical features of the above embodiments may be combined in any manner, and for brevity, all of the possible combinations of the technical features of the above embodiments are not described, however, they should be considered as being within the scope of the description provided herein, as long as there is no contradiction between the combinations of the technical features.
The foregoing examples represent only a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method of simulating physical gyro movement, the method comprising:
generating a virtual field based on resource information rendering, and acquiring a first position of a virtual gyroscope in the virtual field;
generating tangential acceleration according to a first attribute parameter set of the virtual gyroscope, wherein the first attribute parameter set comprises: the method comprises the steps of a first preset parameter, a gyro friction force, a virtual field friction force and a virtual field inclination angle;
generating radial acceleration according to a second attribute parameter set of the virtual gyroscope, wherein the second attribute parameter set comprises: the second preset parameter, tangential velocity, radius of the first position relative to the virtual field, radial velocity direction, gyroscopic friction, virtual field friction and virtual field inclination angle;
and generating an acceleration vector according to the radial acceleration and the tangential acceleration, determining a second position of the virtual gyroscope in the virtual field based on the acceleration vector, and controlling the virtual gyroscope to move from the first position to the second position.
2. The method of claim 1, wherein generating tangential acceleration from the first set of attribute parameters of the virtual gyroscope comprises:
acquiring the current tangential velocity of the virtual gyroscope, and calculating the tangential acceleration a1 according to the following formula under the condition that the tangential velocity is smaller than the preset tangential velocity:
a1=C1×μ1×μ2×gcosθ
wherein C1 is a first preset parameter, mu 1 is the friction coefficient of the gyroscope, mu 2 is the friction coefficient of the virtual field, g is the gravity proportionality coefficient, and θ is the included angle between the virtual field and the standard horizontal plane.
3. A method as claimed in claim 2, characterized in that the method comprises:
and under the condition that the tangential velocity is larger than the preset tangential velocity, generating an updated tangential acceleration a1 according to the opposite number of the specific value of the tangential acceleration a1, and generating a tangential acceleration vector according to the updated tangential acceleration a 1.
4. A method according to claim 2 or 3, characterized in that the preset tangential velocity V1 is calculated according to the following formula:
wherein K1 is a power parameter, ω is a rotational speed, mobility is a power, and m is a gyro mass.
5. The method of claim 1, wherein generating radial acceleration from the second set of attribute parameters of the virtual gyroscope comprises:
the acceleration a2 due to the component force of gravity in the radial direction, the acceleration a3 due to the centrifugal force, and the radial acceleration a4 due to the frictional force are calculated according to the following formulas:
a2=-g×sinθ;
wherein g is a gravity proportionality coefficient, θ is an included angle between the virtual ground and a standard horizontal plane, C is a second preset parameter, v is a radial speed, R is a distance from the current position of the virtual gyroscope to the central position of the virtual ground,is the direction of radial velocity, μ1 and μ2 are the coefficient of friction of the gyroscope and the coefficient of friction of the virtual field, respectively;
the radial acceleration is generated based on the acceleration a2 generated by the component force in the radial direction, the acceleration a3 generated by the centrifugal force, and the radial acceleration a4 generated by the friction force.
6. The method of claim 1, wherein generating an acceleration vector from the radial acceleration and tangential acceleration comprises:
generating a radial acceleration vector by multiplying the radial acceleration by a radial unit vector, and generating a tangential acceleration vector by multiplying the tangential acceleration by a tangential unit vector;
and combining the radial acceleration vector and the tangential acceleration vector to generate the acceleration vector.
7. The method of claim 1, wherein controlling the virtual top to move from a first position to a second position based on the acceleration vector comprises:
acquiring an initial velocity vector of the virtual gyroscope at a first position, and generating a velocity vector through vector calculation based on the acceleration vector and the initial velocity vector;
and determining a second position on the first position in combination with the speed vector, and controlling the virtual gyroscope to move from the first position to the second position.
8. A system for simulating physical gyro movement, the system comprising: the device comprises a rendering module, an acquisition module and a processing module;
the rendering module is used for generating a virtual field based on the resource information rendering;
the acquisition module is used for acquiring a first position, a first attribute parameter set and a second attribute parameter set of a virtual gyroscope in the virtual field, wherein the first attribute parameter set comprises: the first preset parameters, the gyro friction force, the virtual field friction force and the virtual field inclination angle, and the second attribute parameter set comprises: the second preset parameter, tangential velocity, radius of the first position relative to the virtual field, radial velocity direction, gyroscopic friction, virtual field friction and virtual field inclination angle;
the processing module is used for generating tangential acceleration according to the first attribute parameter set of the virtual gyroscope; generating radial acceleration according to the second attribute parameter set of the virtual gyroscope; and generating an acceleration vector according to the radial acceleration and tangential acceleration; and determining a second position based on the acceleration vector and controlling the virtual top to move from the first position to the second position.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements a method of simulating physical gyro movements according to any of claims 1 to 7 when executing the computer program.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a method of simulating physical gyro movements according to any one of claims 1 to 7.
CN202110121276.5A 2021-01-28 2021-01-28 Method and system for simulating physical gyro movement Active CN112843669B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110121276.5A CN112843669B (en) 2021-01-28 2021-01-28 Method and system for simulating physical gyro movement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110121276.5A CN112843669B (en) 2021-01-28 2021-01-28 Method and system for simulating physical gyro movement

Publications (2)

Publication Number Publication Date
CN112843669A CN112843669A (en) 2021-05-28
CN112843669B true CN112843669B (en) 2024-02-06

Family

ID=75987811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110121276.5A Active CN112843669B (en) 2021-01-28 2021-01-28 Method and system for simulating physical gyro movement

Country Status (1)

Country Link
CN (1) CN112843669B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010175716A (en) * 2009-01-28 2010-08-12 Mitsubishi Heavy Ind Ltd Acceleration simulator and acceleration simulation method
CN103198233A (en) * 2013-04-25 2013-07-10 李援朝 Interactive toy spinning top simulation method and system
CN111318017A (en) * 2020-02-29 2020-06-23 深圳市腾讯信息技术有限公司 Virtual object control method, device, computer readable storage medium and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10737167B2 (en) * 2014-03-12 2020-08-11 Greiner Agencies Inc. Baseball pitch quality determination method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010175716A (en) * 2009-01-28 2010-08-12 Mitsubishi Heavy Ind Ltd Acceleration simulator and acceleration simulation method
CN103198233A (en) * 2013-04-25 2013-07-10 李援朝 Interactive toy spinning top simulation method and system
CN111318017A (en) * 2020-02-29 2020-06-23 深圳市腾讯信息技术有限公司 Virtual object control method, device, computer readable storage medium and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
三维加速度模拟转台系统及控制策略研究;袁立鹏;卢红影;崔淑梅;;机床与液压(07);全文 *

Also Published As

Publication number Publication date
CN112843669A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
US11498003B2 (en) Image rendering method, device, and storage medium
EP3469459B1 (en) Altering properties of rendered objects via control points
US10068134B2 (en) Identification of objects in a scene using gaze tracking techniques
US9144744B2 (en) Locating and orienting device in space
US10878224B2 (en) Method and system for image processing
US20150186571A1 (en) Methods and systems of providing items to customers via a network
US10953331B2 (en) Battlefield online game implementing augmented reality using IoT device
US20200314046A1 (en) Spatial messaging and content sharing method, and system therefor
KR101954010B1 (en) Method and terminal for implementing virtual character turning
TWI758869B (en) Interactive object driving method, apparatus, device, and computer readable storage meidum
US20130096906A1 (en) Methods and Systems for Providing Items to Customers Via a Network
CN114531553B (en) Method, device, electronic equipment and storage medium for generating special effect video
CN112843669B (en) Method and system for simulating physical gyro movement
CN112416218B (en) Virtual card display method and device, computer equipment and storage medium
CN114116081B (en) Interactive dynamic fluid effect processing method and device and electronic equipment
CN114357348B (en) Display method and device and electronic equipment
Chung Metaverse XR Components
CN116196622A (en) Information processing method and device in game
TW201727351A (en) Devices and methods for browsing photosphere photos
CN117270675A (en) User virtual image loading method based on mixed reality remote collaborative environment
KR20240038125A (en) Adaptive rendering of games based on device capabilities
CN115970269A (en) Visual angle adjusting method and device, electronic equipment and storage medium
KR20230054491A (en) Improved targeting of individual objects among multiple objects in multiplayer online video games
AU2012323313A1 (en) Methods and systems of providing items to customers via a network
CN117599414A (en) Control method, control device, storage medium and system for cloud game touch operation

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