Virtual motorcycle control method and device, electronic equipment and storage medium

By using a virtual motorcycle control method and leveraging movement control commands and riding response strategies, the problem of inconsistent vehicle operation logic in open-world games was solved, enabling continuous control of the virtual motorcycle, reducing interaction costs, and improving response efficiency.

CN121695504APending Publication Date: 2026-03-20GUANGZHOU KULUO SHUJIE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-19
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

In open-world games, the difference in operational logic between driving vehicles and walking leads to a sense of disconnect in operation, increases the cost of human-computer interaction and cognitive load, and affects the continuity of gameplay and responsiveness.

Method used

By using a virtual motorcycle control method, the target motion vector and state are determined by utilizing movement control commands and pre-configured riding response strategies. This ensures that the direction control logic of the virtual motorcycle is consistent with the character's control logic. Specific maneuver commands such as drifting, jumping, and burnout are introduced to establish a simple and easy-to-understand control logic.

Benefits of technology

It reduces the difficulty of understanding and interacting with virtual motorcycle controls, improves the continuity and responsiveness of the game, makes it easier for players to control virtual motorcycles, and enhances the game's operational fluency and visual presentation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121695504A_ABST
    Figure CN121695504A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a virtual motorcycle control method and device, electronic equipment and a storage medium, and belongs to the technical field of games. The method comprises the following steps: acquiring a movement control instruction and a specific maneuvering instruction for a virtual player; wherein the movement control instruction comprises a direction component indicating an expected movement direction; in response to riding movement of the virtual player through the virtual motorcycle in the virtual game space, a target motion vector is determined according to the direction component of the movement control instruction and a pre-configured riding response strategy; in response to riding movement of the virtual player through the virtual motorcycle in the virtual game space, determining a target motion state according to the specific maneuvering instruction and the riding response strategy; and determining a target motion result of the virtual motorcycle in the virtual game space based on the target motion vector and the target motion state. According to the embodiment of the invention, the man-machine interaction cost can be reduced, and the continuity and response efficiency of the playing process are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of game technology, and in particular to a virtual motorcycle control method, device, electronic device and storage medium. Background Technology

[0002] In open-world games, players need to explore virtual game worlds. However, the existing interactive movement capabilities of characters are becoming increasingly insufficient as game maps expand and become richer. This has led to the development of an important interactive method that allows players to drive vehicles to explore virtual game spaces.

[0003] In related technologies, traditional vehicle control typically employs a separate operation logic of throttle or brake followed by steering, which differs significantly from the direct control logic of direction (displacement) used for virtual characters. When players frequently switch between the simple logic of controlling character movement and the different state of driving a vehicle, this significant difference in underlying control logic creates a noticeable disconnect in operation, increasing the player's cognitive load. Therefore, reducing human-computer interaction costs and improving the continuity and responsiveness of gameplay have become urgent technical problems to be solved. Summary of the Invention

[0004] The main objective of this application is to provide a virtual motorcycle control method, device, electronic device, and storage medium, which aims to reduce human-computer interaction costs and improve the continuity and response efficiency of the gameplay process.

[0005] To achieve the above objectives, a first aspect of this application proposes a virtual motorcycle control method, the method comprising: Obtain movement control commands and specific maneuver commands for the virtual player; wherein the movement control commands include a directional component indicating the desired direction of movement; In response to a virtual player riding a virtual motorcycle in a virtual game space, the target motion vector is determined based on the directional component of the movement control command and a pre-configured riding response strategy. In response to a virtual player riding a virtual motorcycle in a virtual game space, the target motion state is determined based on the specific maneuvering command and the riding response strategy. Based on the target motion vector and the target motion state, the target motion result of the virtual motorcycle is determined in the virtual game space.

[0006] In some embodiments, the specific maneuver command includes a lateral slip command, the target motion state includes a lateral slip state, and the determination of the target motion state based on the specific maneuver command and the riding response strategy in response to a virtual player riding a virtual motorcycle in a virtual game space includes: In response to detecting the lateral slip command, the virtual motorcycle is determined to adjust to the lateral slip state; Obtain the opposing angle between the directional component in the movement control command and the current inertial motion direction of the virtual motorcycle; The virtual motorcycle's orientation is deflected according to the aforementioned counter-angle, and the friction coefficient of the virtual motorcycle is adjusted while maintaining the inertial component of the target motion vector in the original motion direction.

[0007] In some embodiments, the specific maneuver command includes a jump command, the target motion state includes a jump state, and the determination of the target motion state based on the specific maneuver command and the riding response strategy in response to a virtual player riding a virtual motorcycle in a virtual game space includes: In response to detecting the jump command, the virtual motorcycle is determined to adjust to the jump state; A leap motion vector is obtained by superimposing an instantaneous impulse vector perpendicular to the current ground plane in the virtual game space onto the target motion vector. Based on the leap motion vector, the virtual motorcycle is driven to perform a parabolic motion that breaks away from the current ground plane in the virtual game space.

[0008] In some embodiments, the specific maneuver command includes a burnout command, the target motion state includes a burnout state, and the determination of the target motion state based on the specific maneuver command and the riding response strategy in response to a virtual player riding a virtual motorcycle in a virtual game space includes: In response to the detection that the burnout command is continuously triggered, the virtual motorcycle is determined to be adjusted to the burnout state; The target motion vector of the virtual motorcycle is adjusted to zero, and the front wheel axle of the virtual motorcycle is determined as the center of rotation in place; The virtual motorcycle is controlled to perform circular motion based on the stationary rotation center.

[0009] In some embodiments, virtual potential energy is continuously accumulated in response to the virtual motorcycle performing circular motion based on the stationary rotation center, wherein the magnitude of the virtual potential energy is positively correlated with the duration of the circular motion; In response to the burning tire command stopping triggering, the burning tire state of the virtual motorcycle is deactivated, and the movement control command is obtained; The virtual potential energy is converted into an instantaneous impulse vector of the virtual motorcycle on the directional component of the movement control command, driving the virtual motorcycle to perform a high-acceleration starting action.

[0010] In some embodiments, a target speed range is determined by matching the target motion vector with multiple pre-configured speed level ranges; wherein each speed level range corresponds to a motorcycle performance state. Based on the target speed range and the target motion state, the motorcycle performance state of the virtual motorcycle is determined.

[0011] In some embodiments, the corresponding field of view parameter is looked up in a preset camera parameter mapping table based on the target motion vector; The virtual camera controlling the game screen dynamically scales according to the field of view parameter, wherein the larger the velocity value of the target motion vector, the larger the value of the field of view parameter.

[0012] To achieve the above objectives, a second aspect of this application provides a virtual motorcycle control device, the device comprising: The instruction acquisition module is used to acquire movement control instructions and specific maneuver instructions for the virtual player; wherein, the movement control instructions include a directional component indicating the desired direction of movement; The motion vector determination module is used to determine the target motion vector in response to a virtual player riding a virtual motorcycle in a virtual game space, based on the directional component of the movement control command and a pre-configured riding response strategy. The motion state determination module is used to determine the target motion state in response to a virtual player riding a virtual motorcycle in a virtual game space, based on the specific maneuvering command and the riding response strategy. The motion result determination module is used to determine the target motion result of the virtual motorcycle in the virtual game space based on the target motion vector and the target motion state.

[0013] To achieve the above objectives, a third aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the virtual motorcycle control method described in the first aspect.

[0014] To achieve the above objectives, a fourth aspect of the present application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the virtual motorcycle control method described in the first aspect.

[0015] The virtual motorcycle control method, device, electronic device, and storage medium proposed in this application determine the target motion vector based on the directional component of the movement control command and a pre-configured riding response strategy, establishing a simple and easy-to-understand directional control logic. This means that the virtual motorcycle's movement direction can respond directly and in real-time to the player's input direction, identical to the control logic of a character in a game. Furthermore, by determining the target motion vector based on the directional component of the movement control command and the pre-configured riding response strategy, it establishes control logic for special functions, such as drifting, airborne movement, or stationary rotation, without affecting the directional control logic. This distinguishes the virtual motorcycle's movement direction and state, improving the continuity of the motorcycle control process and significantly reducing the difficulty of understanding and interacting with the virtual motorcycle's control logic, thus lowering the player's cost of controlling and interacting with the virtual motorcycle. Attached Figure Description

[0016] Figure 1 This is a flowchart illustrating an optional virtual motorcycle control method provided in an embodiment of this application; Figure 2 This is a flowchart illustrating another optional virtual motorcycle control method provided in this application embodiment; Figure 3 This is a flowchart illustrating another optional virtual motorcycle control method provided in this application embodiment; Figure 4 This is a flowchart illustrating another optional virtual motorcycle control method provided in this application embodiment; Figure 5 yes Figure 4 A flowchart following step S403; Figure 6 This is a flowchart illustrating another optional virtual motorcycle control method provided in this application embodiment; Figure 7 This is a flowchart illustrating another optional virtual motorcycle control method provided in this application embodiment; Figure 8 This is a schematic diagram of the structure of the virtual motorcycle control device provided in the embodiments of this application; Figure 9 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0018] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0020] This application provides a virtual motorcycle control method, device, electronic device, and storage medium, aiming to reduce human-computer interaction costs and improve the continuity and response efficiency of the gameplay process.

[0021] The virtual motorcycle control method, device, electronic device, and storage medium provided in this application are specifically described through the following embodiments. First, the virtual motorcycle control method in this application embodiment is described.

[0022] The virtual motorcycle control method provided in this application relates to the field of game technology. The virtual motorcycle control method provided in this application can be applied to a terminal, a server, or software running on either a terminal or a server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, etc.; the server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application implementing the virtual motorcycle control method, but is not limited to the above forms.

[0023] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0024] Figure 1 This is an optional flowchart illustrating the virtual motorcycle control method provided in this application embodiment. Figure 1 The method may include, but is not limited to, steps S101 to S104.

[0025] Step S101: Obtain movement control commands and specific maneuver commands for the virtual player; wherein, the movement control commands include a directional component indicating the desired direction of movement; Step S102: In response to the virtual player riding a virtual motorcycle in the virtual game space, determine the target motion vector based on the directional component of the movement control command and the pre-configured riding response strategy; Step S103: In response to the virtual player riding a virtual motorcycle in the virtual game space, determine the target motion state according to specific maneuvering commands and riding response strategies; Step S104: Based on the target motion vector and the target motion state, determine the target motion result of the virtual motorcycle in the virtual game space.

[0026] Steps S101 to S104, as illustrated in this embodiment, determine the target motion vector based on the directional component of the movement control command and a pre-configured riding response strategy. This establishes a simple and easy-to-understand directional control logic, meaning the virtual motorcycle's movement direction can respond directly and in real-time to the player's input direction, mirroring the control logic of a character in a game. Furthermore, by determining the target motion vector based on the directional component of the movement control command and the pre-configured riding response strategy, control logic for special functions, such as drifting, airborne maneuvers, or stationary rotations, is established without affecting the directional control logic. This distinguishes the virtual motorcycle's movement direction from its movement state, improving the continuity of the motorcycle control process and significantly reducing the difficulty of understanding and interacting with the virtual motorcycle's control logic, thus lowering the player's cost of controlling and interacting with the virtual motorcycle.

[0027] In step S101 of some embodiments, input signals for the virtual player are acquired in real time through an input interface. These movement control commands typically originate from the player's actions on a physical joystick, keyboard keys, or a virtual joystick on a touchscreen. The directional component is specifically represented by coordinate or angle values ​​on a two-dimensional plane, indicating the direction the player expects the virtual player to move in the game world. Simultaneously acquired specific maneuver commands correspond to the trigger signals of function keys, such as jump, drift, or combinations of brake and accelerator buttons. These specific maneuver commands aim to trigger special maneuver behaviors beyond basic planar movement.

[0028] In step S102 of some embodiments, when it is detected that the virtual player is riding a virtual motorcycle, the target motion vector is calculated based on the directional component of the movement control command, combined with a pre-configured riding response strategy. The riding response strategy presets a set of parameters related to the vehicle's basic driving performance, such as acceleration values, maximum cruising speed, basic steering sensitivity, and terrain adaptation parameters.

[0029] The directional component of the player's input movement control commands can be mapped to the three-dimensional world coordinate system of the virtual game space, and a tangential velocity vector that fits the ground is generated based on the surface normal of the terrain where the virtual motorcycle is currently located. Then, based on the current vehicle speed of the virtual motorcycle and the speed simulation model preset by the riding response strategy, the magnitude of the velocity in the directional component is determined, and a target motion vector that both conforms to the player's driving intention and adapts to the undulations of the current terrain is synthesized.

[0030] In step S103 of some embodiments, when it is detected that the virtual player is riding a virtual motorcycle, in parallel with the determination of the target motion vector, the target motion state that the virtual motorcycle should be in is also determined according to the specific maneuvering command received and the state machine logic in the riding response strategy.

[0031] The target motion state does not refer to specific location information, but rather to the physical operation mode of the virtual motorcycle and its corresponding performance state. Based on the specific physical rules or motion logic corresponding to the target motion state, the basic target motion vector can be dynamically modulated or corrected. For example, when the virtual motorcycle performs a drift, its driving parameters and effects can change accordingly. The motorcycle's body will deflect slightly, its tires will spark, and it will leave clear tire tracks on the drifting surface.

[0032] For example, some virtual motorcycles have the ability to take off. After taking off, the virtual motorcycle will be free from the influence of ground friction and the target motion vector will be determined according to a new set of physical rules.

[0033] In some embodiments, the virtual motorcycle also has the ability to transform. Each target motion state corresponds to a corresponding appearance. The appearance of the virtual motorcycle can be changed according to entering different target motion states. For example, after taking off, the auxiliary flight wings of the virtual motorcycle can be deployed, or the jet mechanism of the virtual motorcycle can be changed.

[0034] In step S104 of some embodiments, the obtained target motion vector is logically fused with the target motion state to finally generate the target motion result of the virtual motorcycle in the virtual game space. In fact, the basic target motion vector is modulated or modified using the physical rules defined in the target motion state.

[0035] The target motion result refers to the final spatial attribute data of the virtual motorcycle in the virtual game space, calculated by integrating the basic movement driving force of the movement control command and the state constraint force of the specific maneuver command. This data set can be directly used to refresh the display state of the virtual motorcycle in the virtual scene. It includes not only the three-dimensional position coordinates of the virtual motorcycle after the update in the current frame, but also its performance state in the world coordinate system.

[0036] Please see Figure 2 In some embodiments, the specific maneuver command includes a lateral slip command, and the target motion state includes a lateral slip state. Embodiments of this application may include, but are not limited to, steps S201 to S203: Step S201: In response to detecting a lateral slip command, determine that the virtual motorcycle is adjusted to a lateral slip state; Step S202: Obtain the opposing angle between the directional component in the movement control command and the current inertial motion direction of the virtual motorcycle; Step S203: Based on the opposing angle, control the virtual motorcycle model to deflect, adjust the friction coefficient of the virtual motorcycle, and at the same time maintain the inertial component of the target motion vector in the original motion direction.

[0037] In step S201 of some embodiments, when a lateral drift command is received from the player's input device, it can be determined whether the current driving situation of the virtual motorcycle meets the drift triggering conditions, such as checking whether the current speed is higher than the minimum drift threshold or whether the virtual motorcycle is in a grounded state. Once it is confirmed that the triggering conditions are met, in response to the lateral drift command, the internal control state machine of the virtual motorcycle is immediately switched from the normal driving state to the lateral drift state.

[0038] Once the virtual motorcycle enters a lateral slip state, the motion-based physics calculation logic will change, and it will no longer be mandatory for the virtual motorcycle's front to be aligned with the direction of the target motion vector.

[0039] In step S202 of some embodiments, after entering the lateral slip state, it is necessary to quantify the degree of conflict between the player's steering intention and the current physical inertia of the virtual motorcycle.

[0040] The system acquires the directional components contained in the movement control commands in real time, which represent the direction the player expects the motorcycle to point. At the same time, it takes the inertial motion direction of the virtual motorcycle in the world coordinate system at the current moment, that is, the normalized direction of the centroid velocity vector. Then, based on the angle between the centroid velocity vector and the directional components, it determines the counter-angle. The magnitude of this counter-angle directly reflects the range of the player's drift operation and is the core parameter for subsequent control of the drift posture.

[0041] In step S203 of some embodiments, specific physical and visual adjustments are performed based on the calculated adversarial angle, and the virtual motorcycle model is driven to deflect according to the size of the adversarial angle, so that the motorcycle body visually presents a lateral swaying posture relative to the travel route.

[0042] Then, the friction coefficient of the virtual motorcycle can be dynamically adjusted, typically by reducing lateral friction to allow the tires to slide laterally, while possibly retaining or increasing longitudinal friction to maintain speed. Meanwhile, when calculating the target motion, the inertial component of the target motion vector in the original direction of motion can be maintained. This means that even if the front of the motorcycle has turned significantly, the vehicle's center of gravity will continue to slide primarily along its original inertial trajectory, rather than immediately following the turn of the front, thus achieving a drifting effect where the motorcycle moves sideways.

[0043] Through steps S201 to S203, by introducing an adversarial angle, the decoupled control of the virtual motorcycle's displacement trajectory and body posture is achieved. This allows players to precisely control the drift radius and posture by adjusting the angle between the input direction and the inertial direction. Moreover, the drift driving action can be completed simply by adjusting the input direction and the input of the drift button. This greatly reduces the interaction difficulty of the virtual motorcycle control logic, making it easier for players to get started with the virtual motorcycle.

[0044] Please see Figure 3 In some embodiments, the specific maneuver command includes a jump command, and the target motion state includes a jump state. Embodiments of this application may include, but are not limited to, steps S301 to S303: Step S301: In response to the detection of the leap command, determine that the virtual motorcycle is adjusted to the leap state; Step S302: Superimpose an instantaneous impulse vector perpendicular to the current ground plane of the virtual game space onto the target motion vector to obtain the leap motion vector; Step S303: Based on the leap motion vector, drive the virtual motorcycle to perform a parabolic motion that breaks away from the current ground plane in the virtual game space.

[0045] In step S301 of some embodiments, the input command stream for the virtual motorcycle is monitored in real time to identify whether it contains a specific jump command, which is typically triggered by the player pressing a dedicated jump button on a controller, keyboard, or touchscreen.

[0046] When the jump command is detected, an environmental detection logic can be executed to determine whether the virtual motorcycle is currently in contact with the ground or within a valid decision window that allows jumping, such as the coyote time.

[0047] Once the conditions are met, the system immediately responds to the takeoff command, switching the virtual motorcycle's internal motion state machine from ground driving mode to takeoff mode. This signifies that the virtual motorcycle will temporarily break free from the friction constraints of the ground and enter an aerial mode dominated by gravity.

[0048] In step S302 of some embodiments, after establishing the jump state, it is necessary to construct initial velocity data for takeoff. Therefore, the target motion vector of the virtual motorcycle is obtained, and an additional instantaneous impulse vector is superimposed on the target motion vector. The direction of this instantaneous impulse vector is set to be perpendicular to the current ground plane of the virtual game space, i.e., the vertical axis of the world coordinate system, or the upward direction based on the terrain normal. The magnitude of its instantaneous impulse vector is determined by the pre-configured jump force parameters. Through vector addition, the original horizontal or tangential motion component is synthesized with the newly generated vertical upward component to obtain a new jump motion vector with an oblique upward direction.

[0049] In step S303 of some embodiments, the calculated jump motion vector is directly used to refresh the physical motion attributes of the virtual motorcycle in the current frame. Since the jump motion vector includes a vertically upward velocity component, the virtual motorcycle immediately gains an initial upward velocity, thereby overcoming the influence of gravity and generating a vertical displacement in space. As time progresses, the gravitational acceleration effect is continuously applied to the virtual motorcycle, causing the vertical velocity component to gradually decrease and then increase in the opposite direction, driving the virtual motorcycle to execute a parabolic trajectory that detaches from the current ground plane of the virtual game space until a collision with the terrain is detected again.

[0050] Through steps S301 to S303, the abrupt vertical maneuvers are effectively integrated into continuous horizontal movement. This vector-overlay-based processing method allows players to smoothly transition from high-speed movement to aerial states without stopping, enabling them to overcome ground obstacles and explore vertical terrain. It also ensures the conservation of momentum at the moment of takeoff and the naturalness of the visual presentation, thus greatly expanding the virtual vehicle's traversal capabilities and maneuverability in complex three-dimensional terrain.

[0051] Please see Figure 4 In some embodiments, the specific maneuver command includes a burnout command, and the target motion state includes a burnout state. Embodiments of this application may include, but are not limited to, steps S401 to S403: Step S401: In response to the detection that the burnout command is continuously triggered, determine that the virtual motorcycle is adjusted to the burnout state; Step S402: Adjust the target motion vector of the virtual motorcycle to zero, and determine the front wheel axle center of the virtual motorcycle as the stationary rotation center; Step S403: Control the virtual motorcycle to perform circular motion based on the stationary rotation center.

[0052] In step S401 of some embodiments, the operation signal status from the player's input terminal is continuously monitored to determine whether the conditions for triggering a specific maneuver are met. When a specific combination command is detected, such as the accelerator and brake buttons being pressed simultaneously and continuously, or the dedicated burnout function key being in a long-press state, it is determined that the burnout command is continuously triggered.

[0053] When the burnout command is confirmed to be continuously triggered, the internal control logic of the virtual motorcycle will be switched from the normal driving mode to the burnout state. This means that the normal traction output logic based on the physical engine will be temporarily blocked, and the vehicle's displacement and rotation permissions will be taken over instead.

[0054] In step S402 of some embodiments, after entering the burnout state, displacement constraint and axle repositioning operations are first performed. In order to simulate the physical phenomenon of front wheel braking and rear wheel spinning in the real world, the forward propulsion force that the virtual motorcycle should have generated is forcibly cut off, and the velocity value of its target motion vector is directly adjusted to zero to ensure that the virtual motorcycle does not move forward or backward in macroscopic position.

[0055] Simultaneously, the spatial coordinates of the front wheel contacting the ground in the virtual motorcycle skeletal model are read and locked as a new geometric reference point, thus defining it as the center of rotation in place. This changes the default rule that vehicles typically rotate around their geometric center of mass, establishing kinematic rules for subsequent special maneuvers with the front of the vehicle as the anchor point and the rear end swinging.

[0056] In step S403 of some embodiments, the model is driven to move by combining the player's directional input with the determined rotation center. The left and right directional components in the movement control command are read, mapped to rotational angular velocity, and the virtual motorcycle model as a whole is controlled to perform circular motion around the determined stationary rotation center.

[0057] Visually, this is represented by the front wheel of the virtual motorcycle remaining relatively stationary at a point on the ground, while the motorcycle body and rear wheel perform a fan-shaped scan or circular rotation around that point. During this process, visual feedback logic of tire friction with the ground can usually be triggered simultaneously, generating high-density smoke particles and circular tire tracks, until the player releases the direction keys or cancels the burnout command.

[0058] Steps S401 to S403 enable players to quickly and significantly change the vehicle's direction using only simple key combinations, without requiring any linear displacement. This not only greatly enhances the vehicle's maneuverability and ability to escape from narrow terrain or blind spots, but also increases the fun of human-computer interaction and the game's visual appeal by recreating challenging stunt driving maneuvers.

[0059] Please see Figure 5In some embodiments, step S403 may be followed by steps S501 to S503, including but not limited to: Step S501: In response to the virtual motorcycle performing circular motion based on the stationary rotation center, virtual potential energy is continuously accumulated, wherein the magnitude of the virtual potential energy is positively correlated with the duration of the circular motion. Step S502: In response to the burnout command stopping triggering, the burnout state of the virtual motorcycle is deactivated, and a movement control command is obtained; Step S503: Convert the virtual potential energy into the instantaneous impulse vector of the virtual motorcycle in the directional component of the movement control command, and drive the virtual motorcycle to perform a high-acceleration starting action.

[0060] In step S501 of some embodiments, during the process of controlling the virtual motorcycle to perform circular motion around the front wheel axle, the internal energy accumulation logic can be activated simultaneously to simulate the power accumulation process of a vehicle engine under high load idling, quantifying it as virtual potential energy. Virtual potential energy is not real physical energy, but a numerical variable used to calculate subsequent explosive force. The magnitude of the virtual potential energy is set to be positively correlated with the duration of the circular motion; that is, the longer the player maintains the burnout state, or the more times the tires spin in idling, the higher the accumulated virtual potential energy value in the background. Typically, this value can be set with an upper limit threshold to prevent value overflow or game balance collapse.

[0061] In step S502 of some embodiments, changes in the input signal are continuously monitored. When the key signal triggering the burnout command is detected to be revoked, it is determined that the burnout command has stopped being triggered. In response to this termination signal, the locking restriction on the virtual motorcycle's displacement is immediately released, and the current target motion state is switched from the burnout state back to the normal driving state or a specific starting state. At the same time, the movement control command at the current moment can be read at high frequency, and the desired motion direction component input by the player at the moment of releasing the brake can be accurately captured. This direction component will serve as the guiding reference for subsequent launch starts.

[0062] In step S503 of some embodiments, the accumulated virtual potential energy value is converted into an instantaneous impulse vector recognizable by the physics engine using a preset dynamic mapping function. The instantaneous impulse vector is then mapped to the directional component of the movement control command, and the magnitude of the instantaneous impulse vector depends on the value of the accumulated virtual potential energy.

[0063] Subsequently, the instantaneous impulse vector is superimposed on the motion controller of the virtual motorcycle, driving the virtual motorcycle to obtain a huge initial velocity beyond the normal acceleration the moment it regains traction, thereby performing a high-acceleration start action with the characteristics of a high front lift or a high-speed forward surge.

[0064] Steps S501 to S503 not only give the burnout action a functional meaning beyond adjusting the direction of the vehicle, but also enhance the rhythm and exhilaration of the player's operation through the interaction mechanism of charging and releasing power. Furthermore, it simulates the mechanical characteristics of a high-performance motorcycle at the edge of its limits, allowing players to seamlessly transition to a high-speed sprint after completing a magnificent U-turn, greatly improving the continuity and strategic depth of the game's driving experience.

[0065] Please see Figure 6 In some embodiments, the embodiments of this application may include, but are not limited to, steps S601 to S602: Step S601: Based on the target motion vector, match it with multiple pre-configured speed level intervals to determine the target speed interval; where each speed level interval corresponds to a motorcycle performance state. Step S602: Based on the target speed range and the target motion state, determine the motorcycle performance state of the virtual motorcycle.

[0066] In step S601 of some embodiments, a hierarchical quantization process is performed for the current motion rate. Based on the target motion vector and multiple pre-configured continuous and non-overlapping speed level intervals, such as low-speed cruising, medium-speed acceleration, and extreme speed, the specific speed level of the virtual motorcycle is determined, i.e., the target speed interval is determined. Each speed level interval is associated with a unique set of preset motorcycle performance state parameters in the background configuration. These presets define the basic visual style and physical feedback intensity that should be present in that speed range.

[0067] In step S602 of some embodiments, the corresponding rendering strategy is looked up in the performance state mapping table based on the target speed range and the target motion state, such as whether it is drifting, airborne or burning out, so as to determine the motorcycle performance state of the virtual motorcycle in the current frame.

[0068] The motorcycle's performance status specifically encompasses sensory feedback parameters such as the virtual camera's field of view (FOV) stretching, the intensity of radial blur at the screen edges, the level of exhaust flame particles, and the pitch frequency of engine sounds. For example, when the virtual motorcycle is in a high-speed range and is under nitrous acceleration, the field of view can be significantly widened and strong motion blur can be applied to enhance the sense of speed through visual language.

[0069] Through steps S601 and S602, by varying the levels of audiovisual effects, such as the gradually increasing camera stretching and blurring as speed increases, speed information and driving tension are intuitively conveyed to the player. This not only greatly enhances the immersion and visual impact of virtual driving, but also allows players to intuitively perceive the vehicle's driving status simply by observing changes in the tension of the screen, thus enabling them to make more instinctive driving reactions.

[0070] Please see Figure 7 In some embodiments, the embodiments of this application may include, but are not limited to, steps S701 to S702: Step S701: Find the corresponding field of view parameter in the preset camera parameter mapping table according to the target motion vector; Step S702: Control the virtual camera of the game screen to dynamically scale according to the field of view parameter, wherein the larger the velocity value of the target motion vector, the larger the value of the field of view parameter.

[0071] In step S701 of some embodiments, the target motion vector of the virtual motorcycle is obtained to acquire the motorcycle's real-time driving speed. Then, based on the real-time driving speed, a search and matching is performed in a preset camera parameter mapping table. The camera parameter mapping table pre-stores multiple sets of data corresponding to real-time driving speeds and field of view angles, or defines a continuous function curve that specifies the optimal field of view range that the virtual camera should have when the vehicle is in different speed ranges. Through this search process, the field of view angle parameters adapted to the current driving speed can be accurately obtained.

[0072] In step S702 of some embodiments, the rendering engine adjusts the virtual camera responsible for capturing the game screen in real time based on the retrieved field-of-view parameters, controlling the virtual camera to perform smooth dynamic scaling interpolation from the current field-of-view to the target field-of-view. When the velocity value of the target motion vector increases, the value of the driving field-of-view parameter increases accordingly, resulting in a wide-angle stretched visual effect. Conversely, when the velocity value decreases, the field-of-view parameter shrinks and falls back.

[0073] Through steps S701 to S702, the radial blur effect produced by the wide-angle lens during high-speed movement greatly enhances the player's visual perception of acceleration and immersion. Simultaneously, functionally, the wider the field of view as speed increases, the more far and broader the player can anticipate road conditions ahead, effectively assisting them in identifying obstacles and reacting in advance while driving at high speeds, achieving a dual improvement in visual impact and gameplay practicality.

[0074] This application embodiment determines the target motion vector based on the directional component of the movement control command and a pre-configured riding response strategy, establishing a simple and easy-to-understand directional control logic. This means that the virtual motorcycle's movement direction can respond directly and in real-time to the player's input direction, identical to the control logic of a character in a game. Furthermore, by determining the target motion vector based on the directional component of the movement control command and the pre-configured riding response strategy, it establishes control logic for special functions, such as drifting, airborne movement, or stationary rotation, without affecting the directional control logic. This distinguishes the virtual motorcycle's movement direction from its movement state, improving the continuity of the motorcycle control process and significantly reducing the difficulty of understanding and interacting with the virtual motorcycle's control logic, thus lowering the player's cost of controlling and interacting with the virtual motorcycle.

[0075] Please see Figure 8 This application also provides a virtual motorcycle control device that can implement the above-described virtual motorcycle control method. The device includes: The instruction acquisition module is used to acquire movement control instructions and specific maneuver instructions for virtual players; wherein, the movement control instructions include a directional component indicating the desired direction of movement; The motion vector determination module is used to determine the target motion vector in response to a virtual player riding a virtual motorcycle in a virtual game space, based on the directional component of the movement control command and a pre-configured riding response strategy. The motion state determination module is used to determine the target motion state in response to the virtual player riding a virtual motorcycle in the virtual game space, based on specific maneuvering commands and riding response strategies. The motion result determination module is used to determine the target motion result of the virtual motorcycle in the virtual game space based on the target motion vector and the target motion state.

[0076] The specific implementation of this virtual motorcycle control device is basically the same as the specific embodiment of the virtual motorcycle control method described above, and will not be repeated here.

[0077] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described virtual motorcycle control method. This electronic device can be any smart terminal, including a tablet computer, an in-vehicle computer, or similar device.

[0078] Please see Figure 9 , Figure 9 The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes: The processor 901 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application. The memory 902 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 902 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 902 and called and executed by the processor 901 using the virtual motorcycle control method of the embodiments of this application. The input / output interface 903 is used to implement information input and output; The communication interface 904 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 905 transmits information between various components of the device (e.g., processor 901, memory 902, input / output interface 903, and communication interface 904); The processor 901, memory 902, input / output interface 903, and communication interface 904 are connected to each other within the device via bus 905.

[0079] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described virtual motorcycle control method.

[0080] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0081] The virtual motorcycle control method, device, electronic device, and storage medium provided in this application determine the target motion vector based on the directional component of the movement control command and a pre-configured riding response strategy, establishing a simple and easy-to-understand directional control logic. This means that the virtual motorcycle's movement direction can respond directly and in real-time to the player's input direction, identical to the control logic of a character in a game. Furthermore, by determining the target motion vector based on the directional component of the movement control command and the pre-configured riding response strategy, control logic for special functions, such as drifting, airborne movement, or stationary rotation, is established without affecting the directional control logic. This distinguishes the virtual motorcycle's movement direction and state, improving the continuity of the motorcycle control process and significantly reducing the difficulty of understanding and interacting with the virtual motorcycle's control logic, thus lowering the player's interaction costs with the virtual motorcycle.

[0082] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0083] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0084] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0085] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0086] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0087] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0088] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. The coupling or direct coupling or communication connection between the shown or discussed units may be through some interfaces, or indirect coupling or communication connection between the apparatus or units, and may be electrical, mechanical, or other forms.

[0089] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0090] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0091] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0092] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. A virtual motorcycle control method, characterized in that, The method includes: Obtain movement control commands and specific maneuver commands for the virtual player; wherein the movement control commands include a directional component indicating the desired direction of movement; In response to a virtual player riding a virtual motorcycle in a virtual game space, the target motion vector is determined based on the directional component of the movement control command and a pre-configured riding response strategy. In response to a virtual player riding a virtual motorcycle in a virtual game space, the target motion state is determined based on the specific maneuvering command and the riding response strategy. Based on the target motion vector and the target motion state, the target motion result of the virtual motorcycle is determined in the virtual game space.

2. The method according to claim 1, characterized in that, The specific maneuver command includes a lateral slip command, the target motion state includes a lateral slip state, and the determination of the target motion state in response to a virtual player riding a virtual motorcycle in the virtual game space, based on the specific maneuver command and the riding response strategy, includes: In response to detecting the lateral slip command, the virtual motorcycle is determined to adjust to the lateral slip state; Obtain the opposing angle between the directional component in the movement control command and the current inertial motion direction of the virtual motorcycle; The virtual motorcycle's orientation is deflected according to the aforementioned counter-angle, and the friction coefficient of the virtual motorcycle is adjusted while maintaining the inertial component of the target motion vector in the original motion direction.

3. The method according to claim 1, characterized in that, The specific maneuver command includes a jump command, the target motion state includes a jump state, and the process of determining the target motion state in response to a virtual player riding a virtual motorcycle in the virtual game space, based on the specific maneuver command and the riding response strategy, includes: In response to detecting the jump command, the virtual motorcycle is determined to adjust to the jump state; A leap motion vector is obtained by superimposing an instantaneous impulse vector perpendicular to the current ground plane in the virtual game space onto the target motion vector. Based on the leap motion vector, the virtual motorcycle is driven to perform a parabolic motion that breaks away from the current ground plane in the virtual game space.

4. The method according to claim 1, characterized in that, The specific maneuver command includes a burnout command, the target motion state includes a burnout state, and the process of determining the target motion state in response to a virtual player riding a virtual motorcycle in the virtual game space, based on the specific maneuver command and the riding response strategy, includes: In response to the detection that the burnout command is continuously triggered, the virtual motorcycle is determined to be adjusted to the burnout state; The target motion vector of the virtual motorcycle is adjusted to zero, and the front wheel axle of the virtual motorcycle is determined as the center of rotation in place; The virtual motorcycle is controlled to perform circular motion based on the stationary rotation center.

5. The method according to claim 4, characterized in that, The method further includes: In response to the virtual motorcycle performing circular motion based on the stationary rotation center, virtual potential energy is continuously accumulated, wherein the magnitude of the virtual potential energy is positively correlated with the duration of the circular motion; In response to the burning tire command stopping triggering, the burning tire state of the virtual motorcycle is deactivated, and the movement control command is obtained; The virtual potential energy is converted into an instantaneous impulse vector of the virtual motorcycle on the directional component of the movement control command, driving the virtual motorcycle to perform a high-acceleration starting action.

6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: The target speed range is determined by matching the target motion vector with multiple pre-configured speed level ranges; each speed level range corresponds to a motorcycle performance state. Based on the target speed range and the target motion state, the motorcycle performance state of the virtual motorcycle is determined.

7. The method according to any one of claims 1 to 5, characterized in that, The method further includes: The corresponding field of view parameter is found in the preset camera parameter mapping table based on the target motion vector; The virtual camera controlling the game screen dynamically scales according to the field of view parameter, wherein the larger the velocity value of the target motion vector, the larger the value of the field of view parameter.

8. A virtual motorcycle control device, characterized in that, The device includes: The instruction acquisition module is used to acquire movement control instructions and specific maneuver instructions for the virtual player; wherein, the movement control instructions include a directional component indicating the desired direction of movement; The motion vector determination module is used to determine the target motion vector in response to a virtual player riding a virtual motorcycle in a virtual game space, based on the directional component of the movement control command and a pre-configured riding response strategy. The motion state determination module is used to determine the target motion state in response to a virtual player riding a virtual motorcycle in a virtual game space, based on the specific maneuvering command and the riding response strategy. The motion result determination module is used to determine the target motion result of the virtual motorcycle in the virtual game space based on the target motion vector and the target motion state.

9. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the virtual motorcycle control method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the virtual motorcycle control method according to any one of claims 1 to 7.