CN-116251343-B - Somatosensory game method based on throwing action
Abstract
The invention discloses a somatosensory game method, a device, equipment and a computer readable storage medium based on throwing action, wherein the somatosensory game method based on throwing action comprises the steps of starting the somatosensory game and acquiring acceleration data from bound somatosensory equipment; the method comprises the steps of acquiring a throwing direction and a throwing initial speed according to acceleration data, screening a motion trail matched with the throwing initial speed and the throwing direction from a preset database to serve as a throwing trail, and controlling a throwing object in the somatosensory game to move along the throwing trail according to the throwing trail. The somatosensory game method based on throwing action has the advantages of lower hardware requirement, lower power consumption, simpler operation, more real game experience, suitability for mobile terminals and the like.
Inventors
- GUO CHAO
- YAO YUAN
Assignees
- 深圳十米网络科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20230228
Claims (6)
- 1. A somatosensory game method based on throwing action, comprising: Starting a somatosensory game, and acquiring acceleration data from bound somatosensory equipment; acquiring a throwing direction and a throwing initial speed according to the acceleration data; screening a motion trail matched with the throwing initial speed and the throwing direction from a preset database to serve as a throwing trail; controlling a throwing object in the somatosensory game to move along the throwing track according to the throwing track; the method for acquiring the throwing direction according to the acceleration data comprises the following steps: Noise reduction and filtering are carried out on the acceleration data; Combining the processed triaxial acceleration data into a three-dimensional acceleration vector, and carrying out normalization processing on the three-dimensional acceleration vector; Acquiring the throwing direction according to the normalized three-dimensional acceleration vector; acquiring a throwing initial speed according to the acceleration data, wherein the method comprises the following steps of: determining a throwing time interval according to the acceleration data after noise reduction and smoothing treatment; the rate of change of acceleration in the throwing time interval is calculated, Acquiring two moments when the acceleration change rate reaches the maximum value as target moments; Calculating the throwing initial speed according to the acceleration data of the two target moments; The acceleration change rate is calculated according to a second-order difference, and the expression of the second-order difference is as follows: ; Wherein, the Indicating the acceleration change rate at the i-th time, Indicating the acceleration value at the i-th moment, The acceleration value at the i+1th time is represented, The acceleration value at the i-1 th time is indicated, Representing the sampling time interval.
- 2. The throwing motion based motion sensing game method of claim 1, wherein the acceleration change rate is calculated from acceleration data of an acceleration axis in a front-rear direction.
- 3. A method of motion based somatosensory gaming according to claim 1, wherein the method further comprises: and generating a game result according to the throwing track.
- 4. A motion-based motion-sensing game device for implementing the motion-sensing game method according to any one of claims 1 to 3, the motion-sensing game device comprising: the acquisition module is used for acquiring acceleration data from the bound somatosensory equipment when the somatosensory game is started; the calculation module is used for acquiring a throwing direction and a throwing initial speed according to the acceleration data; the screening module is used for screening a motion trail matched with the throwing initial speed and the throwing direction from a preset database to serve as a throwing trail; and the throwing module is used for controlling the throwing object in the somatosensory game to move along the throwing track according to the throwing track.
- 5. A motion based motion sensing game device comprising a memory, a processor and a motion sensing game program stored on the memory and executable on the processor, the motion sensing game program when executed by the processor implementing the motion sensing game method of any one of claims 1-3.
- 6. A computer readable storage medium, wherein a somatosensory game program based on throwing action is stored on the computer readable storage medium, and when executed by a processor, the somatosensory game program based on throwing action implements the somatosensory game method based on throwing action according to any one of claims 1 to 3.
Description
Somatosensory game method based on throwing action Technical Field The present invention relates to the field of motion sensing game technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for a motion sensing game based on throwing motion. Background Conventional motion sensing game methods typically require the use of multiple sensors to obtain the player's motion data, including acceleration sensors, gyroscopes, and the like. The acceleration sensor is mainly used for measuring linear acceleration of a player, and the gyroscope is used for measuring angular velocity, angular displacement and other data of the player. In the case of motion determination using acceleration and gyroscope data, complex processing and analysis of the data are generally required in order to be able to accurately determine the motion state of the player. For example, in some action games, it is necessary to accurately track movements of the arms, legs, and the like of the player in order to accurately restore the actions of the player in the game. However, because the collection, processing and analysis of the acceleration and gyroscope data are complex, the traditional somatosensory game method often needs to consume a great deal of computing resources and time, which causes that the traditional somatosensory game method has higher requirements on the hardware of the somatosensory equipment and the terminal, and further improves the threshold of the player to experience the somatosensory game. Disclosure of Invention The embodiment of the application provides a somatosensory game method based on throwing actions, which reduces the hardware requirements of somatosensory games. In order to achieve the above object, an embodiment of the present application provides a somatosensory game method based on throwing motion, including: Starting a somatosensory game, and acquiring acceleration data from bound somatosensory equipment; acquiring a throwing direction and a throwing initial speed according to the acceleration data; screening a motion trail matched with the throwing initial speed and the throwing direction from a preset database to serve as a throwing trail; And controlling the throwing object in the somatosensory game to move along the throwing track according to the throwing track. In an embodiment, acquiring the throwing direction according to the acceleration data includes: Noise reduction and filtering are carried out on the acceleration data; Combining the processed triaxial acceleration data into a three-dimensional acceleration vector, and carrying out normalization processing on the three-dimensional acceleration vector; and acquiring the throwing direction according to the normalized three-dimensional acceleration vector. In one embodiment, acquiring a throwing initial velocity from the acceleration data includes: determining a throwing time interval according to the acceleration data after noise reduction and smoothing treatment; and calculating the throwing initial speed according to the acceleration data of the throwing time interval. In one embodiment, calculating the initial throwing speed from acceleration data within the throwing time interval includes: calculating the acceleration change rate in the throwing time interval; acquiring two moments when the acceleration change rate reaches the maximum value as target moments; and calculating the throwing initial speed according to the acceleration data of the two target moments. In one embodiment, the acceleration rate is calculated from a second order difference, the expression of which is as follows: Wherein, the The acceleration change rate at the i-th time, a i the acceleration value at the i-th time, a i+1 the acceleration value at the i+1th time, a i-1 the acceleration value at the i-1 st time, and Δt the sampling time interval. In an embodiment, the acceleration change rate is calculated from acceleration data of an acceleration axis in the front-rear direction. In an embodiment, the method further comprises: and generating a game result according to the throwing track. In order to achieve the above object, an embodiment of the present application further provides a motion sensing game device based on throwing motion, including: the acquisition module is used for acquiring acceleration data from the bound somatosensory equipment when the somatosensory game is started; the calculation module is used for acquiring a throwing direction and a throwing initial speed according to the acceleration data; the screening module is used for screening a motion trail matched with the throwing initial speed and the throwing direction from a preset database to serve as a throwing trail; and the throwing module is used for controlling the throwing object in the somatosensory game to move along the throwing track according to the throwing track. To achieve the above object, an embodiment of the present application furth