Hub state adjustment method and device, electronic equipment and computer readable medium
Patent Information
- Application Number
- CN202311724797.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-14
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2043-12-14
AI Technical Summary
[0003]但是,目前写实悬浮载具在真实世界和赛车游戏中很难有参考
[0018]In the wheel hub state adjustment method of this exemplary embodiment, the state parameters of the hover vehicle at each moment are obtained during the movement of the hover vehicle. These state parameters include the hover vehicle's speed parameters. Then, based on the state parameters of the hover vehicle at each moment and the corresponding linear change function of the wheel hub angle, the wheel hub angles of each hover vehicle are adjusted to control the wheel hub angles to change linearly with the state parameters. This wheel hub state adjustment method, by controlling the wheel hub angles of each hover vehicle to change linearly with the state parameters during the movement of the hover vehicle, linearly adjusts the wheel hub angles of the hover vehicle in different states. This achieves the performance of the hover vehicle in various states and the switching of performance between different states. The resulting linear and smooth angle changes of the hover vehicle's wheel hubs in various states are more in line with the design purpose and concept of realistic hover vehicles, allowing players to truly experience the charm of realistic hover vehicles and obtain a better gaming experience.
Smart Images

Figure CN117695660B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of game technology, and more specifically, to a method for adjusting the state of a wheel hub, a device for adjusting the state of a wheel hub, an electronic device, and a computer-readable medium. Background Technology
[0002] In racing games, realistic physics cars typically have wheel movements such as acceleration, drifting, turning, and emergency braking designed to closely resemble the real world in order to provide players with a more immersive experience.
[0003] However, realistic hovercraft models currently have few references in the real world and racing games. To differentiate the performance and handling of hovercraft models from typical realistic physics-based vehicles, it is necessary to design the behavior of the hovercraft's wheels in different states. Calculations should be used to make the transitions between these states smoother and more responsive, allowing players to truly experience the charm of realistic hovercraft and thus gain a better gaming experience.
[0004] Therefore, there is an urgent need in the field for a method to adjust the hub state of a suspended vehicle.
[0005] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0006] The purpose of this disclosure is to provide a method for adjusting the state of a wheel hub, a device for adjusting the state of a wheel hub, an electronic device, and a computer-readable medium, so as to at least to some extent make the angle change of the wheel hub of the levitation vehicle in various states linear and smooth, which is more in line with the design purpose and concept of a realistic levitation vehicle.
[0007] According to a first aspect of this disclosure, a method for adjusting the state of a wheel hub is provided, comprising providing a graphical user interface via a terminal device, the graphical user interface including at least a portion of a game scene, the game scene displaying a hovering vehicle controlled by the terminal device, the hovering vehicle including multiple wheel hubs, the method comprising:
[0008] In response to a vehicle control operation applied to the hovering vehicle, the hovering vehicle is controlled to move within the game scene;
[0009] During the movement of the suspended vehicle, the state parameters of the suspended vehicle at each moment are acquired, wherein the state parameters include the speed parameters of the suspended vehicle;
[0010] Based on the state parameters of the suspended vehicle at each moment and the linear change function of the wheel hub angle corresponding to the suspended vehicle, the wheel hub angle of each wheel hub of the suspended vehicle is adjusted to control the wheel hub angle of each wheel hub to change linearly with the change of the state parameters.
[0011] According to a second aspect of this disclosure, a wheel hub state adjustment device is provided, which provides a graphical user interface via a terminal device. The graphical user interface includes at least a portion of a game scene, in which a hovering vehicle controlled by the terminal device is displayed. The hovering vehicle includes multiple wheel hubs. The device comprises:
[0012] The hover vehicle control module is used to respond to vehicle control operations applied to the hover vehicle and control the hover vehicle to move in the game scene;
[0013] The state parameter acquisition module is used to acquire the state parameters of the suspended vehicle at each moment during the movement of the suspended vehicle, wherein the state parameters include the speed parameters of the suspended vehicle;
[0014] The hub angle adjustment module is used to adjust the hub angle of each hub of the suspended vehicle according to the state parameters of the suspended vehicle at each moment and the corresponding linear change function of the hub angle of the suspended vehicle, so as to control the hub angle of each hub to change linearly with the change of the state parameters.
[0015] According to a third aspect of this disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the wheel hub state adjustment method described in any of the preceding claims by executing the executable instructions.
[0016] According to a fourth aspect of this disclosure, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements a method for adjusting the hub state of any of the above-mentioned methods.
[0017] The exemplary embodiments disclosed herein can have the following beneficial effects:
[0018] In the wheel hub state adjustment method of this exemplary embodiment, the state parameters of the hover vehicle at each moment are obtained during the movement of the hover vehicle. These state parameters include the hover vehicle's speed parameters. Then, based on the state parameters of the hover vehicle at each moment and the corresponding linear change function of the wheel hub angle, the wheel hub angles of each hover vehicle are adjusted to control the wheel hub angles to change linearly with the state parameters. This wheel hub state adjustment method, by controlling the wheel hub angles of each hover vehicle to change linearly with the state parameters during the movement of the hover vehicle, linearly adjusts the wheel hub angles of the hover vehicle in different states. This achieves the performance of the hover vehicle in various states and the switching of performance between different states. The resulting linear and smooth angle changes of the hover vehicle's wheel hubs in various states are more in line with the design purpose and concept of realistic hover vehicles, allowing players to truly experience the charm of realistic hover vehicles and obtain a better gaming experience.
[0019] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0020] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0021] Figure 1 A schematic diagram of an exemplary system architecture for a wheel hub state adjustment method and apparatus applicable to embodiments of the present disclosure is shown;
[0022] Figure 2 A flowchart illustrating a method for adjusting the state of a wheel hub according to an exemplary embodiment of this disclosure is shown.
[0023] Figure 3 A schematic diagram of the process for adjusting the hub angle according to an exemplary embodiment of the present disclosure is shown;
[0024] Figure 4 This schematically illustrates a wheel hub diagram of a levitation vehicle in its default state according to a specific embodiment of the present disclosure;
[0025] Figure 5 A flowchart illustrating the process of determining the hub angle parameters of a suspended vehicle in an acceleration / deceleration state at the next moment in an exemplary embodiment of this disclosure is shown.
[0026] Figure 6 This schematically illustrates a node connection diagram of the hub fork angle update of a suspended vehicle in an acceleration / deceleration state at the next moment according to a specific embodiment of the present disclosure.
[0027] Figure 7 A schematic diagram of a velocity mapping curve according to a specific embodiment of the present disclosure is shown;
[0028] Figure 8 The schematic diagram illustrates the hub fork angles of a suspension vehicle at different speeds according to a specific embodiment of the present disclosure.
[0029] Figure 9 The schematic diagram shows the wheel hub of a suspension vehicle according to a specific embodiment of the present disclosure in the default state and the maximum fork angle state;
[0030] Figure 10 A flowchart illustrating the process of determining the hub angle parameters of a suspended vehicle in a left-right turning state at the next moment according to an exemplary embodiment of the present disclosure is shown.
[0031] Figure 11 The schematic diagram shows the wheel hub of a suspended vehicle according to a specific embodiment of the present disclosure in a left-turn state, a default state, and a right-turn state;
[0032] Figure 12 The schematic diagram illustrates the node connection diagram of the hub tilt angle update of a suspended vehicle in a left-right turning state at the next moment according to a specific embodiment of the present disclosure.
[0033] Figure 13 This schematically illustrates a node connection diagram that triggers a recount event during a left or right turn state according to a specific embodiment of the present disclosure;
[0034] Figure 14 The schematic diagram illustrates the wheel hub of a hovering vehicle in left-turn drift and right-turn drift states according to a specific embodiment of the present disclosure;
[0035] Figure 15 A flowchart illustrating the process of determining the hub angle parameters of a suspended vehicle in a left-right drifting state at the next moment according to an exemplary embodiment of the present disclosure is shown.
[0036] Figure 16 This schematically illustrates a node connection diagram showing the update of the hub tilt angle and hub fork angle of a hovering vehicle in a drifting state at the next moment according to a specific embodiment of the present disclosure.
[0037] Figure 17This schematically illustrates a node connection diagram of a recounting event triggered in a drift state according to a specific embodiment of the present disclosure;
[0038] Figure 18 This schematically illustrates a node connection diagram of a complete structure for updating the hub angle of a levitation vehicle according to a specific embodiment of the present disclosure;
[0039] Figure 19 This schematically illustrates a node connection diagram of the state skeleton setting structure of the left front wheel according to a specific embodiment of the present disclosure;
[0040] Figure 20 A block diagram of a hub state adjustment device according to an exemplary embodiment of the present disclosure is shown;
[0041] Figure 21 A schematic diagram of the structure of a computer system suitable for implementing the embodiments of the present disclosure is shown. Detailed Implementation
[0042] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this disclosure more comprehensive and complete, and to fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a full understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced with one or more specific details omitted, or other methods, components, apparatus, steps, etc., can be employed. In other instances, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of this disclosure.
[0043] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0044] Figure 1 A schematic diagram of a system architecture for an exemplary application environment in which a method and apparatus for adjusting the state of a wheel hub, according to embodiments of the present disclosure, can be applied.
[0045] like Figure 1 As shown, system architecture 100 may include multiple mobile terminals 101, 102, and 103, a network 104, and a server 105. Network 104 serves as a medium for providing communication links between mobile terminals 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wireless communication links.
[0046] It should be understood that Figure 1 The number of mobile terminals, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of mobile terminals, networks, and servers can be included. For example, server 105 could be a server cluster consisting of multiple servers.
[0047] Mobile terminals 101, 102, and 103 can be various electronic devices with processors, including but not limited to smartphones, tablets, and laptops. Server 105 can be a server providing various services. For example, mobile terminals 101, 102, and 103 can respond to vehicle control operations applied to the hover vehicle via their processors, controlling the hover vehicle to move within the game scene. During the hover vehicle's movement, they acquire the hover vehicle's state parameters at each moment, including its speed parameters, and upload these parameters to server 105. Server 105 can adjust the wheel angles of each wheel of the hover vehicle based on the state parameters at each moment and the linear change function of the corresponding wheel angles, and return the adjustment results to mobile terminals 101, 102, and 103. Mobile terminals 101, 102, and 103 can then control the wheel angles of each wheel to change linearly with the state parameters based on the wheel angle adjustment results sent by server 105 at each moment.
[0048] In one embodiment of this disclosure, the wheel hub state adjustment method can run on a local terminal device or a server. When the wheel hub state adjustment method runs on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and client devices.
[0049] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separate. The storage and execution of the wheel state adjustment method are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.
[0050] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.
[0051] In one possible implementation, this disclosure provides a method for adjusting the state of a wheel hub, which provides a graphical user interface through a terminal device. The terminal device can be either the aforementioned local terminal device or a client device in the aforementioned cloud interaction system.
[0052] This example implementation first provides a method for adjusting the state of wheel hubs. A graphical user interface (GUI) is provided through a terminal device. The GUI includes at least a portion of a game scene, displaying a hovering vehicle controlled by the terminal device. The hovering vehicle contains multiple wheel hubs. (Reference) Figure 2 As shown, the above method for adjusting the wheel hub condition may include the following steps:
[0053] Step S210. Respond to the vehicle control operation applied to the hover vehicle and control the hover vehicle to move in the game scene.
[0054] Step S220. During the movement of the suspended vehicle, obtain the state parameters of the suspended vehicle at each moment, wherein the state parameters include the speed parameters of the suspended vehicle.
[0055] Step S230. Based on the state parameters of the levitation vehicle at each moment and the linear change function of the corresponding wheel hub angle, adjust the wheel hub angle of each wheel hub of the levitation vehicle to control the wheel hub angle of each wheel hub to change linearly with the change of state parameters.
[0056] In the wheel hub state adjustment method of this exemplary embodiment, the state parameters of the hover vehicle at each moment are obtained during the movement of the hover vehicle. These state parameters include the hover vehicle's speed parameters. Then, based on the state parameters of the hover vehicle at each moment and the corresponding linear change function of the wheel hub angle, the wheel hub angles of each hover vehicle are adjusted to control the wheel hub angles to change linearly with the state parameters. This wheel hub state adjustment method, by controlling the wheel hub angles of each hover vehicle to change linearly with the state parameters during the movement of the hover vehicle, linearly adjusts the wheel hub angles of the hover vehicle in different states. This achieves the performance of the hover vehicle in various states and the switching of performance between different states. The resulting linear and smooth angle changes of the hover vehicle's wheel hubs in various states are more in line with the design purpose and concept of realistic hover vehicles, allowing players to truly experience the charm of realistic hover vehicles and obtain a better gaming experience.
[0057] Below, in conjunction with Figures 3 to 19 The steps described above in this example implementation will be explained in more detail.
[0058] In step S210, in response to a vehicle control operation applied to the hovering vehicle, the hovering vehicle is controlled to move within the game scene.
[0059] In this example implementation, a hover vehicle is a type of vehicle capable of suspending itself at a certain height above the ground. The hubs of the hover vehicle do not contact the ground, such as a hovercar. In racing games, players can control the hover vehicle to move around the game scene using a terminal device.
[0060] The wheels of a hovercraft can be divided into left and right wheel hubs. Generally, the number of wheel hubs is even, for example, two on each side. For instance, the skeletons controlling the hovercraft wheel hubs can include: left front wheel FL, left rear wheel BL, right front wheel FR, right rear wheel BR; left front outer ring FL_C, left rear outer ring BL_C, right front outer ring FR_C, right rear outer ring BR_C (skeleton names are customizable). For hovercraft, the processing of each wheel hub on the left side is the same (regardless of whether it's the left front or left rear, regardless of the wheel hub or outer ring), and the same applies to the right side.
[0061] In step S220, during the movement of the suspended vehicle, the state parameters of the suspended vehicle at each moment are acquired, wherein the state parameters include the speed parameters of the suspended vehicle.
[0062] In this example embodiment, the state parameters of the hovering vehicle refer to parameters related to the driving state of the hovering vehicle, which are determined by the driving state of the hovering vehicle at each moment. For example, when the hovering vehicle is in an accelerating forward state or a decelerating backward state, the state parameters mainly include the speed parameters of the hovering vehicle; when the hovering vehicle is in a turning state, the state parameters mainly include the speed parameters and turning variable parameters of the hovering vehicle; when the hovering vehicle is in a drifting state, the state parameters mainly include the drift variable parameters of the hovering vehicle.
[0063] During the movement of the hovercraft, the terminal device can acquire the hovercraft's status parameters at each moment in real time. Among them, the speed parameter generally changes linearly, while other status parameters, such as steering variable parameters, can be determined based on the player's steering control operation.
[0064] In step S230, the hub angles of each hub of the suspended vehicle are adjusted according to the state parameters of the suspended vehicle at each moment and the linear change function of the hub angles of the suspended vehicle, so as to control the hub angles of each hub to change linearly with the changes of the state parameters.
[0065] In this example implementation, the linear change function of the hub angle corresponding to the suspended vehicle is used to iteratively calculate the hub angle of each hub at each moment, so as to control the hub angle of each hub to change linearly with the change of state parameters.
[0066] The wheel hub posture design of the hover vehicle on the track can be divided into the following categories: (1) wheel hub standby posture; (2) wheel hub posture when accelerating forward and decelerating backward; (3) wheel hub posture when turning left and right; (4) wheel hub posture when drifting.
[0067] In this example implementation, as Figure 3As shown, based on the state parameters of the hovering vehicle at each moment and the linear change function of the corresponding wheel hub angle, the wheel hub angle of each wheel of the hovering vehicle is adjusted. Specifically, this can include the following steps:
[0068] Step S310. Obtain the wheel hub angle parameters and state parameters of the hovering vehicle at the current moment. The wheel hub angle parameters include the fork angle and tilt angle of each wheel hub of the hovering vehicle.
[0069] The hub angle parameters of a hover vehicle can include the fork angle and tilt angle of each hub. If a coordinate system is established from the perspective of the rear of the hover vehicle, with the horizontal leftward direction as the X-axis, the horizontal forward direction as the Y-axis, and the vertical upward direction as the Z-axis, then the fork angle is the rotation angle of the hub in the Y-axis direction, i.e., the front-to-back rotation angle, and the tilt angle is the rotation angle of the hub in the Z-axis direction, i.e., the up-and-down rotation angle.
[0070] Step S320. Based on the linear change function of the wheel hub angle corresponding to the levitation vehicle, and the state parameters and wheel hub angle parameters of the levitation vehicle at the current moment, determine the wheel hub angle parameters of the levitation vehicle at the next moment.
[0071] In this example implementation, the hovering vehicle will initially have a default standby state. Figure 4 A schematic diagram of the wheel hub of a suspended vehicle in its default state according to a specific embodiment of the present disclosure is shown. Figure 4 As shown, the wheel hub nozzles on the track can be designed in standby mode with the default tilt angle of the left front wheel and left rear wheel at -50° and the default tilt angle of the right front wheel and right rear wheel at 50° (establishing a coordinate system from the rear of the car, with the left wheel facing counterclockwise downwards and the right wheel facing clockwise downwards).
[0072] In standby mode, the wheel hubs are designed with a default downward tilt angle, for example, 50°, for both front and rear wheels. This is to give the hovering vehicle an upward force, thus conforming to the default setting that the hovering vehicle is suspended in the air. This effect can be achieved by rotating the left front wheel skeleton, left rear wheel skeleton, right front wheel skeleton, and right rear wheel skeleton in the Z-axis direction.
[0073] In this example implementation, when the suspended vehicle is accelerating forward or decelerating backward, the wheel hub will adjust its state according to the speed change of the suspended vehicle. For example... Figure 5 As shown, based on the linear variation function of the wheel hub angle corresponding to the levitation vehicle, and the state parameters and wheel hub angle parameters of the levitation vehicle at the current moment, the wheel hub angle parameters of the levitation vehicle at the next moment are determined. Specifically, this can include the following steps:
[0074] Step S510. When the hover vehicle is in an accelerating forward state or a decelerating backward state, obtain the linear change ratio of the front fork angle variable based on the current speed parameter of the hover vehicle and the current wheel hub front fork angle.
[0075] Step S520. Based on the current wheel hub fork angle, the linear change ratio of the fork angle variable, and the maximum fork angle of the hover vehicle, determine the wheel hub fork angle of the hover vehicle at the next moment through the counting node in the editor, according to the linear change function of the wheel hub angle corresponding to the hover vehicle.
[0076] When the hovercraft accelerates, the wheel hub rotates a fixed angle along the Y-axis of the control frame, i.e., the fork angle (e.g., 37.24°, this angle has been adjusted to be suitable for the design and matches the vehicle body well during acceleration; this angle can be increased or decreased appropriately). When the hovercraft accelerates, the wheel hub swings backward a certain angle according to the speed, fixing at its maximum angle after reaching a threshold. When the hovercraft decelerates, the wheel hub returns to its original angle according to the decrease in speed. When the hovercraft comes to a complete stop, the wheel hub returns to its default position. This design aims to provide a backward thrust to the ground during acceleration, thus propelling the hovercraft forward.
[0077] To ensure that the fork angle changes linearly with speed increases and decreases, rather than abruptly, and to allow the same set of nodes and formulas to express the increase or decrease of the fork angle, a Counter node can be used in the animation editor to calculate the increase and decrease of the angle.
[0078] Figure 6 This schematically illustrates a node connection diagram showing the update of the wheel hub fork angle at the next moment for a suspended vehicle in an acceleration / deceleration state according to a specific embodiment of the present disclosure. Figure 6 The node connection diagram shown can be used to express the function of Counter using a mathematical formula:
[0079] FloorValue = baseValue + speedScale * Time (Time is the value per second)
[0080] Here, `baseValue` refers to the base count value. `FloorValue` refers to the maximum count value, i.e., the upper limit of the count. The fork angle at which the wheel hub swings backward according to speed has a maximum limit, which can be named `XUANFU_BACK_FORTH`.
[0081] In this example implementation, the corresponding speed mapping value can be obtained based on the speed parameters of the suspended vehicle at the current moment, and the linear change ratio of the fork angle variable can be calculated based on the speed mapping value of the suspended vehicle at the current moment and the current wheel hub fork angle, according to a custom linear change ratio expression.
[0082] Figure 7 A schematic diagram of a speed mapping curve according to a specific embodiment of this disclosure is shown, where the horizontal axis represents the actual speed of the hovering vehicle in the game, and the vertical axis represents the corresponding speed mapping value. The reason for speed mapping is simple: the speed of the car in the game is determined by the player's operation and racing skill values, and can reach as high as 350 km / h or more. Therefore, it is necessary to map the speed curve to the range [0,1] for easier calculation. The maximum speed can be limited to 280 km / h during calculation because it is desired that even if the vehicle speed exceeds 280 km / h, the front fork angle will remain at the set maximum value and will not become larger.
[0083] To achieve a linear change in the fork angle of the wheel hub based on the increase or decrease of speed, several key parameters need to be designed in Counter. First, the fork angle variable is named current_Fork, representing the value of the fork angle of the wheel hub at different times, with a default value of 0. In Counter, SpeedScale refers to the linear change ratio of the fork angle variable, that is, the parameter that controls the speed of change of the fork angle variable. The SpeedScale value that increases or decreases per second is determined by the mapped value after speed mapping and current_Fork.
[0084] like Figure 6 As shown, custom calculation expressions can be designed in the MathParser node to link the connected port parameters. Here, a custom variable speed linear change ratio expression needs to be designed to link the speed mapping value with the current fork angle to obtain the increase or decrease value per second, and in conjunction with the variable modifier, to modify the current_Fork value every frame.
[0085] Therefore, the custom expression for the linear change ratio of the fork angle variable needs to satisfy all of the following conditions: when the speed is 0, the current fork angle is 0; when the speed increases compared to the previous frame, the current fork angle increases, and if the speed is already greater than 280km / h, the maximum fork angle remains unchanged; when the speed decreases compared to the previous frame, the current fork angle decreases; if the speed decreases to 0km / h, the current fork angle needs to change to 0. Figure 8The diagram illustrates the hub fork angle of a suspended vehicle according to a specific embodiment of the present disclosure at different speeds, with the hub fork angle increasing as the speed increases. Figure 9 The diagram illustrates the wheel hub of a suspension vehicle according to a specific embodiment of the present disclosure in its default state and at its maximum fork angle.
[0086] In this example implementation, when the suspended vehicle is accelerating forward, the output sign of the linear change ratio of the front fork angle variable is positive; when the suspended vehicle is decelerating backward, the output sign of the linear change ratio of the front fork angle variable is negative.
[0087] It's important to understand that `current_Fork` is 0 by default. When the speed increases from 0, the fork angle increases towards the maximum fork angle. Therefore, the sign of the `SpeedValue` output should be positive to satisfy the following condition:
[0088] FloorValue=baseValue+speedScale*Time
[0089] When the value of `current_Fork` increases to equal the maximum fork angle, it indicates that the speed has reached the set threshold of 280 km / h. Speeds exceeding this threshold will not change the value of `current_Fork`. If the speed in the next frame decreases compared to the previous frame (and is less than 280 km / h), it means the fork angle should decrease. Because a variable modifier is used to modify the value of `current_Fork` each frame, when the speed decreases and the angle needs to decrease, `baseValue` is no longer equal to `current_Fork`. Instead, it needs to decrease from the angle already increased to `current_Fork` in the previous frame, even reducing it to 0 based on the speed. In this case, the sign of the `speedScale` output should be negative to satisfy the following condition:
[0090] FloorValue=baseValue-speedScale*Time
[0091] Therefore, through extensive fitting, the custom calculation expression for the linear change ratio of the fork angle variable speedScale designed in the MathParser node can be:
[0092] max((c*(-a)-c)*20,(c*(-a)-b)*20)
[0093] In this expression, port 'a' represents the velocity mapping value, port 'b' represents 'current_Fork', and port 'c' represents the maximum fork angle 'XUANFU_BACK_FORTH'. The purpose of this expression is to ensure that when the velocity increases compared to the previous frame, the output sign is positive; when the velocity decreases compared to the previous frame, the output sign is negative (multiplying by 20 in the formula makes the change rate faster), and all of these changes are linear, not abrupt.
[0094] In this example implementation, after determining the linear change ratio of the fork angle variable, the maximum fork angle of the suspension vehicle can be used as the maximum count value, and the current wheel hub fork angle of the suspension vehicle can be used as the base count value. Based on the base count value, the maximum count value, and the linear change ratio of the fork angle variable, the wheel hub fork angle of the suspension vehicle at the next moment is determined by the counting node in the editor based on the linear change function of the wheel hub angle corresponding to the suspension vehicle.
[0095] In this example implementation, when the hovercraft is turning left or right, the wheel hub adjusts its state according to the hovercraft's speed and turning direction. For example... Figure 10 As shown, based on the linear variation function of the wheel hub angle corresponding to the levitation vehicle, and the state parameters and wheel hub angle parameters of the levitation vehicle at the current moment, the wheel hub angle parameters of the levitation vehicle at the next moment are determined. Specifically, this can include the following steps:
[0096] Step S1010. When the suspended vehicle is in a steering state, based on the current wheel hub tilt angle of the suspended vehicle, as well as the speed parameters and steering variable parameters of the suspended vehicle at the current moment, obtain the linear change ratio of the tilt angle steering variable.
[0097] Step S1020. Based on the current wheel hub tilt angle of the hovering vehicle, the linear change ratio of the tilt angle steering variable, the steering variable parameters, and the maximum steering tilt angle, determine the wheel hub tilt angle of the hovering vehicle at the next moment through the counting node in the editor, based on the corresponding wheel hub angle linear change function of the hovering vehicle.
[0098] When the hovercraft turns left or right, the wheel hubs also change accordingly. Figure 11The illustration shows the wheel hub diagrams of a hovering vehicle according to a specific embodiment of the present disclosure in a left-turn state, a default state, and a right-turn state. The wheel hub state design when the hovering vehicle turns left and right can be, for example: when turning left, the left front wheel and left rear wheel change from the default -50° tilt angle to -70° tilt angle and lower down, while the right front wheel and right rear wheel change from the default 50° tilt angle to 30° tilt angle and raise up; when turning right, the opposite is true, the left front wheel and left and right wheels change from the default -50° tilt angle to -30° tilt angle and raise up; while the right front wheel and right rear wheel change from the default 50° tilt angle to 70° tilt angle and lower down.
[0099] The purpose of this design is to coordinate with the vehicle's steering movements. When turning left, the vehicle tilts to the left, indicating an upward thrust from the right; when turning right, the vehicle tilts to the right, indicating an upward thrust from the left. The changes in steering angle are smooth, not abrupt.
[0100] In this example implementation, the corresponding speed mapping value can be obtained based on the speed parameters of the suspended vehicle at the current moment. Then, based on the current wheel hub tilt angle of the suspended vehicle, the speed mapping value of the suspended vehicle at the current moment, and the steering variable parameters, the linear change ratio of the tilt angle steering variable can be calculated according to a custom linear change ratio expression.
[0101] Figure 12 This schematically illustrates a node connection diagram showing the update of the wheel hub tilt angle at the next moment for a suspended vehicle in a left-right turning state according to a specific embodiment of the present disclosure. Figure 12 As shown, we first design the forward tilt angle steering variable `currentSteer`, and the maximum forward tilt angle `XUANFU_LEFT_RIGHT`, where the maximum tilt angle variable is, for example, 20°. We still need to use a Counter node to achieve linear tilt angle changes, and use a variable modifier to modify the value of `currentSteer` every frame. The Counter's role here is: Base + Scale * Time = Floor).
[0102] In this example implementation, the current wheel hub tilt angle of the suspended vehicle can be used as the base value for counting; the maximum steering tilt angle is determined based on the steering variable parameters of the suspended vehicle and the maximum steering tilt angle, and the maximum steering tilt angle is used as the maximum value for counting; based on the base value for counting, the maximum value for counting, and the linear change ratio of the tilt angle steering variable, the wheel hub tilt angle of the suspended vehicle at the next moment is determined by the counting node in the editor based on the linear change function of the wheel hub angle corresponding to the suspended vehicle.
[0103] Here, we can introduce a steering variable parameter S_Steer to represent the current steering state of the hover vehicle. This is an integer variable. The default value of this variable is 0, which means that it is in the middle position (neither turning left nor right). The minimum value is -1, which means that it is turning left (i.e., the left turn key is pressed). The maximum value is 1, which means that it is turning right (i.e., the right turn key is pressed).
[0104] When turning left, the maximum forward tilt angle is S_Steer*XUANFU_LEFT_RIGHT = -1*20, which is -20°. The tilt angle increases when turning left and decreases when turning right (lower the tilt angle on the left and raise it on the right). When turning right, the maximum forward tilt angle is S_Steer*XUANFU_LEFT_RIGHT = 1*20, which is 20°. The tilt angle decreases when turning left and increases when turning right (raises the tilt angle on the left and lowers it on the right).
[0105] The variable `S_Steer` actually has the following states: First, the default value is 0, meaning there is no right or left turn at the start of the game; second, it changes from 0 to -1, meaning a left turn is pressed; third, it changes from 0 to 1, meaning a right turn is pressed; fourth, it changes from -1 to 0, meaning the left turn key is released and the car returns to the center; fifth, it changes from 1 to 0, meaning the right turn key is released and the car returns to the center. For the fourth and fifth states, and the first state, although the final result of `S_Steer` is 0, the underlying principles are completely different. Specifically, in the first state, the default starting lean angle must remain at 0°; in the fourth state, changing from -1 back to 0, the calculated expression must output a positive result; and in the fifth state, changing from 1 back to 0, the calculated expression must output a negative result.
[0106] Based on the above analysis and fitting operation, the linear change ratio of the forward tilt angle steering variable, Scale, can be calculated using the following custom expression:
[0107] max((0.6*a-0.5)*c,(0.5*ab)*c)
[0108] Where a is the steering variable parameter S_Steer, b is the forward tilt angle steering variable currentSteer, and c is the speed mapping value.
[0109] Substituting the formula for calculating the linear change ratio of the forward tilt angle steering variable, Scale, into the formula for Counter, we can obtain:
[0110] CurrentSteer+ / -max((0.6*S_Steer-0.5)*Speed,(0.5*S_Steer-currentSteer)*Speed)=S_Steer*XUANFU_LEFT_RIGHT
[0111] Where Speed is mapped to the interval [0,1], + / - means addition or subtraction, and the sign is determined by max((0.6*S_Steer-0.5)*Speed,(0.5*S_Steer-currentSteer)*Speed).
[0112] In this example implementation, when the suspended vehicle is turning left, the output sign of the linear change ratio of the forward tilt angle steering variable of each wheel hub on the left is positive, and the output sign of the linear change ratio of the forward tilt angle steering variable of each wheel hub on the right is negative; when the suspended vehicle is turning right, the output sign of the linear change ratio of the forward tilt angle steering variable of each wheel hub on the left is negative, and the output sign of the linear change ratio of the forward tilt angle steering variable of each wheel hub on the right is positive.
[0113] The above calculation expression can achieve the following: Taking the left wheel hub as an example, when turning left, the maximum steering tilt angle is S_Steer*XUANFU_LEFT_RIGHT=-1*20, which is -20°. For the left wheel hub, when the left turn button is pressed and it is in the left turn state, the wheel hub should be lowered. For example, the tilt angle needs to be increased from the default -50° plus -20° to -70°. When turning right, the maximum steering tilt angle is S_Steer*XUANFU_LEFT_RIGHT=1*20, which is 20°. For the left wheel hub, when the right turn button is pressed and it is in the right turn state, the wheel hub needs to be raised. For example, the tilt angle needs to be reduced from the default -50° plus 20° to -30°.
[0114] In this example implementation, when the suspended vehicle is in a turning state, a corresponding virtual node can be set according to the value of the turning variable parameter, and a corresponding recount event can be set in the virtual node respectively; when the turning variable parameter changes, the corresponding recount event is triggered according to the value of the turning variable parameter, so that the counting node recounts according to the state of the turning variable parameter.
[0115] When the hovercraft is turning, an event signal is needed to notify the Counter to recount after each change in S_Steer. If no notification is given, the Counter will stop counting after reaching a preset value. Figure 13This diagram illustrates the node connections for triggering a recount event during left and right turn states according to a specific embodiment of this disclosure. An InputSelector structure is used to select events each frame to trigger the `set_steer` event (the trigger events in the three virtual triggers 0, 1, and 2 are all `set_steer`). The three output interfaces of the InputSelector correspond to three virtual events (VirtualAction). The parameter of the InputSelector is set to S_Steer+1 in the Mathparser. When S_Steer is 0, the parameter calculation result is 1, triggering the middle event. When the left turn key is pressed, the parameter result is 0, triggering the event in Input0. Similarly, when the right turn key is pressed, the parameter result is 2, triggering the event in Input2. In the Counter node, set resetEvent to set_steer. Then, regardless of whether the left or right turn key is pressed, or the default state is returned, set_steer will be triggered. The Counter node will continuously recount based on the changing result of S_Steer and the output state of the calculated expression, thus achieving the desired linear and smooth change of tilt angle.
[0116] In this example implementation, when the hovering vehicle is in a drifting state, the wheel hub will adjust its state according to the drift variable parameters of the hovering vehicle. This refers to the wheel hub attitude design and implementation details when the hovering vehicle is drifting to the left and right. Figure 14 The illustration shows a schematic diagram of the wheel hubs of a hover vehicle in left-turn drift and right-turn drift states according to a specific embodiment of this disclosure. When turning left, the left wheel hub, from the default tilt angle of -50°, is lowered by -20° to achieve a tilt angle of -70°. At this point, clicking the drift button causes the wheel hub to visually swing upwards and backwards. The upward lifting refers to the change in tilt angle, and the backward swing refers to the change in the fork angle. The rationale for this design is that drifting results in a deceleration effect. To match the feeling of a hover vehicle decelerating and turning, the wheel hub is raised at a certain angle, reducing the angle of contact between the wheel hub and the track, thus decreasing the force and speed. The backward swing of the wheel hub is necessary because the hover vehicle is still moving forward during the drift, requiring a forward-reverse force. The above analysis shows that the hover vehicle needs to make two changes during drifting: tilt angle and fork angle, and these changes are linear. When the drift stops, the wheel hub should return to its pre-drift state.
[0117] When the suspended vehicle is in a drifting state, such as Figure 15As shown, based on the linear variation function of the wheel hub angle corresponding to the levitation vehicle, and the state parameters and wheel hub angle parameters of the levitation vehicle at the current moment, the wheel hub angle parameters of the levitation vehicle at the next moment are determined. Specifically, this can include the following steps:
[0118] Step S1510. When the levitation vehicle is in a drifting state, based on the current wheel hub tilt angle of the levitation vehicle and the drift variable parameters of the levitation vehicle at the current moment, obtain the linear change ratio of the tilt angle drift variable.
[0119] Figure 16 This diagram illustrates the node connections for updating the hub tilt angle and hub fork angle of a hovering vehicle in a drifting state at the next moment, according to a specific embodiment of this disclosure. First, the drift variable parameter STATE_DRIFTING needs to be set. This variable is notified to the Graph by the script; for example, a value of 0 indicates no drift, and a value of 1 indicates drift. To achieve linear changes, a Counter is also used to calculate the changes in tilt and fork angles during drift.
[0120] Let the forward tilt angle drift variable be current_LdriftCam, and the maximum drift forward tilt angle be XUANFU_DRIFTING_CAM. Then, after fitting, the expression for calculating the linear change ratio Scale of the forward tilt angle drift variable can be as follows:
[0121] max((0.31*a-0.31)*3,(0.31*ab)*3)
[0122] In the above calculation expression, 0.31 is actually the maximum drift tilt angle or fork angle. Port a is connected to STATE_DRIFTING, and port b is connected to the current tilt angle variable.
[0123] Step S1520. Based on the current wheel hub tilt angle, drift variable parameters, linear change ratio of tilt angle drift variable, and maximum drift tilt angle of the hovering vehicle, determine the wheel hub tilt angle of the hovering vehicle at the next moment through the counting node in the editor, based on the linear change function of the wheel hub angle corresponding to the hovering vehicle.
[0124] In this example implementation, the current wheel hub tilt angle of the hovering vehicle can be used as the base value for counting, and the maximum count value can be obtained based on the drift variable parameters and the maximum drift tilt angle. Based on the base value, the maximum count value, and the linear change ratio of the tilt angle drift variable, the wheel hub tilt angle of the hovering vehicle at the next moment is determined through the counting node in the editor, according to the linear change function of the wheel hub angle corresponding to the hovering vehicle. The specific calculation method is similar to the aforementioned method and will not be repeated here.
[0125] Step S1530. Based on the current hub fork angle of the suspension vehicle and the drift variable parameters of the suspension vehicle at the current moment, obtain the linear change ratio of the fork angle drift variable.
[0126] The fork angle drift variable is current_LDriftFork, and the maximum drift fork angle is XUANFU_DRIFTING_FORK. The linear change ratio of the fork angle and camber is calculated using the same expression, such as:
[0127] max((0.31*a-0.31)*3,(0.31*ab)*3)
[0128] In this example implementation, it's best to keep the values of the maximum drift camber angle and the maximum drift fork angle consistent. Maintaining consistency allows the wheel hub to swing backward while simultaneously lifting upwards. Since the camber angle calculation precedes the fork angle calculation, inconsistent angles will cause the camber angle calculation to occur first, resulting in lifting, and then the fork angle adjustment for backward swinging. The 0.31 in the calculation expression represents either the maximum drift camber angle or the fork angle. Port a is connected to STATE_DRIFTING, and port b is connected to the current camber angle variable or the current fork angle variable.
[0129] Step S1540. Based on the current hub fork angle, drift variable parameters, linear change ratio of the fork angle drift variable, and maximum drift fork angle of the hover vehicle, determine the hub fork angle of the hover vehicle at the next moment through the counting node in the editor, according to the corresponding hub angle linear change function of the hover vehicle.
[0130] In this example implementation, the current hub fork angle of the hover vehicle can be used as the base value for counting, and the maximum count value can be obtained based on the drift variable parameters and the maximum drift fork angle. Based on the base value, the maximum count value, and the linear change ratio of the fork angle drift variable, the hub fork angle of the hover vehicle at the next moment is determined by the counting node in the editor, according to the linear change function of the hub angle corresponding to the hover vehicle. The specific calculation method is similar to the aforementioned method and will not be repeated here.
[0131] In this example implementation, when the hovering vehicle is in a drifting state, corresponding virtual nodes can be set according to the values of the drift variable parameters, and corresponding recount events can be set in the virtual nodes. When the drift variable parameters change, the corresponding recount event is triggered according to the value of the drift variable parameters, so that the counting nodes recount according to the state of the drift variable parameters. By triggering variables and events, and using the Counter node in conjunction with calculations, the transition between different states is linear, resulting in a smooth performance.
[0132] Similarly, in order to activate the Counter to recount when the state changes, such as from drifting to no drifting, or from no drifting to drifting, the InputSelector is also needed to trigger the state and thus trigger the recount event. Figure 17 The diagram illustrates a node connection in a drift state that triggers a recount event, named finish_drift, according to a specific embodiment of the present disclosure.
[0133] Figure 18 The diagram schematically illustrates a complete structure for updating the hub angle of a suspended vehicle according to a specific embodiment of the present disclosure, showing a node connection diagram. Figure 19 This diagram schematically illustrates the node connections of the left front wheel state skeleton setting structure according to a specific embodiment of this disclosure. The complete structure for updating the hover vehicle's wheel hub angle can be mainly divided into three parts. The first part uses InputSelector to switch states and trigger recount events based on in-game state changes. For example, the steering variable S_Steer: when the player presses the left turn key, the script passes in parameters that make S_Steer -1; when the right turn key is pressed, the script passes in a value that makes S_Steer 1. The state is switched by changing the variable, and the counting event is retried. The second part is the core counting part, which mainly uses Counter in conjunction with different calculation expressions to achieve linear changes in camber and cross-angle under different states. Each recount is triggered by the event sent from the first part. The third part is the part that sets the wheel hub state. Here, the BoneRotate node, in conjunction with the parameters calculated in the second part, controls the changes in the X, Y, and Z axes of the skeleton controlling the wheel hub. For example, camber sets the skeleton's rotation on the Z-axis, and cross-angle sets the skeleton's direction of rotation on the Y-axis. The left and right wheel hubs have the same structure; the difference lies in the variables passed in.
[0134] This example implementation innovatively designs the behavior of the wheel hub of a realistic hovering vehicle in various states within the game track, as well as the technical methods and details for achieving the behavior in each state and switching between different states. By passing different variables through the script and selecting different ports in real time on the graph, multiple recount events are triggered. Combined with the designed calculation expressions, the switching of the wheel hub in various states is linear and smooth, which is more in line with the design purpose and concept of realistic hovering vehicles.
[0135] It should be noted that although the steps of the method in this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.
[0136] Furthermore, this disclosure also provides a wheel hub state adjustment device, which provides a graphical user interface via a terminal device. The graphical user interface includes at least a portion of a game scene, in which a hovering vehicle controlled by the terminal device is displayed, and the hovering vehicle includes multiple wheel hubs. (Reference) Figure 20 As shown, the wheel hub state adjustment device may include a suspension vehicle control module 2010, a state parameter acquisition module 2020, and a wheel hub angle adjustment module 2030. Wherein:
[0137] The Hover Vehicle Control Module 2010 can be used to respond to vehicle control operations applied to hover vehicles and control the movement of hover vehicles in the game scene;
[0138] The state parameter acquisition module 2020 can be used to acquire the state parameters of the suspended vehicle at each moment during the movement of the suspended vehicle, wherein the state parameters include the speed parameters of the suspended vehicle.
[0139] The hub angle adjustment module 2030 can be used to adjust the hub angle of each hub of the suspended vehicle according to the state parameters of the suspended vehicle at each moment and the corresponding linear change function of the hub angle of the suspended vehicle, so as to control the hub angle of each hub to change linearly with the change of state parameters.
[0140] In some exemplary embodiments of this disclosure, the wheel hub angle adjustment module 2030 may include a wheel hub parameter acquisition unit and a wheel hub parameter update unit. Wherein:
[0141] The hub parameter acquisition unit can be used to acquire the hub angle parameters and status parameters of the hover vehicle at the current moment. The hub angle parameters include the fork angle and tilt angle of each hub of the hover vehicle.
[0142] The hub parameter update unit can be used to determine the hub angle parameters of the suspended vehicle at the next moment based on the linear change function of the hub angle corresponding to the suspended vehicle, as well as the state parameters and hub angle parameters of the suspended vehicle at the current moment.
[0143] In some exemplary embodiments of this disclosure, the wheel hub parameter update unit may include a fork angle change ratio determination unit and a wheel hub fork angle determination unit. Wherein:
[0144] The fork angle change ratio determination unit can be used to obtain the linear change ratio of the fork angle variable based on the speed parameter of the suspended vehicle at the current moment and the current wheel hub fork angle when the suspended vehicle is in an accelerating forward state or a decelerating backward state.
[0145] The hub fork angle determination unit can be used to determine the hub fork angle of the hover vehicle at the next moment based on the current hub fork angle of the hover vehicle, the linear change ratio of the fork angle variable, and the maximum fork angle, and based on the corresponding hub angle linear change function of the hover vehicle, through the counting node in the editor.
[0146] In some exemplary embodiments of this disclosure, the fork angle change ratio determination unit may include a velocity mapping value determination unit and a fork angle change ratio calculation unit. Wherein:
[0147] The speed mapping value determination unit can be used to obtain the corresponding speed mapping value based on the speed parameters of the suspended vehicle at the current moment;
[0148] The fork angle change ratio calculation unit can be used to calculate the linear change ratio of the fork angle variable based on the speed mapping value of the suspended vehicle at the current moment and the current wheel hub fork angle, according to a custom linear change ratio expression.
[0149] In some exemplary embodiments of this disclosure, the hub fork angle determination unit may include a counting parameter determination unit and a hub fork angle calculation unit. Wherein:
[0150] The counting parameter determination unit can be used to take the maximum front fork angle of the suspension vehicle as the maximum counting value and the current wheel hub front fork angle of the suspension vehicle as the basic counting value;
[0151] The hub fork angle calculation unit can be used to determine the hub fork angle of the suspended vehicle at the next moment based on the basic count value, the maximum count value, and the linear change ratio of the fork angle variable, according to the linear change function of the hub angle corresponding to the suspended vehicle, through the counting node in the editor.
[0152] In some exemplary embodiments of this disclosure, the hub parameter update unit may further include an acceleration output sign determination unit and a deceleration output sign determination unit. Wherein:
[0153] The acceleration output sign determination unit can be used to ensure that the output sign of the linear change ratio of the front fork angle variable is positive when the suspended vehicle is in an accelerated forward state.
[0154] The deceleration output sign determination unit can be used to ensure that the output sign of the linear change ratio of the fork angle variable is negative when the suspended vehicle is in a deceleration and reversing state.
[0155] In some exemplary embodiments of this disclosure, the wheel hub parameter update unit may further include a camber change ratio determination unit and a wheel hub tilt angle determination unit. Wherein:
[0156] The tilt angle change ratio determination unit can be used to obtain the linear change ratio of the tilt angle steering variable when the suspended vehicle is in a steering state, based on the current wheel hub tilt angle of the suspended vehicle, as well as the speed parameters and steering variable parameters of the suspended vehicle at the current moment.
[0157] The wheel hub tilt angle determination unit can be used to determine the wheel hub tilt angle of the suspended vehicle at the next moment based on the current wheel hub tilt angle of the suspended vehicle, the linear change ratio of the tilt angle steering variable, the steering variable parameters, and the maximum steering tilt angle, and based on the corresponding wheel hub angle linear change function of the suspended vehicle, through the counting node in the editor.
[0158] In some exemplary embodiments of this disclosure, the tilt angle change ratio determination unit may include a velocity mapping value determination unit and a tilt angle change ratio calculation unit. Wherein:
[0159] The speed mapping value determination unit can be used to obtain the corresponding speed mapping value based on the speed parameters of the suspended vehicle at the current moment;
[0160] The tilt angle change ratio calculation unit can be used to calculate the linear change ratio of the tilt angle steering variable based on the current wheel hub tilt angle of the suspended vehicle, the speed mapping value of the suspended vehicle at the current moment, and the steering variable parameters, according to a custom linear change ratio expression for steering.
[0161] In some exemplary embodiments of this disclosure, the wheel hub camber angle determination unit may include a base count value determination unit, a maximum count value determination unit, and a wheel hub camber angle calculation unit. Wherein:
[0162] The counting baseline value determination unit can be used to take the current wheel hub tilt angle of the suspended vehicle as the counting baseline value;
[0163] The maximum count determination unit can be used to determine the maximum steering tilt angle based on the steering variable parameters of the suspended vehicle and the maximum steering tilt angle, and use the maximum steering tilt angle as the maximum count value;
[0164] The wheel hub tilt angle calculation unit can be used to determine the wheel hub tilt angle of the suspended vehicle at the next moment based on the basic count value, the maximum count value, and the linear change ratio of the tilt angle steering variable, according to the linear change function of the wheel hub angle corresponding to the suspended vehicle, through the counting node in the editor.
[0165] In some exemplary embodiments of this disclosure, the hub parameter update unit may further include a left-turn output sign determination unit and a right-turn output sign determination unit. Wherein:
[0166] The left-turn output sign determination unit can be used to ensure that when the suspended vehicle is in a left-turn state, the output sign of the linear change ratio of the forward tilt angle steering variable of each wheel hub on the left is positive, and the output sign of the linear change ratio of the forward tilt angle steering variable of each wheel hub on the right is negative.
[0167] The right-turn output sign determination unit can be used to ensure that, when the suspended vehicle is in a right-turn state, the output sign of the linear change ratio of the forward tilt angle steering variable of each wheel hub on the left is negative, and the output sign of the linear change ratio of the forward tilt angle steering variable of each wheel hub on the right is positive.
[0168] In some exemplary embodiments of this disclosure, the hub parameter update unit may further include a recount event setting unit and a recount event triggering unit. Wherein:
[0169] The recount event setting unit can be used to set the corresponding virtual node according to the value of the steering variable parameter, and set the corresponding recount event in the virtual node respectively;
[0170] The recount event triggering unit can be used to trigger a corresponding recount event based on the value of the steering variable parameter when the steering variable parameter changes, so that the counting node can recount according to the state of the steering variable parameter.
[0171] In some exemplary embodiments of this disclosure, the hub parameter update unit may further include a drift tilt angle change ratio determination unit, a drift lean angle determination unit, a drift fork angle change ratio determination unit, and a drift fork angle determination unit. Wherein:
[0172] The drift tilt angle change ratio determination unit can be used to obtain the linear change ratio of the tilt angle drift variable based on the current wheel hub tilt angle of the suspended vehicle and the drift variable parameters of the suspended vehicle at the current moment when the vehicle is in a drift state.
[0173] The drift tilt angle determination unit can be used to determine the wheel tilt angle of the hover vehicle at the next moment based on the current wheel tilt angle of the hover vehicle, drift variable parameters, linear change ratio of the tilt angle drift variable, and maximum drift tilt angle, and the corresponding wheel angle linear change function of the hover vehicle, through the counting node in the editor.
[0174] The drift fork angle change ratio determination unit can be used to obtain the linear change ratio of the fork angle drift variable based on the current hub fork angle of the suspension vehicle and the drift variable parameters of the suspension vehicle at the current moment.
[0175] The drift fork angle determination unit can be used to determine the wheel hub fork angle of the hover vehicle at the next moment based on the current wheel hub fork angle, drift variable parameters, linear change ratio of the fork angle drift variable, and maximum drift fork angle of the hover vehicle, and the corresponding wheel hub angle linear change function, through the counting node in the editor.
[0176] In some exemplary embodiments of this disclosure, the drift forward tilt angle determination unit may include a drift count parameter determination unit and a drift forward tilt angle calculation unit. Wherein:
[0177] The drift counting parameter determination unit can be used to take the current wheel hub tilt angle of the suspended vehicle as the counting base value, and obtain the maximum count value based on the drift variable parameters and the maximum drift tilt angle;
[0178] The drift tilt angle calculation unit can be used to determine the wheel tilt angle of the hover vehicle at the next moment based on the base count value, the maximum count value, and the linear change ratio of the tilt angle drift variable, according to the linear change function of the corresponding wheel hub angle of the hover vehicle, through the counting node in the editor.
[0179] In some exemplary embodiments of this disclosure, the drift fork angle determination unit may include a drift count parameter determination unit and a drift fork angle calculation unit. Wherein:
[0180] The drift counting parameter determination unit can be used to take the current hub fork angle of the hover vehicle as the counting base value, and obtain the maximum count value based on the drift variable parameters and the maximum drift fork angle;
[0181] The drift fork angle calculation unit can be used to determine the wheel hub fork angle of the hover vehicle at the next moment based on the base count value, the maximum count value, and the linear change ratio of the fork angle drift variable, according to the linear change function of the wheel hub angle corresponding to the hover vehicle, through the counting node in the editor.
[0182] In some exemplary embodiments of this disclosure, the hub parameter update unit may further include a recount event setting unit and a recount event triggering unit. Wherein:
[0183] The recount event setting unit can be used to set the corresponding virtual node according to the value of the drift variable parameter, and set the corresponding recount event in the virtual node respectively;
[0184] The recount event triggering unit can be used to trigger a corresponding recount event based on the value of the drift variable parameter when the drift variable parameter changes, so that the counting node can recount according to the state of the drift variable parameter.
[0185] The specific details of each module / unit in the above-mentioned wheel hub state adjustment device have been described in detail in the corresponding method embodiment section, and will not be repeated here.
[0186] Figure 21 A schematic diagram of the structure of a computer system suitable for implementing the embodiments of the present disclosure is shown.
[0187] It should be noted that, Figure 21 The computer system 2100 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.
[0188] like Figure 21 As shown, the computer system 2100 includes a central processing unit (CPU) 2101, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 2102 or programs loaded from storage section 2108 into random access memory (RAM) 2103. The RAM 2103 also stores various programs and data required for system operation. The CPU 2101, ROM 2102, and RAM 2103 are interconnected via bus 2104. An input / output (I / O) interface 2105 is also connected to bus 2104.
[0189] The following components are connected to I / O interface 2105: an input section 2106 including a keyboard, mouse, etc.; an output section 2107 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 2108 including a hard disk, etc.; and a communication section 2109 including a network interface card such as a LAN card, modem, etc. The communication section 2109 performs communication processing via a network such as the Internet. A drive 2110 is also connected to I / O interface 2105 as needed. Removable media 2111, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 2110 as needed so that computer programs read from them can be installed into storage section 2108 as needed.
[0190] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 2109, and / or installed from removable medium 2111. When the computer program is executed by central processing unit (CPU) 2101, it performs various functions defined in the system of this disclosure.
[0191] It should be noted that the computer-readable medium disclosed herein may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0192] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0193] In another aspect, this disclosure also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to perform the methods described in the above embodiments.
[0194] It should be noted that although several modules for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules described above can be embodied in one module. Conversely, the features and functions of one module described above can be further divided and embodied by multiple modules.
[0195] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein.
[0196] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for adjusting the state of a wheel hub, characterized in that, The method includes providing a graphical user interface (GUI) via a terminal device, wherein the GUI includes at least a portion of a game scene, and the game scene displays a hovering vehicle controlled by the terminal device, the hovering vehicle comprising multiple wheel hubs; the method includes: In response to a vehicle control operation applied to the hovering vehicle, the hovering vehicle is controlled to move within the game scene; During the movement of the suspended vehicle, the state parameters of the suspended vehicle at each moment are acquired, wherein the state parameters include the speed parameters of the suspended vehicle; Based on the state parameters of the suspended vehicle at each moment and the linear change function of the corresponding wheel hub angle, the wheel hub angles of each wheel hub of the suspended vehicle are adjusted to control the wheel hub angles of each wheel hub to change linearly with the changes of the state parameters; when the suspended vehicle is in a left or right turning state, the wheel hubs also have corresponding changes; specifically, when the suspended vehicle is in a left turning state, the left front wheel and left rear wheel are lowered, and the right front wheel and right rear wheel are raised; when the suspended vehicle is in a right turning state, the left front wheel and left rear wheel are raised, and the right front wheel and right rear wheel are lowered.
2. The method for adjusting the state of the wheel hub according to claim 1, characterized in that, The step of adjusting the hub angles of each hub of the suspended vehicle based on the state parameters of the suspended vehicle at each moment and the linear change function of the hub angles corresponding to the suspended vehicle includes: Obtain the wheel hub angle parameters and state parameters of the suspended vehicle at the current moment. The wheel hub angle parameters include the fork angle and tilt angle of each wheel hub of the suspended vehicle. Based on the linear change function of the wheel hub angle corresponding to the suspended vehicle, and the state parameters and wheel hub angle parameters of the suspended vehicle at the current moment, the wheel hub angle parameters of the suspended vehicle at the next moment are determined.
3. The method for adjusting the state of the wheel hub according to claim 2, characterized in that, The step of determining the wheel hub angle parameters of the suspended vehicle at the next moment based on the linear change function of the wheel hub angle corresponding to the suspended vehicle, and the state parameters and wheel hub angle parameters of the suspended vehicle at the current moment, includes: When the suspended vehicle is in an accelerating forward state or a decelerating backward state, the linear change ratio of the front fork angle variable is obtained based on the speed parameter of the suspended vehicle at the current moment and the current wheel hub front fork angle; Based on the current wheel hub fork angle of the suspended vehicle, the linear change ratio of the fork angle variable, and the maximum fork angle, the wheel hub fork angle of the suspended vehicle at the next moment is determined by the counting node in the editor, based on the linear change function of the wheel hub angle corresponding to the suspended vehicle.
4. The method for adjusting the state of the wheel hub according to claim 3, characterized in that, The step of obtaining the linear change ratio of the fork angle variable based on the speed parameter of the suspended vehicle at the current moment and the current wheel hub fork angle includes: The corresponding speed mapping value is obtained based on the speed parameters of the suspended vehicle at the current moment; Based on the speed mapping value of the suspended vehicle at the current moment and the current wheel hub fork angle, the linear change ratio of the fork angle variable is calculated according to a custom linear change ratio expression.
5. The method for adjusting the state of the wheel hub according to claim 3, characterized in that, The step of determining the wheel fork angle of the suspended vehicle at the next moment based on the current wheel hub fork angle, the linear change ratio of the fork angle variable, and the maximum fork angle, using a counting node in the editor, and based on the linear change function of the wheel hub angle corresponding to the suspended vehicle, includes: The maximum front fork angle of the suspended vehicle is used as the maximum count value, and the current wheel hub front fork angle of the suspended vehicle is used as the base count value. Based on the base count value, the maximum count value, and the linear change ratio of the fork angle variable, and using the linear change function of the wheel hub angle corresponding to the suspended vehicle, the wheel hub fork angle of the suspended vehicle at the next moment is determined by the counting node in the editor.
6. The method for adjusting the state of the wheel hub according to claim 3, characterized in that, The method further includes: When the suspended vehicle is in an accelerated forward state, the output sign of the linear change ratio of the front fork angle variable is positive; When the suspended vehicle is in a decelerating and reversing state, the output sign of the linear change ratio of the front fork angle variable is negative.
7. The method for adjusting the state of the wheel hub according to claim 2, characterized in that, The state parameters also include the steering variable parameters of the suspended vehicle at the current moment. Determining the wheel hub angle parameters of the suspended vehicle at the next moment based on the linear change function of the wheel hub angle corresponding to the suspended vehicle, and the state parameters and wheel hub angle parameters of the suspended vehicle at the current moment, includes: When the suspended vehicle is in a steering state, the linear change ratio of the steering variable of the forward tilt angle is obtained based on the current wheel hub tilt angle of the suspended vehicle, as well as the speed parameter and steering variable parameter of the suspended vehicle at the current moment. Based on the current wheel hub tilt angle of the suspended vehicle, the linear change ratio of the tilt angle steering variable, the steering variable parameters, and the maximum steering tilt angle, the wheel hub tilt angle of the suspended vehicle at the next moment is determined by the counting node in the editor, based on the linear change function of the wheel hub angle corresponding to the suspended vehicle.
8. The method for adjusting the state of the wheel hub according to claim 7, characterized in that, The step of obtaining the linear change ratio of the tilt angle steering variable based on the current wheel hub tilt angle of the suspended vehicle, and the speed parameters and steering variable parameters of the suspended vehicle at the current moment, includes: The corresponding speed mapping value is obtained based on the speed parameters of the suspended vehicle at the current moment; Based on the current wheel hub tilt angle of the suspended vehicle, as well as the speed mapping value and steering variable parameters of the suspended vehicle at the current moment, the linear change ratio of the tilt angle steering variable is calculated according to a custom linear change ratio expression.
9. The method for adjusting the state of the wheel hub according to claim 7, characterized in that, The step of determining the wheel hub tilt angle of the suspended vehicle at the next moment based on the current wheel hub tilt angle of the suspended vehicle, the linear change ratio of the tilt angle steering variable, the steering variable parameters, and the maximum steering tilt angle, using a counter node in the editor, and based on the linear change function of the wheel hub angle corresponding to the suspended vehicle, includes: Use the current wheel hub tilt angle of the suspended vehicle as the base value for counting; The maximum steering tilt angle is determined based on the steering variable parameters of the suspended vehicle and the maximum steering tilt angle, and the maximum steering tilt angle is used as the maximum count value. Based on the base count value, the maximum count value, and the linear change ratio of the forward tilt angle steering variable, and based on the linear change function of the wheel hub angle corresponding to the suspended vehicle, the wheel hub tilt angle of the suspended vehicle at the next moment is determined by the counting node in the editor.
10. The method for adjusting the state of the wheel hub according to claim 7, characterized in that, The method further includes: When the suspended vehicle is in a left-turn state, the output sign of the linear change ratio of the forward tilt angle steering variable of each wheel hub on the left is positive, and the output sign of the linear change ratio of the forward tilt angle steering variable of each wheel hub on the right is negative. When the suspended vehicle is in a right turn state, the output sign of the linear change ratio of the forward tilt angle steering variable of each wheel hub on the left is negative, and the output sign of the linear change ratio of the forward tilt angle steering variable of each wheel hub on the right is positive.
11. The method for adjusting the state of the wheel hub according to claim 7, characterized in that, The method further includes: Set up corresponding virtual nodes according to the values of the steering variable parameters, and set up corresponding recount events in the virtual nodes respectively; When the steering variable parameter changes, a corresponding recount event is triggered based on the value of the steering variable parameter, so that the counting node recounts according to the state of the steering variable parameter.
12. The method for adjusting the state of the wheel hub according to claim 2, characterized in that, The state parameters also include the drift variable parameters of the suspended vehicle at the current moment. The step of determining the wheel hub angle parameters of the suspended vehicle at the next moment based on the linear change function of the wheel hub angle corresponding to the suspended vehicle, and the state parameters and wheel hub angle parameters of the suspended vehicle at the current moment, includes: When the suspended vehicle is in a drifting state, the linear change ratio of the forward tilt angle drift variable is obtained based on the current wheel hub tilt angle of the suspended vehicle and the drift variable parameters of the suspended vehicle at the current moment. Based on the current wheel hub tilt angle of the levitation vehicle, the drift variable parameters, the linear change ratio of the tilt angle drift variable, and the maximum drift tilt angle, the wheel hub tilt angle of the levitation vehicle at the next moment is determined by the counting node in the editor based on the linear change function of the wheel hub angle corresponding to the levitation vehicle. Based on the current wheel hub fork angle of the suspended vehicle and the drift variable parameters of the suspended vehicle at the current moment, the linear change ratio of the fork angle drift variable is obtained; Based on the current hub fork angle of the hovering vehicle, the drift variable parameters, the linear change ratio of the fork angle drift variable, and the maximum drift fork angle, the hub fork angle of the hovering vehicle at the next moment is determined by the counting node in the editor based on the linear change function of the hub angle corresponding to the hovering vehicle.
13. The method for adjusting the state of the wheel hub according to claim 12, characterized in that, The step of determining the wheel tilt angle of the levitation vehicle at the next moment based on the current wheel tilt angle of the levitation vehicle, the drift variable parameters, the linear change ratio of the tilt angle drift variable, and the maximum drift tilt angle, using the corresponding wheel tilt angle linear change function, and through a counting node in the editor, includes: The current wheel hub tilt angle of the suspended vehicle is used as the base value for counting, and the maximum value of the count is obtained according to the drift variable parameters and the maximum drift tilt angle; Based on the base count value, the maximum count value, and the linear change ratio of the forward tilt angle drift variable, and based on the linear change function of the wheel hub angle corresponding to the suspended vehicle, the wheel hub tilt angle of the suspended vehicle at the next moment is determined by the counting node in the editor.
14. The method for adjusting the state of the wheel hub according to claim 12, characterized in that, The step of determining the wheel hub fork angle of the suspended vehicle at the next moment based on the current wheel hub fork angle of the suspended vehicle, the drift variable parameters, the linear change ratio of the fork angle drift variable, and the maximum drift fork angle, using the corresponding wheel hub angle linear change function, through the counting node in the editor, includes: The current wheel hub fork angle of the suspended vehicle is used as the base value for counting, and the maximum count value is obtained according to the drift variable parameter and the maximum drift fork angle; Based on the base count value, the maximum count value, and the linear change ratio of the fork angle drift variable, and based on the linear change function of the wheel hub angle corresponding to the suspension vehicle, the wheel hub fork angle of the suspension vehicle at the next moment is determined by the counting node in the editor.
15. The method for adjusting the state of the wheel hub according to claim 12, characterized in that, The method further includes: Set up corresponding virtual nodes according to the values of the drift variable parameters, and set corresponding recount events in the virtual nodes respectively; When the drift variable parameter changes, a corresponding recount event is triggered according to the value of the drift variable parameter, so that the counting node recounts according to the state of the drift variable parameter.
16. A device for adjusting the state of a wheel hub, characterized in that, A graphical user interface is provided via a terminal device, the graphical user interface including at least a portion of the game scene, the game scene displaying a hovering vehicle controlled by the terminal device, the hovering vehicle including multiple wheel hubs, the device comprising: The hover vehicle control module is used to respond to vehicle control operations applied to the hover vehicle and control the hover vehicle to move in the game scene; The state parameter acquisition module is used to acquire the state parameters of the suspended vehicle at each moment during the movement of the suspended vehicle, wherein the state parameters include the speed parameters of the suspended vehicle; The hub angle adjustment module is used to adjust the hub angle of each hub of the suspended vehicle according to the state parameters of the suspended vehicle at each moment and the corresponding linear change function of the hub angle of the suspended vehicle, so as to control the hub angle of each hub to change linearly with the change of the state parameters; when the suspended vehicle is in a left or right turning state, the hubs also have corresponding changes; specifically, when the suspended vehicle is in a left turning state, the left front wheel and left rear wheel are pressed down, and the right front wheel and right rear wheel are raised up; when the suspended vehicle is in a right turning state, the left front wheel and left rear wheel are raised up, and the right front wheel and right rear wheel are pressed down.
17. An electronic device, characterized in that, include: processor; as well as A memory for storing one or more programs that, when executed by the processor, cause the processor to implement the method for adjusting the wheel hub state as described in any one of claims 1 to 15.
18. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method for adjusting the wheel hub state as described in any one of claims 1 to 15.
Citation Information
Patent Citations
Angle-of-view control linkage steering method based on vehicle game
CN110180183A
Information processing method and device in game, electronic equipment and storage medium
CN114307149A