CN113609446A - Motion parameter determination method and device - Google Patents

Motion parameter determination method and device Download PDF

Info

Publication number
CN113609446A
CN113609446A CN202110872203.XA CN202110872203A CN113609446A CN 113609446 A CN113609446 A CN 113609446A CN 202110872203 A CN202110872203 A CN 202110872203A CN 113609446 A CN113609446 A CN 113609446A
Authority
CN
China
Prior art keywords
target
composite function
function
parameter value
time
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.)
Pending
Application number
CN202110872203.XA
Other languages
Chinese (zh)
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.)
Beijing Guoren Interactive Technology Co ltd
Original Assignee
Beijing Guoren Interactive 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 Beijing Guoren Interactive Technology Co ltd filed Critical Beijing Guoren Interactive Technology Co ltd
Priority to CN202110872203.XA priority Critical patent/CN113609446A/en
Publication of CN113609446A publication Critical patent/CN113609446A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/15Correlation function computation including computation of convolution operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computational Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Algebra (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a motion parameter determination method and a motion parameter determination device, wherein the method comprises the following steps: and when the target time is obtained, a composite function corresponding to the target time can be determined from the pre-constructed composite function set to be used as the target composite function, and then a target motion parameter value corresponding to the target time can be determined according to the target time and the target composite function. Therefore, the target motion parameter value corresponding to the target time is determined in a function calculation mode, the process of frame-by-frame iteration is omitted, time consumption is short, efficiency is high, and the motion parameter determining method can obtain the target motion parameter value corresponding to any time.

Description

Motion parameter determination method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for determining motion parameters.
Background
Currently, there are a large number of games such as a flying disc golf game, a golf game, and the like, which require a motion trajectory of a target object to be shown by a camera or the like. In order to better show the motion trail of the target object, it is usually necessary to know the motion parameters of the target object at various times.
In the prior art, the motion parameter is usually calculated by frame iteration, that is, the motion parameter of the next frame is derived from the motion parameter of the previous frame. However, the frame iteration method has the following disadvantages: firstly, if a motion parameter value at a specified time is to be determined, a specified frame corresponding to the specified time needs to be found first, and then derivation is carried out, so that the process is complicated; second, if the specified time is between two frames, the corresponding motion parameter value cannot be obtained.
Disclosure of Invention
In view of this, the present application provides a motion parameter determining method and device, which are used for determining a target motion parameter value corresponding to a target time, and the technical scheme is as follows:
a method of motion parameter determination, comprising:
acquiring target time;
determining a composite function corresponding to target time from a composite function set constructed in advance aiming at the motion condition of a target object, wherein any composite function in the composite function set comprises an input parameter, a time parameter and a motion parameter, any composite function corresponds to a time period, any composite function can reflect the relation between the time parameter and the motion parameter in the corresponding time period, and the input parameter is a parameter enabling the target object to move according to a set track;
and determining a target motion parameter value corresponding to the target time according to the target time and the target compound function.
Optionally, the motion parameter includes a speed parameter;
a process for constructing a set of complex functions, comprising:
determining a first compound function according to an initial input parameter value, wherein the initial input parameter value is the value of an input parameter set by a user before a target object starts to move;
taking the first composite function as a current composite function, and determining a motion parameter value based on the current composite function and the maximum time of the current composite function in a corresponding time period;
determining the type and input parameter value of the next composite function according to the determined motion parameter value, wherein the time period corresponding to the next composite function is the same as or adjacent to the time period corresponding to the current composite function;
determining a next compound function according to the type of the next compound function and the input parameter value;
and taking the next composite function as the current composite function, and returning to execute the motion parameter value determined based on the current composite function and the maximum time of the time period corresponding to the current composite function until the speed value determined based on the current composite function and the maximum time of the time period corresponding to the current composite function is 0.
Optionally, determining a composite function corresponding to the target time from a composite function set constructed in advance for the motion condition of the target object includes:
and determining a composite function corresponding to the time period containing the target time from the composite function set as the target composite function.
Optionally, determining a target motion parameter value corresponding to the target time according to the target time and the target complex function, includes:
if the number of the target compound functions is one, determining a motion parameter value corresponding to the target time under one target compound function based on the target time and one target compound function, and taking the motion parameter value as a target motion parameter value;
if the number of the target composite functions is multiple, determining a motion parameter value corresponding to the target time under each target composite function based on the target time and each target composite function; and determining a target motion parameter value based on the motion parameter value corresponding to the target time under each target composite function.
Optionally, the motion parameters include, but are not limited to, the following: position, velocity, rotation, normal, velocity, acceleration, angular velocity, and angular acceleration.
Optionally, the motion parameter includes a plurality of parameters, and the target motion parameter value includes a plurality of parameter values;
the motion parameter determination method further comprises the following steps:
and outputting each parameter value contained in the target motion parameter value through an API (application programming interface) corresponding to each parameter.
A motion parameter determination apparatus comprising:
the time acquisition module is used for acquiring target time;
the target function determining module is used for determining a composite function corresponding to target time from a composite function set which is constructed aiming at the motion condition of a target object in advance and used as a target composite function, wherein any composite function in the composite function set comprises an input parameter, a time parameter and a motion parameter, any composite function corresponds to a time period, any composite function can reflect the relation between the time parameter and the motion parameter in the corresponding time period, and the input parameter is a parameter for enabling the target object to move according to a set track;
and the target parameter value determining module is used for determining a target motion parameter value corresponding to the target time according to the target time and the target composite function.
Optionally, the motion parameter includes a speed parameter;
the motion parameter determination device further comprises:
the function set constructing module is used for constructing a composite function set;
a function set building module comprising:
the first function determining module is used for determining a first compound function according to the initial input parameter value, and taking the first compound function as the current compound function, wherein the initial input parameter value is the value of the input parameter set by the user before the target object starts to move;
the motion parameter value determining module is used for determining a motion parameter value based on the current compound function and the maximum time of the current compound function in the corresponding time period;
the type and input parameter value determining module is used for determining the type and input parameter value of the next composite function according to the determined motion parameter value, wherein the time period corresponding to the next composite function is the same as or adjacent to the time period corresponding to the current composite function;
the next function determining module is used for determining a next compound function according to the type and the input parameter value of the next compound function;
and the next function determining module is further configured to take the next composite function as the current composite function, and return to the motion parameter value determining module until the speed value determined by the motion parameter value determining module is 0.
Optionally, the objective function determining module is specifically configured to determine, from the composite function set, a composite function corresponding to a time period including the objective time as the objective composite function.
Optionally, the target parameter value determining module is specifically configured to determine, if there is one target composite function, a motion parameter value corresponding to a target time under the target composite function based on the target time and the target composite function, and use the motion parameter value as the target motion parameter value; and if the number of the target composite functions is multiple, determining a motion parameter value corresponding to the target time under each target composite function based on the target time and each target composite function, and determining a target motion parameter value based on the motion parameter value corresponding to the target time under each target composite function.
According to the technical scheme, the motion parameter determining method provided by the application can construct a composite function set aiming at the motion condition of the target object in advance, when the target time is obtained, a composite function corresponding to the target time can be determined from the pre-constructed composite function set to serve as the target composite function, and then the target motion parameter value corresponding to the target time can be determined according to the target time and the target composite function. Therefore, the target motion parameter value corresponding to the target time is determined in a function calculation mode, the process of frame-by-frame iteration is omitted, time consumption is short, efficiency is high, and the motion parameter determining method can obtain the target motion parameter value corresponding to any time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a motion parameter determination method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a motion parameter determination apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
As described in the background art, in some existing games, a device such as a camera is generally required to play a motion trajectory of a target object, for example, in a flying disc golf game, a camera is generally required to play a motion trajectory of a flying disc, and at this time, a control module in the camera is required to acquire an accurate motion trajectory process quantity, that is, a motion parameter value corresponding to any time.
In view of the problems of the frame iteration method in the prior art, the inventors of the present invention have made extensive studies and have conceived that a composite function set may be constructed for the motion condition of a target object, and when an external device needs to obtain a target motion parameter value corresponding to a target time, the target motion parameter value corresponding to the target time may be determined based on the target time and a target composite function corresponding to the target time in the composite function set, and then the target motion parameter value may be output, so that the external device may obtain the target motion parameter value corresponding to the target time.
Based on the above thought, the embodiment of the present application provides a motion parameter determining method, and the following embodiment provides a detailed description of the motion parameter determining method provided by the present application.
Referring to fig. 1, a schematic flow chart of a method for determining a motion parameter according to an embodiment of the present application is shown, where the method may include:
and step S101, acquiring the target time.
Optionally, the embodiment of the present application may implement an API time interface exposed to the outside, and when the external device needs to obtain the target motion parameter value corresponding to the target time, the target time may be input through the API time interface, so that the target time may be obtained in this step.
Step S102, determining a composite function corresponding to target time from a composite function set constructed aiming at the motion condition of a target object in advance as a target composite function.
Alternatively, the motion of the target object may be specifically the motion trajectory of the target object, and it should be understood by those skilled in the art that the motion trajectory of the target object may be split into one or more complex functions in different physical stages or different calculations in the same physical stage, for example, the flying disc of the flying disc golf may be subjected to the rolling calculation itself when rolling on the ground, and some smooth interpolation numerical calculations, etc., and when processed, may be split into different complex functions. Based on this, the number of complex functions included in the complex function set may be different according to the actual motion trajectory.
Here, any one of the complex functions in the complex function set includes an input parameter, a time parameter, and a motion parameter, and any one of the complex functions corresponds to a time period, and any one of the complex functions can reflect a relationship between the time parameter and the motion parameter in the corresponding time period, for example, the complex function may be an air flight function, a bounce function, a linear interpolation function, an air side spin function, a ground roll smoothing function, or the like.
The input parameter is a parameter for moving the target object according to a set trajectory, and for example, in a flying disc golf game, the input parameter may be a parameter such as a rotation degree or a power; the motion parameter refers to an output of the complex function, and optionally, in this embodiment, the motion parameter includes, but is not limited to, the following parameters: position, velocity, rotation, normal, velocity, acceleration, angular velocity, and angular acceleration.
In this step, a composite function set may be constructed in advance for the motion condition of the target object, and after the target time is obtained, the target composite function corresponding to the target time may be determined from the composite function set.
Because any composite function corresponds to a time period, the target composite function can be determined based on the relation between the time period and the target time. Based on this, in a possible implementation manner, the step of determining the target composite function corresponding to the target time from the composite function set may include: and determining a composite function corresponding to the time period containing the target time from the composite function set as the target composite function.
And S103, determining a target motion parameter value corresponding to the target time according to the target time and the target composite function.
It has been explained in the foregoing that the motion trajectory of the target object may be split into one or more complex functions in different physical stages or different calculations in the same physical stage, and then the target complex function corresponding to the target time may be one or more. For example, a composite function set constructed for the motion trajectory of the target object includes a composite function 1, a composite function 2, a composite function 3, a composite function 4 and a composite function 5, wherein time periods corresponding to the composite function 1 and the composite function 2 are both 0-5 seconds, time periods corresponding to the composite function 3 and the composite function 4 are both 6-12 seconds, and time period corresponding to the composite function 5 is 13-20 seconds, if the target time is 10 seconds, the target composite function is the composite function 3 and the composite function 4, and if the target time is 17 seconds, the target composite function is the composite function 5.
If there is one target composite function corresponding to the target time, the step of determining the target motion parameter value corresponding to the target time according to the target time and the target composite function may include: and determining a motion parameter value corresponding to the target time under the target compound function based on the target time and the target compound function as a target motion parameter value, namely, inputting the target time into the target compound function, and obtaining the output of the target compound function as the target motion parameter value.
If there are multiple target composite functions corresponding to the target time, the step of determining the target motion parameter value corresponding to the target time according to the target time and the target composite function may include:
and step S1031, determining a motion parameter value corresponding to the target time under each target compound function based on the target time and each target compound function.
In this step, the target time may be input into each target composite function, so as to obtain an output of each target composite function, that is, each composite function may output a motion parameter value corresponding to the target time.
Step S1032 determines a target motion parameter value based on the motion parameter value corresponding to the target time under each target complex function.
In this step, a setting operation may be performed on the motion parameter value corresponding to the target time output by each target complex function, and the operation result is the target motion parameter value.
Optionally, the setting operation includes but is not limited to: addition, subtraction, multiplication, division, and a combination of any two or more of addition, subtraction, multiplication, and division. In the embodiment of the present application, which setting operation needs to be specifically selected is determined according to an actual situation.
According to the motion parameter determining method, a composite function set is constructed in advance according to the motion condition of a target object, when the target time is obtained, a composite function corresponding to the target time can be determined from the pre-constructed composite function set to serve as the target composite function, and then the target motion parameter value corresponding to the target time can be determined according to the target time and the target composite function. Therefore, the target motion parameter value corresponding to the target time is determined in a function calculation mode, the process of frame-by-frame iteration is omitted, time consumption is short, efficiency is high, and the motion parameter determining method can obtain the target motion parameter value corresponding to any time.
In an optional embodiment, the motion parameter in step S102 includes a plurality of parameters, and the target motion parameter value determined in step S103 includes a plurality of parameter values, and this embodiment of the present application may further include the following steps (not shown in fig. 1):
and step S104, outputting each parameter value contained in the target motion parameter value through an API (application programming interface) corresponding to each parameter.
In a possible case, in the embodiment of the present application, for each composite function included in the composite function set, a corresponding input interface and an output interface may be implemented, where the implemented input interface and output interface are not exposed to the outside, an input interface corresponding to a composite function includes an input parameter interface and an input time interface, where the input parameter interface is used to input an input parameter into the composite function, the input time interface is used to input the target time obtained in step S101 into the composite function, and an output interface corresponding to a composite function includes output parameter interfaces corresponding to respective parameters included in the motion parameter, where an output parameter interface corresponding to a parameter is used to output a parameter value corresponding to the parameter output by the composite function. For the embodiment of the present application, the target time obtained in step S101 may be input into an input time interface corresponding to the target composite function, and after the target composite function is calculated, the target motion parameter value may be output through an output parameter interface corresponding to the target composite function.
Since the output parameter interface is not exposed to the outside, the target motion parameter value is output through the output parameter interface corresponding to the target complex function, which also means that the target motion parameter value can be obtained inside the embodiment of the application, but the external device cannot obtain the target motion parameter value.
Based on this, in an optional embodiment, the embodiment of the present application may further implement a pair of API interfaces exposed to the outside for each parameter included in the motion parameter, for example, the motion parameter includes a position, a velocity, a rotation, a normal, a velocity, an acceleration, an angular velocity, and an angular acceleration, and then the embodiment of the present application may implement 8 API interfaces exposed to the outside, where one API interface corresponds to one parameter. In this way, when the external device needs to obtain the target motion parameter value corresponding to the target time, the embodiment of the present application may output each parameter value included in the target motion parameter value to the external device through the API interface corresponding to each parameter.
For example, the target motion parameter value may include a position value that may be output to the external device through an API interface corresponding to the position, a velocity value that may be output to the external device through an API interface corresponding to the velocity, …, and an angular acceleration value that may be output to the external device through an API interface corresponding to the angular acceleration.
Optionally, in this embodiment of the application, an obtaining function may be further set for each API interface, and the target motion parameter value may be obtained from the corresponding API interface by calling the obtaining function, for example, a GetPos function is set on the API interface corresponding to the position, and the position value may be obtained from the API interface corresponding to the position by calling the GetPos function.
Optionally, in order to obtain the total time of the target object in the whole motion process, an API interface corresponding to the total time may be further implemented, where a GetTime function is set on the API interface, and the total time may be obtained from the API interface corresponding to the total time by calling the GetTime function.
Of course, other API interfaces, for example, whether the API interface corresponds to the ground, may also be implemented according to the embodiment of the present application, and herein, the embodiment of the present application is not specifically limited.
In an optional embodiment, the steps S101 to S104 may be implemented based on a function management class, where the function management class includes an API interface exposed to the outside and an input interface and an output interface that are not exposed to the outside, and descriptions of each interface may refer to the step S101 and the step S104, and are not repeated herein. The method and the device can construct the composite function set in the function management class, namely register and initialize each composite function in the function management class, and manage the composite function set by the function management class after initialization is completed. When the external device needs to obtain the target motion parameter value corresponding to the target time, the target time can be input into the function management class through the API time interface, the function management class determines the target composite function corresponding to the target time from the composite function set, and calls the determined target composite function to obtain the target motion parameter value corresponding to the target time according to the target time and the target composite function, and then the function management class can output each parameter value included in the target motion parameter value through the API interface corresponding to each parameter, so that the external device can obtain the target motion parameter value corresponding to the target time.
The process of constructing the complex function set provided in the above embodiment of the present application is described below.
Optionally, in this embodiment of the present application, the process of constructing the composite function set may include the following steps S1 to S5:
and step S1, determining a first compound function according to the initial input parameter value, wherein the initial input parameter value is the value of the input parameter set by the user before the target object starts to move.
The user may set an initial input parameter before the target object starts moving so as to start moving the target object after inputting the initial input parameter, and optionally, the user may set the initial input parameter on a UI (user interface) panel.
After the user sets the initial input parameters, the initial input parameters can be obtained in this step. Optionally, the embodiment of the present application may further implement an API interface corresponding to the externally exposed input parameter, so that the application may obtain the initial input parameter set by the user through the API interface corresponding to the input parameter.
In this step, after the initial input parameters are obtained, the first complex function may be determined according to the initial input parameters. Here, the first composite function corresponds to the first physical phase in the motion trajectory of the target object alone, or the first composite function and one or more subsequently determined composite functions together correspond to the first physical phase in the motion trajectory of the target object.
And step S2, taking the first compound function as the current compound function, and determining the motion parameter value based on the current compound function and the maximum time of the current compound function in the corresponding time period.
In this step, the current composite function corresponds to a time period, and the maximum time in the time period may be input into the current composite function to obtain the output of the current composite function as the motion parameter value determined in this step.
For example, if the current complex function is complex function 1, and the time period corresponding to the complex function 1 is 0-5 seconds, 5 may be input into the complex function 1 to obtain the motion parameter value output by the complex function 1.
And step S3, determining the type and input parameter value of the next compound function according to the determined motion parameter value, wherein the time period corresponding to the next compound function is the same as or adjacent to the time period corresponding to the current compound function.
In this step, determining the type of the next complex function according to the determined motion parameter value means: the determined motion parameter value can be used to determine a next motion state of the target object, based on which a type of a next complex function can be determined. For example, assuming that the composite function 1 is an air flight function, the corresponding time period is 0 to 5 seconds, after 5 is input into the composite function 1 to obtain a motion parameter value output by the composite function 1, it is determined whether the target object will be in a bounce state or a rolling state at the next time according to the motion parameter value, if it is determined that the target object will be in the bounce state at the next time, the type of the next composite function is a bounce type, and if it is determined that the target object will be in the rolling state at the next time, the type of the next composite function is a rolling type.
And step S4, determining the next compound function according to the type of the next compound function and the input parameter value.
In this step, the determined next complex function is the initialized next complex function. Specifically, in this step, a function expression of the next complex function may be determined according to the type of the next complex function, and then the input parameter value is input into the function expression, so as to initialize the function expression based on the input parameter value, and obtain the initialized next complex function.
For example, if the type of the next composite function is a bounce type, the next composite function is a bounce function corresponding to the bounce type, and after the bounce function is determined, the bounce function can be initialized based on the input parameter value, so as to obtain an initialized bounce function.
And step S5, taking the next composite function as the current composite function, and returning to execute the motion parameter value determination based on the current composite function and the maximum time of the time period corresponding to the current composite function until the speed value determined based on the current composite function and the maximum time of the time period corresponding to the current composite function is 0.
The determination process of other complex functions included in the complex function set is the same as the above steps S2 to S4, and the detailed description thereof can be referred to the above steps, and will not be repeated herein.
It can be understood that the value of the velocity becomes 0, which means that the target object does not move any more, i.e. no new compound function is generated, and the compound function set is constructed.
The following describes the motion parameter determining apparatus provided in the embodiment of the present application, and the motion parameter determining apparatus described below and the motion parameter determining method described above may be referred to in correspondence with each other.
Referring to fig. 2, a schematic structural diagram of a motion parameter determining apparatus according to an embodiment of the present application is shown, and as shown in fig. 2, the motion parameter determining apparatus may include:
a time obtaining module 201, configured to obtain a target time.
The objective function determining module 202 is configured to determine, from a composite function set constructed in advance for a motion condition of an objective object, a composite function corresponding to an objective time as an objective composite function, where any composite function in the composite function set includes an input parameter, a time parameter, and a motion parameter, and any composite function corresponds to a time period, and any composite function can reflect a relationship between the time parameter and the motion parameter in the corresponding time period, and the input parameter is a parameter for causing the objective object to move according to a set trajectory.
And the target parameter value determining module 203 is configured to determine a target motion parameter value corresponding to the target time according to the target time and the target composite function.
The motion parameter determining device provided by the application can construct a composite function set aiming at the motion condition of a target object in advance, when the target time is obtained, a composite function corresponding to the target time can be determined from the pre-constructed composite function set to serve as the target composite function, and then a target motion parameter value corresponding to the target time can be determined according to the target time and the target composite function. Therefore, the target motion parameter value corresponding to the target time is determined in a function calculation mode, the process of frame-by-frame iteration is omitted, time consumption is short, efficiency is high, and the motion parameter determining device can obtain the target motion parameter value corresponding to any time.
In a possible implementation manner, the motion parameter may include a speed parameter. The motion parameter determination apparatus provided by the present application may further include: and a function set building module.
And the function set constructing module is used for constructing a composite function set.
In a possible implementation manner, the function set building module may include:
and the first function determining module is used for determining a first compound function according to the initial input parameter value, and taking the first compound function as the current compound function, wherein the initial input parameter value is the value of the input parameter set by the user before the target object starts to move.
And the motion parameter value determining module is used for determining the motion parameter value based on the current compound function and the maximum time of the current compound function in the corresponding time period.
And the type and input parameter value determining module is used for determining the type and the input parameter value of the next composite function according to the determined motion parameter value, wherein the time period corresponding to the next composite function is the same as or adjacent to the time period corresponding to the current composite function.
And the next function determining module is used for determining the next compound function according to the type of the next compound function and the input parameter value.
And the next function determining module is further configured to take the next composite function as the current composite function, and return to the motion parameter value determining module until the speed value determined by the motion parameter value determining module is 0.
In a possible implementation manner, the objective function determining module may be specifically configured to determine, from the composite function set, a composite function corresponding to a time period including the objective time as the objective composite function.
In a possible implementation manner, the target parameter value determining module may be specifically configured to determine, if there is one target composite function, a motion parameter value corresponding to a target time under one target composite function based on the target time and the one target composite function, as the target motion parameter value; and if the number of the target composite functions is multiple, determining a motion parameter value corresponding to the target time under each target composite function based on the target time and each target composite function, and determining a target motion parameter value based on the motion parameter value corresponding to the target time under each target composite function.
In one possible implementation, the motion parameters include, but are not limited to, the following parameters: position, velocity, rotation, normal, velocity, acceleration, angular velocity, and angular acceleration.
In a possible implementation manner, the motion parameter includes a plurality of parameters, and the target motion parameter value includes a plurality of parameter values, the motion parameter determining apparatus provided in the present application may further include:
and the parameter value output module is used for outputting each parameter value contained in the target motion parameter value through an API (application programming interface) corresponding to each parameter.
Finally, it is further noted that, herein, relational terms such as, for example, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for motion parameter determination, comprising:
acquiring target time;
determining a composite function corresponding to the target time from a composite function set which is constructed in advance aiming at the motion condition of a target object, wherein any composite function in the composite function set comprises an input parameter, a time parameter and a motion parameter, any composite function corresponds to a time period, any composite function can reflect the relation between the time parameter and the motion parameter in the corresponding time period, and the input parameter is a parameter enabling the target object to move according to a set track;
and determining a target motion parameter value corresponding to the target time according to the target time and the target composite function.
2. The method according to claim 1, wherein the motion parameters include a speed parameter;
a process for constructing said set of complex functions, comprising:
determining a first compound function according to an initial input parameter value, wherein the initial input parameter value is a value of an input parameter set by a user before the target object starts to move;
taking the first composite function as a current composite function, and determining a motion parameter value based on the current composite function and the maximum time of the current composite function in a corresponding time period;
determining the type and input parameter value of a next composite function according to the determined motion parameter value, wherein the time period corresponding to the next composite function is the same as or adjacent to the time period corresponding to the current composite function;
determining the next compound function according to the type of the next compound function and the input parameter value;
and taking the next composite function as the current composite function, and returning to execute the maximum time determination motion parameter value based on the current composite function and the time period corresponding to the current composite function until the speed value determined based on the current composite function and the maximum time in the time period corresponding to the current composite function is 0.
3. The method for determining motion parameters according to claim 1, wherein the determining the composite function corresponding to the target time from the composite function set constructed in advance for the motion situation of the target object comprises:
and determining a composite function corresponding to the time period containing the target time from the composite function set as the target composite function.
4. The method for determining motion parameters according to claim 1, wherein the determining a target motion parameter value corresponding to the target time according to the target time and the target composite function includes:
if the number of the target composite functions is one, determining a motion parameter value corresponding to the target time under the target composite function based on the target time and the target composite function, and taking the motion parameter value as the target motion parameter value;
if the number of the target composite functions is multiple, determining a motion parameter value corresponding to the target time under each target composite function based on the target time and each target composite function; and determining the target motion parameter value based on the motion parameter value corresponding to the target time under each target composite function.
5. The method of claim 1, wherein the motion parameters include, but are not limited to, the following: position, velocity, rotation, normal, velocity, acceleration, angular velocity, and angular acceleration.
6. The athletic parameter determination method of claim 5, wherein the athletic parameter includes a plurality of parameters, the target athletic parameter value includes a plurality of parameter values;
the motion parameter determination method further comprises the following steps:
and outputting each parameter value contained in the target motion parameter value through an API (application programming interface) corresponding to each parameter.
7. An athletic parameter determination device, comprising:
the time acquisition module is used for acquiring target time;
the target function determining module is configured to determine a composite function corresponding to the target time from a composite function set constructed in advance for a motion condition of a target object, where any composite function in the composite function set includes an input parameter, a time parameter, and a motion parameter, and corresponds to a time period, and any composite function can reflect a relationship between the time parameter and the motion parameter in the corresponding time period, and the input parameter is a parameter for causing the target object to move according to a set trajectory;
and the target parameter value determining module is used for determining a target motion parameter value corresponding to the target time according to the target time and the target composite function.
8. The apparatus according to claim 7, wherein the motion parameters include a speed parameter;
the motion parameter determination device further comprises:
the function set constructing module is used for constructing the composite function set;
the function set building module comprises:
the first function determining module is used for determining a first compound function according to an initial input parameter value, and taking the first compound function as a current compound function, wherein the initial input parameter value is a value of an input parameter set by a user before the target object starts to move;
the motion parameter value determining module is used for determining a motion parameter value based on the current compound function and the maximum time of the current compound function in the corresponding time period;
the type and input parameter value determining module is used for determining the type and input parameter value of a next composite function according to the determined motion parameter value, wherein the time period corresponding to the next composite function is the same as or adjacent to the time period corresponding to the current composite function;
the next function determining module is used for determining the next composite function according to the type of the next composite function and the input parameter value;
the next function determining module is further configured to take the next composite function as a current composite function, and return to execute the motion parameter value determining module until the speed value determined by the motion parameter value determining module is 0.
9. The apparatus according to claim 7, wherein the objective function determining module is specifically configured to determine, from the set of composite functions, a composite function corresponding to a time period including the objective time as the objective composite function.
10. The apparatus according to claim 7, wherein the target parameter value determining module is specifically configured to determine, if there is one target composite function, a motion parameter value corresponding to the target time in the one target composite function based on the target time and the one target composite function, as the target motion parameter value; if the number of the target composite functions is multiple, determining a motion parameter value corresponding to the target time under each target composite function based on the target time and each target composite function, and determining the target motion parameter value based on the motion parameter value corresponding to the target time under each target composite function.
CN202110872203.XA 2021-07-30 2021-07-30 Motion parameter determination method and device Pending CN113609446A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110872203.XA CN113609446A (en) 2021-07-30 2021-07-30 Motion parameter determination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110872203.XA CN113609446A (en) 2021-07-30 2021-07-30 Motion parameter determination method and device

Publications (1)

Publication Number Publication Date
CN113609446A true CN113609446A (en) 2021-11-05

Family

ID=78306235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110872203.XA Pending CN113609446A (en) 2021-07-30 2021-07-30 Motion parameter determination method and device

Country Status (1)

Country Link
CN (1) CN113609446A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101966392A (en) * 2009-07-27 2011-02-09 鼎亿数码科技(上海)有限公司 General solution for ball games based on dynamic game handle
CN103745486A (en) * 2014-01-15 2014-04-23 重庆邮电大学 Method for eliminating noise interference by using moving track of object
CN109107161A (en) * 2018-08-17 2019-01-01 深圳市腾讯网络信息技术有限公司 A kind of control method of game object, device, medium and equipment
CN109529317A (en) * 2018-12-19 2019-03-29 广州华多网络科技有限公司 Game interaction method, device and mobile terminal
CN110160541A (en) * 2018-08-06 2019-08-23 腾讯大地通途(北京)科技有限公司 Reconstructing method and device, storage medium, the electronic device of motion profile
CN111904795A (en) * 2020-08-28 2020-11-10 中山大学 Variable impedance control method for rehabilitation robot combined with trajectory planning
CN112206510A (en) * 2020-10-19 2021-01-12 珠海金山网络游戏科技有限公司 Motion control method and device for virtual object
CN112785668A (en) * 2021-01-25 2021-05-11 深圳卡茂动漫文娱科技有限公司 Animation three-dimensional character action track fusion system
CN112904327A (en) * 2021-01-19 2021-06-04 中国人民解放军国防科技大学 Composite micro-motion target parameter estimation method based on frequency modulation fuzzy function

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101966392A (en) * 2009-07-27 2011-02-09 鼎亿数码科技(上海)有限公司 General solution for ball games based on dynamic game handle
CN103745486A (en) * 2014-01-15 2014-04-23 重庆邮电大学 Method for eliminating noise interference by using moving track of object
CN110160541A (en) * 2018-08-06 2019-08-23 腾讯大地通途(北京)科技有限公司 Reconstructing method and device, storage medium, the electronic device of motion profile
CN109107161A (en) * 2018-08-17 2019-01-01 深圳市腾讯网络信息技术有限公司 A kind of control method of game object, device, medium and equipment
CN109529317A (en) * 2018-12-19 2019-03-29 广州华多网络科技有限公司 Game interaction method, device and mobile terminal
CN111904795A (en) * 2020-08-28 2020-11-10 中山大学 Variable impedance control method for rehabilitation robot combined with trajectory planning
CN112206510A (en) * 2020-10-19 2021-01-12 珠海金山网络游戏科技有限公司 Motion control method and device for virtual object
CN112904327A (en) * 2021-01-19 2021-06-04 中国人民解放军国防科技大学 Composite micro-motion target parameter estimation method based on frequency modulation fuzzy function
CN112785668A (en) * 2021-01-25 2021-05-11 深圳卡茂动漫文娱科技有限公司 Animation three-dimensional character action track fusion system

Similar Documents

Publication Publication Date Title
RU2735572C1 (en) Method and device for training super network
US20200391119A1 (en) Systems and methods for hardware-based matchmaking
KR102258278B1 (en) Seasonal reward distribution system
US20220226728A1 (en) Route navigation system within a game application environment
CN111905377B (en) Data processing method, device, equipment and storage medium
CN105812933B (en) The starting method and device of TV
CN106201624A (en) A kind of recommendation method of application program and terminal
CN108289246A (en) Data processing method, device, storage medium and electronic device
US11235249B2 (en) Server-based individual playtime estimation for game activity
CN110505528A (en) The matched method, apparatus of game, equipment and readable storage medium storing program for executing in live streaming
CN110090443A (en) Virtual object control method and device, storage medium and electronic device
CN113609446A (en) Motion parameter determination method and device
CN107314777A (en) The method and mobile terminal of a kind of dynamic setting meter step threshold value
CN113509726B (en) Interaction model training method, device, computer equipment and storage medium
CN108932627A (en) Predictor method, device and the readable storage medium storing program for executing of the depletion rate of CPA advertisement
CN109731338A (en) Artificial intelligence training method and device, storage medium and electronic device in game
EP2535860A2 (en) Method for synchronising character information according to data-type classification
CN107551546A (en) The generation method and device of a kind of game video
US20210146239A1 (en) Server-based game activity suggestions
CN108833780A (en) A kind of image parameter adjusting method, image parameter regulating device and mobile terminal
CN112257259B (en) Method and system for estimating whole-course trajectory of ballistic missile based on improved autonomous multiple models
CN106540449A (en) A kind of game odds computational methods and device
CN113253724A (en) Gait planning method and device, computer readable storage medium and robot
CN114363683A (en) Image display method, image display device, computer equipment and storage medium
CN105786631B (en) A kind of method and device that control detection score is shown

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