Game operation method based on a stick body sense controller

By combining a rod-shaped motion controller with a gyroscope and an accelerometer to detect user movements and generate movement commands for game characters, the problem of insufficient freedom and immersion in traditional game controllers is solved, resulting in a more natural and intuitive gaming experience.

CN117180744BActive Publication Date: 2026-11-24SHENZHEN HULE TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311209777.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-19
Publication Date
2026-11-24
Estimated Expiration
2043-09-19

AI Technical Summary

Technical Problem

Modern game controllers limit players' freedom of movement and immersion, and lack more natural and intuitive ways of user interaction.

Method used

The game operation method adopts a rod-based motion controller, which uses a gyroscope and accelerometer to detect the user's movements, calculates the movement direction and parameters of the game character, and generates corresponding movement commands.

Benefits of technology

It provides a more free, intuitive, and immersive motion-sensing gaming experience, increasing the realism and fun of user interaction with the game scene, and reducing the learning curve.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117180744B_ABST
    Figure CN117180744B_ABST
Patent Text Reader

Abstract

The application discloses a game operation method and device based on a rod somatosensory controller and a computer readable storage medium, and the method comprises the following steps: establishing a communication connection with the rod somatosensory controller; acquiring the posture of the rod somatosensory controller in a preset initial position as a reference posture; when the rod somatosensory controller moves and then becomes stationary, calculating the moving direction of a game character according to the gyroscope data in the movement process of the rod somatosensory controller, and calculating the moving parameters of the game character according to the acceleration data in the movement process of the rod somatosensory controller; generating a moving instruction according to the moving direction and the moving parameters; and controlling the game character to move according to the moving instruction. The game operation method based on the rod somatosensory controller has the advantages of intuitive operation, strong game immersion and high interest.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of game control methods, and in particular to a game operation method, device, and computer-readable storage medium based on a rod-shaped motion-sensing controller. Background Technology

[0002] Modern games increasingly demand more natural and intuitive user interaction methods. Traditional game controllers, such as gamepads or keyboards and mice, while providing reliable control in games, still have limitations, such as restricting the player's freedom of movement and immersion. Therefore, there is an urgent need to provide a game control method with greater freedom and stronger immersive operation, in order to provide a more free, intuitive, and immersive motion-sensing gaming experience. Summary of the Invention

[0003] This application provides a game operation method based on a rod-shaped motion controller, aiming to offer a more free, intuitive, and immersive motion-sensing game experience.

[0004] To achieve the above objectives, embodiments of this application provide a game operation method based on a rod-shaped motion-sensing controller, including:

[0005] Establish a communication connection with the rod-shaped motion controller;

[0006] The posture of the rod-shaped motion controller at a preset initial position is obtained as a reference posture;

[0007] When the rod-shaped motion controller moves and then returns to a stationary position, the direction of movement of the game character is calculated based on the gyroscope data during the movement of the rod-shaped motion controller, and the movement parameters of the game character are calculated based on the acceleration data during the movement of the rod-shaped motion controller.

[0008] Generate a movement command based on the movement direction and the movement parameters;

[0009] Control the game character to move according to the movement commands.

[0010] In one embodiment, the acceleration data includes y-axis acceleration data and z-axis acceleration data;

[0011] The game character's direction of movement is calculated based on gyroscope data from the stick-shaped motion controller during its movement, and the game character's movement parameters are calculated based on acceleration data from the stick-shaped motion controller during its movement, including:

[0012] The pitch angle of the rod-shaped motion controller is calculated based on the gyroscope data;

[0013] If the pitch angle is greater than or equal to the first preset threshold, then the first movement direction of the game character is determined based on the pitch angle;

[0014] The maximum pitch acceleration of the rod-shaped motion controller is calculated based on the y-axis and z-axis acceleration data.

[0015] The movement speed of the game character is calculated based on the maximum pitch acceleration.

[0016] In one embodiment, calculating the movement speed of the game character based on the maximum pitch acceleration includes:

[0017] The maximum pitch acceleration is matched with a preset acceleration-speed table, wherein the speed includes slow walking, normal walking, fast walking, jogging and fast running;

[0018] The game character's movement speed is generated based on the matching results.

[0019] In one embodiment, the acceleration data includes x-axis acceleration;

[0020] The game character's movement direction is calculated based on gyroscope data from the rod-shaped motion controller during its movement, and the game character's movement parameters are calculated based on acceleration data from the rod-shaped motion controller during its movement. This also includes:

[0021] The roll angle of the rod-shaped motion controller is calculated based on the gyroscope data;

[0022] If the roll angle is greater than or equal to the second preset threshold, then the second movement direction of the game character is determined based on the roll angle;

[0023] The roll acceleration of the rod-shaped motion controller at each sampling moment is calculated based on the x-axis acceleration data;

[0024] If any of the aforementioned roll accelerations is greater than a third preset threshold, then a preset lateral distance is obtained as the lateral movement distance of the game character.

[0025] In one embodiment, generating a movement command based on the movement direction and the movement parameters includes:

[0026] If the pitch angle of the rod-shaped motion controller is greater than or equal to the first preset threshold, and the roll angle of the rod-shaped motion controller is less than the second preset threshold, then a forward or backward command is generated based on the first moving direction and the moving speed.

[0027] If the pitch angle of the rod-shaped motion controller is less than the first preset threshold and the roll angle of the rod-shaped motion controller is greater than or equal to the second preset threshold, then a left or right lateral movement command is generated according to the second movement direction and the preset lateral movement distance.

[0028] If the pitch angle of the stick-shaped motion controller is greater than or equal to a first preset threshold, and the roll angle of the stick-shaped motion controller is greater than or equal to a second preset threshold, then the diagonal movement direction is calculated based on the first movement direction and the second movement direction, and the diagonal movement distance is generated based on the movement speed and the lateral movement distance, and a movement command is generated based on the diagonal movement direction and the diagonal movement distance.

[0029] In one embodiment, the game operation method further includes:

[0030] Calculate the acceleration value of the rod-shaped motion controller in the positive z-axis direction at each sampling time based on the acceleration data;

[0031] If any of the acceleration values ​​is greater than the fourth preset threshold, a jump command for the game character is generated.

[0032] In one embodiment, the game operation method further includes:

[0033] The movement trajectory of the rod-shaped motion controller in the horizontal plane is calculated based on the gyroscope data;

[0034] If, based on the movement trajectory, it is determined that the rod-shaped motion controller rotates in an arc around the z-axis from a preset initial position on the horizontal plane, and the rotation angle is greater than a fifth preset threshold, then a steering command is generated based on the rotation direction and the set steering angle. However, when the rod-shaped motion controller returns from the current position to the preset initial position, no movement or steering command is generated.

[0035] In one embodiment, the stick-shaped motion controller is further provided with operation buttons; the game operation method further includes:

[0036] When the operation button is pressed, the character operation type is determined based on the received operation button data, and a corresponding character operation command is generated based on the character operation type.

[0037] To achieve the above objectives, this application also proposes a game operation device based on a stick-shaped motion sensor controller, including a memory, a processor, and a game operation program based on the stick-shaped motion sensor controller stored in the memory and executable on the processor. When the processor executes the game operation program based on the stick-shaped motion sensor controller, it implements the game operation method based on the stick-shaped motion sensor controller as described in any of the above claims.

[0038] To achieve the above objectives, embodiments of this application also propose a computer-readable storage medium storing a game operation program based on a stick-shaped motion sensor controller. When the game operation program based on the stick-shaped motion sensor controller is executed by a processor, it implements the game operation method based on the stick-shaped motion sensor controller as described in any of the above claims.

[0039] This application's game operation method based on a stick-shaped motion sensor can detect the angle change and acceleration value of the stick-shaped motion sensor relative to its initial posture after motion / posture changes by collecting gyroscope data and acceleration data during the movement of the stick-shaped motion sensor. Based on these angle change and acceleration values, movement commands for the game character can be generated, thereby achieving motion control of the game character. Compared with traditional solutions that use controllers such as mice and gamepads to control game characters, the game operation method of this application has the following advantages:

[0040] 1. More natural motion perception: The long, rectangular design of the stick-shaped motion controller makes it easier to match the user's arm and gestures, thus allowing it to perceive the user's movements more naturally. This design helps to provide a more realistic and immersive gaming experience, as users can manipulate virtual objects or characters as if they were using real objects.

[0041] 2. Enhanced realism and immersion: The use of a stick-shaped motion controller can increase the realism and immersion of the user's interaction with the game scene. Users can use the controller to simulate actual operations, such as swinging a sword, throwing objects, or performing sports actions. These experiences are usually more engaging.

[0042] 3. More intuitive operation: For users, using stick-shaped motion controllers for motion control may be more intuitive because they mimic some physical movements in daily life. This reduces the learning curve and makes it easier for more people to participate in games or applications.

[0043] 4. Enhanced Fun: The stick-shaped motion controller can be designed in a special shape according to the game type or personal preference. In this way, while retaining the operating experience, it can enhance the fun in the game process and make users more immersed in it. Attached Figure Description

[0044] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.

[0045] Figure 1 This is a modular structure diagram of an embodiment of the game operation device based on a rod-shaped motion sensor controller according to the present invention;

[0046] Figure 2 This is a flowchart illustrating an embodiment of the game operation method based on a rod-shaped motion-sensing controller according to the present invention.

[0047] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0048] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0049] To better understand the above technical solutions, exemplary embodiments of this disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of this disclosure to those skilled in the art.

[0050] It should be noted that any reference signs placed between parentheses in the claims should not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The quantifier "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention can be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of "first," "second," and "third," etc., does not indicate any order and can be interpreted as names.

[0051] like Figure 1 As shown, Figure 1 This is a schematic diagram of the hardware operating environment server 1 (also called a game operation device based on a rod-shaped motion controller) involved in the embodiment of the present invention.

[0052] The server in this embodiment of the invention includes devices with display functions such as "Internet of Things devices", smart air conditioners, smart lights, smart power supplies with network connectivity, AR / VR devices with network connectivity, smart speakers, autonomous vehicles, PCs, smartphones, tablets, e-book readers, and portable computers.

[0053] like Figure 1 As shown, the server 1 includes: a memory 11, a processor 12, and a network interface 13.

[0054] The memory 11 includes at least one type of readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the server 1, such as the hard disk of the server 1. In other embodiments, the memory 11 can also be an external storage device of the server 1, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the server 1.

[0055] Furthermore, the memory 11 may include both internal storage units of the server 1 and external storage devices. The memory 11 can be used not only to store application software and various types of data installed on the server 1, such as the code of the game operation program 10 based on the stick-shaped motion controller, but also to temporarily store data that has been output or will be output.

[0056] In some embodiments, processor 12 may be a central processing unit (CPU), controller, microcontroller, microprocessor or other data processing chip, used to run program code stored in memory 11 or process data, such as executing game operation program 10 based on stick motion controller.

[0057] The network interface 13 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface), which is typically used to establish communication connections between the server 1 and other electronic devices.

[0058] The network can be the Internet, a cloud network, a Wi-Fi network, a Personal Area Network (PAN), a Local Area Network (LAN), and / or a Metropolitan Area Network (MAN). Various devices in the network environment can be configured to connect to the communication network according to various wired and wireless communication protocols. Examples of such wired and wireless communication protocols may include, but are not limited to, at least one of the following: Transmission Control Protocol and Internet Protocol (TCP / IP), User Datagram Protocol (UDP), Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP), ZigBee, EDGE, IEEE 802.11, Li-Fi, 802.16, IEEE 802.11s, IEEE 802.11g, multi-hop communication, wireless access points (APs), device-to-device communication, cellular communication protocols, and / or Bluetooth communication protocols, or combinations thereof.

[0059] Optionally, the server may also include a user interface, which may include a display, an input unit such as a keyboard, and optionally, a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen, etc. The display may also be referred to as a screen or display unit, used to display information processed in server 1 and to display a visual user interface.

[0060] Figure 1 Only the server 1, which includes components 11-13 and the game operation program 10 based on a stick-shaped motion controller, is shown. Those skilled in the art will understand that... Figure 1 The structure shown does not constitute a limitation on server 1 and may include fewer or more components than shown, or combine certain components, or have different component arrangements.

[0061] In this embodiment, the processor 12 can be used to call the game operation program based on the stick-shaped motion controller stored in the memory 11, and perform the following operations:

[0062] Establish a communication connection with the rod-shaped motion controller;

[0063] The posture of the rod-shaped motion controller at a preset initial position is obtained as a reference posture;

[0064] When the rod-shaped motion controller moves and then returns to a stationary position, the direction of movement of the game character is calculated based on the gyroscope data during the movement of the rod-shaped motion controller, and the movement parameters of the game character are calculated based on the acceleration data during the movement of the rod-shaped motion controller.

[0065] Generate a movement command based on the movement direction and the movement parameters;

[0066] Control the game character to move according to the movement commands.

[0067] In one embodiment, the processor 12 can be used to call a game operation program based on a stick-shaped motion controller stored in the memory 11 and perform the following operations:

[0068] The pitch angle of the rod-shaped motion controller is calculated based on the gyroscope data;

[0069] If the pitch angle is greater than or equal to the first preset threshold, then the first movement direction of the game character is determined based on the pitch angle;

[0070] The maximum pitch acceleration of the rod-shaped motion controller is calculated based on the y-axis and z-axis acceleration data.

[0071] The movement speed of the game character is calculated based on the maximum pitch acceleration.

[0072] In one embodiment, the processor 12 can be used to call a game operation program based on a stick-shaped motion controller stored in the memory 11 and perform the following operations:

[0073] The maximum pitch acceleration is matched with a preset acceleration-speed table, wherein the speed includes slow walking, normal walking, fast walking, jogging and fast running;

[0074] The game character's movement speed is generated based on the matching results.

[0075] In one embodiment, the processor 12 can be used to call a game operation program based on a stick-shaped motion controller stored in the memory 11 and perform the following operations:

[0076] The roll angle of the rod-shaped motion controller is calculated based on the gyroscope data;

[0077] If the roll angle is greater than or equal to the second preset threshold, then the second movement direction of the game character is determined based on the roll angle;

[0078] The roll acceleration of the rod-shaped motion controller at each sampling moment is calculated based on the x-axis acceleration data;

[0079] If any of the aforementioned roll accelerations is greater than a third preset threshold, then a preset lateral distance is obtained as the lateral movement distance of the game character.

[0080] In one embodiment, the processor 12 can be used to call a game operation program based on a stick-shaped motion controller stored in the memory 11 and perform the following operations:

[0081] If the pitch angle of the rod-shaped motion controller is greater than or equal to the first preset threshold, and the roll angle of the rod-shaped motion controller is less than the second preset threshold, then a forward or backward command is generated based on the first moving direction and the moving speed.

[0082] If the pitch angle of the rod-shaped motion controller is less than the first preset threshold and the roll angle of the rod-shaped motion controller is greater than or equal to the second preset threshold, then a left or right lateral movement command is generated according to the second movement direction and the preset lateral movement distance.

[0083] If the pitch angle of the stick-shaped motion controller is greater than or equal to a first preset threshold, and the roll angle of the stick-shaped motion controller is greater than or equal to a second preset threshold, then the diagonal movement direction is calculated based on the first movement direction and the second movement direction, and the diagonal movement distance is generated based on the movement speed and the lateral movement distance, and a movement command is generated based on the diagonal movement direction and the diagonal movement distance.

[0084] In one embodiment, the processor 12 can be used to call a game operation program based on a stick-shaped motion controller stored in the memory 11 and perform the following operations:

[0085] Calculate the acceleration value of the rod-shaped motion controller in the positive z-axis direction at each sampling time based on the acceleration data;

[0086] If any of the acceleration values ​​is greater than the fourth preset threshold, a jump command for the game character is generated.

[0087] In one embodiment, the processor 12 can be used to call a game operation program based on a stick-shaped motion controller stored in the memory 11 and perform the following operations:

[0088] The movement trajectory of the rod-shaped motion controller in the horizontal plane is calculated based on the gyroscope data;

[0089] If, based on the movement trajectory, it is determined that the rod-shaped motion controller rotates in an arc around the z-axis from a preset initial position on the horizontal plane, and the rotation angle is greater than a fifth preset threshold, then a steering command is generated based on the rotation direction and the set steering angle. However, when the rod-shaped motion controller returns from the current position to the preset initial position, no movement or steering command is generated.

[0090] In one embodiment, the processor 12 can be used to call a game operation program based on a stick-shaped motion controller stored in the memory 11 and perform the following operations:

[0091] When the operation button is pressed, the character operation type is determined based on the received operation button data, and a corresponding character operation command is generated based on the character operation type.

[0092] Based on the hardware architecture of the game operation device based on the aforementioned stick-shaped motion sensor controller, an embodiment of the game operation method based on the stick-shaped motion sensor controller of the present invention is proposed. The game operation method based on the stick-shaped motion sensor controller of the present invention aims to provide a more free, intuitive, and immersive motion-sensing game experience.

[0093] Specifically, the rod-shaped motion controller on which the game operation method of the present invention relies includes an accelerometer, a gyroscope sensor, and a wireless communication module.

[0094] Specifically, stick-shaped motion controllers typically have a long, narrow shape, resembling a stick or cane. Their appearance and size can vary depending on the manufacturer and intended use; for example, they can be designed to resemble a magic wand or a magic staff.

[0095] Specifically, an accelerometer is used to acquire the linear acceleration of the stick-shaped motion controller, while a gyroscope sensor is used to acquire the angular velocity or rotational speed of the stick-shaped motion controller. By acquiring these linear accelerations and angular velocities, the motion posture / trajectory of the stick-shaped controller in space can be calculated, and then these motion postures / trajectories can be used to further control the game.

[0096] Furthermore, a wireless communication module is a module used to connect the controller to the gaming terminal, which can be based on wireless communication standards such as Bluetooth, Wi-Fi, 2.4G, or proprietary wireless protocols.

[0097] Reference Figure 2 , Figure 2 This is an embodiment of the game operation method based on a stick-shaped motion sensor of the present invention, which includes the following steps:

[0098] A game operation method based on a rod-shaped motion sensor controller, wherein the rod-shaped motion sensor controller can collect acceleration data and gyroscope data, and transmit them to the game terminal via a wireless communication module, the game operation method includes the following steps:

[0099] S10. Establish a communication connection with the rod-shaped motion controller.

[0100] Specifically, the game runs on a terminal, which refers to a device that can be paired with a stick-shaped motion controller, such as a mobile phone, computer, or tablet.

[0101] Furthermore, before the game can be launched on the device, it needs to establish a communication connection with the stick-shaped motion controller. This connection often relies on a specific communication protocol, such as Bluetooth, Wi-Fi, RF (radio frequency), or other custom protocols. If Bluetooth is used, a scanning operation needs to be performed on the device to discover nearby stick-shaped motion controllers. Once the controller is discovered, the user needs to pair it to establish a secure communication connection.

[0102] After establishing a communication connection, the game terminal periodically requests or receives data from the controller. This data includes acceleration data and gyroscope data, used to detect changes in the controller's physical motion and attitude.

[0103] S20. Obtain the posture of the rod-shaped motion controller at a preset initial position as a reference posture.

[0104] In this context, the preset initial position refers to placing the stick-shaped motion controller in a known, predefined specific location and posture when using it. The purpose of the preset initial position is to provide a known reference point for measuring subsequent movements and posture changes, thereby more accurately tracking the user's gestures and operations.

[0105] Specifically, an initial calibration is typically required before using a stick-shaped motion controller. This can be accomplished by performing specific calibration procedures with the controller in a known posture or position (i.e., a preset initial position). The calibration process usually involves placing the controller in a specific location or on a specific support to ensure that the controller's posture is known.

[0106] When the controller is in calibration mode, built-in sensors, such as gyroscopes and accelerometers, record the controller's current attitude and position data to generate a reference attitude. The controller's attitude is typically represented in three-dimensional space as rotation angles, tilt angles, and orientations. This data can be expressed using Euler angles, quaternions, or other mathematical forms.

[0107] S30. When the rod-shaped motion controller moves and then returns to a stationary position, the movement direction of the game character is calculated based on the gyroscope data during the movement of the rod-shaped motion controller, and the movement parameters of the game character are calculated based on the acceleration data during the movement of the rod-shaped motion controller.

[0108] In this process, when the stick-shaped motion-sensing device is operated by the user and swings or moves, the stick-shaped motion-sensing controller is considered to have undergone a change in motion / attitude. At this time, the controller's sensor system continuously monitors and detects the controller's motion state / attitude changes to detect actions such as rotation, tilting, lifting, and swinging. When the gyroscope data and acceleration data of the stick-shaped motion-sensing controller remain essentially constant, the stick-shaped motion-sensing controller can be considered to be in a stationary state. Specifically, the gyroscope sensor records the controller's angular velocity, i.e., its rotational speed and direction. This data is used to calculate the controller's rotation and direction changes. By continuously measuring the gyroscope data, it is possible to track how the user rotates and moves the controller.

[0109] Accelerometers record the controller's linear motion and acceleration changes. By monitoring acceleration data, user actions such as moving, lifting, or swinging the controller can be tracked.

[0110] Furthermore, based on gyroscope data, the terminal can calculate the controller's rotation direction and angle changes to determine the controller's orientation, i.e., the direction the user is pointing. Based on acceleration data, it can calculate the controller's linear motion and velocity changes to determine the controller's movement parameters, such as movement speed and movement distance.

[0111] Specifically, when the terminal detects a change in the posture of the stick-shaped motion controller, this time point can be marked as the start time of the motion / posture change. When the posture returns to stillness, this time point can be marked as the end time of the action. Using the start and end times of this motion / posture change, the terminal can calculate the time difference between these two points, i.e., the motion time interval of the stick-shaped motion controller from motion to stillness. Then, using the gyroscope and acceleration data within this motion time interval, the required direction of movement and movement parameters can be calculated.

[0112] It's worth noting that filtering techniques can be used to smooth sensor data and reduce errors and interference to improve accuracy. Furthermore, thresholds for motion / attitude changes can be set to determine when a change is considered to have begun or ended. The selection of these thresholds and filtering parameters may vary depending on the characteristics of the device and application.

[0113] S40. Generate a movement command based on the movement direction and the movement parameters.

[0114] Specifically, based on the calculated movement direction and parameters, the terminal or application can generate corresponding movement commands. These commands may include the character's movement direction (such as forward, backward, left sideways, right sideways, etc.) and the character's movement speed.

[0115] S50. Control the game character to move according to the movement command.

[0116] Specifically, the terminal applies the generated movement commands to the game character, thereby controlling the character's movement. This can be character movement within a virtual game world or a motion-sensing game scene, depending on the specific game type.

[0117] It is understood that the game operation method based on a stick-shaped motion sensor in this application, by collecting gyroscope data and acceleration data during the movement of the stick-shaped motion sensor, can detect the angle change value of the stick-shaped motion sensor relative to its initial posture after the change in motion / posture, as well as the acceleration value during the change in motion / posture. Thus, based on these angle change values ​​and acceleration values, movement commands for the game character can be generated, thereby achieving motion control of the game character. Compared with traditional solutions that use controllers such as mice and gamepads to control game characters, the game operation method of this application has the following advantages:

[0118] 1. More natural motion perception: The long, rectangular design of the stick-shaped motion controller makes it easier to match the user's arm and gestures, thus allowing it to perceive the user's movements more naturally. This design helps to provide a more realistic and immersive gaming experience, as users can manipulate virtual objects or characters as if they were using real objects.

[0119] 2. Enhanced realism and immersion: The use of a stick-shaped motion controller can increase the realism and immersion of the user's interaction with the game scene. Users can use the controller to simulate actual operations, such as swinging a sword, throwing objects, or performing sports actions. These experiences are usually more engaging.

[0120] 3. More intuitive operation: For users, using stick-shaped motion controllers for motion control may be more intuitive because they mimic some physical movements in daily life. This reduces the learning curve and makes it easier for more people to participate in games or applications.

[0121] 4. Enhanced Fun: The stick-shaped motion controller can be designed in a special shape according to the game type or personal preference. In this way, while retaining the operating experience, it can enhance the fun in the game process and make users more immersed in it.

[0122] In some embodiments, the acceleration data includes x-axis acceleration data, y-axis acceleration data, and z-axis acceleration data.

[0123] Specifically, the x-axis, y-axis, and z-axis represent different directions in three-dimensional space. Specifically, the x-axis represents the lateral movement of the device or controller, i.e., left-right movement. If the user moves the controller left or right, the x-axis acceleration data will reflect this movement. The y-axis represents the longitudinal movement of the device or controller, i.e., forward-backward movement. If the user moves the controller forward or backward, the y-axis acceleration data will reflect this movement. The z-axis represents the vertical movement of the device or controller, i.e., up-down movement. If the user raises or lowers the controller, the z-axis acceleration data will reflect this movement.

[0124] In some embodiments, the movement direction of the game character is calculated based on gyroscope data during the movement of the stick-shaped motion controller, and the movement parameters of the game character are calculated based on acceleration data during the movement of the stick-shaped motion controller, including the following steps:

[0125] S31. Calculate the pitch angle of the rod-shaped motion controller based on the gyroscope data.

[0126] Here, the pitch angle represents the degree to which the controller tilts forward or backward, that is, the degree to which the user tilts the controller forward or backward. In this embodiment, the pitch angle refers to the attitude of the stick-shaped motion controller when it returns to a stationary position, compared to the pitch angle in the reference attitude.

[0127] Specifically, by integrating the x-axis angular velocity data, the pitch angle of the stick-shaped motion controller can be calculated. The pitch angle can be calculated using the following formula:

[0128] Pitch angle = initial pitch angle + ∫(x-axis angular velocity) dt;

[0129] Here, the initial pitch angle refers to the pitch angle of the rod-shaped controller in the reference attitude. In this embodiment, the initial pitch angle is perpendicular to the horizontal plane or parallel to the vertical direction. ∫ represents the integration operation, and the x-axis angular velocity is the angular velocity around the x-axis in the gyroscope data.

[0130] S32. If the pitch angle is greater than or equal to the first preset threshold, then the first movement direction of the game character is determined based on the pitch angle.

[0131] Specifically, once the pitch angle is calculated, it can be compared with a first preset threshold. If the pitch angle exceeds or equals the first preset threshold, then the game character's first direction of movement can be determined, which is usually associated with the direction of the pitch angle.

[0132] Specifically, when the current posture of the stick-shaped motion controller has a tilt angle greater than a first preset threshold compared to the initial posture (i.e., the stick-shaped motion controller is tilted forward), the first movement direction of the game character is forward. Conversely, when the current posture of the stick-shaped motion controller has an elevation angle greater than the first preset threshold compared to the initial posture (i.e., the stick-shaped motion controller is tilted backward), the first movement direction of the game character is backward.

[0133] S33. Calculate the maximum pitch acceleration of the rod-shaped motion controller based on the y-axis acceleration data and z-axis acceleration data.

[0134] Because tilting the stick-shaped motion controller forward or backward typically causes changes in acceleration in both the forward / backward and vertical directions, determining the acceleration changes during this tilt requires using acceleration data from both the y-axis and z-axis. By combining acceleration data from both the y-axis and z-axis, the tilt speed of the stick-shaped motion controller can be captured more accurately, thus enabling precise control of the game character's movement speed.

[0135] Specifically, the combined acceleration at each sampling moment can be obtained by calculating the square root of the sum of the squares of the y-axis and z-axis accelerations. Then, the magnitude of each combined acceleration during the motion time interval from movement to rest of the rod-shaped motion controller is compared to obtain the maximum pitch acceleration.

[0136] Of course, the design of this application is not limited to this. In other embodiments, the maximum acceleration values ​​on the y-axis and z-axis within the motion time interval can be obtained first, and then the square root of the sum of the squares of the maximum acceleration values ​​on the y-axis and z-axis can be calculated to obtain the required maximum pitch acceleration.

[0137] S34. Calculate the movement speed of the game character based on the maximum pitch acceleration.

[0138] Specifically, based on the maximum pitch acceleration data, the movement speed of the game character can be calculated. This speed is typically related to the pitch angle and the intensity of the acceleration, and can be used to control the movement speed of the game character.

[0139] In some embodiments, calculating the movement speed of the game character based on the maximum pitch acceleration includes the following steps:

[0140] S110. Match the maximum pitch acceleration with a preset acceleration-movement speed table, wherein the movement speed includes slow walking, normal walking, fast walking, jogging and fast running.

[0141] Specifically, the terminal will match the calculated maximum pitch acceleration with a predefined acceleration-velocity table. This table includes different pitch acceleration ranges and corresponding velocity levels, such as slow walking, normal walking, fast walking, jogging, and fast running.

[0142] Specifically, the purpose of matching is to find the acceleration range to which the maximum pitch acceleration belongs, in order to determine which movement speed the game character should adopt.

[0143] S120. Generate the game character's movement speed based on the matching results. Specifically, after determining the acceleration range to which the maximum pitch acceleration belongs based on the matching results, the terminal can generate the game character's movement speed according to this range. For example, if the maximum pitch acceleration matches the "slow walk" range, the game character may move at a slower speed. If the matching result is "fast run", the game character may move at a faster speed.

[0144] Using the methods described above, the terminal can adjust the game character's movement speed based on the intensity of the player's movements on the stick-shaped motion controller, thereby increasing the game's interactivity and immersion. Furthermore, by matching the maximum pitch acceleration with a preset speedometer, the terminal can determine the game character's current movement speed in the most economical and rapid way.

[0145] It is understandable that through the above steps S31 to S34, the movement direction and parameters of the game character in the forward and backward directions can be calculated based on the pitch angle and acceleration of the stick-shaped controller. By setting a first preset threshold, the accuracy of judging the action of the stick-shaped motion sensing device can be improved, the probability of misoperation can be reduced, and the accuracy of operation can be improved.

[0146] In some embodiments, calculating the movement direction of the game character based on gyroscope data during the movement of the stick-shaped motion controller, and calculating the movement parameters of the game character based on acceleration data during the movement of the stick-shaped motion controller, further includes the following steps:

[0147] S35. Calculate the roll angle of the rod-shaped motion controller based on the gyroscope data.

[0148] Here, the roll angle is used to describe the angle of rotation of an object about its own lateral axis. In the technical solution of this application, the roll angle is used to represent the tilt angle of the rod-shaped controller in the left-right direction. That is, it represents whether the rod-shaped controller tilts to the left or to the right.

[0149] Specifically, the terminal can integrate the angular velocity along the y-axis to obtain the roll angle of the rod-shaped controller after movement. The specific integration formula can be found in the integral formula for the pitch angle, which will not be repeated here.

[0150] S36. If the roll angle is greater than or equal to the second preset threshold, then the second movement direction of the game character is determined based on the roll angle.

[0151] Specifically, once the roll angle is calculated, it can be compared with a second preset threshold. If the roll angle exceeds or equals the second preset threshold, then the second direction of movement for the game character can be determined, which is usually associated with the direction of the roll angle.

[0152] Specifically, when the current posture of the stick-shaped motion controller has a left tilt angle greater than a second preset threshold compared to the initial posture (i.e., the stick-shaped motion controller is tilted to the left), the game character's second movement direction is to move to the left. Conversely, when the current posture of the stick-shaped motion controller has a right tilt angle greater than the second preset threshold compared to the initial posture (i.e., the stick-shaped motion controller is tilted to the right), the game character's second movement direction is to move backward.

[0153] S37. Calculate the roll acceleration of the rod-shaped motion controller at each sampling moment based on the x-axis acceleration data.

[0154] Here, sampling time refers to the point in time during which sensor data is acquired or recorded within a certain time interval. Roll acceleration represents the change in acceleration of the rod-shaped motion sensor in the left-right direction.

[0155] Specifically, the terminal can perform differential analysis on the x-axis acceleration data at adjacent sampling times to obtain the roll acceleration at each sampling time.

[0156] S38. If any of the roll accelerations is greater than the third preset threshold, then the preset lateral distance is obtained as the lateral movement distance of the game character.

[0157] The third preset threshold is used to determine whether the user has made a tilting motion of sufficient intensity in the left and right directions to trigger lateral movement.

[0158] Specifically, when any roll acceleration value within the movement time interval exceeds the third preset threshold, the terminal will determine that the user has performed a sufficiently strong tilting action in the left and right directions, and then obtain the preset lateral movement distance as the lateral movement distance of the game character.

[0159] It can be understood that through steps S35 to S38 described above, the movement direction and parameters of the game character in the left and right directions can be calculated based on the roll angle and acceleration of the stick-shaped controller. By setting a second preset threshold, the accuracy of judging the actions of the stick-shaped motion sensing device can be improved, the probability of misoperation can be reduced, and the precision of operation can be enhanced.

[0160] In some embodiments, generating a movement command based on the movement direction and the movement parameters includes:

[0161] S41. If the pitch angle of the rod-shaped motion controller is greater than or equal to the first preset threshold, and the roll angle of the rod-shaped motion controller is less than the second preset threshold, then a forward or backward command is generated according to the first moving direction and the moving speed.

[0162] Specifically, the terminal detects whether the pitch angle of the stick-shaped motion controller reaches a first preset threshold and whether the roll angle is less than a second preset threshold. If the pitch angle meets the conditions and the roll angle does not exceed the threshold, the terminal will generate a forward or backward command based on the first movement direction and movement speed. In this way, the user can control the forward or backward movement of the game character by tilting forward or backward.

[0163] S42. If the pitch angle of the rod-shaped motion controller is less than the first preset threshold and the roll angle of the rod-shaped motion controller is greater than or equal to the second preset threshold, then a left or right lateral movement command is generated according to the second movement direction and the preset lateral movement distance.

[0164] Specifically, if the pitch angle does not reach the first preset threshold, but the roll angle meets the second preset threshold, the terminal will generate a left or right lateral movement command based on the second movement direction and a preset lateral movement distance. In this way, the user can control the lateral movement of the game character by tilting left or right.

[0165] S43. If the pitch angle of the rod-shaped motion controller is greater than or equal to the first preset threshold, and the roll angle of the rod-shaped motion controller is greater than or equal to the second preset threshold, then the diagonal movement direction is calculated based on the first movement direction and the second movement direction, and the diagonal movement distance is generated based on the movement speed and the lateral movement distance, and a movement command is generated based on the diagonal movement direction and the diagonal movement distance.

[0166] Specifically, if both the pitch and roll angles reach their respective preset thresholds, the terminal will calculate the diagonal movement direction based on the first and second movement directions, and generate the diagonal movement distance based on the movement speed and lateral distance. Then, the terminal will use the diagonal movement direction and diagonal movement distance to generate movement commands. Here, the diagonal movement distance refers to the distance the game character moves each time.

[0167] It is understandable that steps S41 to S43 allow users to simultaneously perform forward / backward and lateral tilting actions, thereby increasing the diversity of game controls.

[0168] Alternatively, trigonometric functions can be used to move the distance diagonally. Specifically:

[0169] First, calculate the lateral movement component using the cosine function: lateral movement component (X direction) = lateral distance * cos(tilt angle);

[0170] Then, the longitudinal movement component is calculated using a sine function: longitudinal movement component (Y direction) = longitudinal movement distance * sin(tilt angle). The longitudinal movement distance can be calculated based on the longitudinal movement speed, which can be obtained through a table of movement speed and movement distance.

[0171] Finally, by adding the lateral and longitudinal movement components, the total diagonal distance can be obtained. This can be done using vector addition, that is, by adding the vectors of the two components together.

[0172] In some embodiments, the game operation method further includes:

[0173] Calculate the acceleration value of the rod-shaped motion controller in the positive z-axis direction at each sampling time based on the acceleration data;

[0174] If any of the acceleration values ​​is greater than the fourth preset threshold, a jump command for the game character is generated.

[0175] In some embodiments, the game operation method further includes:

[0176] S210. Calculate the movement trajectory of the rod-shaped motion controller in the horizontal plane based on the gyroscope data.

[0177] Specifically, the terminal can use gyroscope data to calculate the movement trajectory of the stick-shaped motion controller on the horizontal plane. Since gyroscope data provides information about the stick-shaped motion controller's rotation around its own axes, by analyzing this data, the system can track the stick-shaped motion controller's movement path on the horizontal plane.

[0178] S220. If, based on the movement trajectory, it is determined that the rod-shaped motion controller rotates in an arc around the z-axis from a preset initial position on the horizontal plane, and the rotation angle is greater than a fifth preset threshold, then a steering command is generated based on the rotation direction and the set steering angle. When the rod-shaped motion controller returns from the current position to the preset initial position, no movement or steering command is generated.

[0179] Specifically, the terminal analyzes the movement trajectory to determine if an arc-shaped rotation on the horizontal plane has occurred. If it detects that the stick-shaped motion controller rotates around the z-axis and the rotation angle exceeds a fifth preset threshold, the terminal will generate a steering command based on the direction of rotation and the set steering angle. This steering command is used to control the game character's orientation in the game. It is important to note that when the stick-shaped motion controller returns from its current position to the preset initial position, no movement or steering commands are generated to avoid unnecessary command interference.

[0180] Optionally, the fifth preset threshold can be set to 90°, meaning that when the rod-shaped motion controller rotates more than 90° around the wind z-axis in the horizontal plane, a steering operation can be achieved.

[0181] Furthermore, when the user controls the stick-shaped motion controller to rotate clockwise from the initial position, the game character will turn to the right; when the user controls the stick-shaped motion controller to rotate counterclockwise from the initial position, the game character will turn to the left.

[0182] Furthermore, after a turn, when the user moves the stick-shaped motion controller back to its initial position, no movement or turning commands are generated. This is because the device is typically fixed in front of the user during gameplay and does not rotate with the user's or character's movements. However, after a turn, the stick-shaped motion controller will be positioned to the user's side. To continue playing, the user will return the stick-shaped motion controller to its original position (i.e., the initial position). Therefore, to avoid accidental operation during this process, no new movement or turning commands are generated when the stick-shaped motion controller returns to its initial position from the turned position.

[0183] In some embodiments, the rod-shaped motion controller is further provided with operation buttons.

[0184] Specifically, these operation buttons are used to expand the functionality of game operation methods; they can be set as touch buttons or as physical buttons.

[0185] Optionally, these operation buttons may include A, B, X, Y buttons, directional keys (up, down, left, right), L (L1 and L2) and R (R1 and R2) buttons, etc.

[0186] Furthermore, the game operation method also includes:

[0187] When the operation button is pressed, the character operation type is determined based on the received operation button data, and a corresponding character operation command is generated based on the character operation type.

[0188] Specifically, the terminal periodically checks the status of the operation buttons to determine whether they are pressed or released. This is achieved by detecting the electronic signals of the buttons. When an operation button is pressed, the terminal receives data about the button event. This data typically includes the button's identifier or code, and its state (pressed or released). Based on the received operation button data, the terminal determines the type of character action the user wishes to perform. This may include recognizing the meaning of the operation button, such as attack, defense, or interaction. Once the character action type is determined, the terminal generates a corresponding character action command. This command instructs the game or application to perform a specific action, such as instructing the game character to attack, defend, or interact. Finally, the generated character action command is sent to the game terminal or application to execute the corresponding action. The game terminal will then control the actions of the game character or the behavior of the application based on the received command.

[0189] Understandably, this approach provides users with additional control options, allowing them to perform different actions while playing games or using applications, thereby enhancing interactivity and the gaming experience. This combination of sensor data and button operation enables more diverse control methods.

[0190] Furthermore, this invention also proposes a computer-readable storage medium, which can be any one or any combination of several of the following: hard disk, multimedia card, SD card, flash memory card, SMC, read-only memory (ROM), erasable programmable read-only memory (EPROM), portable compact disc read-only memory (CD-ROM), USB memory, etc. The computer-readable storage medium includes a game operation program 10 based on a stick-shaped motion sensor. The specific implementation of the computer-readable storage medium of this invention is largely the same as the game operation method based on the stick-shaped motion sensor and the specific implementation of the server 1 described above, and will not be repeated here.

[0191] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0192] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0193] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0194] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0195] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.

[0196] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A game operation method based on a stick-type body-sensing controller, characterized by, The rod-shaped motion controller includes an accelerometer, a gyroscope, and a wireless communication module. It can collect acceleration and gyroscope data and transmit them to the game terminal via the wireless communication module. The game operation method includes: Establish a communication connection with the rod-shaped motion controller; The posture of the rod-shaped motion controller at a preset initial position is obtained as a reference posture; When the rod-shaped motion controller moves and then returns to a stationary position, the movement direction of the game character is calculated based on the gyroscope data during the movement of the rod-shaped motion controller, and the movement parameters of the game character are calculated based on the acceleration data during the movement of the rod-shaped motion controller. The acceleration data includes x-axis acceleration, y-axis acceleration data and z-axis acceleration data. Generate a movement command based on the movement direction and the movement parameters; Control the game character's movement according to the movement commands; Specifically, the movement direction of the game character is calculated based on gyroscope data during the movement of the stick-shaped motion controller, and the movement parameters of the game character are calculated based on acceleration data during the movement of the stick-shaped motion controller, including: The pitch angle of the rod-shaped motion controller is calculated based on the gyroscope data; If the pitch angle is greater than or equal to the first preset threshold, then the first movement direction of the game character is determined based on the pitch angle; The maximum pitch acceleration of the rod-shaped motion controller is calculated based on the y-axis and z-axis acceleration data. The movement speed of the game character is calculated based on the maximum pitch acceleration. The roll angle of the rod-shaped motion controller is calculated based on the gyroscope data; If the roll angle is greater than or equal to the second preset threshold, then the second movement direction of the game character is determined based on the roll angle; The roll acceleration of the rod-shaped motion controller at each sampling moment is calculated based on the x-axis acceleration data; If any of the aforementioned roll accelerations is greater than a third preset threshold, then a preset lateral movement distance is obtained as the lateral movement distance of the game character.

2. The game operating method using the stick-based somatic controller according to claim 1, wherein Calculating the game character's movement speed based on the maximum pitch acceleration includes: The maximum pitch acceleration is matched with a preset acceleration-speed table, wherein the speed includes slow walking, normal walking, fast walking, jogging and fast running; The game character's movement speed is generated based on the matching results.

3. The game operating method using a stick-based sensor controller according to claim 1, wherein Generate movement instructions based on the movement direction and the movement parameters, including: If the pitch angle of the rod-shaped motion controller is greater than or equal to the first preset threshold, and the roll angle of the rod-shaped motion controller is less than the second preset threshold, then a forward or backward command is generated based on the first moving direction and the moving speed. If the pitch angle of the stick-shaped motion controller is less than the first preset threshold and the roll angle of the stick-shaped motion controller is greater than or equal to the second preset threshold, then a left or right lateral movement command is generated according to the second movement direction and the lateral movement distance. If the pitch angle of the stick-shaped motion controller is greater than or equal to a first preset threshold, and the roll angle of the stick-shaped motion controller is greater than or equal to a second preset threshold, then the diagonal movement direction is calculated based on the first movement direction and the second movement direction, and the diagonal movement distance is generated based on the movement speed and the lateral movement distance, and a movement command is generated based on the diagonal movement direction and the diagonal movement distance.

4. The game operating method using the stick-based sensor controller according to claim 1, wherein The game operation method also includes: Calculate the acceleration value of the rod-shaped motion controller in the positive z-axis direction at each sampling time based on the acceleration data; If any of the acceleration values ​​is greater than the fourth preset threshold, a jump command for the game character is generated.

5. The game operating method using the stick-based sensor controller according to claim 1, wherein The game operation method also includes: The movement trajectory of the rod-shaped motion controller in the horizontal plane is calculated based on the gyroscope data; If, based on the movement trajectory, it is determined that the rod-shaped motion controller rotates in an arc around the z-axis from a preset initial position on the horizontal plane, and the rotation angle is greater than a fifth preset threshold, then a steering command is generated based on the rotation direction and the set steering angle. However, when the rod-shaped motion controller returns from the current position to the preset initial position, no movement or steering command is generated.

6. The game operating method using the stick-based sensor controller according to claim 1, wherein The stick-shaped motion controller is also equipped with operation buttons; the game operation method further includes: When the operation button is pressed, the character operation type is determined based on the received operation button data, and a corresponding character operation command is generated based on the character operation type.

7. A game control device based on a rod-shaped motion-sensing controller, characterized in that, The system includes a memory, a processor, and a game operation program based on a stick-shaped motion controller stored in the memory and executable on the processor. When the processor executes the game operation program based on the stick-shaped motion controller, it implements the game operation method based on the stick-shaped motion controller as described in any one of claims 1-6.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a game operation program based on a stick-shaped motion sensor controller, which, when executed by a processor, implements the game operation method based on a stick-shaped motion sensor controller as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Motion sensing game method based on rod swinging posture

    CN114926908A

  • Light control method and system of luminous gamepad

    CN116506991A