Method and apparatus for controlling movement of controlled character, device and medium

By introducing stunt movement status in the open world exploration game, and automatically controlling controlled character movement using terrain data, the terrain adaptation problem is solved, the movement speed and smoothness are improved, and the game experience is improved.

WO2024230417A1PCT designated stage expired Publication Date: 2024-11-14NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/087862
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-11
Filing Date
2024-04-16
Publication Date
2024-11-14

AI Technical Summary

Technical Problem

In the open world exploration game, the controlled character's movement is difficult to adapt to different terrains, resulting in slow and not smooth enough movement.

Method used

The electronic terminal provides a graphical user interface, responds to player operations and enters the stunt movement state, and automatically controls the controlled character to move through terrain objects according to terrain data, including horizontal and vertical movement, reducing the player's operation burden and increasing the movement speed.

Benefits of technology

It realizes rapid movement under different terrain situations, improving the smoothness and gaming experience of controlled characters in open world exploration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024087862_14112024_PF_FP_ABST
    Figure CN2024087862_14112024_PF_FP_ABST
Patent Text Reader

Abstract

A method and apparatus for controlling movement of a controlled character, a device and a medium. The method comprises: in response to an operation for a controlled character, entering a feat movement state, wherein the feat movement state is a state in which the controlled character is controlled, according to terrain data, to automatically pass through a terrain object (101); in response to the movement of the controlled character in a virtual scene in the feat movement state, determining the terrain object in the virtual scene and the terrain data of the terrain object (102); and using a feat movement action adapted to the terrain data to control the controlled character to automatically pass through the terrain object (103). Controlling automatic movement of a controlled character by using a feat movement action adapted to terrain data is realized, so that the controlled character can adapt to different terrain conditions and can obtain a faster moving speed, and the smoothness of the controlled character in open world exploration is improved.
Need to check novelty before this filing date? Find Prior Art

Description

A method, device, equipment and medium for controlling movement of a controlled character

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese patent application number 202310542720.X filed on May 11, 2023, entitled “A method, device, equipment and medium for controlling movement of a controlled character”, the entire contents of which are incorporated by reference into this disclosure. Technical Field

[0003] The present disclosure relates to the field of game technology, and in particular to a method, device, equipment, and medium for controlling the movement of a controlled character. Background Art

[0004] As games featuring open world exploration become popular, such as martial arts-themed open world exploration games, the vast terrain has placed higher demands on the movement of the controlled characters.

[0005] In related games, the movement of controlled characters usually needs to be actively controlled by players, and only simple, unified processing is used. It is difficult to adapt to different terrains and the movement speed is slow, resulting in the controlled characters not exploring the open world smoothly.

[0006] Summary of the Invention

[0007] In view of the above problems, a method, apparatus, device and medium for controlling the movement of a controlled character are proposed to overcome the above problems or at least partially solve the above problems, including:

[0008] A method for controlling the movement of a controlled character comprises providing a graphical user interface through an electronic terminal, and displaying a virtual scene and a controlled character in the virtual scene through the graphical user interface. The method comprises: entering a stunt movement state in response to an operation on the controlled character; wherein the stunt movement state is a state in which the controlled character is controlled to automatically pass through a terrain object according to terrain data; determining a terrain object in the virtual scene and the terrain data of the terrain object in response to the controlled character moving in the virtual scene in the stunt movement state; and controlling the controlled character to automatically pass through the terrain object using a stunt movement action adapted to the terrain data.

[0009] A device for controlling movement of a controlled character provides a graphical user interface through an electronic terminal, and the electronic terminal displays a virtual scene and a controlled character in the virtual scene through the graphical user interface. The device includes: a module for entering a stunt movement state in response to an operation, for entering a stunt movement state in response to an operation on the controlled character; wherein the stunt movement state is a state in which the controlled character is controlled to automatically pass through terrain objects based on terrain data; a terrain object and terrain data determination module, for determining terrain objects and terrain data of the terrain objects in the virtual scene in response to the controlled character moving in the virtual scene in the stunt movement state; and a module for controlling terrain objects with stunts, for controlling the controlled character to automatically pass through terrain objects with stunt movement actions adapted to the terrain data.

[0010] An electronic device includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the above-mentioned movement control method of the controlled character is implemented.

[0011] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned method for controlling the movement of a controlled character.

[0012] The embodiments of the present disclosure have the following advantages:

[0013] In the embodiment of the present disclosure, by responding to operations on a controlled character, a stunt movement state is entered, where the controlled character is controlled to automatically pass through terrain objects based on terrain data. Then, in response to the controlled character's movement in the virtual scene in the stunt movement state, the terrain objects in the virtual scene and the terrain data of the terrain objects are determined, and the controlled character is controlled to automatically pass through the terrain objects using stunt movement actions adapted to the terrain data. This achieves the goal of automatically controlling the controlled character's movement using stunt movement actions adapted to the terrain data, can adapt to different terrain conditions, and can achieve a faster movement speed, thereby improving the smoothness of the controlled character's exploration in the open world. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solution of the present disclosure, the following briefly introduces the drawings required for use in the description of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0015] FIG1 is a flowchart of a method for controlling movement of a controlled character provided by one embodiment of the present disclosure;

[0016] FIG2 is a schematic diagram of a mobile scenario provided by one of the embodiments of the present disclosure;

[0017] FIG3 is a flowchart of another method for controlling movement of a controlled character provided by one embodiment of the present disclosure;

[0018] FIG4a is a schematic diagram of another crossing trajectory provided by one embodiment of the present disclosure;

[0019] FIG4 b is a schematic diagram of another crossing trajectory provided by one of the embodiments of the present disclosure;

[0020] FIG4c is a schematic diagram of a secondary crossing trajectory provided by one of the embodiments of the present disclosure;

[0021] FIG4 d is a schematic diagram of an upward jump trajectory provided by one of the embodiments of the present disclosure;

[0022] FIG4e is a schematic diagram of an upward jump trajectory provided by one of the embodiments of the present disclosure;

[0023] FIG5 is a flowchart of another method for controlling movement of a controlled character provided by one embodiment of the present disclosure;

[0024] FIG6 a is a schematic diagram of a mobile scenario provided by one of the embodiments of the present disclosure;

[0025] FIG6 b is a schematic diagram of a capsule provided by one embodiment of the present disclosure;

[0026] FIG6c is a schematic diagram of a mobile scenario 1 provided in one embodiment of the present disclosure;

[0027] FIG6 d is a schematic diagram of a second mobile scenario provided by one of the embodiments of the present disclosure;

[0028] FIG6e is a schematic diagram of a movement direction fusion provided by one embodiment of the present disclosure;

[0029] FIG6f is a schematic diagram of a virtual camera adjustment provided by one embodiment of the present disclosure;

[0030] FIG7 is a structural block diagram of a movement control device for a controlled character provided by one embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] To make the above-mentioned purposes, features, and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below with reference to the accompanying drawings and specific embodiments. It is apparent that the embodiments described are only a portion of the embodiments of the present disclosure, not all of them. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present disclosure without inventive effort are also within the scope of protection of the present disclosure.

[0032] 1 , a flowchart of a method for controlling movement of a controlled character provided by an embodiment of the present disclosure is shown. A graphical user interface is provided by an electronic terminal, and the electronic terminal displays a virtual scene and a controlled character in the virtual scene through the graphical user interface.

[0033] Specifically, the following steps may be included:

[0034] Step 101: In response to an operation on a controlled character, enter a stunt movement state; wherein the stunt movement state is a state in which the controlled character is controlled to automatically pass through a terrain object according to terrain data.

[0035] In open-world exploration games, such as martial arts-themed open-world exploration games, due to the vast terrain, the controlled character sometimes needs to move quickly (such as traveling quickly) or explore in the vertical space. In this case, you can set a stunt movement state. For example, the stunt movement state can be the movement state corresponding to the skill of flying over eaves and walls, which can achieve fast movement and exploration in the vertical space.

[0036] During the game, you can monitor whether the player triggers the specified key, such as long pressing the ctrl key. If you monitor the player triggering the specified key, you can enter the stunt move state.

[0037] For the controlled character, it can be configured with a basic movement state and a stunt movement state. In the basic movement state, the player needs to control all movement operations of the controlled character, while in the stunt movement state, the player can only control the movement direction of the controlled character. For other actions of the controlled character passing through terrain objects, the game application can automatically control the controlled character according to the terrain data in the virtual scene. Specifically, when the controlled character is in the basic movement state, the player needs to control the movement direction and movement actions (running, jumping, crawling, etc.) of the controlled character; when the controlled character is in the stunt movement state, the player only needs to control the movement direction of the controlled character, and the terminal can automatically control the controlled character according to the terrain data in the movement direction of the controlled character in the virtual scene. The character moves according to the movement actions adapted to the terrain data. By comparison, in the basic movement state, the movement of the controlled character not only requires the player to input more control operations, but also the obstacle avoidance depends on the player's subjective decision, which brings more operation burden to the player. In the stunt movement state, the player only needs to control the movement direction of the controlled character. For other movement controls, the terminal can automatically control them according to the terrain data, which greatly reduces the player's operation burden. For example, when the controlled character needs to climb over a mountain, in the basic movement state, the player needs to control the movement direction, climbing action, climbing timing, etc. of the controlled character. In the stunt movement state, the player only needs to control the movement direction of the controlled character, and the climbing action, climbing timing, etc. can be executed by the terminal.

[0038] It should be noted that, from the perspective of player operation, the basic movement state and the stunt movement state can effectively reduce the player's operating burden, and from the perspective of game performance, the controlled character in the stunt movement state can move in the virtual scene at a higher speed than the basic movement state, and can automatically avoid obstacles when encountering obstacles in the virtual scene. At the same time, during the movement process, corresponding actions can be performed and corresponding action effects can be added to improve the smoothness of movement and picture performance.

[0039] In the game, for a controlled character in a basic movement state, the player can input operations for the controlled character in the terminal to make it enter a stunt movement state, so as to simplify the movement control operation of the controlled character in the game and increase the movement speed of the virtual character. Among them, the virtual scene includes different terrains, and the terrain objects in which the controlled character is located when entering the stunt movement state may be different. Therefore, when the controlled character enters the stunt movement state from different terrain objects, the controlled character can perform different actions. Specifically, when the controlled character moves in a horizontal terrain object (i.e., ground movement), in the basic movement state, it can include walking, running, sprinting, etc., corresponding to different actions and different movement speeds respectively. When entering the stunt movement state, the controlled character can move at a speed faster than sprinting, and the present disclosure does not impose any restrictions on this.

[0040] Optionally, corresponding detection nodes can be configured in the game application to detect game parameters involved in the operation of the game application through the corresponding detection nodes, and when it is detected that the conditions are met, corresponding events are executed, including controlling the controlled character to perform corresponding actions.

[0041] In a specific implementation, a state trigger node corresponding to the stunt movement state can be configured. When the player controls the controlled character from the basic movement state to the stunt movement state, the terminal can switch the state trigger node from 0 to 1, and control the controlled character to enter the stunt movement state. At the same time, for the controlled character, in the basic movement state, the corresponding basic movement node corresponds to events such as "walk," "run," and "sprint." After entering the stunt movement state, the event corresponding to the basic movement node can be replaced with a "stunt movement" event, so that the controlled character can move in the virtual scene according to the movement action corresponding to the stunt movement state. In addition, during the process of moving in the stunt movement state, the terminal can also set the posture control node corresponding to the controlled character to the start state to control the controlled character's body to tilt forward at a preset angle, simulating the posture of the corresponding point of the controlled character's body during rapid movement, thereby improving the authenticity of the controlled character's movement.

[0042] In an optional embodiment, when the controlled character moves on the lateral terrain object of the virtual scene in a basic movement state, the terminal can enter a stunt movement state in response to an operation on the controlled character. The basic movement state is a state in which the controlled character is controlled to move according to the player's operation on the controlled character. Then the terminal can control the controlled character to move on the lateral terrain object of the virtual scene in a stunt movement state, and the movement speed corresponding to the stunt movement state is greater than the movement speed corresponding to the basic movement state.

[0043] In another optional embodiment, when the controlled character is in the air, the terminal can respond to operations directed at the controlled character, such as the player controlling the movement state of the controlled character through preset physical keys or virtual controls (for example, a key on the keyboard can be used as a control key to trigger the controlled character to enter the stunt movement state, or a corresponding trigger control can be set in the graphical user interface to control the controlled character to enter the stunt movement state), thereby causing the controlled character to enter the stunt movement state and control the controlled character to perform a sprint action in the movement direction. For the controlled character in the air, there are at least two situations in the process of entering the stunt movement state and performing a sprint action in the movement direction:

[0044] In one case, after the sprint action is completed, there is no longitudinal terrain object in the direction of movement of the controlled character to hinder its normal horizontal movement. In this case, after the sprint action is completed, the controlled character can fall from the air to the lateral terrain object with uniform acceleration, and after landing, move on the lateral terrain object using the action corresponding to the stunt move state;

[0045] In the second case, when the controlled character is performing a sprint action, the terminal can respond to the process of the controlled character performing the sprint action and the existence of a longitudinal terrain object that meets the preset climbing conditions in the moving direction, and control the controlled character to move from the air to the longitudinal terrain object. Therefore, for the controlled character in the air, the player can control it to enter a stunt movement state, so that the controlled character can move more flexibly and reduce the player's operating burden.

[0046] Optionally, taking the PC game as an example, the player can control the controlled character through the mouse and keyboard. Assuming that the movement state of the controlled character is moved by the ctrl key on the keyboard, in the game, when the player does not touch the ctrl key, the movement of the controlled character is controlled by the direction keys or preset direction keys on the keyboard (W to move forward, A to move left, S to move backward, D to move right). At this time, the controlled character moves in a basic movement state; when the player presses the ctrl key (single point or long press), the movement speed of the controlled character on the horizontal terrain object can be accelerated, and when a vertical terrain object that meets the preset climbing conditions is detected in the movement direction of the controlled character, the terminal can control the controlled character to automatically move from the horizontal terrain object to the vertical terrain object.

[0047] In one example, referring to Figure 2, a schematic diagram of a moving scene provided in an embodiment of the present disclosure is shown, wherein ① shows the movement trajectory of the controlled character from the ground to the wall when the controlled character moves in a stunt moving state on the ground (i.e., a horizontal terrain object), there is a corresponding wall (i.e., a longitudinal terrain object) in the moving direction and the wall meets the climbing conditions; ② shows the movement trajectory of the controlled character from the air to the wall when the controlled character receives an instruction to enter a stunt moving state in the air, enters the stunt moving state, sprints forward, and detects that there is a corresponding wall (i.e., a longitudinal terrain object) in the sprinting direction and the wall meets the climbing conditions. It should be noted that when the controlled character sprints in the air, if no wall that meets the conditions is detected, it can move according to the stunt movement state after landing. If a wall is detected again, it can climb the wall according to process ①. Therefore, for the controlled character in the stunt movement state, when it encounters a vertical terrain object during its movement, the terminal can control it to automatically move to the vertical terrain object, so that the player no longer needs to judge the timing of "climbing the wall" and no longer needs to input the corresponding control operation of "climbing the wall", which greatly reduces the player's operating burden.

[0048] Optionally, in the second case above, if the controlled character is in the basic movement state, the player needs to wait for the controlled character to fall to the horizontal terrain object, and then trigger the movement control to control the controlled character to move to the corresponding vertical terrain object, and then control the controlled character to climb the vertical terrain object with the corresponding climbing action, or trigger the jump control to control the virtual object to cross the vertical terrain object with the corresponding jumping action. When the controlled character is in the air, if the player presses the movement state control key (or movement state control control, such as the ctrl key or the corresponding virtual control, etc.) while keeping the movement joystick (or movement control key) triggered, then when controlling the controlled character to enter the stunt movement state, the controlled character in the stunt movement state can perform the corresponding sprint action in the air, approach the vertical terrain object, and when approaching the vertical terrain object and detecting that the conditions are met, move directly from the air to the vertical terrain object. The sprint action and the "wall climbing" action are executed continuously, which simplifies the player's operation, reduces the player's operating burden, and improves the player's corresponding game immersion when controlling the controlled character to move in the virtual scene.

[0049] In a specific implementation, when entering a stunt movement state from the air and detecting the presence of a longitudinal terrain object that meets the climbing conditions in the direction of movement, the terminal can control the controlled character to perform a sprint action to move to the first detection point corresponding to the longitudinal terrain object, and control the controlled character to perform a jump action from the first detection point to the longitudinal terrain object, and control the controlled character to move along the longitudinal surface of the longitudinal terrain object. The first detection point can be a jumping point from the air to the longitudinal terrain object. When the controlled character performs a sprint action and detects the presence of a longitudinal terrain object in the direction of movement, and the longitudinal terrain object meets the climbing conditions, the terminal can select the first detection point from the direction of movement of the controlled character. Then, when the controlled character performs a sprint action to move to the first detection point, the terminal is triggered to control the controlled character to move from the first detection point to the longitudinal terrain object, thereby achieving displacement between the air and the longitudinal terrain object.

[0050] In one example, for a controlled character in the air, it may include a controlled character in a jumping state and a controlled character falling from a high place. In this case, the air detection node can be used to determine whether the controlled character is in the air, and after determining that the controlled character enters the stunt movement state, which animation to select, including the animation of climbing up the wall in the air and the animation of climbing up the wall from the ground after landing in the air, etc.

[0051] In addition, to detect terrain data, the terminal can emit multiple first rays in the direction of movement of the controlled character, and emit second rays in a preset direction at multiple locations on the first rays, thereby detecting the position information of terrain objects within a preset distance in the direction of movement of the controlled character through the second rays. When a longitudinal terrain object that meets the climbing conditions is detected within 1 meter in the direction of movement of the controlled character based on the ray detection method, an event of moving from the air to the longitudinal terrain object is triggered, and the terminal can then control the controlled character to perform the corresponding action to move from the air to the longitudinal terrain object.

[0052] Optionally, after the controlled character moves to the longitudinal terrain object, the terminal can also continuously detect the terrain data of the longitudinal terrain object. Specifically, the terminal can emit multiple first rays in the moving direction of the controlled character, and emit second rays in a preset direction at multiple positions on the first rays, so as to detect the position information of the longitudinal surface of the longitudinal terrain object within a preset distance in the moving direction of the controlled character through the second rays, so as to obtain the terrain data corresponding to the longitudinal terrain object, and then control the controlled character to move on the longitudinal terrain object according to the terrain data.

[0053] Step 102 : In response to the controlled character moving in the virtual scene in a stunt movement state, determining terrain objects and terrain data of the terrain objects in the virtual scene.

[0054] After entering the stunt movement state, during the movement of the controlled character, the virtual scene in which the controlled character is located can be automatically detected, such as detecting obstacles in front, detecting terrain, etc., and then the terrain objects in the virtual scene and the terrain data of the terrain objects can be determined.

[0055] Step 103: Control the controlled character to automatically pass through the terrain object using stunt movement actions adapted to the terrain data.

[0056] To adapt to the varying terrain conditions of the virtual scene, multiple stunt movement actions can be set in the stunt movement state. These actions can be set based on whether the controlled character primarily moves horizontally or vertically in the virtual scene, such as ground movement, wall movement, or water movement. Ground movement primarily involves horizontal movement (due to obstacles, it may also briefly move vertically), meaning it moves on the ground. Wall movement involves vertical movement, meaning it moves on walls. Water movement can be a special type of ground movement, meaning it moves on the water surface (it may also move vertically on the water surface, such as jumping on the water surface, which can achieve the aquatic skills of martial arts).

[0057] Whether moving horizontally or vertically, there will be different terrains, obstacles and other obstacles. In order to avoid obstacles and adapt to the terrain for fast movement, different stunt movement actions can be set according to different terrain conditions. Under different stunt movement actions, the movement actions of the controlled character and its corresponding animation performance are also different.

[0058] During the movement of the controlled character, the terrain conditions in the virtual environment are detected in real time. For example, according to whether the controlled character will move vertically or horizontally next, or whether it is on the water, the stunt movement action adapted to the terrain data is determined, and the controlled character is controlled to automatically pass through the terrain object to achieve fast movement adapted to different terrain conditions, thereby improving the smoothness of the controlled character's exploration in the open world. Different target movement animations can be displayed according to different target movement strategies, thereby enriching the action performance and enabling more special effects performance.

[0059] It should be noted that since the main function of the stunt movement state is to facilitate the controlled character to move quickly, after entering the stunt movement state, during the movement of the controlled character, controlling the controlled character to enter different movement actions are automatically triggered according to the terrain conditions, and no user operation is required.

[0060] In the embodiment of the present disclosure, by responding to operations on a controlled character, a stunt movement state is entered, where the controlled character is controlled to automatically pass through terrain objects based on terrain data. Then, in response to the controlled character's movement in the virtual scene in the stunt movement state, the terrain objects in the virtual scene and the terrain data of the terrain objects are determined, and the controlled character is controlled to automatically pass through the terrain objects using stunt movement actions adapted to the terrain data. This achieves the goal of automatically controlling the controlled character's movement using stunt movement actions adapted to the terrain data, can adapt to different terrain conditions, and can achieve a faster movement speed, thereby improving the smoothness of the controlled character's exploration in the open world.

[0061] In open world games, the state of the controlled character can be divided into a standing standby state or a moving state according to whether the position of the controlled character changes. When the controlled character is in the standing standby state, the position of the controlled character does not change. When the controlled character is in the moving state, the position of the controlled character changes.

[0062] The controlled character's movement state can be divided into a basic movement state and a stunt movement state based on different movement logics. When the controlled character is in the basic movement state, the controlled character's first movement logic is: if there is an obstacle ahead, and the player does not intervene in the controlled character's operation, the controlled character stops moving at the obstacle due to being blocked. When the player intervenes in the controlled character's operation, the player can use experience to control the controlled character to pass through the obstacle. When the controlled character is in the stunt movement state, the controlled character's second movement logic is: based on the terrain data of the controlled character's surrounding environment, the controlled character is controlled to automatically pass through the terrain object. For example, if the terrain object is a horizontal terrain object, when there is an obstacle, the controlled character can automatically pass over or on the surface of the obstacle without relying on player operation. The horizontal terrain object can be a ground terrain object or a water surface terrain object.

[0063] It should be noted that, in the embodiment of the present disclosure, the obstruction may be a protruding obstacle on a lateral terrain object, such as a low building within a preset height; the obstruction may also be a terrain object.

[0064] In one example, the ground may be uneven due to protruding piles of dirt or stones. When the current ground height of the controlled object is lower than the ground height in front of the controlled object, and the height difference meets the preset conditions, the ground object in front can be regarded as an obstacle to the current position of the controlled character.

[0065] In another example, when there is water in front of the controlled character, the water surface object can be regarded as an obstacle to the controlled character; when the controlled character is in the basic movement state, when the player does not intervene in the operation, the controlled character moves from the ground to the water surface, and the controlled character can pass through the water surface object with a water surface specific movement posture, and the water surface specific movement posture can be specifically expressed as the swimming posture of the controlled character in the water; when the controlled character is in the stunt movement state, the controlled character can automatically pass over the water surface terrain.

[0066] It should be noted that the water surface objects in the embodiments of the present disclosure not only refer to lakes, streams and other water surface objects in virtual games, but can also refer to puddles, etc. In the embodiments of the present disclosure, the water surface objects can also include terrain objects such as swamps and wetlands with similar water properties.

[0067] In one example, the basic movement state can be divided into a first basic movement state and a second basic movement state according to the movement speed and movement posture. When the controlled character moves on a terrain object, without having to cross obstacles (i.e., blockers), the movement speed and movement posture of the stunt movement state are different from the movement speed and movement posture in the basic movement state. Among them, the movement speeds of the basic movement state and the stunt movement state are sorted from small to large as follows: first basic movement state < second basic movement state < stunt movement state.

[0068] In the disclosed embodiment, in the stunt movement state, obstacles in the lateral terrain data can be passed according to the terrain data. Compared with the player climbing over the obstacles based on experience, the obstacles can be climbed over quickly, thereby improving the player's gaming fun.

[0069] 3 , a flowchart of a method for controlling movement of a controlled character provided by an embodiment of the present disclosure is shown. A graphical user interface is provided by an electronic terminal, and the electronic terminal displays a virtual scene and a controlled character in the virtual scene through the graphical user interface.

[0070] Specifically, the following steps may be included:

[0071] Step 301 : In response to an operation on a controlled character, a stunt movement state is entered, wherein the stunt movement state is a state in which the controlled character is controlled to pass through a terrain object according to terrain data.

[0072] When the controlled character is in the basic movement state, when the player performs a target operation on the basic movement state, the controlled character can be controlled to switch from the basic movement state to the stunt movement state. In the stunt movement state, the controlled character can automatically pass through the obstacle when encountering it.

[0073] Among them, the target operation may refer to a long press operation on a certain control on the input device. While the player holds down the control, the controlled character is in a stunt movement state. When the player releases the control, the controlled character exits the stunt movement state. After exiting the movement state, the controlled character can switch to a basic movement state or a standing standby state.

[0074] Step 302 : In response to the controlled character moving on a lateral terrain object in a stunt move state, terrain data of the lateral terrain object is acquired, wherein the lateral terrain object is a ground object or a water surface object; and the lateral terrain object includes one or more obstacles.

[0075] After the controlled character enters the special effect movement state, the environment in which the controlled character is located can be monitored during the movement on the horizontal terrain object to obtain terrain data of the horizontal terrain object.

[0076] In some embodiments, terrain data may refer to convexity and concavity information in the direction of movement of the controlled character or information on changes in terrain objects (such as from a ground object to a water surface object or from a ground object to a longitudinal terrain object), wherein the convexity and concavity information may be the convexity and concavity caused by the unevenness of the transverse terrain object itself, and the convexity and concavity information may also be the convexity and concavity formed in the virtual scene due to the combination of other objects placed on the transverse terrain object (for example, a table placed on the ground) and the transverse terrain object.

[0077] In one example, terrain data may include, but is not limited to, being characterized by the following types:

[0078] Type 1: There is a first obstacle in the moving direction of the controlled character, wherein the first obstacle is a convex ground in the moving direction of the controlled character.

[0079] Type 2: There is a first depression in the direction of movement of the controlled character.

[0080] In one example, in a special effect movement state, a first forward detection can be enabled along the direction of movement of the controlled character to obtain terrain data in the direction of movement of the controlled character. The first forward detection is used to detect whether there are obstacles within a first preset distance in front of the controlled character. The first preset distance can be set according to actual detection requirements.

[0081] In one embodiment of the present disclosure, obtaining terrain data of a lateral terrain object includes: setting a collision ball that moves with the movement of the controlled character in front of the controlled character, and detecting obstacles at the position of the collision ball to obtain terrain data.

[0082] In practical applications, a collision ball can be set in the direction of movement of the controlled character. The collision ball can move with the movement of the controlled character. During the movement of the controlled character, the position of the collision ball can be continuously detected to see if there are any obstacles, thereby realizing the detection of terrain data in the direction of movement.

[0083] In an embodiment of the present disclosure, the method further includes: acquiring movement parameters of the controlled character, and adjusting the positional relationship between the collision ball and the controlled character according to the movement parameters.

[0084] In practical applications, the movement parameters of the controlled character, such as movement speed, movement direction, etc., can be determined. Then, during the movement of the controlled character, the positional relationship between the collision ball and the controlled character can be adjusted to better perform terrain data detection in the virtual scene.

[0085] In one embodiment of the present disclosure, the method further includes: obtaining the movement speed of the controlled character, and adjusting the distance between the collision ball and the controlled character according to the magnitude of the movement speed, so that the distance between the collision ball and the controlled character is positively correlated with the magnitude of the movement speed at least within a set distance range.

[0086] In practical applications, the distance between the collision ball and the controlled character can be adjusted according to the moving speed of the controlled character. Specifically, when the controlled character is in a stunt move state, the moving speed of the controlled character can be obtained, and the target distance between the controlled character and the collision ball corresponding to the moving speed can be determined, and then the distance between the collision ball and the controlled character can be adjusted according to the target distance.

[0087] Among them, the distance between the collision ball and the controlled character is positively correlated with the movement speed within the set distance range, that is, within the set distance range, the greater the movement speed of the controlled character, the farther the distance between the collision ball and the controlled character, and the smaller the movement speed of the controlled character, the smaller the distance between the collision ball and the controlled character.

[0088] For example, the distance threshold can be set to 1 meter to 3 meters. When the moving speed is slow to a certain extent, the distance between the collision ball and the controlled character is fixed at 1 meter. When the moving speed of the controlled character decreases further, the detection distance will not be shortened further; when the moving speed increases to a certain extent, the distance between the collision ball and the controlled character is fixed at 3 meters. When the moving speed of the controlled character continues to increase, the detection distance will not be increased further.

[0089] In one embodiment of the present disclosure, obstacle information at the location of the collision ball is detected to obtain terrain data, including: when it is detected that the collision ball collides with a first obstacle, detecting upward along the first obstacle to determine the height information of the first obstacle, and detecting forward along the current moving direction of the controlled character to determine the width information of the first obstacle.

[0090] In practical applications, after the collision ball detects the obstacle, it can determine the height and width of the obstacle. Specifically, when the collision ball detects the obstacle, it can detect the surface of the obstacle upward and forward along the moving direction to determine the height and width of the obstacle.

[0091] In one example, the collision ball can also detect the type of obstacle, and the obstacle type is used to determine whether the obstacle is a passable obstacle for the controlled object. When it is determined that the controlled object is a passable obstacle, a stunt move action adapted to the terrain data is executed to control the controlled character to pass over or on the surface of the obstacle of the lateral terrain object.

[0092] For example, in a virtual scene, when a controlled character is performing a stunt move on the ground or water, for a higher wall, the virtual character can only climb up the wall but cannot directly climb over it.

[0093] Step 303: Control the controlled character to pass over or on the surface of an obstacle of the horizontal terrain object using a stunt movement action adapted to the terrain data.

[0094] After acquiring the terrain data, a stunt movement action adapted to the terrain data may be determined, and then the stunt movement action may be used to selectively pass over or through an obstacle of the lateral terrain object.

[0095] In one embodiment of the present disclosure, controlling a controlled character to pass over or on the surface of an obstacle of a lateral terrain object using a stunt movement action adapted to terrain data may include the following sub-steps:

[0096] Obtaining character parameters of a controlled character; determining a target stunt move action from a plurality of candidate stunt move actions according to terrain data; adjusting the target stunt move action according to the character parameters, and controlling the controlled character to pass over or on the surface of an obstacle of a lateral terrain object according to the adjusted target stunt move action.

[0097] The character parameters include at least one of a character footstep parameter and a character gender parameter.

[0098] The preset animation library may be pre-set with candidate stunt movement actions corresponding to various terrain data. The candidate stunt movement actions may be used as stunt movement action templates set for the character. Thus, after determining the terrain data, the target stunt movement action corresponding to the terrain data may be determined.

[0099] Candidate stunt movement actions can be divided into three categories: vaulting actions, upward jumping actions, and downward jumping actions. Different actions can be set for vaulting actions, upward jumping actions, and downward jumping actions according to height.

[0100] For example, a crossover action (Cross animation) can be divided into four animations based on height: CrossLow, CrossMiddle, CrossMidst, and CrossHigh. Each animation is set with an applicable height. When a crossover action is determined to be used, a highly adapted animation can be selected from the preset animations based on the height of the obstacle as the crossover action performed by the controlled character when crossing the obstacle. The height of the crossover action is higher than the height of the obstacle.

[0101] Jumping animations can be divided into three types: those below 0.65m are accelerated versions of the running animations used in stunt moves. Small jumps between 0.65m and 1.5m correspond to stride animations. In practice, the jump time and frequency can be calculated based on the character's footsteps. Jumping animations above 1.5m correspond to jumping animations.

[0102] The jumping action can be divided into acceleration running, small jumping animation, 1.8m-4m jumping animation, 4m-10m jumping animation, and leap of faith over 10m.

[0103] In actual applications, the flipping action, the jumping action, and the jumping action can also be used to set the animation of the controlled character with different flipping directions for the left and right feet.

[0104] When the first obstacle is detected, the action type is determined based on the terrain information of the obstacle and the width information of the first size parameter (wherein the action type may include a climbing action, an upward jump action, and a downward jump action). Then, based on the height information, the candidate stunt movement action (i.e., animation) that matches the height information can be determined from the corresponding action type, and then the candidate stunt movement action with different climbing directions can be selected based on the left and right foot states of the controlled character.

[0105] In practical applications, the special effects movement actions performed by the controlled character can be combined with the state of the controlled character itself and the environment in which the controlled character is located, and the target special effects movement actions are obtained by adaptively adjusting the preset candidate special effects movement actions.

[0106] It should be noted that in actual applications, different candidate stunt movement actions can be pre-set according to different scenes, so that when the controlled character is in a stunt movement state, the corresponding candidate stunt movement actions can be used in combination with the scene to enrich the action performance of the controlled character in the virtual scene.

[0107] After determining the target stunt move, it can be adjusted according to the character parameters to obtain the target stunt move corresponding to the controlled character. Specifically, the relative angle position of the controlled character's current footsteps can be matched to the footstep position of the target stunt move, and the start time of the target stunt move can be changed to achieve footstep connection and avoid slipping. The character gender parameter is used to switch between male and female characters.

[0108] In one embodiment of the present disclosure, when a controlled character moves on a lateral terrain object in a stunt move state, the distance between a virtual camera in a virtual scene and the controlled character is increased.

[0109] In actual applications, when the controlled character moves on a horizontal terrain object in a stunt movement state, the movement speed of the controlled character can be faster than the movement speed in the basic movement state. The distance between the virtual camera in the virtual scene and the controlled character can be increased to expand the field of view of the lens and adjust the focal length to be smaller, making it easier for players to see the terrain clearly and perform operations.

[0110] In one example, after increasing the distance between the virtual camera and the controlled character in the virtual scene, the virtual camera is controlled to gradually follow the controlled character, thereby enhancing the feeling of rapid movement through the lens of the virtual camera.

[0111] In one embodiment of the present disclosure, it also includes: when the controlled character moves on the lateral terrain object in a stunt moving state, determining the current angle of the virtual camera in the virtual scene; when the current angle is the side angle of the controlled object, adjusting the current angle of the virtual camera to the back angle of the controlled character.

[0112] In actual applications, when the virtual camera faces the side of the controlled character, due to the limited viewing angle, the lens of the virtual camera can be automatically and gradually turned to the back of the controlled character to facilitate player operation.

[0113] In an embodiment of the present disclosure, the method further includes: when the controlled character is in a turning state or a stationary state, stopping acquiring terrain data in the lateral terrain object.

[0114] When the controlled character is in a stunt move state, it can be determined whether the controlled character is in a turning or stationary state. When it is determined that the controlled character is in a turning or stationary state, the acquisition of terrain data in the lateral terrain object can be stopped.

[0115] In one embodiment of the present disclosure, after obtaining the terrain data of the lateral terrain object, it also includes: in the process of controlling the controlled character to pass over or on the surface of an obstacle of the lateral terrain object with a stunt movement action adapted to the terrain data, in response to the controlled character exiting the stunt movement state, controlling the controlled character to keep moving when it is detected that the controlled character is in the air.

[0116] In actual applications, when exiting the stunt move state, the controlled character may be in a standing still state. However, when the controlled character exits the stunt move state while passing over or on the surface of an obstacle of a lateral terrain object, if the controlled character is in a suspended state, the controlled character can be controlled to fall from the air, that is, to keep moving.

[0117] In one embodiment of the present disclosure, when a controlled character moves on a lateral terrain object in a stunt move state, a detection ray is emitted along a preset ray direction with the controlled character as the ray emission point to determine material information of the collision position of the detection ray; the category of the lateral terrain object is determined based on the material information, and the category includes at least ground objects and water surface objects.

[0118] Through ray detection, it can be determined whether the object in front of the controlled character is a ground object or a water object.

[0119] When the terrain data representation switches from a ground object to a water surface object, it is possible to pass over or on the water surface with a stunt movement action adapted to the water surface object.

[0120] In the embodiment of the present disclosure, in response to an operation on a controlled character, a stunt movement state is entered, wherein the stunt movement state is a state in which the controlled character is controlled to pass through a terrain object according to terrain data; in response to the movement of the controlled character on a lateral terrain object in the stunt movement state, terrain data of the lateral terrain object is obtained, wherein the lateral terrain object is a ground object or a water surface object; the lateral terrain object includes one or more obstacles; the controlled character is controlled to pass over or on the surface of the obstacle of the lateral terrain object by a stunt movement action adapted to the terrain data, thereby achieving that in the stunt movement state, obstacles in the lateral terrain data can be passed according to the terrain data, and obstacles can be quickly crossed compared to players crossing over obstacles based on their own experience, thereby increasing the player's gaming fun.

[0121] In one embodiment of the present disclosure, controlling a controlled character to pass over or on the surface of an obstacle of a lateral terrain object using a stunt movement action adapted to terrain data includes:

[0122] When the terrain data indicates that there is a first obstacle in the moving direction of the controlled character, a first size parameter of the first obstacle is determined; and a stunt movement action adapted to the first size parameter is used to control the controlled character to pass over or on the surface of the first obstacle.

[0123] Among them, the first obstacle is the convex ground in front of the controlled character. The convex ground can be the convexity and concavity caused by the unevenness of the ground object itself. The convexity and concavity information can also be the convexity and concavity formed in the virtual scene due to the ground object or other objects placed on the water surface (for example, a table placed on the ground or a boat on the water surface).

[0124] In one example, the stunt movement action for the first obstacle can specifically be a jumping action, which can be a climbing action over the first obstacle, an upward jumping action to jump to the first obstacle, and a downward jumping action.

[0125] In one embodiment of the present disclosure, the first size parameter includes at least height information and width information of the first obstacle, the width information of the first obstacle is the width along the moving direction of the controlled character, and the controlled character is controlled to pass over the top or surface of the first obstacle by a stunt movement action adapted to the height information. Specifically, it can be: when the width information is less than a preset width threshold, the controlled character is controlled to pass over the first obstacle from above the first obstacle according to a jumping action adapted to the height information.

[0126] In practical applications, different heights may correspond to different stunt movements. After determining the height information of the first obstacle, the appropriate stunt movement may be determined according to the height information, and then the controlled character may be controlled to pass over or on the surface of the first obstacle in a selective manner.

[0127] When the width information is smaller than a preset width threshold, the controlled character can directly jump over the first obstacle from above by a highly adapted jumping action, and the special effect moving action used in this process is a climbing action.

[0128] In one embodiment of the present disclosure, the method further includes: during the jumping process of the controlled character, when the controlled character moves to a first jumping position, starting a second forward detection along the moving direction of the controlled character to detect a second obstacle, wherein the first jumping position is a position on the jumping trajectory of the controlled character over the first obstacle.

[0129] In actual application, the controlled character can use stunt movement actions to perform climbing movements, and the stunt movement actions can constitute the climbing trajectory of the controlled character. When the controlled character moves to the first climbing position according to the climbing trajectory, the second forward detection can be triggered to detect the second obstacle along the moving direction of the controlled character.

[0130] In one example, the preset distance of the second forward detection is smaller than the detection distance of the first forward detection. For example, the detection distance of the second forward detection may be 1 m, and the detection distance of the first forward detection may be 3 m.

[0131] The second forward detection can detect the distance to the obstacle, and when an obstacle is detected, it triggers the aerial wall climbing; the first forward detection can detect the distance to the obstacle, and when an obstacle is detected, it can determine the size parameters of the obstacle, so as to perform the jumping action against the obstacle again in the air according to the size parameters.

[0132] It should be noted that the first crossing position can be set according to actual needs, and there are no excessive restrictions on this in the embodiment of the present disclosure.

[0133] Figure 4a is a schematic diagram of a climbing trajectory: first, the climbing trajectory of the climbing action is divided into three sections: the jump section (i.e., the first stage of the climbing trajectory before point B in Figure 4a), the loop section (i.e., the second stage from point B to point C in Figure 4a), and the end section (i.e., the third stage after point C in Figure 4a).

[0134] Among them, the second forward detection can be turned on at point A in the jump section (i.e., the first climbing position), which is a wall climbing detection. When an obstacle is detected, the wall climbing action can be executed.

[0135] At the end of the jump segment, the jump speed information can be obtained at point B, and the loop is switched based on the speed information to achieve the connection between different stages of the climbing action.

[0136] In actual applications, different loop animations are set based on parameters such as the height of the controlled character from the ground and the action type to enrich the actions of the controlled character.

[0137] When the controlled character moves from point B to point C, the loop segment can be connected to the end stage when the controlled character lands.

[0138] After reaching point B, the action selection of the controlled character after landing is determined based on the real-time status of the controlled character. The action of the controlled character after landing can include standing still after landing or continuing to run after landing. When continuing to run after landing is chosen, the character continues to run with special effects movement actions, and detects terrain data with the first forward detection during the running process.

[0139] In one embodiment of the present disclosure, the method further includes: when the controlled character moves to a second crossing position, turning off the first forward detection for obtaining terrain data, wherein the second crossing position is a position before the first crossing position on the crossing trajectory, and the detection distance of the first forward detection is greater than the detection distance of the second forward detection.

[0140] In practical applications, when the controlled character moves to the second climbing position according to the climbing trajectory, the first forward detection for obtaining terrain data can be turned off to avoid the controlled character from continuously detecting the first obstacle in the first forward detection, which may cause confusion in the entire climbing trajectory.

[0141] When the controlled character moves along the jumping track, the controlled character may first turn off the long-distance first forward detection at the second jumping position, and then turn on the short-distance second forward detection at the first jumping position.

[0142] In one embodiment of the present disclosure, the method further includes: when the controlled character moves to a third flipping position, turning off the second forward detection and turning on the first forward detection along the moving direction of the controlled character, the third flipping position being a position at a preset height in the falling stage of the flipping trajectory after the first flipping position.

[0143] In actual application, on the climbing trajectory, the controlled character passes through the second climbing position, the first climbing position, and the third climbing position in sequence. When moving to the third climbing position, the short-distance first forward detection can be turned off, and the long-distance first forward detection can be turned on at the same time.

[0144] In one embodiment of the present disclosure, the method further includes: if the controlled character detects a second obstacle in the moving direction of the controlled character after starting the first forward detection at the third flipping position, determining a second size parameter of the second obstacle; and controlling the controlled character to pass over or on the surface of the second obstacle with a stunt movement action adapted to the second size parameter.

[0145] The second size parameter may include relative height information and / or thickness information of the second obstacle, where the relative height information is the relative height information of the second obstacle relative to the baseline with the current height of the controlled character as the baseline.

[0146] The way in which the controlled character passes through the second obstacle is similar to the description of the process of passing through the first obstacle, and will not be described in detail here.

[0147] In one embodiment of the present disclosure, the method further includes: if the controlled character turns on the second forward movement at the first climbing position and detects a second obstacle, controlling the controlled character to perform a sprint action in the moving direction, and when the second obstacle meets a preset climbing condition, moving from the air to the longitudinal terrain object formed by the second obstacle.

[0148] In actual application, when the controlled character detects the second obstacle forward, the controlled character performs a sprint action to prepare to climb the wall. When the second obstacle meets the preset climbing conditions, the controlled character moves from the air to the longitudinal terrain object formed by the second obstacle to achieve the wall climbing in the air.

[0149] When the controlled character performs a vaulting action, the controlled character is in an airborne state. The controlled character in a stunt moving state can perform a corresponding sprint action in the air, approaching the longitudinal terrain object (i.e., the second obstacle), and when approaching the longitudinal terrain object and detecting that the conditions are met, move directly from the air to the longitudinal terrain object. The sprint action and the "wall climbing" action are executed in a continuous manner, which simplifies the player's operation, reduces the player's operating burden, and improves the player's corresponding game immersion when controlling the controlled character to move in the virtual scene.

[0150] In a specific implementation, when entering a stunt movement state from the air and detecting the presence of a longitudinal terrain object that meets the climbing conditions in the direction of movement, the terminal can control the controlled character to perform a sprint action to move to the first detection point corresponding to the longitudinal terrain object, and control the controlled character to perform a jump action from the first detection point to the longitudinal terrain object, and control the controlled character to move along the longitudinal surface of the longitudinal terrain object. The first detection point can be a jumping point from the air to the longitudinal terrain object. When the controlled character performs a sprint action and detects the presence of a longitudinal terrain object in the direction of movement, and the longitudinal terrain object meets the climbing conditions, the terminal can select the first detection point from the direction of movement of the controlled character. Then, when the controlled character performs a sprint action to move to the first detection point, the terminal is triggered to control the controlled character to move from the first detection point to the longitudinal terrain object, thereby achieving displacement between the air and the longitudinal terrain object.

[0151] In one embodiment of the present disclosure, the method further includes: when the controlled character moves to a fourth climbing position, downwardly detecting the current distance of the controlled character from the ground, wherein the fourth climbing position is a position after the highest point on the climbing trajectory of the controlled character climbing over the first obstacle.

[0152] Among them, the fourth flipping position can be a flipping position before the third flipping position, which is used to detect the distance of the controlled character from the ground. When the distance from the ground is the first distance from the ground, it is determined that the controlled character has moved to the third flipping position, triggering the execution of closing the second forward detection and opening the first forward detection.

[0153] In one example, the fourth climbing position is a position after the highest point on the climbing trajectory of the controlled character climbing over the first obstacle.

[0154] In an embodiment of the present disclosure, the method further includes: when it is detected that the current ground distance is a second ground distance, controlling the controlled object to perform a landing action.

[0155] In actual application, when it is detected downward that the controlled character is at the second ground distance, it is determined that the controlled character is about to land. When the controlled character is about to land, the preset landing action can be performed. The landing action can be the action of standing still after landing, or the action of continuing to run after landing, so as to connect the entire special effect movement action of the controlled character landing from the air.

[0156] Figure 4b is a schematic diagram of another climbing trajectory, wherein point D is the second climbing position, and the first forward detection is turned off at point D; point A is the first climbing position, and the second forward detection is turned on at point A; point E corresponds to the third climbing position, and the second forward detection is turned off at point E, and the first forward detection is turned on. Point E corresponds to the first ground distance (such as set at 1.7m), and the fourth climbing position is set before point E. The downward detection is turned on at the fourth climbing position to determine the ground distance. When it is detected that the controlled character is at the second ground distance (such as 0.4m), it is used to connect the loop segment to the end to determine whether the landing action is del (standing still) or run (running).

[0157] Figure 4c is a schematic diagram of a secondary climb. When a second obstacle is detected through the first forward detection at point E, the climb over the second obstacle is performed again. If the second obstacle is detected by the second forward detection performed between point A and point E, the aerial wall climb is performed.

[0158] In an embodiment of the present disclosure, after controlling the controlled character to climb over the first obstacle object from above the first obstacle, the method further includes: when the controlled character is in a moving state, acquiring terrain data of a lateral terrain object.

[0159] In practical applications, after the climbing action is completed, at the landing point, if the controlled object is in a moving state, the first forward detection can be continued to obtain terrain data of the lateral terrain object.

[0160] When the controlled character completes the climbing action and is in a standing still state at the landing point, the first forward detection is turned off.

[0161] In one example, when the jumping action is completed and the controlled character is in a moving state, a footstep synchronization track can be performed.

[0162] In one embodiment of the present disclosure, the first size parameter includes height information and width information of the first obstacle, and controlling the controlled character to pass above or on the surface of the first obstacle with a stunt move action adapted to the height information may include: when the width information is not less than a preset width threshold, controlling the controlled character to jump from the surface of the lateral terrain object to the first obstacle according to a jumping action adapted to the height information, so as to pass through the first obstacle from the surface of the first obstacle.

[0163] In actual applications, when the width of the first obstacle is not less than the preset width threshold, that is, the first obstacle is too wide, it is difficult for the controlled character to directly climb over it. Therefore, an adaptive jumping action can be determined according to the height information to control the controlled character to jump from the current position to the first obstacle, so that it can pass through the surface of the first obstacle.

[0164] Figure 4d is a schematic diagram of a jumping trajectory in an embodiment of the present disclosure. The entire jumping process can be divided into before jumping, jumping, and running after jumping.

[0165] In an embodiment of the present disclosure, in response to an operation on a controlled character, a stunt movement state is entered, wherein the stunt movement state is a state in which the controlled character is controlled to pass through a terrain object based on terrain data. In response to the controlled character moving on a lateral terrain object in the stunt movement state, terrain data of the lateral terrain object is obtained, wherein the lateral terrain object is a ground object or a water surface object; the lateral terrain object includes one or more obstacles. When the terrain data indicates the presence of a first obstacle in the direction of movement of the controlled character, a first size parameter of the first obstacle is determined; and a stunt movement action adapted to the first size parameter is used to control the controlled character to pass over or on the surface of the first obstacle. In the stunt movement state, obstacles in the lateral terrain data can be passed based on the terrain data, allowing the player to traverse obstacles more quickly than if the player were to rely on experience to traverse obstacles, thereby enhancing the player's gaming experience.

[0166] In one embodiment of the present disclosure, controlling a controlled character to pass over or on the surface of an obstacle of a lateral terrain object using a stunt movement action adapted to terrain data includes:

[0167] When the terrain data indicates that there is a first depression in the moving direction of the controlled character, the height information between the current position of the controlled character and the first depression is determined; and according to the jumping action adapted to the height information, the controlled character is controlled to jump down from the current position to the first depression.

[0168] Among them, when the front position of the controlled character is concave relative to the current position of the controlled character, and the height difference between the front position of the controlled character and the current position of the controlled character meets the preset conditions, it is determined that the terrain data represents the existence of a first depression in the moving direction of the controlled character, wherein the preset conditions can be set according to the implementation scenario, and there are no excessive restrictions on this in the embodiment of the present disclosure.

[0169] The first concave land may include but is not limited to the following types:

[0170] Type 1: When the controlled character is on flat ground or water, the first concave area in the moving direction can be a sunken land or water surface (for example, a waterfall).

[0171] Type 2: When the controlled character is located on the first obstacle (due to a ground object or other objects placed on the water surface forming a convex area, for example, a table placed on the ground or a boat on the water surface), the concave area is flat ground or water surface.

[0172] After determining the height information, a jumping action adapted to the height information can be determined, and then the controlled character is controlled to jump down to the first concave area according to the jumping action. FIG4e is a schematic diagram of a jumping trajectory in an embodiment of the present disclosure.

[0173] In one example, during the down-jump process, since the controlled character is suspended in the air, the detection mode can be switched to the second forward detection, that is, the first forward detection is turned off and the second forward detection is turned on.

[0174] When a second obstacle is detected forward, when the controlled character moves along the downward jumping trajectory until it touches the second obstacle, the control controls the controlled character to perform a sprint action in the moving direction, and when the second obstacle meets the preset climbing conditions, moves from the air to the longitudinal terrain object formed by the second obstacle, that is, climbs the wall in the air.

[0175] When the controlled character's distance from the ground is the first distance from the ground, the first forward detection can be enabled again. When a second obstacle in the controlled character's moving direction is detected after the first forward detection is enabled, the second size parameter of the second obstacle is determined; and the controlled character is controlled to pass over or on the surface of the second obstacle with a stunt movement action adapted to the second size parameter.

[0176] In one example, a different turning time may be set for each jump at a different height, where the higher the jump height, the longer the turning time.

[0177] In an embodiment of the present disclosure, in response to an operation on a controlled character, a stunt movement state is entered, wherein the stunt movement state is a state in which the controlled character is controlled to pass through a terrain object based on terrain data. In response to the controlled character moving on a lateral terrain object in the stunt movement state, terrain data of the lateral terrain object is obtained, wherein the lateral terrain object is a ground object or a water surface object, and the lateral terrain object includes one or more obstacles. When the terrain data indicates the presence of a first depression in the direction of movement of the controlled character, height information between the controlled character's current position and the first depression is determined. Then, according to a jumping action adapted to the height information, the controlled character is controlled to jump down from the current position to the first depression. This allows the controlled character to jump down when encountering the first depression in the stunt movement state, allowing the player to quickly traverse obstacles compared to relying on experience to traverse obstacles, thereby enhancing the player's gaming experience.

[0178] Open-world games present players with a vast game world where they can freely explore the game content within it, greatly enriching the game content and improving its playability. For these games, the mainstream gameplay is exploring and collecting items within the game world. While the diverse terrain of the game world offers players a rich variety of changes during exploration and collection, it also easily increases the corresponding operational burden. This means that players need to perform different movement control operations based on the terrain as their controlled character moves. Therefore, simplifying the player's movement control of the controlled character based on the terrain and enhancing the player's sense of immersion in the controlled character's movement within the game world have become key factors influencing a good gaming experience for players. For example, simplifying the movement control of the controlled character as they move to their destination will undoubtedly provide a positive gaming experience for the player. Among them, in open-world games, which contain a variety of terrain objects, such as grasslands, plains, hills, mountains, forests, buildings, etc., the controlled character can move in the horizontal direction of the game scene (such as running on grasslands, etc.) and in the vertical direction (such as climbing the walls of buildings, etc.). However, during the vertical exploration process (such as climbing walls and cliffs, etc.), the controlled character can move in the vertical exploration through corresponding climbing actions. In this process, the entire process relies on the player's independent operation. The player not only needs to judge the timing of the operation (such as when encountering an obstacle, it is necessary to judge when to input the corresponding operation to control the controlled character to cross the obstacle, etc.), which easily brings a huge game operation burden to the player, but the controlled character also moves slowly, greatly reducing the player's exploration efficiency of the game world.

[0179] In this regard, in the game application of the present invention, different basic movement states and stunt movement states can be configured for the controlled character controlled by the player. In the basic movement state, the player needs to control all movement operations of the controlled character, while in the stunt movement state, the player can only control the movement direction of the controlled character, and for other actions of the controlled character passing through terrain objects, the game application can automatically control the controlled character according to the terrain data in the virtual scene. Specifically, during the game, the terminal can enter the stunt movement state in response to the operation on the controlled character. When the controlled character moves on the horizontal terrain object of the virtual scene in the stunt movement state, in response to the existence of a vertical terrain object that meets the preset climbing condition in the movement direction of the controlled character, the controlled character is controlled to move from the horizontal terrain object of the virtual scene to the vertical terrain object, that is, after entering the stunt movement state, when it is detected that the condition meets the condition, the controlled character is controlled to move from the horizontal terrain object of the virtual scene to the vertical terrain object. When the controlled character moves on a longitudinal terrain object with certain conditions, the controlled character can automatically move from the transverse terrain object to the longitudinal terrain object. During the displacement process, the player does not need to perform other operations except for controlling the movement direction, which effectively reduces the player's operating burden. At the same time, the terminal can also respond to the controlled character's movement on the longitudinal surface of the longitudinal terrain object in a stunt moving state, obtain the terrain data of the longitudinal surface, and control the controlled character to move along the longitudinal surface of the longitudinal terrain object with a moving action adapted to the terrain data. In addition to controlling the displacement changes of the controlled character on different terrain objects, when the movement action on the corresponding terrain object changes, the terminal can also control the controlled character to move on the corresponding terrain object based on the terrain data, further reducing the player's operating burden, simplifying the player's control method of the controlled character, allowing the player to focus more on other content of the game, and enhancing the player's sense of game immersion and other game experiences.

[0180] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present disclosure, some technical features involved in the embodiments of the present disclosure are explained and illustrated below:

[0181] Virtual scenes use devices to output scenes that are different from the real world. With the naked eye or the assistance of devices, visual perception of virtual scenes can be formed, such as two-dimensional images output by display screens, and three-dimensional images output by stereoscopic display technologies such as stereo projection, virtual reality, and augmented reality. In addition, various possible hardware can also be used to form various perceptions that simulate the real world, such as auditory perception, tactile perception, olfactory perception, and motion perception.

[0182] In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed can be in real time or with a set delay. Unless otherwise specified, there is no restriction on the order of execution of the multiple operations executed.

[0183] Controlled characters are objects that interact in virtual scenes and are controlled by users or robot programs (for example, robot programs based on artificial intelligence). They can remain still, move, and perform various behaviors in the virtual scene, such as various characters in games.

[0184] Terrain objects can be objects that constitute the terrain of the game scene, including grasslands, plains, hills, mountains, forests, buildings, etc. In particular, terrain objects can also include obstacle objects located in the aforementioned terrain objects, such as boxes, stones, etc. located on the ground. Among them, terrain objects can be divided into horizontal terrain objects and vertical terrain objects. Horizontal terrain objects include terrain objects that do not need to overcome gravity to move, such as hills, grasslands, plains and other horizontal or quasi-horizontal terrains; vertical terrain objects include terrain objects that need to overcome gravity with specific actions to move, such as the longitudinal surface of a mountain, trees, walls of a building, etc. The controlled character needs to perform corresponding actions (such as climbing, etc.) to achieve movement in the horizontal terrain objects. For vertical terrain objects, the controlled character's hands are involved in the process of climbing (inverse kinematics), and the movement needs to be carried out from the hands to the shoulders. During this process, the terminal needs to perform complex calculations, which increases the terminal's performance overhead. In addition, this simple climbing action has a slow movement speed. When encountering complex terrain, the controlled character needs to be controlled to perform corresponding actions according to the player's judgment to pass the corresponding terrain, which brings a huge operational burden to the player.

[0185] 5 , there is shown a flowchart of another method for controlling the movement of a controlled character provided by an embodiment of the present disclosure. A graphical user interface is provided by an electronic terminal, and the electronic terminal displays a virtual scene and a controlled character in the virtual scene through the graphical user interface. Specifically, the method may include the following steps:

[0186] Step 501: In response to an operation on a controlled character, enter a stunt movement state, wherein the stunt movement state is a state in which the controlled character is controlled to pass through a terrain object according to terrain data.

[0187] Optionally, the electronic terminal may include a mobile terminal and a PC terminal, etc., and a game application may be stored in the local terminal device. It is understandable that the terminal device may also be a cloud client, and the corresponding game functions may be provided in the game application. In the embodiment of the present disclosure, the electronic terminal is a PC terminal, and the player may control the controlled character through a mouse, keyboard, or game controller, etc., for illustrative explanation, and the present disclosure does not impose any restrictions on this.

[0188] Step 502: When the controlled character moves on a horizontal terrain object in a virtual scene in a stunt movement state, in response to the presence of a vertical terrain object that meets a preset climbing condition in the moving direction of the controlled character, the controlled character is controlled to move from the horizontal terrain object to the vertical terrain object in the virtual scene.

[0189] Optionally, in addition to the above-mentioned situation of entering the stunt movement state from the air and moving to the longitudinal terrain object from the air, when the controlled character moves on the transverse terrain object of the virtual scene in the stunt movement state, the terminal can also detect the terrain in the direction of movement of the controlled character. When it is detected that there is a longitudinal terrain object that meets the preset climbing conditions in the direction of movement, the terminal can control the controlled character to move from the transverse terrain object of the virtual scene to the longitudinal terrain object in response to the presence of the longitudinal terrain object that meets the preset climbing conditions in the direction of movement of the controlled character, and then further perform terrain detection on the longitudinal surface of the longitudinal terrain object to control the controlled character to move on the longitudinal terrain object according to the corresponding terrain data.

[0190] In a specific implementation, the terminal can control the controlled character to move from the horizontal terrain object of the virtual scene to the vertical terrain object in response to the presence of a vertical terrain object within a preset distance threshold in the direction of movement of the controlled character, and the height of the vertical terrain object is greater than or equal to the preset height threshold. After determining that the controlled character can move from the horizontal terrain object to the vertical terrain object, the terminal can obtain the posture tilt angle for jumping to the vertical terrain object in response to the controlled character moving to the second detection point of the horizontal terrain object. The second detection point is the jumping point from the horizontal terrain object to the vertical terrain object. Then, based on the relative distance between the second detection point and the vertical terrain object, and the posture tilt angle, the attachment point of the controlled character is determined from the vertical terrain object. Then, the controlled character is controlled to jump from the second detection point to the attachment point at the posture tilt angle. In this process, when the controlled character moves to the second detection point, the controlled character is still a certain distance away from the vertical terrain object. However, for a controlled character in a stunt move state, the player does not need to control the controlled character to move from a horizontal terrain object to a vertical terrain object. Instead, the terminal can directly "pull" the controlled character from the second detection point to the attachment point on the vertical terrain object (including controlling the controlled character to jump from the second detection point to the attachment point, or to fly from the second detection point to the attachment point, etc.). This automatically controls the controlled character's movement from a horizontal terrain object to a vertical terrain object according to terrain changes. Automatically controlling the controlled character's movement on different terrain objects through terrain changes simplifies the player's control of the controlled character and enhances the player's sense of immersion in the controlled character's movement in the virtual scene. The posture tilt angle can be the angle at which the controlled character moves from a horizontal terrain object to a vertical terrain object in the corresponding movement direction. For example, when the posture tilt angle is 30 degrees, the controlled character can jump from a horizontal terrain object to a vertical terrain object in a movement direction that is 30 degrees from the horizontal line.

[0191] In one example, in the process of a controlled character moving from a horizontal terrain object to a vertical terrain object, it can move from the horizontal terrain object to the vertical terrain object through different movement directions (including left, right, and front) (hereinafter referred to as a "wall-mounted event"), and be detected through the corresponding wall-mounted node so that mapping selection can be performed based on the direction of the controlled character being equivalent to the longitudinal surface of the vertical terrain object. Specifically, for the "wall climbing event", it may involve a wall detection node, a wall climbing node, an animation connection node, a speed control node, and an event node. When the controlled character triggers the "wall climbing event" on a horizontal terrain object with Run / Rush, the terminal can detect the corresponding "wall climbing event" through the wall detection node, enter the wall climbing node of the "wall climbing" fusion tree, and play the animation corresponding to the wall climbing node. During the animation playback process, the wall climbing animation can be divided into two segments and connected through the animation connection node. The first segment is the wall climbing segment, and the second segment is the action stretching segment. The speed control node controls the controlled character to "climb the wall" at a corresponding speed in the action stretching segment to ensure that the controlled character can touch the longitudinal surface of the longitudinal terrain object at the position of climbing the wall. At the same time, the event node triggers the selection connection between the first and second animation segments, and the second animation segment can be controlled by a custom event to control the animation to jump to the longitudinal surface movement and stop climbing state, etc., to indicate that the animation needs to jump when it plays to the last frame. Referring to Figure 6a, a schematic diagram of the movement scene provided in an embodiment of the present disclosure is shown. When a longitudinal terrain object that meets the climbing conditions is detected in the moving direction of the controlled character, by determining the corresponding detection point and attachment point, when the controlled character moves to the detection point A, the controlled character is triggered to jump from the detection point to the attachment point B with a preset posture tilt angle as the jumping direction, thereby realizing the movement of the controlled character from the horizontal terrain object to the longitudinal terrain object.

[0192] In addition, during the above process, when the controlled character enters the stunt movement state with Run / Rush and encounters a vertical terrain object during the movement, the camera will automatically turn to the back of the controlled character. However, when the screen perspective encounters a vertical terrain object with a perspective facing the controlled character, the camera will not rotate, and the controlled character will flip backwards and will not be able to move from the horizontal terrain object to the vertical terrain object.

[0193] In an optional embodiment, in addition to configuring the corresponding execution node to detect the longitudinal terrain object, the virtual scene can also be spatially divided, and a capsule corresponding to the controlled character and the divided virtual scene are compared and detected to determine whether there is a corresponding longitudinal terrain object in the direction of movement of the controlled character. For example, if there is a corresponding spatial cube (that is, a cube corresponding to the longitudinal terrain object) within 2 meters in front of the capsule, and the height of the spatial cube is greater than or equal to the preset height threshold, it can be determined that there is a longitudinal terrain object that meets the climbing conditions in the direction of movement of the controlled character. Referring to Figure 6b, a schematic diagram of the capsule provided in the embodiment of the present disclosure is shown. The virtual scene is divided into different spatial cubes. The game scene is displayed in cross-section in Figure 6b. Each square can represent a spatial cube (unit cube, one unit is 1 meter), and the capsule (wrapped by a rectangular parallelepiped) can represent the position of the controlled character in the game scene. For example, ① represents that the controlled character is located on a vertical terrain object with a thickness of 1 meter; for ②, represents that the controlled character is located on a vertical terrain object with a maximum distance of 3 meters and a minimum distance of 2 meters between the vertical terrain object and the controlled character; for ③, represents that the controlled character is located on a vertical terrain object with a maximum distance of 2 meters and a minimum distance of 1 meter between the vertical terrain object and the controlled character; for ④, it only represents the controlled character. As the terrain object changes, the positional relationship between the controlled character and the virtual scene can change accordingly. The embodiments of the present disclosure include but are not limited to the above examples. Among them, for terrain detection, grids can be divided according to long-distance and low-precision requirements. Each grid is judged on the wall to obtain information about the up, down, left, and right directions of each grid along the wall. The animation performance can be based on the terrain and the movement direction of the controlled character to piece together the movement trajectory and state. The key position is obtained by close-range ray and IK (Inverse Kinematics) is used to adjust the posture. The connectivity of each direction can be configured as 6 connected directions, etc., and the distance from the obstacle can be configured as 4 meters. As an example, when performing space estimation, detection can be directed forward and upward, with a detection distance of 10m. It can be refreshed and scrolled, and calculated in real time through rays. The capsule height can be configured to be 2m, the upward detection distance to be 2.4m, and the left and right detection distances to be 1.5m.

[0194] After the controlled character moves to the vertical terrain object, the terminal can respond to receiving a movement control instruction for the virtual object and control the controlled character to move on the vertical terrain object. It should be noted that the movement control instruction can be an instruction for controlling the movement direction of the controlled character. When the player stops inputting the movement control instruction, the terminal can respond to the end of the movement control instruction and control the controlled character to remain on the vertical terrain object. In the stunt move state, the terminal can remove the gravity of the controlled character in the virtual scene to control the controlled character to remain on the vertical terrain object, so that the controlled character can remain on the vertical terrain object in a manner similar to "adsorption".

[0195] Step 503 : In response to the controlled character moving on the longitudinal surface of the longitudinal terrain object in a stunt movement state, terrain data of the longitudinal surface is acquired, and the controlled character is controlled to move along the longitudinal surface of the longitudinal terrain object with a movement action adapted to the terrain data.

[0196] When the controlled character moves on a longitudinal terrain object in a stunt movement state, the terminal can obtain the terrain data of the longitudinal surface of the longitudinal terrain object in real time through ray detection, and control the controlled character to move along the longitudinal surface of the longitudinal terrain object with a movement action adapted to the terrain data, that is, after entering the stunt movement state, when a longitudinal terrain object that meets the conditions is detected, the controlled character can automatically move from the transverse terrain object to the longitudinal terrain object. During the displacement process, there is no need to reduce the player's execution of other operations except for the control of the movement direction, which effectively reduces the player's operating burden. At the same time, the terminal can also respond to the controlled character's movement on the longitudinal surface of the longitudinal terrain object in the stunt movement state. , obtain the terrain data of the longitudinal surface, and control the controlled character to move along the longitudinal surface of the longitudinal terrain object with movement actions adapted to the terrain data. In addition to controlling the displacement changes of the controlled character on different terrain objects, when moving on the corresponding terrain objects, the terminal can also control the movement changes of the controlled character on the corresponding terrain objects based on the terrain data. This not only enables the movement actions of the controlled character to change in a rich and colorful way following the terrain, thereby improving the player's game immersion, but also further reduces the player's operating burden, simplifies the player's control method of the controlled character, and allows the player to focus more on other content of the game, thereby improving the player's gaming experience.

[0197] Optionally, the movement of the controlled character on the longitudinal terrain object may include wall movement (Climb), wall climbing (ClimbToWall), wall descent (ClimbBackJump), and platform climbing (ClimbToPlatform), wherein Climb may be the controlled character moving (ClimbRun) and staying (ClimbIdel) on the longitudinal surface of the longitudinal terrain object, as well as some corresponding performance actions such as rolling and rotating when the longitudinal surface moves; for ClimbToWall, it may be the process of climbing over an obstacle object protruding from the longitudinal surface of the longitudinal terrain object; for ClimbBackJump, it may be Moving from a longitudinal terrain object to a transverse terrain object is the process of jumping from a high place to a low place. For ClimbToPlatform, it can be the process of moving from the longitudinal surface of a longitudinal terrain object to the transverse surface. The difference from ClimbToWall is that ClimbToWall corresponds to the protruding obstacles on the longitudinal surface. After passing the protruding obstacles, the controlled character still needs to move on the longitudinal surface, while ClimbToPlatform corresponds to the protruding platforms corresponding to the transverse surface of the longitudinal terrain object, including the inward-concave platform of the longitudinal terrain object and the outward-convex platform. That is, the upper platform can refer to the controlled character jumping to the concave area, or jumping onto the obstacle object.

[0198] For example, referring to FIG6c, a schematic diagram of a mobile scene 1 provided in an embodiment of the present disclosure is shown (the mobile scene is referred to as "ClimbToPlatform" below). For a scene in which a controlled character jumps from the longitudinal surface of a longitudinal terrain object to the platform (lateral surface) of the longitudinal terrain object, the following steps are performed: 1. Perform a jumping action to jump directly from the longitudinal surface to the lateral surface; 2. There is an unstandable area on the lateral surface. When jumping, the character jumps from the longitudinal surface and crosses the unstandable area to reach the standable area on the lateral surface; 3. There is a protruding platform on the lateral surface relative to the longitudinal surface. The character climbs over the protruding platform from the longitudinal surface. ④ The protruding platform has an area where you cannot stand. When jumping, jump from the longitudinal surface to cross the protruding platform to reach the area where you can stand on the transverse surface. In addition, the arcs in ①, ②, ③ and ④ represent the movement trajectory of the controlled character, the dotted line represents the area on the terrain object where you cannot stand, and the dots represent multiple actions. Specifically, ③ contains two dots, which means that the controlled character needs to perform three actions in the process of moving from the longitudinal surface to the transverse surface, such as the first jump action, the second jump action and the falling action, etc. The same applies to ④, which will not be repeated here. In addition, referring to Figure 6d, a schematic diagram of the second moving scene provided in an embodiment of the present disclosure is shown (the second moving scene is referred to as "ClimbToWall" below). For the scene in which the controlled character moves on the longitudinal surface of the longitudinal terrain object, it includes: ① a relatively small protruding obstacle on the longitudinal surface, and directly executing a first jumping action to cross the protruding obstacle; ② a relatively large protruding obstacle on the longitudinal surface, and executing at least one action to cross the protruding obstacle; ③ there is another longitudinal surface area protruding relative to the current longitudinal surface area in the moving direction, and executing a corresponding jumping action to jump from the current longitudinal surface area to the longitudinal surface area; ④ there is a concave area relative to the current longitudinal surface in the moving direction, and executing a corresponding jumping action to jump from the longitudinal surface to the concave area. It should be noted that for the relevant meanings of arcs, dots, etc., please refer to the above description and will not be repeated here.

[0199] Optionally, for the above process, the different scenarios involved in ClimbToWall and ClimbToPlatform can be divided into "protrusions" (i.e., obstacle objects) and "recesses" for the terrain objects. "Protrusions" can include the movement scenarios corresponding to ③ and ④ of ClimbToPlatform and the movement scenarios corresponding to ①, ②, and ③ of ClimbToWall, while "recesses" can include the movement scenarios corresponding to ① and ② of ClimbToPlatform and the movement scenarios corresponding to ④ of ClimbToWall. Then, according to the corresponding scenarios, the terminal can control the controlled character to move on the longitudinal terrain object based on the terrain data obtained by real-time detection, with movement actions adapted to the terrain data.

[0200] In an optional embodiment, for a "recessed" scenario, the terminal may detect terrain data on the longitudinal surface of the controlled character's moving direction in response to the controlled character's longitudinal movement on the longitudinal surface of the longitudinal terrain object in a stunt moving state. When the terrain data indicates that there is a recessed area in the moving direction of the controlled character, the controlled character is controlled to perform a jumping action to reach the recessed area.

[0201] In a specific implementation, if there is no non-standing area in the recessed area, the terminal can control the controlled character to perform "one jumping action" or "one jumping action and one falling action" to move from the longitudinal surface of the longitudinal terrain object to the transverse surface. For example, for the ① scene of ClimbToPlatform, the terminal can control the controlled character to perform a jumping action from the longitudinal surface of the longitudinal terrain object to the transverse surface of the longitudinal terrain object (that is, the platform); for the ④ scene of ClimbToWall, the terminal can control the controlled character to perform an upward jumping action and a falling action into the recessed area to move from the longitudinal surface of the longitudinal terrain object to the transverse surface.

[0202] In the case where there is a non-standable area on the recessed area, that is, when the terrain data represents that there is a recessed area in the direction of movement of the controlled character, the first jumping action to be performed by the controlled character is determined, and then the first landing point of the controlled character in the recessed area can be determined based on the first jumping action. If the first landing point belongs to the non-standable area, the first jumping action is adjusted to a second jumping action that crosses the non-standable area, and then the controlled character is controlled to perform the second jumping action to reach the recessed area. For example, for the second scene of ClimbToPlatform, if there is a non-standable area, it is necessary to adjust the first jumping action, which originally has a smaller jumping range, to a second jumping action that can cross the non-standable area, and then control the controlled character to perform the second jumping action from the longitudinal surface of the longitudinal terrain object to cross the non-standable area on the platform and reach the standable area in the recessed area. In addition, for the fourth scene of ClimbToWall, if there is a non-standable area, its processing process can refer to the second scene of ClimbToPlatform, and will not be repeated here.

[0203] In another optional embodiment, for a "protruding" scenario, the terminal may detect the terrain data of the longitudinal surface of the longitudinal terrain object in the direction of movement of the controlled character. When the terrain data indicates that there is an obstacle object in the direction of movement of the controlled character, the terminal may determine the movement action of the controlled character to move onto or over the obstacle object based on the size parameters of the obstacle object, and then control the controlled character to move along the longitudinal surface based on the movement action. The obstacle object may include the protruding platform in the aforementioned embodiment, and the size parameter may be a protruding width representing the obstacle object relative to the longitudinal terrain object. Different protruding widths have different effects on the movement of the controlled character. Different "passing strategies" may be adopted for obstacle objects with different protruding widths, including passing through through different movement actions, etc. This disclosure does not impose any restrictions on this.

[0204] In a specific implementation, when there is no non-standing area on the obstacle object, the terminal can determine that the controlled character needs to perform at least one movement action based on the size parameter, so as to control the controlled character to cross the obstacle object and reach the corresponding position through the determined movement action. Specifically, if the size parameter of the obstacle object represents that the protruding width of the obstacle object relative to the longitudinal plane is less than a first preset threshold, then the jumping action of controlling the controlled character to jump from the first height of the longitudinal plane to the second height of the longitudinal plane to cross the obstacle object is determined. The height at the first height is less than the height at the second height, and the obstacle object is located between the first height and the second height. If the size parameter of the obstacle object represents that the protruding width of the obstacle object relative to the longitudinal plane is greater than or equal to the first preset threshold, then the movement action to be performed by the controlled character is determined to include a moving away action away from the current longitudinal plane, a first jumping action, and a first falling action falling onto the obstacle. Optionally, the first preset threshold can be a threshold set according to game requirements. For example, the first preset threshold can be set to 2 meters. For obstacle objects with a protruding width of less than 2 meters, they can be determined as simple obstacle objects and can be passed through with a simple jump action. For obstacle objects with a protruding width greater than 2 meters, they can be determined as complex obstacle objects and require multiple movement actions to cooperate in order to pass through.

[0205] In the case where there is a non-standing area on the obstacle object, the terminal can determine the second landing point of the controlled character on the obstacle object based on the moving away action, the first jumping action and the first falling action. If the second landing point belongs to the non-standing area, the first jumping action is adjusted, and / or the first falling action is adjusted, and the standing area on the obstacle object is determined through the adjusted movement action. Among them, the adjustment of the first jumping action and / or the first falling action can include: adjusting the first jumping action to the second jumping action, and / or adjusting the first falling action to the second falling action, and then the moving away action, the second jumping action and the second falling action can be determined as the movement actions to be performed by the controlled character, or the moving away action, the second jumping action and the first falling action can be determined as the movement actions to be performed by the controlled character, or the moving away action, the first jumping action and the second falling action can be determined as the movement actions to be performed by the controlled character.

[0206] After determining the movement actions corresponding to different scenes based on the size parameters through the above process, the terminal can control the controlled character to move in the longitudinal plane according to the determined movement actions. For example, for the ① scene of ClimbToWall, the terminal can control the controlled character to perform a jumping action to cross the obstacle object and reach the second height from the first height of the longitudinal terrain object.

[0207] For scenario ② of ClimbToWall, the terminal can control the controlled character to perform a moving-away action to jump to a first height in the air, then control the controlled character to perform a first jumping action to jump from the first height in the air to a second height in the air, and then control the controlled character to perform a first falling action to fall from the second height in the air onto the lateral terrain object, wherein the first height is greater than or equal to the height corresponding to the lower lateral surface of the obstacle object and less than the height corresponding to the upper lateral surface of the obstacle object; the lateral distance in the air at the first height relative to the longitudinal terrain object is greater than the protrusion width; the second height is greater than the height corresponding to the upper lateral surface of the obstacle object. In addition, this "passing strategy" is also applicable to scenarios ③ and ④ of ClimbToPlatform. At the same time, it should be noted that, in the case where there is an unstandable area on a protruding obstacle or a protruding platform, the terminal can adjust the first jumping action to a second jumping action, and / or adjust the first falling action to a second falling action, and then determine the moving away action, the second jumping action and the second falling action as the movement actions to be performed by the controlled character, or determine the moving away action, the second jumping action and the first falling action as the movement actions to be performed by the controlled character, or determine the moving away action, the first jumping action and the second falling action as the movement actions to be performed by the controlled character, wherein the jumping height of the second jumping action is greater than the jumping height of the first jumping action, and the falling distance of the second falling action is greater than the falling distance of the first falling action, thereby increasing the jumping height and / or falling distance of the controlled character, so that the controlled character can cross the protruding obstacle or the unstandable area on the protruding platform.

[0208] In addition, for the ③ scenario of ClimbToWall, which involves terrain changes between different longitudinal plane areas, the terminal can detect the terrain data of the longitudinal plane of the longitudinal terrain object in the moving direction of the controlled character. When the terrain data indicates that there is a second longitudinal plane area in the moving direction of the controlled character, and the second longitudinal plane area is protruding relative to the first longitudinal plane area where the controlled character is currently located, the controlled character is controlled to perform a moving away action away from the current first longitudinal plane area and a jumping action to reach the second longitudinal plane area.

[0209] Optionally, the above process can be implemented based on the corresponding execution nodes and event configurations, which can be reflected in the game as playing the corresponding animations. For example, the four scene animations of ClimbToPlatform can be divided into two types: for scene ① of ClimbToPlatform, it is only necessary to play the entire animation; for scene ② of ClimbToPlatform, the animation needs to be stretched to a standing position using a program. For scenes ③ and ④ of ClimbToPlatform, first the controlled character needs to be pulled out in the first section, then pulled up to the corresponding standing point, and then connected to the loop and landed. Accordingly, after landing, the script needs to be notified to switch actions, indicating whether it can switch to landing Run (continue running in the moving direction after landing) or Idel (stay at the landing point after landing).

[0210] For ClimbBackJump, after jumping to the ground, you can choose to stand on the ground or run on the ground. All you need to do is configure the corresponding trigger event on the corresponding execution node and select the corresponding animation after the event is triggered.

[0211] For ClimbToWall, it is currently divided into two lengths and two groups of animations: a small jump for obstacles of 0-2m and a climb over obstacles of 2-4m. Specifically, for obstacles of 0-2m length, an animation is played without displacement stretching, and the animation moves over by itself; for obstacles of 2-4m, the animation needs to be divided into three segments. For the protruding parts, the first and second segments of the animation are played. For the recessed areas, 2-3 segments are played, first stretching the height, and then connecting the falling animation. For climbing over obstacles of 0-2m, you only need to mount an end jump. For the three-segment animation of obstacles of 2-4m, the previous animation finally mounts the subActionEnd event (animation jump event) to jump, and the final landing animation notifies the script to jump.

[0212] In addition, the platform type can be determined through the detection node, and assigned to the animation selection node, and then selected. There are three animations that are selected sequentially by parameter control. For protruding obstacles or protruding platforms where there are no standing areas, you can stretch them through the stretching node to control the controlled character to move to the standing area. For example, if the detection node detects that the obstacle object is of the non-crossable type, that is, a protruding platform, it outputs "non-crossable type", then obtains the corresponding three animations, and then plays the corresponding animations in sequence; if the obstacle object is of the surmountable type, that is, a protruding obstacle, it outputs "surmountable type", then obtains the corresponding animation, and then plays the animation, thereby selecting the corresponding animation based on different types of obstacles to present the process of the controlled character passing through the obstacle object through animation.

[0213] For scene ① in ClimbToWall, it does not need to be connected to the corresponding wall-climbing animation. It can be configured in Climb to control the controlled character to perform the corresponding jumping action.

[0214] In the above embodiment, the process of the controlled character moving on the longitudinal terrain object based on the terrain data is covered. In addition, when no obstacles or recessed areas are encountered, the terminal can respond to the movement of the controlled character on the longitudinal terrain object and control the controlled character to perform one of the rotation actions or rolling actions during the movement. By controlling the controlled character to perform corresponding actions during the movement process, the corresponding actions are performed and corresponding action effects are added to improve the smoothness of the movement and the picture performance.

[0215] In the specific implementation, the left, right, forward, and 45-degree movements of ClimbRun are all the same, and the corresponding action animations can all be looped. Simply add a footstep synchronization point. For the 180-degree turn animation, since the left and right feet are selected via the input selection node, add a ClimbChangeDir event (climb change event) at the end of the turn animation to forcefully modify the controlled character's climbing content ClimbDir on the vertical terrain object. For ClimbIdel, only the left and right feet need to be considered and gravity removed, without adding footstep synchronization. Stop animations require footstep synchronization points and a StopActionEnd event (stop animation event) to switch the stop to Idel. For some special performances, simply add a ClimbSpecialEnd (climb special action event) at the end of the animation to jump.

[0216] In one example, after the controlled character completes a wall-jump animation, it enters the corresponding Idel / Run state machine (with different stops) based on the movement command received by the controlled character from the player. For Run, except for running forward on vertical terrain objects, other left, right, and 45-degree runs require BlendSpace2D blending (2D blending space), with the orientation selection node used to select the orientation. For left and right turn animations, a layer node is used to calculate the angle change between the previous and next frames and then select it. ClimbStop allows the near Idel to select the stop animation branch. Idel's specific logic primarily selects a stop animation based on running, and then matches the stop animation with a corresponding stop animation. For the random rolling and rotating animations on longitudinal terrain objects, considering the orientation, a range of orientations can be selected by mapping the orientation selection node. Then, the output value of the orientation selection node is mapped to obtain the corresponding ClimbBlender blend value, which blends the left, right, and 45-degree motions to obtain the direction of movement of the controlled character on the longitudinal terrain object. For example, referring to FIG6e , a schematic diagram of movement direction fusion provided in an embodiment of the present disclosure is shown, wherein the direction F directly in front is not blended, i.e., the movement direction and the motion direction do not need to be blended; FR is right and is blended with FR_45 at 45 degrees. That is, when the movement direction is right, the movement direction is blended with the motion direction 45 degrees to the right front to obtain the corresponding animation for the controlled character moving to the right; FL is left and is blended with FL_45 at 45 degrees. That is, when the movement direction is left, the movement direction is blended with the motion direction 45 degrees to the left front to obtain the corresponding animation for the controlled character moving to the left.

[0217] In addition, when the terrain data indicates that there is a horizontal terrain object, such as the ground, in the moving direction of the controlled character, the controlled character is controlled to perform a falling action with uniform acceleration from the longitudinal terrain object to the horizontal terrain object, and in response to the controlled character moving from the longitudinal terrain object to the horizontal terrain object, if there is no obstacle object in the moving direction of the controlled character, the controlled character is controlled to perform a sprinting action.

[0218] Optionally, the disclosed embodiment can be applied to 3D games. During the game, the virtual scene displayed on the terminal graphical user interface can be switched through the corresponding virtual camera. At the same time, by controlling the focal length of the virtual camera, the field of view mapped by the virtual camera in the graphical user interface can be controlled. The larger the focal length, the smaller the field of view of the virtual scene presented in the graphical user interface, but the presented virtual scene can present more detailed game content to the player; the smaller the focal length, the larger the field of view, and a larger range of game scenes can be presented to the player in the graphical user interface. Accordingly, the details of the game scene are reduced.

[0219] In a specific implementation, the terminal can increase the focal length of the virtual camera to reduce the field of view of the virtual camera in response to the controlled character moving on the longitudinal terrain object in a stunt move state, so as to achieve magnification of the virtual scene. Therefore, when the controlled character moves on the longitudinal terrain object in a stunt move state, the terminal can automatically adjust the focal length of the virtual camera so that the field of view of the virtual scene mapped to the graphical user interface is smaller, thereby achieving magnification of the virtual scene, so that the player can intuitively perceive the details of the longitudinal terrain object where the controlled character is located, and facilitate the player to control the movement direction of the controlled character according to the perceived details, effectively assisting the player in making game control decisions.

[0220] Correspondingly, the terminal can also respond to the controlled character moving on the longitudinal terrain object in a stunt move state by reducing the focal length of the virtual camera to increase the field of view of the virtual camera, so as to achieve the reduction of the virtual scene. By reducing the focal length, the terminal can present a virtual scene with a larger game field of view to the player in the graphical user interface, so that the player can perceive the terrain of the virtual scene through the larger game field of view, making it convenient for the player to control the movement direction of the controlled character according to the perceived content of the larger field of view, and effectively assisting the player in making game control decisions.

[0221] It should be noted that for the above two different scenarios, they can be handled in opposite ways. During the actual game process, a pair of virtual camera focal lengths can be selected for adjustment according to the player's needs, or one of them can be preset as the default adjustment solution. During the game process, the player can also manually adjust the focal length of the virtual camera according to his or her actual needs. This disclosure does not impose any restrictions on this.

[0222] In one example, when controlling a controlled character to move from a horizontal terrain object to a vertical terrain object in a virtual scene, the virtual camera is controlled to move downward by a preset distance and face the back of the controlled character at a preset elevation angle. In a specific implementation, referring to FIG6f , a schematic diagram of the virtual camera adjustment provided in an embodiment of the present disclosure is shown. When the controlled character moves on the vertical terrain object, especially when moving upward, the terminal can control the virtual camera (i.e., the lens) to gradually move downward until it reaches a 45-degree upward viewing angle of the back of the controlled character. When the controlled character moves left or right, the virtual camera will also rotate to the back of the controlled character. On the one hand, it can combine the characteristics of the game (such as the martial arts' light skills, etc.) to present a good sense of picture to the player. On the other hand, by adjusting the viewing angle, the player can better control the controlled character, reducing the player's operating burden.

[0223] In one example, the terminal can also obtain the direction of the virtual camera in response to the movement of the controlled character on the longitudinal terrain object in a stunt move state, and if the virtual camera is facing the side of the controlled character, adjust the virtual camera to face the back of the controlled character.

[0224] In addition, when the player controls the controlled character to exit the stunt movement state, the terminal can adjust the virtual camera to a viewing angle corresponding to the basic movement state in response to the controlled character staying on the vertical terrain object or exiting the stunt movement state.

[0225] Optionally, in the above process, when the controlled character moves in a stunt moving state, key frame silhouettes can be performed, and the jumping form can be processed, so that the controlled character has good smoothness in the process of moving in a stunt moving state, creating a corresponding sense of speed.

[0226] In the embodiment of the present disclosure, in the game application, the controlled character controlled by the player can be configured with different basic movement states and stunt movement states. In the stunt movement state, the player can only control the movement direction of the controlled character, while for other actions of the controlled character passing through terrain objects, the game application can automatically control the controlled character according to the terrain data in the virtual scene. Specifically, during the game, the terminal can enter the stunt movement state in response to the operation on the controlled character. When the controlled character moves on the horizontal terrain object of the virtual scene in the stunt movement state, in response to the existence of a longitudinal terrain object that meets the preset climbing condition in the movement direction of the controlled character, the controlled character is controlled to move from the horizontal terrain object of the virtual scene to the longitudinal terrain object, so that after entering the stunt movement state, when a longitudinal terrain object that meets the condition is detected, the controlled angle The character can automatically move from the horizontal terrain object to the vertical terrain object, reducing the player's need to perform other operations except for controlling the movement direction during the displacement process, effectively reducing the player's operating burden. At the same time, the terminal can also respond to the movement of the controlled character on the longitudinal surface of the vertical terrain object in a stunt moving state, obtain the terrain data of the longitudinal surface, and control the controlled character to move along the longitudinal surface of the vertical terrain object with a movement action adapted to the terrain data. In addition to controlling the displacement changes of the controlled character on different terrain objects, when moving on the corresponding terrain object, the terminal can also control the movement changes of the controlled character on the corresponding terrain object based on the terrain data, further reducing the player's operating burden, simplifying the player's control method of the controlled character, allowing the player to focus more on other content of the game, and enhancing the player's sense of game immersion and other game experiences.

[0227] It should be noted that for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present disclosure are not limited by the order of the actions described, because according to the embodiments of the present disclosure, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present disclosure.

[0228] 7 , a schematic structural diagram of a mobile control device for a controlled character provided by an embodiment of the present disclosure is shown. A graphical user interface is provided by an electronic terminal, and the electronic terminal displays a virtual scene and a controlled character in the virtual scene through the graphical user interface.

[0229] Specifically, the following modules may be included:

[0230] The module 701 for entering a stunt movement state in response to an operation is used to enter a stunt movement state in response to an operation on a controlled character. The stunt movement state is a state in which the controlled character is controlled to automatically pass through a terrain object according to terrain data.

[0231] The terrain object and terrain data determination module 702 is configured to determine terrain objects and terrain data of the terrain objects in the virtual scene in response to the controlled character moving in the virtual scene in a stunt movement state.

[0232] The terrain object control module 703 is used to control the controlled character to automatically pass through the terrain object by using stunt movement actions adapted to the terrain data.

[0233] In one embodiment of the present disclosure, in response to an operation on a controlled character, a stunt movement state is entered, including: when the controlled character moves in a horizontal terrain object of a virtual scene in a basic movement state, in response to an operation on the controlled character, the stunt movement state is entered; the basic movement state is a state in which the controlled character is controlled to move according to the player's operation on the controlled character; the controlled character is controlled to move in a horizontal terrain object or a vertical terrain object of the virtual scene in a stunt movement state.

[0234] In one embodiment of the present disclosure, in response to an operation on a controlled character, entering a stunt movement state includes: when the controlled character is in the air, in response to an operation on the controlled character, entering a stunt movement state, and controlling the controlled character to perform a sprint action in the moving direction.

[0235] In one embodiment of the present disclosure, when a controlled character is in the air, in response to an operation on the controlled character, it enters a stunt movement state, and after controlling the controlled character to perform a sprint action in the moving direction, it also includes: in response to the process of the controlled character performing the sprint action and the existence of a longitudinal terrain object that meets the preset climbing conditions in the moving direction, controlling the controlled character to move from the air to the longitudinal terrain object.

[0236] In one embodiment of the present disclosure, controlling a controlled character to move from the air to a longitudinal terrain object includes: controlling the controlled character to perform a sprint action to move to a first detection point corresponding to the longitudinal terrain object, the first detection point being a jumping point for moving from the air to the longitudinal terrain object; and controlling the controlled character to perform a jumping action to move from the first detection point to the longitudinal terrain object, and controlling the controlled character to move along the longitudinal surface of the longitudinal terrain object.

[0237] In one embodiment of the present disclosure, in response to the movement of a controlled character in a virtual scene in a stunt move state, terrain objects and terrain data of the terrain objects in the virtual scene are determined, including: in response to the movement of the controlled character in a stunt move state on a lateral terrain object, the terrain data of the lateral terrain object is obtained, wherein the lateral terrain object is a ground object or a water surface object; the lateral terrain object includes one or more obstacles; and the controlled character is controlled to automatically pass through the terrain object with a stunt move action adapted to the terrain data, including: controlling the controlled character to automatically pass over or on the surface of the obstacle of the lateral terrain object with a stunt move action adapted to the terrain data.

[0238] In one embodiment of the present disclosure, a controlled character is controlled to automatically pass over or on the surface of an obstacle in a lateral terrain object by a stunt movement action adapted to terrain data, including: when the terrain data indicates that there is a first obstacle in the moving direction of the controlled character, determining a first size parameter of the first obstacle; and controlling the controlled character to pass over or on the surface of the first obstacle by a stunt movement action adapted to the first size parameter.

[0239] In one embodiment of the present disclosure, the first size parameter also includes height information and width information of the first obstacle, and the controlled character is controlled to pass over the top or surface of the first obstacle by a stunt movement action adapted to the first size parameter, including: when the width information is less than a preset width threshold, the controlled character is controlled to pass over the first obstacle from above the first obstacle according to a jumping action adapted to the height information; when the width information is greater than or equal to the preset width threshold, the controlled character is controlled to jump from the surface of the lateral terrain object to the first obstacle according to a jumping action adapted to the height information, so as to pass through the first obstacle from the surface of the first obstacle.

[0240] In one embodiment of the present disclosure, it is also used for: during the jumping process of the controlled character, when the controlled character moves to the first overturning position, starting the second forward detection along the moving direction of the controlled character to detect the second obstacle, wherein the first overturning position is the position on the overturning trajectory of the controlled character over the first obstacle; when the controlled character moves to the second overturning position, turning off the first forward detection for obtaining terrain data, wherein the second overturning position is the position before the first overturning position on the overturning trajectory, and the detection distance of the first forward detection is greater than the detection distance of the second forward detection; when the controlled character moves to the third overturning position, turning off the second forward detection, and turning on the first forward detection along the moving direction of the controlled character, wherein the third overturning position is the position at a preset height in the falling stage on the overturning trajectory after the first overturning position.

[0241] In one embodiment of the present disclosure, it is also used for: if the controlled character detects a second obstacle in the moving direction of the controlled character after turning on the first forward detection at the third flipping position, then determining the second size parameter of the second obstacle, and controlling the controlled character to pass over or on the surface of the second obstacle with a stunt movement action adapted to the second size parameter; if the controlled character detects a second obstacle after turning on the second forward detection at the first flipping position, then controlling the controlled character to perform a sprint action in the moving direction, and when the second obstacle meets the preset climbing condition, moving from the air to the longitudinal terrain object formed by the second obstacle.

[0242] In one embodiment of the present disclosure, it is also used for: when the controlled character moves to the fourth jumping position, downwardly detecting the current distance of the controlled character from the ground, wherein the fourth jumping position is the position after the highest point on the jumping trajectory of the controlled character jumping over the first obstacle; when it is detected that the current distance from the ground is the second distance from the ground, controlling the controlled object to perform a landing action.

[0243] In one embodiment of the present disclosure, a controlled character is controlled to pass over or on the surface of an obstacle of a lateral terrain object by a stunt movement action adapted to terrain data, including: when the terrain data indicates that there is a first depression in the moving direction of the controlled character, determining the height information of the controlled character's current position relative to the first depression; and controlling the controlled character to jump down from the current position to the first depression according to a jumping action adapted to the height information.

[0244] In one embodiment of the present disclosure, in response to a controlled character moving in a virtual scene in a stunt movement state, terrain objects and terrain data of the terrain objects in the virtual scene are determined, including: when the controlled character moves on a lateral terrain object in the virtual scene in a stunt movement state, in response to the presence of a longitudinal terrain object that meets a preset climbing condition in the moving direction of the controlled character, controlling the controlled character to move from the lateral terrain object to the longitudinal terrain object in the virtual scene; in response to the controlled character moving on a longitudinal surface of the longitudinal terrain object in the stunt movement state, obtaining terrain data of the longitudinal surface; and controlling the controlled character to automatically pass through the terrain object using a stunt movement action adapted to the terrain data, including: controlling the controlled character to move along the longitudinal surface of the longitudinal terrain object using a movement action adapted to the terrain data.

[0245] In one embodiment of the present disclosure, a controlled character is controlled to move along a longitudinal surface of a longitudinal terrain object using a movement action adapted to terrain data, including: when the terrain data indicates that there is a recessed area in the movement direction of the controlled character, the controlled character is controlled to perform a jumping action to reach the recessed area.

[0246] In one embodiment of the present disclosure, a controlled character is controlled to move along a longitudinal surface of a longitudinal terrain object using a movement action adapted to terrain data, including: when the terrain data indicates that there is an obstacle object in the moving direction of the controlled character, based on the size parameters of the obstacle object, determining the movement action of the controlled character to move onto or over the obstacle object; and controlling the controlled character to move along the longitudinal surface based on the movement action.

[0247] In one embodiment of the present disclosure, a controlled character is controlled to move along a longitudinal surface of a longitudinal terrain object using movement actions adapted to terrain data, including: when the terrain data indicates that there is a second longitudinal surface area in the movement direction of the controlled character, and the second longitudinal surface area is protruding relative to the first longitudinal surface area where the controlled character is currently located, the controlled character is controlled to perform a moving action away from the first longitudinal surface area and a jumping action to reach the second longitudinal surface area.

[0248] In one embodiment of the present disclosure, in response to the presence of a longitudinal terrain object that meets a preset climbing condition in the moving direction of the controlled character, the controlled character is controlled to move from a transverse terrain object to a longitudinal terrain object in the virtual scene, including: in response to the presence of a longitudinal terrain object within a preset distance threshold in the moving direction of the controlled character, and the height of the longitudinal terrain object is greater than or equal to a preset height threshold, the controlled character is controlled to move from the transverse terrain object to the longitudinal terrain object in the virtual scene.

[0249] In one embodiment of the present disclosure, controlling a controlled character to move from a transverse terrain object to a longitudinal terrain object in a virtual scene includes: in response to the controlled character moving to a second detection point of the transverse terrain object, obtaining a posture tilt angle for jumping to the longitudinal terrain object, the second detection point being a jumping point from the transverse terrain object to the longitudinal terrain object; determining an attachment point of the controlled character on the longitudinal terrain object based on a relative distance between the second detection point and the longitudinal terrain object, and the posture tilt angle; and controlling the controlled character to jump from the second detection point to the attachment point at the posture tilt angle.

[0250] In the embodiment of the present disclosure, by responding to operations on a controlled character, a stunt movement state is entered, where the controlled character is controlled to automatically pass through terrain objects based on terrain data. Then, in response to the controlled character's movement in the virtual scene in the stunt movement state, the terrain objects in the virtual scene and the terrain data of the terrain objects are determined, and the controlled character is controlled to automatically pass through the terrain objects using stunt movement actions adapted to the terrain data. This achieves the goal of automatically controlling the controlled character's movement using stunt movement actions adapted to the terrain data, can adapt to different terrain conditions, and can achieve a faster movement speed, thereby improving the smoothness of the controlled character's exploration in the open world.

[0251] An embodiment of the present disclosure further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the following steps of the above-mentioned method for controlling the movement of a controlled character are implemented:

[0252] In response to an operation on the controlled character, a stunt movement state is entered; wherein the stunt movement state is a state in which the controlled character is controlled to automatically pass through a terrain object according to terrain data;

[0253] In response to the controlled character moving in the virtual scene in a stunt move state, determining terrain objects and terrain data of the terrain objects in the virtual scene;

[0254] Control the controlled character to automatically pass through the terrain object with stunt movement actions adapted to the terrain data.

[0255] Optionally, the above-mentioned entering into the stunt movement state in response to the operation on the controlled character can be achieved by the following steps: when the controlled character moves in the horizontal terrain object of the virtual scene in the basic movement state, entering the stunt movement state in response to the operation on the controlled character; the basic movement state is a state in which the controlled character is controlled to move according to the player's operation on the controlled character; controlling the controlled character to move in the stunt movement state on the horizontal terrain object or the vertical terrain object of the virtual scene.

[0256] Optionally, the above-mentioned entering the stunt movement state in response to the operation on the controlled character can be achieved by the following steps: when the controlled character is in the air, entering the stunt movement state in response to the operation on the controlled character, and controlling the controlled character to perform a sprint action in the moving direction.

[0257] Optionally, when the controlled character is in the air, in response to an operation on the controlled character, the controlled character enters a stunt movement state, and after controlling the controlled character to perform a sprint action in the moving direction, the following steps can also be performed: in response to the controlled character performing the sprint action and the existence of a longitudinal terrain object that meets the preset climbing conditions in the moving direction, the controlled character is controlled to move from the air to the longitudinal terrain object.

[0258] Optionally, the above-mentioned control of the controlled character to move from the air to the longitudinal terrain object can be achieved by the following steps: controlling the controlled character to perform a sprint action to move to a first detection point corresponding to the longitudinal terrain object, the first detection point being a jumping point for moving from the air to the longitudinal terrain object; and controlling the controlled character to perform a jumping action from the first detection point to the longitudinal terrain object, and controlling the controlled character to move along the longitudinal surface of the longitudinal terrain object.

[0259] Optionally, the above-mentioned determination of the terrain objects and the terrain data of the terrain objects in the virtual scene in response to the movement of the controlled character in the virtual scene in a stunt moving state can be achieved by the following steps: in response to the movement of the controlled character in a stunt moving state on a lateral terrain object, obtaining the terrain data of the lateral terrain object, wherein the lateral terrain object is a ground object or a water surface object; the lateral terrain object includes one or more obstacles; and controlling the controlled character to automatically pass through the terrain object with a stunt moving action adapted to the terrain data, including: controlling the controlled character to automatically pass over or on the surface of the obstacle of the lateral terrain object with a stunt moving action adapted to the terrain data.

[0260] Optionally, the above-mentioned stunt movement action adapted to the terrain data to control the controlled character to automatically pass over or on the surface of an obstacle of a lateral terrain object can be achieved through the following steps: when the terrain data indicates that there is a first obstacle in the moving direction of the controlled character, determine the first size parameter of the first obstacle; and control the controlled character to pass over or on the surface of the first obstacle with a stunt movement action adapted to the first size parameter.

[0261] Optionally, the above-mentioned first size parameter also includes height information and width information of the first obstacle, and controlling the controlled character to pass over the top or surface of the first obstacle with a stunt move action adapted to the first size parameter can be achieved through the following steps: when the width information is less than a preset width threshold, controlling the controlled character to pass over the first obstacle from above the first obstacle according to a jumping action adapted to the height information; when the width information is greater than or equal to the preset width threshold, controlling the controlled character to jump from the surface of the lateral terrain object to the first obstacle according to a jumping action adapted to the height information, so as to pass through the first obstacle from the surface of the first obstacle.

[0262] Optionally, the following steps may also be performed: during the jumping process of the controlled character, when the controlled character moves to the first overturning position, the second forward detection is started along the moving direction of the controlled character to detect the second obstacle, wherein the first overturning position is the position on the overturning trajectory of the controlled character over the first obstacle; when the controlled character moves to the second overturning position, the first forward detection for obtaining terrain data is turned off, wherein the second overturning position is the position before the first overturning position on the overturning trajectory, and the detection distance of the first forward detection is greater than the detection distance of the second forward detection; when the controlled character moves to the third overturning position, the second forward detection is turned off, and the first forward detection along the moving direction of the controlled character is started, and the third overturning position is the position at a preset height in the falling stage on the overturning trajectory after the first overturning position.

[0263] Optionally, the following steps may also be performed: if the controlled character detects a second obstacle in the moving direction of the controlled character after turning on the first forward detection at the third flipping position, the second size parameter of the second obstacle is determined, and the controlled character is controlled to pass over or on the surface of the second obstacle with a stunt movement action adapted to the second size parameter; if the controlled character detects a second obstacle after turning on the second forward detection at the first flipping position, the controlled character is controlled to perform a sprint action in the moving direction, and when the second obstacle meets the preset climbing conditions, the controlled character moves from the air to the longitudinal terrain object formed by the second obstacle.

[0264] Optionally, the following steps may also be performed: when the controlled character moves to the fourth jumping position, the current ground distance of the controlled character is detected downward, wherein the fourth jumping position is the position after the highest point on the jumping trajectory of the controlled character jumping over the first obstacle; when it is detected that the current ground distance is the second ground distance, the controlled object is controlled to perform a landing action.

[0265] Optionally, the above-mentioned stunt movement action adapted to the terrain data to control the controlled character to pass over or on the surface of an obstacle of a lateral terrain object can be achieved through the following steps: when the terrain data indicates that there is a first depression in the moving direction of the controlled character, determine the height information of the controlled character's current position relative to the first depression; according to the jumping action adapted to the height information, control the controlled character to jump down from the current position to the first depression.

[0266] Optionally, the above-mentioned determination of the terrain objects and the terrain data of the terrain objects in the virtual scene in response to the movement of the controlled character in the virtual scene in a stunt moving state can be achieved through the following steps: when the controlled character moves on the horizontal terrain objects of the virtual scene in a stunt moving state, in response to the existence of a longitudinal terrain object that meets the preset climbing conditions in the moving direction of the controlled character, the controlled character is controlled to move from the horizontal terrain object to the longitudinal terrain object of the virtual scene; in response to the movement of the controlled character on the longitudinal surface of the longitudinal terrain object in the stunt moving state, the terrain data of the longitudinal surface is obtained; and the controlled character is controlled to automatically pass through the terrain object with a stunt moving action adapted to the terrain data, which can be achieved through the following steps: controlling the controlled character to move along the longitudinal surface of the longitudinal terrain object with a moving action adapted to the terrain data.

[0267] Optionally, the above-mentioned control of the controlled character to move along the longitudinal surface of the longitudinal terrain object using a movement action adapted to the terrain data can be achieved through the following steps: when the terrain data represents that there is a recessed area in the movement direction of the controlled character, the controlled character is controlled to perform a jumping action to reach the recessed area.

[0268] Optionally, the above-mentioned control of the controlled character to move along the longitudinal surface of the longitudinal terrain object by the movement action adapted to the terrain data can be achieved through the following steps: when the terrain data represents that there is an obstacle object in the movement direction of the controlled character, based on the size parameters of the obstacle object, the movement action of the controlled character to move to the obstacle object or over the obstacle object is determined; based on the movement action, the controlled character is controlled to move along the longitudinal surface.

[0269] Optionally, the above-mentioned control of the controlled character to move along the longitudinal surface of the longitudinal terrain object by the movement action adapted to the terrain data can be achieved by the following steps: when the terrain data represents the existence of a second longitudinal surface area in the movement direction of the controlled character, and the second longitudinal surface area is protruding relative to the first longitudinal surface area where the controlled character is currently located, the controlled character is controlled to perform a moving action away from the current first longitudinal surface area and a jumping action to reach the second longitudinal surface area.

[0270] Optionally, in response to the presence of a longitudinal terrain object that meets preset climbing conditions in the moving direction of the controlled character, controlling the controlled character to move from the transverse terrain object of the virtual scene to the longitudinal terrain object can be achieved by the following steps: in response to the presence of a longitudinal terrain object within a preset distance threshold in the moving direction of the controlled character, and the height of the longitudinal terrain object is greater than or equal to a preset height threshold, controlling the controlled character to move from the transverse terrain object of the virtual scene to the longitudinal terrain object.

[0271] Optionally, the above-mentioned control of the controlled character to move from the horizontal terrain object to the vertical terrain object of the virtual scene can be achieved by the following steps: in response to the controlled character moving to the second detection point of the horizontal terrain object, obtaining a posture tilt angle for jumping to the vertical terrain object, the second detection point being the jumping point from the horizontal terrain object to the vertical terrain object; determining the attachment point of the controlled character on the vertical terrain object based on the relative distance between the second detection point and the vertical terrain object, and the posture tilt angle; and controlling the controlled character to jump from the second detection point to the attachment point at the posture tilt angle.

[0272] By responding to operations on the controlled character, the stunt movement state is entered, and the stunt movement state is a state in which the controlled character is controlled to automatically pass through terrain objects according to terrain data. Then, in response to the movement of the controlled character in the virtual scene in the stunt movement state, the terrain objects in the virtual scene and the terrain data of the terrain objects are determined, and the controlled character is controlled to automatically pass through the terrain objects with stunt movement actions adapted to the terrain data. This realizes the automatic movement of the controlled character controlled by the stunt movement actions adapted to the terrain data, can adapt to different terrain conditions and can obtain a faster movement speed, thereby improving the smoothness of the controlled character's exploration in the open world.

[0273] An embodiment of the present disclosure further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the computer program implements the following steps of the above-mentioned method for controlling the movement of the controlled character:

[0274] In response to an operation on the controlled character, a stunt movement state is entered; wherein the stunt movement state is a state in which the controlled character is controlled to automatically pass through a terrain object according to terrain data;

[0275] In response to the controlled character moving in the virtual scene in a stunt move state, determining terrain objects and terrain data of the terrain objects in the virtual scene;

[0276] Control the controlled character to automatically pass through the terrain object with stunt movement actions adapted to the terrain data.

[0277] Optionally, the above-mentioned entering into the stunt movement state in response to the operation on the controlled character can be achieved by the following steps: when the controlled character moves in the horizontal terrain object of the virtual scene in the basic movement state, entering the stunt movement state in response to the operation on the controlled character; the basic movement state is a state in which the controlled character is controlled to move according to the player's operation on the controlled character; controlling the controlled character to move in the stunt movement state on the horizontal terrain object or the vertical terrain object of the virtual scene.

[0278] Optionally, the above-mentioned entering the stunt movement state in response to the operation on the controlled character can be achieved by the following steps: when the controlled character is in the air, entering the stunt movement state in response to the operation on the controlled character, and controlling the controlled character to perform a sprint action in the moving direction.

[0279] Optionally, when the controlled character is in the air, in response to an operation on the controlled character, the controlled character enters a stunt movement state, and after controlling the controlled character to perform a sprint action in the moving direction, the following steps can also be performed: in response to the controlled character performing the sprint action and the existence of a longitudinal terrain object that meets the preset climbing conditions in the moving direction, the controlled character is controlled to move from the air to the longitudinal terrain object.

[0280] Optionally, the above-mentioned control of the controlled character to move from the air to the longitudinal terrain object can be achieved by the following steps: controlling the controlled character to perform a sprint action to move to a first detection point corresponding to the longitudinal terrain object, the first detection point being a jumping point for moving from the air to the longitudinal terrain object; and controlling the controlled character to perform a jumping action from the first detection point to the longitudinal terrain object, and controlling the controlled character to move along the longitudinal surface of the longitudinal terrain object.

[0281] Optionally, the above-mentioned determination of the terrain objects and the terrain data of the terrain objects in the virtual scene in response to the movement of the controlled character in the virtual scene in a stunt moving state can be achieved by the following steps: in response to the movement of the controlled character in a stunt moving state on a lateral terrain object, obtaining the terrain data of the lateral terrain object, wherein the lateral terrain object is a ground object or a water surface object; the lateral terrain object includes one or more obstacles; and controlling the controlled character to automatically pass through the terrain object with a stunt moving action adapted to the terrain data, including: controlling the controlled character to automatically pass over or on the surface of the obstacle of the lateral terrain object with a stunt moving action adapted to the terrain data.

[0282] Optionally, the above-mentioned stunt movement action adapted to the terrain data to control the controlled character to automatically pass over or on the surface of an obstacle of a lateral terrain object can be achieved through the following steps: when the terrain data indicates that there is a first obstacle in the moving direction of the controlled character, determine the first size parameter of the first obstacle; and control the controlled character to pass over or on the surface of the first obstacle with a stunt movement action adapted to the first size parameter.

[0283] Optionally, the above-mentioned first size parameter also includes height information and width information of the first obstacle, and controlling the controlled character to pass over the top or surface of the first obstacle with a stunt move action adapted to the first size parameter can be achieved through the following steps: when the width information is less than a preset width threshold, controlling the controlled character to pass over the first obstacle from above the first obstacle according to a jumping action adapted to the height information; when the width information is greater than or equal to the preset width threshold, controlling the controlled character to jump from the surface of the lateral terrain object to the first obstacle according to a jumping action adapted to the height information, so as to pass through the first obstacle from the surface of the first obstacle.

[0284] Optionally, the following steps may also be performed: during the jumping process of the controlled character, when the controlled character moves to the first overturning position, the second forward detection is started along the moving direction of the controlled character to detect the second obstacle, wherein the first overturning position is the position on the overturning trajectory of the controlled character over the first obstacle; when the controlled character moves to the second overturning position, the first forward detection for obtaining terrain data is turned off, wherein the second overturning position is the position before the first overturning position on the overturning trajectory, and the detection distance of the first forward detection is greater than the detection distance of the second forward detection; when the controlled character moves to the third overturning position, the second forward detection is turned off, and the first forward detection along the moving direction of the controlled character is started, and the third overturning position is the position at a preset height in the falling stage on the overturning trajectory after the first overturning position.

[0285] Optionally, the following steps may also be performed: if the controlled character detects a second obstacle in the moving direction of the controlled character after turning on the first forward detection at the third flipping position, the second size parameter of the second obstacle is determined, and the controlled character is controlled to pass over or on the surface of the second obstacle with a stunt movement action adapted to the second size parameter; if the controlled character detects a second obstacle after turning on the second forward detection at the first flipping position, the controlled character is controlled to perform a sprint action in the moving direction, and when the second obstacle meets the preset climbing conditions, the controlled character moves from the air to the longitudinal terrain object formed by the second obstacle.

[0286] Optionally, the following steps may also be performed: when the controlled character moves to the fourth jumping position, the current ground distance of the controlled character is detected downward, wherein the fourth jumping position is the position after the highest point on the jumping trajectory of the controlled character jumping over the first obstacle; when it is detected that the current ground distance is the second ground distance, the controlled object is controlled to perform a landing action.

[0287] Optionally, the above-mentioned stunt movement action adapted to the terrain data to control the controlled character to pass over or on the surface of an obstacle of a lateral terrain object can be achieved through the following steps: when the terrain data indicates that there is a first depression in the moving direction of the controlled character, determine the height information of the controlled character's current position relative to the first depression; according to the jumping action adapted to the height information, control the controlled character to jump down from the current position to the first depression.

[0288] Optionally, the above-mentioned determination of the terrain objects and the terrain data of the terrain objects in the virtual scene in response to the movement of the controlled character in the virtual scene in a stunt moving state can be achieved through the following steps: when the controlled character moves on the horizontal terrain objects of the virtual scene in a stunt moving state, in response to the existence of a longitudinal terrain object that meets the preset climbing conditions in the moving direction of the controlled character, the controlled character is controlled to move from the horizontal terrain object to the longitudinal terrain object of the virtual scene; in response to the movement of the controlled character on the longitudinal surface of the longitudinal terrain object in the stunt moving state, the terrain data of the longitudinal surface is obtained; and the controlled character is controlled to automatically pass through the terrain object with a stunt moving action adapted to the terrain data, which can be achieved through the following steps: controlling the controlled character to move along the longitudinal surface of the longitudinal terrain object with a moving action adapted to the terrain data.

[0289] Optionally, the above-mentioned control of the controlled character to move along the longitudinal surface of the longitudinal terrain object using a movement action adapted to the terrain data can be achieved through the following steps: when the terrain data represents that there is a recessed area in the movement direction of the controlled character, the controlled character is controlled to perform a jumping action to reach the recessed area.

[0290] Optionally, the above-mentioned control of the controlled character to move along the longitudinal surface of the longitudinal terrain object by the movement action adapted to the terrain data can be achieved through the following steps: when the terrain data represents that there is an obstacle object in the movement direction of the controlled character, based on the size parameters of the obstacle object, the movement action of the controlled character to move to the obstacle object or over the obstacle object is determined; based on the movement action, the controlled character is controlled to move along the longitudinal surface.

[0291] Optionally, the above-mentioned control of the controlled character to move along the longitudinal surface of the longitudinal terrain object by the movement action adapted to the terrain data can be achieved by the following steps: when the terrain data represents the existence of a second longitudinal surface area in the movement direction of the controlled character, and the second longitudinal surface area is protruding relative to the first longitudinal surface area where the controlled character is currently located, the controlled character is controlled to perform a moving action away from the current first longitudinal surface area and a jumping action to reach the second longitudinal surface area.

[0292] Optionally, in response to the presence of a longitudinal terrain object that meets preset climbing conditions in the moving direction of the controlled character, controlling the controlled character to move from the transverse terrain object of the virtual scene to the longitudinal terrain object can be achieved by the following steps: in response to the presence of a longitudinal terrain object within a preset distance threshold in the moving direction of the controlled character, and the height of the longitudinal terrain object is greater than or equal to a preset height threshold, controlling the controlled character to move from the transverse terrain object of the virtual scene to the longitudinal terrain object.

[0293] Optionally, the above-mentioned control of the controlled character to move from the horizontal terrain object to the vertical terrain object of the virtual scene can be achieved by the following steps: in response to the controlled character moving to the second detection point of the horizontal terrain object, obtaining a posture tilt angle for jumping to the vertical terrain object, the second detection point being the jumping point from the horizontal terrain object to the vertical terrain object; determining the attachment point of the controlled character on the vertical terrain object based on the relative distance between the second detection point and the vertical terrain object, and the posture tilt angle; and controlling the controlled character to jump from the second detection point to the attachment point at the posture tilt angle.

[0294] By responding to operations on the controlled character, the stunt movement state is entered, and the stunt movement state is a state in which the controlled character is controlled to automatically pass through terrain objects according to terrain data. Then, in response to the movement of the controlled character in the virtual scene in the stunt movement state, the terrain objects in the virtual scene and the terrain data of the terrain objects are determined, and the controlled character is controlled to automatically pass through the terrain objects with stunt movement actions adapted to the terrain data. This realizes the automatic movement of the controlled character controlled by the stunt movement actions adapted to the terrain data, can adapt to different terrain conditions and can obtain a faster movement speed, thereby improving the smoothness of the controlled character's exploration in the open world.

[0295] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0296] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0297] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0298] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, apparatuses, or computer program products. Therefore, the embodiments of the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the embodiments of the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0299] The embodiments of the present disclosure are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0300] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0301] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce computer-implemented processing, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0302] Although the preferred embodiments of the present disclosure have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present disclosure.

[0303] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the above elements.

[0304] The above is a detailed introduction to the provided method, device, equipment and medium for controlling the movement of a controlled character. Specific examples are used in this article to illustrate the principles and implementation methods of the present disclosure. The description of the above embodiments is only used to help understand the method and core ideas of the present disclosure. At the same time, for those skilled in the art, according to the ideas of the present disclosure, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present disclosure.

Claims

1. A method for controlling the movement of a controlled character, wherein a graphical user interface is provided by an electronic terminal, and the electronic terminal displays a virtual scene and a controlled character in the virtual scene through the graphical user interface. include: In response to the operation on the controlled character, entering a stunt movement state; wherein the stunt movement state is a state in which the controlled character is controlled to automatically pass through a terrain object according to terrain data; In response to the controlled character moving in the virtual scene in the stunt movement state, determining a terrain object in the virtual scene and terrain data of the terrain object; The controlled character is controlled to automatically pass through the terrain object by using stunt movement actions adapted to the terrain data.

2. The method according to claim 1, in, The step of entering a stunt movement state in response to an operation on the controlled character comprises: In the case where the controlled character moves in the lateral terrain object of the virtual scene in a basic movement state, in response to an operation on the controlled character, entering a stunt movement state; the basic movement state is a state in which the controlled character is controlled to move according to the operation of the player on the controlled character; The controlled character is controlled to move on the lateral terrain object or the longitudinal terrain object of the virtual scene in the stunt movement state.

3. The method according to claim 1, in, The step of entering a stunt movement state in response to an operation on the controlled character comprises: When the controlled character is in the air, in response to an operation on the controlled character, the controlled character enters the stunt movement state, and the controlled character is controlled to perform a sprint action in the moving direction.

4. The method according to claim 3, in, When the controlled character is in the air, in response to an operation on the controlled character, the controlled character enters the stunt movement state, and controls the controlled character to perform a sprint action in the moving direction, the method further comprises: In response to the controlled character performing the sprint action and the presence of a longitudinal terrain object satisfying a preset climbing condition in the moving direction, the controlled character is controlled to move from the air to the longitudinal terrain object.

5. The method according to claim 4, in, The controlling the controlled character to move from the air to the longitudinal terrain object comprises: Controlling the controlled character to perform a sprint action and move to a first detection point corresponding to the longitudinal terrain object, wherein the first detection point is a jumping point from the air to the longitudinal terrain object; And, controlling the controlled character to perform a jumping action to move from the first detection point to the longitudinal terrain object, and controlling the controlled character to move along the longitudinal surface of the longitudinal terrain object.

6. The method according to claim 1, in, The step of determining a terrain object and terrain data of the terrain object in the virtual scene in response to the controlled character moving in the virtual scene in the stunt movement state comprises: In response to the controlled character moving on a lateral terrain object in the stunt movement state, acquiring terrain data of the lateral terrain object, wherein the lateral terrain object is a ground object or a water surface object; and the lateral terrain object includes one or more obstacles; The step of controlling the controlled character to automatically pass through the terrain object by performing a stunt movement action adapted to the terrain data comprises: The controlled character is controlled to automatically pass over or on the surface of obstacles of the lateral terrain object by using stunt movement actions adapted to the terrain data.

7. The method according to claim 6, in, The controlling the controlled character to automatically pass over or on the surface of the obstacle of the lateral terrain object by using a stunt movement action adapted to the terrain data comprises: When the terrain data indicates that there is a first obstacle in the moving direction of the controlled character, a first size parameter of the first obstacle is determined; and the controlled character is controlled to pass over or on the surface of the first obstacle by a stunt movement action adapted to the first size parameter.

8. The method according to claim 7, in, The first size parameter also includes height information and width information of the first obstacle, and the step of controlling the controlled character to pass over or on the surface of the first obstacle by using a stunt movement action adapted to the first size parameter includes: When the width information is less than a preset width threshold, controlling the controlled character to jump over the first obstacle from above the first obstacle according to a jumping action adapted to the height information; When the width information is greater than or equal to a preset width threshold, the controlled character is controlled to jump from the surface of the lateral terrain object to the first obstacle according to a jumping action adapted to the height information, so as to pass through the first obstacle from the surface of the first obstacle.

9. The method according to claim 8, in, Also includes: During the jumping process of the controlled character, when the controlled character moves to a first climbing position, a second forward detection is started along the moving direction of the controlled character to detect a second obstacle, wherein the first climbing position is a position on a climbing track of the controlled character climbing over the first obstacle; When the controlled character moves to a second climbing position, closing a first forward detection for acquiring the terrain data, wherein the second climbing position is a position before the first climbing position on the climbing trajectory, and a detection distance of the first forward detection is greater than a detection distance of the second forward detection; When the controlled character moves to a third flipping position, the second forward detection is turned off, and the first forward detection along the moving direction of the controlled character is turned on. The third flipping position is a position at a preset height in the falling stage of the flipping trajectory after the first flipping position.

10. The method according to claim 9, in, Also includes: If the controlled character detects a second obstacle in the moving direction of the controlled character after starting the first forward detection at the third jumping position, determine a second size parameter of the second obstacle, and control the controlled character to pass over or on the surface of the second obstacle with a stunt movement action adapted to the second size parameter; If the controlled character detects a second obstacle after turning on the second forward detection at the first climbing position, the controlled character is controlled to perform a sprint action in the moving direction, and when the second obstacle meets a preset climbing condition, the controlled character moves from the air to the longitudinal terrain object formed by the second obstacle.

11. The method according to claim 8, in, Also includes: When the controlled character moves to a fourth climbing position, the current distance of the controlled character from the ground is detected downward, wherein the fourth climbing position is a position after the highest point on the climbing trajectory of the controlled character climbing over the first obstacle; When it is detected that the current ground distance is the second ground distance, the controlled object is controlled to perform a landing action.

12. The method according to claim 6, in, The step of controlling the controlled character to pass over or on the surface of an obstacle of the lateral terrain object by using a stunt movement action adapted to the terrain data comprises: When the terrain data indicates that there is a first concave area in the moving direction of the controlled character, determining height information of the current position of the controlled character relative to the first concave area; According to the jumping action adapted to the height information, the controlled character is controlled to jump down from the current position to the first concave area.

13. The method according to claim 1, in, The step of determining a terrain object and terrain data of the terrain object in the virtual scene in response to the controlled character moving in the virtual scene in the stunt movement state comprises: When the controlled character moves on the lateral terrain object of the virtual scene in the stunt movement state, in response to the presence of a longitudinal terrain object that meets a preset climbing condition in the moving direction of the controlled character, controlling the controlled character to move from the lateral terrain object of the virtual scene to the longitudinal terrain object; In response to the controlled character moving on the longitudinal surface of the longitudinal terrain object in the stunt movement state, acquiring terrain data of the longitudinal surface; The step of controlling the controlled character to automatically pass through the terrain object by performing a stunt movement action adapted to the terrain data comprises: The controlled character is controlled to move along the longitudinal surface of the longitudinal terrain object using movement actions adapted to the terrain data.

14. The method according to claim 13, in, The step of controlling the controlled character to move along the longitudinal surface of the longitudinal terrain object by using a movement action adapted to the terrain data comprises: When the terrain data indicates that there is a recessed area in the moving direction of the controlled character, the controlled character is controlled to perform a jumping action to reach the recessed area.

15. The method according to claim 13, in, The step of controlling the controlled character to move along the longitudinal surface of the longitudinal terrain object by using a movement action adapted to the terrain data comprises: When the terrain data indicates that there is an obstacle object in the moving direction of the controlled character, determining a moving action of the controlled character to move onto or over the obstacle object based on a size parameter of the obstacle object; The controlled character is controlled to move along the longitudinal plane based on the movement action.

16. The method according to claim 13, in, The step of controlling the controlled character to move along the longitudinal surface of the longitudinal terrain object by using a movement action adapted to the terrain data comprises: When the terrain data indicates that there is a second longitudinal plane area in the moving direction of the controlled character, and the second longitudinal plane area protrudes relative to the first longitudinal plane area where the controlled character is currently located, the controlled character is controlled to perform a moving away action away from the first longitudinal plane area and a jumping action to reach the second longitudinal plane area.

17. The method according to claim 13, in, In response to the presence of a longitudinal terrain object satisfying a preset climbing condition in the moving direction of the controlled character, controlling the controlled character to move from the transverse terrain object of the virtual scene to the longitudinal terrain object comprises: In response to the presence of a longitudinal terrain object within a preset distance threshold in the moving direction of the controlled character, and the height of the longitudinal terrain object is greater than or equal to the preset height threshold, the controlled character is controlled to move from the lateral terrain object of the virtual scene to the longitudinal terrain object.

18. The method according to claim 17, in, The controlling the controlled character to move from the horizontal terrain object of the virtual scene to the vertical terrain object comprises: In response to the controlled character moving to a second detection point of the transverse terrain object, acquiring a posture tilt angle for jumping to the longitudinal terrain object, the second detection point being a jumping point from the transverse terrain object to the longitudinal terrain object; Determine the attachment point of the controlled character from the longitudinal terrain object according to the relative distance between the second detection point and the longitudinal terrain object, and the posture tilt angle; The controlled character is controlled to jump from the second detection point to the attachment point at the posture tilt angle.

19. A mobile control device for a controlled character, providing a graphical user interface through an electronic terminal, wherein the electronic terminal displays a virtual scene and a controlled character in the virtual scene through the graphical user interface, wherein the device include: The module for entering a stunt movement state in response to an operation is configured to enter a stunt movement state in response to an operation on the controlled character; wherein the stunt movement state is a state in which the controlled character is controlled to automatically pass through a terrain object according to terrain data; A terrain object and terrain data determination module, configured to determine terrain objects and terrain data of the terrain objects in the virtual scene in response to the controlled character moving in the virtual scene in the stunt movement state; The module for controlling the terrain object with stunts is configured to execute stunt movement actions adapted to the terrain data to control the controlled character to automatically pass through the terrain object.

20. An electronic device comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the method for controlling the movement of a controlled character according to any one of claims 1 to 18 is implemented.

21. A computer-readable storage medium storing a computer program, wherein the computer-readable storage medium implements the movement control method of a controlled character according to any one of claims 1 to 18 when the computer program is executed by a processor.

Citation Information

Patent Citations

  • Virtual object control method, device and equipment and storage medium

    CN111068324A

  • Game data processing method, device and equipment and computer readable storage medium

    CN114288663A

  • Player character control method and device, electronic equipment and storage medium

    CN114404986A

  • Game control method and device, equipment and storage medium

    CN115089958A

  • Virtual character control method and device, storage medium and computer equipment

    CN115193049A