A method for processing motion in a virtual scene, its apparatus, device, and computer program.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-09-30
- Publication Date
- 2026-03-27
AI Technical Summary
Existing virtual scene interaction technologies result in inefficient human-computer interaction and reduced player initiative due to system-imposed movement decisions that contradict user intent, leading to unnecessary operations and a poor user experience.
Implement a method and apparatus that allow for multiple movement modes for virtual objects relative to obstacles, with trigger operations determining the specific movement mode based on player input, ensuring the movement mode aligns with user intent, particularly when the virtual object is near the obstacle.
Enhances human-computer interaction efficiency and control effectiveness by allowing players to directly determine the movement mode of virtual objects relative to obstacles, reducing the need for multiple operations and improving the user experience.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical Field]
[0001] (CROSS-REFERENCE TO RELATED APPLICATIONS) This application is based on a Chinese patent application bearing application number 202210072160.1, filed with the China Patent Office on January 21, 2022, and claims priority to that Chinese patent application, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to human-computer interaction (HCI) technology, and in particular to a method for processing motion in a virtual scene, an apparatus, a device, a computer-readable storage medium, and a computer program product therefor. [Background technology]
[0003] The virtual scene human-computer interaction technology based on graphics processing hardware can realize various interactions between virtual objects controlled by users or artificial intelligence according to actual application needs, and has wide practical value. For example, in a game application, a battle between virtual objects can be simulated. In a game scene, one control can be associated with multiple functions to reduce the screen occupancy rate, and when a player clicks the control, the system determines which function is triggered.
[0004] Taking a shooting game scene as an example, in related technology, when a player clicks a jump button in an open space, a jump function is triggered, and when the player clicks the jump button near a jumpable obstacle (e.g., a wall), a jump over function is triggered. However, when the player is close to an obstacle, controlling the player to blindly jump over the obstacle may have a negative impact on the player. For example, when there is an enemy on the other side of the obstacle, it is actually not appropriate to jump over the obstacle and it is against the player's will, so the player has to jump over it again and return, resulting in multiple unnecessary operations, which reduces the efficiency of human-computer interaction and also reduces the player's initiative and functional control effect, resulting in a poor user experience. Summary of the Invention [Problem to be solved by the invention]
[0005] The present embodiments provide a method and apparatus for processing motion in a virtual scene, an electronic device, a computer-readable storage medium, and a computer program product, which can improve the efficiency of human-computer interaction and the effectiveness of player activity and control. [Means for solving the problem]
[0006] The technical solution of the present embodiment is realized as follows:
[0007] An embodiment of the present application provides a method for processing motion in a virtual scene, performed by an electronic device, the method comprising: displaying a surmountable obstacle, a virtual object, and a manipulation control in a virtual scene, the manipulation control being used to control a movement manner of the virtual object relative to the surmountable obstacle, the manipulation control being associated with at least two movement manners, and different trigger operations on the manipulation control corresponding to different movement manners; and when the distance between the virtual object and the jumpable obstacle is shorter than a target distance, in response to a trigger operation on the operation control, controlling the virtual object to move relative to the jumpable obstacle in a target movement manner corresponding to the trigger operation.
[0008] An embodiment of the present invention provides a device for processing motion in a virtual scene, the device comprising: a display module configured to display a surmountable obstacle, a virtual object, and a manipulation control of a virtual scene, the manipulation control being used to control a movement manner of the virtual object relative to the surmountable obstacle, the manipulation control being associated with at least two movement manners, and different trigger operations on the manipulation control corresponding to different movement manners; and a control module configured to, in response to a trigger operation on the operation control, control the virtual object to move relative to the surmountable obstacle in a target movement manner corresponding to the trigger operation when the distance between the virtual object and the surmountable obstacle is shorter than a target distance.
[0009] An embodiment of the present application provides an electronic device, the electronic device comprising: a memory having executable instructions stored therein; and a processor configured to execute executable instructions stored in the memory to implement a method for processing motion in a virtual scene according to an embodiment of the present invention.
[0010] An embodiment of the present invention provides a computer-readable storage medium having stored thereon executable instructions for causing a processor to perform a method for processing motion in a virtual scene according to an embodiment of the present invention.
[0011] An embodiment of the present invention provides a computer program product including a computer program or instructions for causing a processor to implement a method for processing motion in a virtual scene according to an embodiment of the present invention. [Effects of the Invention]
[0012] The embodiments of the present application have the following beneficial effects:
[0013] By applying the present embodiment, when the distance between the virtual object and the jumpable obstacle is closer than the target distance, i.e., when the virtual object is near the jumpable obstacle, if the player triggers an operation control associated with multiple movement modes, the trigger operation by the player on the operation control corresponds to the target movement mode, and the virtual object is controlled to move in the target movement mode relative to the jumpable obstacle. In this way, when the virtual object is near the jumpable obstacle, the movement mode that the virtual object will adopt relative to the jumpable obstacle is entirely determined by the player's trigger operation on the operation control. Therefore, the adopted movement mode conforms to the player's will, and it is possible to avoid a situation where the system's decision on the movement mode goes against the player's will, requiring multiple operations, thereby improving the efficiency of human-computer interaction and the effectiveness of control over the movement modes. [Brief explanation of the drawings]
[0014] [Figure 1A] 1 is a schematic diagram of an application scenario of a method for processing motion in a virtual scene according to an embodiment of the present invention; [Figure 1B] 1 is a schematic diagram of an application scenario of a method for processing motion in a virtual scene according to an embodiment of the present invention; [Figure 2] 4 is an exemplary structural diagram of a terminal device 400 according to an embodiment of the present application. [Figure 3] 1 is an exemplary flowchart of a method for processing motion in a virtual scene, according to an embodiment of the present invention. [Figure 4] 3 is a schematic diagram of an operation control setting interface according to an embodiment of the present invention; [Figure 5] 1 is a schematic diagram of a display of an operation control according to an embodiment of the present invention. [Figure 6] 1 is a schematic diagram of a display of an operation control according to an embodiment of the present invention. [Figure 7] 1 is a schematic diagram of an operational control trigger according to an embodiment of the present invention. [Figure 8] 1 is a schematic diagram of a display of operation instruction information according to an embodiment of the present invention; [Figure 9] 1 is a schematic diagram of a method for processing motion in a virtual scene according to an embodiment of the present invention; [Figure 10] FIG. 1 is a schematic diagram of detection according to an embodiment of the present invention. [Figure 11] 1 is a schematic diagram of a slide according to an embodiment of the present invention. [Figure 12] 1 is a schematic diagram of the movement according to an embodiment of the present invention. [Figure 13] 1 is a schematic diagram of the movement according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE INVENTION
[0015] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in detail hereinafter with reference to the drawings, and the described embodiments should not be understood as limitations on the present application, and all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.
[0016] In the following description, the term "some embodiments" refers to a subset of all possible embodiments, and it will be understood that the terms "some embodiments" may refer to the same or different subsets of all possible embodiments, which may be combined with each other without conflict.
[0017] The terms "first / second..." referred to in the following description are merely for distinguishing between similar objects and do not represent a particular order of the objects; it is understood that "first / second..." may, in some cases, be interchangeable with a particular order or precedence order, whereby the embodiments described herein may be performed in an order other than that illustrated or described.
[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art. The terms used herein are for the purpose of describing the present application only and are not intended to be limiting of the present application.
[0019] Before describing the present embodiment in more detail, the nouns and terms used in the present embodiment will be explained. The nouns and terms used in the present embodiment have the following interpretations.
[0020] 1) A "client" is an application that runs on a terminal and provides various services, such as a video playback client or a game client.
[0021] 2) The term "in response to..." refers to a condition or state upon which the operation to be performed depends, and when the dependent condition or state is met, the operation or operations to be performed may be performed in real time or with a set delay, and there is no execution order restriction between the operations to be performed, unless otherwise specified.
[0022] 3) "Virtual Scene" refers to a virtual scene displayed (or provided) when an application is executed on a device. The virtual scene may be a simulated real-world environment, a semi-simulated / semi-virtual virtual environment, or a purely virtual environment. The virtual scene may be any one of a 2D virtual scene, a 2.5D virtual scene, and a 3D virtual scene. The embodiments of the present application are not limited by the dimensions of the virtual scene. For example, the virtual scene may include sky, land, and sea, and the land may include environmental elements such as a desert or a city. A user can control virtual objects to move through the virtual scene.
[0023] 4) "Virtual object" refers to various human and animal characters that can interact with a virtual scene, or movable objects in a virtual scene. The movable object may be a virtual person, a virtual animal, or an animated character, such as a person or animal displayed in a virtual scene. The virtual object may be a single virtual character representing a user in the virtual scene, or the virtual scene may include multiple virtual objects, each of which has its own shape and volume and occupies a partial space of the virtual scene. The virtual object may also be a game character controlled by a user (also called a player). That is, the virtual object is controlled by a real user and moves in the virtual scene in response to the real user's operation of a controller (including a touchscreen, audio switch, keyboard, mouse, joystick, etc.). For example, when the real user moves the joystick to the left, the virtual object moves to the left in the virtual scene and may remain stationary, jump, or use various functions (such as skills or items).
[0024] 5) "Scene data" refers to all feature data in a virtual scene, and may include, for example, graphic data and audio data of the virtual scene, where the graphic data may include interaction environment data (e.g., location or environment) of virtual objects in the virtual scene, virtual items held, interaction data with other virtual objects, attribute values of various attributes, etc., and may also include the waiting time required to configure various functions in the virtual scene.
[0025] The present embodiment provides a method for processing motion in a virtual scene, an apparatus therefor, an electronic device, a computer-readable storage medium, and a computer program product therefor, which can improve the efficiency and control effectiveness of human-computer interaction. To make the method for processing motion in a virtual scene according to the present embodiment easier to understand, an exemplary implementation scenario of the method for processing motion in a virtual scene according to the present embodiment will first be described. The virtual scene of the method for processing motion in a virtual scene according to the present embodiment may be output by a terminal device or a server alone, or may be output by a terminal device and a server together.
[0026] In some embodiments, the virtual scene may be an environment for game character interaction, for example, a virtual scene in which game characters engage in virtual battles in the virtual scene, and by controlling the movements of the game characters, mutual interactions can be performed in the virtual scene, thereby allowing users to relieve stress in their lives while playing the game.
[0027] 1A, in one implementation scenario, the method for processing motion in a virtual scene according to an embodiment of the present application is entirely dependent on the terminal device, and can perform calculations of data related to the virtual scene 100 by utilizing the computing capabilities of the graphics processing hardware of the terminal device 400. For example, in the case of a single-player / offline mode game, the output of the virtual scene can be realized by various different types of terminal devices 400, such as smartphones, tablet computers, and virtual reality / augmented reality devices. For example, types of graphics processing hardware include a central processing unit (CPU) and a graphics processor (GPU).
[0028] To create a visual perception of the virtual scene 100, the terminal device 400 uses graphics computing hardware to calculate data required for display, loads, analyzes, and renders the display data, and outputs video frames from the graphics output hardware that can create a visual perception of the virtual scene, for example, displaying two-dimensional video frames on the display screen of a smartphone or projecting video frames onto the lenses of augmented reality / virtual reality glasses to achieve a three-dimensional display effect. Furthermore, to achieve various sensory effects, the terminal device 400 can use different hardware to create one or more of auditory perception, tactile perception, kinesthetic perception, and gustatory perception.
[0029] As an example, the terminal device 400 executes a client 410 (e.g., a single-player game application), and outputs a virtual scene including role-playing during the execution of the client 410. The virtual scene 100 may be an environment for game character interaction, such as a plain, a city, or a valley for game character battles. The virtual scene 100 includes a virtual object 110 and a surmountable obstacle 120 such as a wall or a drum. Here, the virtual object 110 can move relative to the surmountable obstacle 120 by adopting various motion methods. For example, the virtual object 110 can move relative to the surmountable obstacle 120 by adopting a motion method of climbing over the surmountable obstacle 120, thereby climbing from one side of the surmountable obstacle to the other, or the virtual object 110 can move relative to the surmountable obstacle 120 by adopting a motion method of jumping, thereby jumping from one side of the surmountable obstacle to stand on the surmountable obstacle.
[0030] For example, the terminal device displays a virtual scene containing a surmountable obstacle, a virtual object, and an operation control, and the operation control is used to control a movement mode of the virtual object relative to the surmountable obstacle, the operation control being associated with at least two movement modes, with different trigger operations on the operation control corresponding to the different movement modes. If the distance between the virtual object and the surmountable obstacle is shorter than a target distance, the system controls the virtual object to move relative to the surmountable obstacle in the target movement mode corresponding to the trigger operation in response to a trigger operation on the operation control. In this way, the movement mode that the virtual object will adopt relative to the surmountable obstacle is entirely determined by the player's trigger operation on the operation control, thereby improving the player's initiative and ensuring that the adopted movement mode conforms to the player's will. This avoids the need for multiple operations due to the system's decision on the movement mode being contrary to the player's will, thereby improving the efficiency of human-computer interaction and the effectiveness of control over the movement mode.
[0031] 1B , which is a schematic diagram of an application scenario of a method for processing motion in a virtual scene according to an embodiment of the present disclosure, is applied to a terminal device 400 and a server 200. In this application scenario, the computing power of the server 200 is used to perform calculations for the virtual scene and output the virtual scene to the terminal device 400. Taking the creation of a visual perception of a virtual scene 100 as an example, the server 200 calculates display data (e.g., scene data) for the virtual scene and transmits it to the terminal device 400 via the network 300. The terminal device 400 relies on graphics computing hardware to load, analyze, and render the display data and relies on graphics output hardware to output the virtual scene to create a visual perception, such as displaying two-dimensional video frames on the display screen of a smartphone or projecting video frames onto the lenses of augmented reality / virtual reality glasses, which can achieve a three-dimensional display effect. As can be understood, perception in the form of a virtual scene can be realized by the output of the relevant hardware of the terminal device 400, for example using a microphone to form an auditory perception and a vibrator to form a tactile perception.
[0032] As an example, the terminal device 400 executes a client 410 (e.g., a single-player game application), and during the execution of the client 410, a virtual scene including role-playing is output. The virtual scene 100 may be an environment for game character interaction, such as a plain, a city, a valley, etc., for game character battles. The virtual scene 100 includes a virtual object 110 and a surmountable obstacle 120 such as a wall or a drum. Here, the virtual object 110 can move relative to the surmountable obstacle 120 by adopting various motion methods. For example, the virtual object 110 can move relative to the surmountable obstacle 120 by adopting a motion method of climbing over the surmountable obstacle 120, thereby climbing from one side of the surmountable obstacle to the other, or the virtual object 110 can move relative to the surmountable obstacle 120 by adopting a motion method of jumping, thereby jumping from one side of the surmountable obstacle to stand on the surmountable obstacle.
[0033] In some embodiments, the terminal device 400 can implement the method for processing movement in a virtual scene according to the present embodiment by executing a computer program. For example, the computer program may be a native program or software module in an operating system, i.e., a program that needs to be installed in an operating system to run, such as a native application (APP) such as a shooting game APP (i.e., the above-mentioned client 410), or a mini-program, i.e., a program that can be executed simply by downloading it to a browser environment, or a game mini-program that can be embedded in any APP. In short, the computer program may be any form of application, module, or plug-in.
[0034] Taking the computer program as an example of an application, in actual implementation, an application supporting a virtual scene is installed and executed on the terminal device 400. The application may be any one of a first-person shooter game (FPS), a third-person shooter game, a virtual reality application, a three-dimensional map program, a simulation program, or a multiplayer gun battle survival game. A user can use the terminal device 400 to manipulate virtual objects in the virtual scene to perform actions, including, but not limited to, at least one of adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, and building a virtual building. Exemplarily, the virtual object may be a virtual person, such as a simulated human character or an animated character.
[0035] In some other embodiments, the present embodiments may be further realized using cloud technology, which refers to a hosting technology that integrates a set of resources, such as hardware, software, and networks, within a wide area network or a local area network to realize data calculation, storage, processing, and sharing.
[0036] Cloud technology is a collective term for networking, information, integration, management platform, and application technologies applied under the cloud computing business model, forming a resource pool that can be used as needed, flexibly, and conveniently. Cloud computing technology provides important support for the back-end services of technical network systems, which require large amounts of computing and storage resources.
[0037] 1B may be an independent physical server, a server cluster or a distributed system configured by multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), big data, and artificial intelligence platforms. The terminal device 400 may be, but is not limited to, a smartphone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc. The terminal device 400 and the server 200 may be directly or indirectly connected via wired or wireless communication, and the present embodiment is not limited thereto.
[0038] The following describes an electronic device implementing the above method according to an embodiment of the present invention. The electronic device may be the terminal device 400 shown in FIG. 1A or the terminal device and server shown in FIG. 1B. Taking the electronic device as the terminal device 400 as an example, FIG. 2 illustrates an exemplary structural diagram of the terminal device 400 according to an embodiment of the present invention. The terminal device 400 shown in FIG. 2 includes at least one processor 420, a memory 460, at least one network interface 430, and a user interface 440. The components of the terminal device 400 are coupled via a bus system 450. It is understood that the bus system 450 is used to realize communication between these components. In addition to a data bus, the bus system 450 includes a power bus, a control bus, and a status signal bus. However, for clarity, various buses are referred to as the bus system 450 in FIG. 2.
[0039] The processor 420 may be an integrated circuit chip having signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc., where the general-purpose processor may be a microprocessor or any conventional processor, etc.
[0040] The user interface 440 includes one or more output devices 441 that enable media content to be displayed, said output devices 441 including one or more speakers and / or one or more visual display screens. The user interface 440 also includes one or more input devices 442 that include user interface components that facilitate user input, such as a keyboard, mouse, microphone, touchscreen display, camera, other input buttons or controls, etc.
[0041] Memory 460 may be removable, non-removable, or a combination thereof, and example hardware devices thereof include solid-state memory, hard disk drives, optical disk drives, etc. Memory 460 optionally includes one or more storage devices that are remote in physical location from processor 420.
[0042] The memory 460 may include volatile memory, nonvolatile memory, or both volatile and nonvolatile memory. The nonvolatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 460 described in the present embodiments is intended to include any suitable type of memory.
[0043] In some embodiments, memory 460 may store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as illustratively described below.
[0044] The operating system 461 includes system programs configured to handle various basic system services and perform hardware-related tasks, such as a framework layer, a core library layer, and a driver layer, which are used to realize various basic services and process hardware-based tasks.
[0045] The network communications module 462 is configured to reach other computing devices via one or more (wired or wireless) network interfaces 430, illustratively including Bluetooth® technology, Wireless Fidelity (WiFi), and Universal Serial Bus (USB), among others.
[0046] The exhibit module 463 is configured to display information via one or more output devices 441 (e.g., a display, a speaker, etc.) associated with the user interface 440 (e.g., a user interface for operating peripherals and displaying content and information).
[0047] The input processing module 464 is configured to detect one or more user inputs or interactions from one or more input devices 442 and to interpret the detected inputs or interactions.
[0048] In some embodiments, the virtual scene motion processing device according to the present embodiment can be realized in a software manner. FIG. 2 shows a virtual scene motion processing device 465 stored in memory 460. The virtual scene motion processing device 465 can be software in the form of a program, plug-in, etc., and includes software modules such as a display module 4651 and a control module 4652. These modules are interconnected and can be arbitrarily combined or divided based on the functions they realize. The functions of each module are described below.
[0049] In some other embodiments, the motion processing device in a virtual scene according to the embodiments of the present application may be realized using a hardware method, for example, the motion processing device in a virtual scene according to the embodiments of the present application may be a processor in the form of a hardware decoding processor, which is programmed to execute the motion processing method in a virtual scene according to the embodiments of the present application, for example, the processor in the form of a hardware decoding processor may employ one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs) or other electronic elements.
[0050] The following describes a method for processing motion in a virtual scene according to an embodiment of the present invention with reference to the drawings. The method for processing motion in a virtual scene according to the embodiment of the present invention may be performed independently by a terminal device or a server, or may be performed jointly by a terminal device 400 and a server 200.
[0051] Hereinafter, an example will be described in which the method for processing motion in a virtual scene according to an embodiment of the present application is performed solely by the terminal device 400 of Fig. 1A. Referring to Fig. 3, Fig. 3 is an exemplary flowchart of the method for processing motion in a virtual scene according to an embodiment of the present application, which will be described with reference to the steps shown in Fig. 3.
[0052] It should be noted that the method shown in FIG. 3 can be performed by various forms of computer programs executed on the terminal device 400, and is not limited to the above-mentioned client 410, but can also be performed by the above-mentioned operating system 461, software modules, scripts, etc., and therefore the client should not be considered as a limitation of the embodiments of the present application.
[0053] In step 101, the terminal device displays surmountable obstacles, virtual objects and operation controls on an interface of a virtual scene, and the operation controls are used to control the movement manner of the virtual objects relative to the surmountable obstacles.
[0054] In actual application, a client supporting a virtual scene is installed on a terminal device (for example, if the virtual scene is a game, the corresponding client may be a shooting game APP). When a user launches the client installed on the terminal device (for example, the user clicks on an icon corresponding to the shooting game APP displayed on the user interface of the terminal device), and the terminal device executes the client, an interface of the virtual scene is displayed on the client, and a virtual object corresponding to a currently logged-in account in the virtual scene, an environment in the virtual scene where the virtual object is located (for example, flat ground, jump-over obstacles (walls, drums, etc.)), and operation controls for controlling the movement manner of the virtual object relative to the jump-over obstacles are displayed on the virtual scene interface. Here, the operation controls are associated with at least two movement manners, and different trigger operations on the operation controls correspond to different movement manners. A player can control the virtual object to move in the corresponding movement manner relative to the jump-over obstacles by performing a trigger operation on the operation control corresponding to the movement manner.
[0055] In step 102, if the distance between the virtual object and the jumpable obstacle is shorter than the target distance, in response to a trigger operation on the operation control, the virtual object is controlled to move relative to the jumpable obstacle in a target movement manner corresponding to the trigger operation.
[0056] Here, the target distance may be a distance preset according to actual situations and is related to multiple movement methods associated with the operation control. For example, if the movement methods associated with the operation control include climbing over and jumping, when the virtual object is near a climbable obstacle, the target distance is the distance that can be climbed from one side of the climbable obstacle to the other side, or the distance that can be jumped from one side of the climbable obstacle to stand on the climbable obstacle.
[0057] In practical applications, the operation modes of multiple movement modes associated with the operation control can be adjusted to meet different user operation needs, where the operation modes include a combination mode and a split mode. In some embodiments, the terminal device can adjust the operation modes of at least two movement modes associated with the operation control to the split mode in response to a setting command for the operation mode of the operation control before controlling the virtual object to move in a target movement mode corresponding to a trigger operation. Correspondingly, in the split mode, if the distance between the virtual object and the surmountable obstacle is shorter than the target distance, the terminal device controls the virtual object to move in the target movement mode corresponding to the trigger operation relative to the surmountable obstacle in response to a trigger operation on the operation control, so that the movement mode of the virtual object relative to the surmountable obstacle is determined by the user. When the user sets the operation mode of the operation control to the combination mode, the movement mode of the virtual object relative to the surmountable obstacle is determined by the system based on the position of the virtual object. In this way, the user can choose whether to enable the split mode of the operation control according to their own will and needs.
[0058] Next, an example will be described in which the movement methods associated with the operation control include two movement methods, namely, climbing over and jumping.
[0059] 4, which is a schematic diagram of a setting interface of an operation control according to an embodiment of the present application. The setting interface displays an ON / OFF option for setting an operation mode of two movement modes associated with the operation control. When the OFF option is selected, the operation mode is adjusted to the combination mode, and when the ON option is selected, the operation mode is adjusted to the split mode. When the operation mode is adjusted to the combination mode, control is performed in a normal manner. That is, the movement mode of the virtual object relative to the jumpable obstacle triggered by the user by triggering the operation control is determined by the system based on the position environment of the virtual object. For example, when the terminal device receives a trigger operation on the operation control when the distance between the virtual object and the jumpable obstacle is shorter than the target distance, the terminal device controls the virtual object to move in a jumping-over movement mode relative to the jumpable obstacle, that is, controls the virtual object to jump over from one side of the jumpable obstacle to the other side. In another example, when the terminal device receives a trigger operation for the operation control when the virtual object moves on flat ground or the distance to an obstacle that can be overcome exceeds the target distance (cannot be overcome), the terminal device controls the virtual object to move in a jumping manner.
[0060] When the operation mode is adjusted to the split mode, control is performed in accordance with the movement processing method according to the embodiment of the present application. That is, the movement manner of the virtual object relative to a climbable obstacle is determined by a trigger operation on the operation control by the user. If the trigger operation corresponds to a certain movement manner, the virtual object is controlled to move in the corresponding movement manner relative to the climbable obstacle. If the trigger operation corresponds to a jump movement manner, the virtual object is controlled to jump from one side of the climbable obstacle and stand on the climbable obstacle. If the trigger operation corresponds to a climb-over movement manner, the virtual object is controlled to climb over from one side of the climbable obstacle to the other side.
[0061] The above method provides the user with a setting entry (i.e., on / off option) for setting the operation mode, and the user can set the operation mode that suits them through the setting entry according to their own operation habits, which improves applicability and helps improve the effectiveness of subsequent movement direction control.
[0062] In some embodiments, the terminal device may receive a trigger operation on the operation control in the following manner: in response to a press operation on the operation control, control the display style of the operation control to switch from a default style to a first style, where the first style corresponds to the target movement manner; and in response to a release operation on the press operation triggered via the first-style operation control, receive a trigger operation, where the trigger operation includes a press operation and a release operation, that is, receive the trigger operation when the press operation on the first-style operation control is released.
[0063] 5 is a schematic diagram of the display of an operation control according to an embodiment of the present application, in which a corresponding icon (e.g., an icon corresponding to a target movement mode (such as a jump icon)) is displayed in the display area of the operation control. Before the terminal device receives a press operation for the operation control, the operation control is displayed in a default style (e.g., displayed in grayscale, indicating that the operation control is not pressed). When the terminal device receives a press operation for the operation control, the terminal device controls the display style of the operation control to switch from the default style to a first style (e.g., displayed highlighted, indicating that the operation control is pressed). A user can continue to press the operation control in the first style. During the press operation, when the press operation is released, the terminal device can treat the consecutive operations of the press operation and the release operation as a trigger operation for the operation control. After receiving the trigger operation, the terminal device determines whether the trigger operation corresponds to the target movement mode associated with the operation control, and performs a subsequent operation based on the determination result. In other words, the terminal device does not immediately execute a subsequent judgment function after receiving a press operation for an operation control, but after receiving a release operation, determines which of the movement methods associated with the operation control corresponds based on a trigger operation consisting of a succession of press and release operations, that is, controls which movement method the virtual object will adopt to move against a surmountable obstacle, for example, controls the virtual object to move in a movement method corresponding to the surmountable obstacle.
[0064] In some embodiments, before controlling the virtual object to move in the target movement manner relative to the surmountable obstacle, the terminal device may determine whether the received trigger operation corresponds to the target movement manner in the following manner: obtain a distance interval between a position corresponding to the press operation and a position corresponding to the release operation, and determine that the trigger operation corresponds to the target movement manner if the distance interval is smaller than a first distance threshold.
[0065] Here, after receiving a trigger operation for the operation control, the terminal device compares the received trigger operation with trigger operations corresponding to each of a plurality of movement methods associated with the operation control, and selects a movement method corresponding to the received trigger operation from the associated plurality of movement methods based on the comparison result. For example, if the trigger operation corresponding to the target movement method includes a press operation and a release operation for the operation control, and the distance between the position corresponding to the press operation and the position corresponding to the release operation is smaller than a first distance threshold, after receiving the trigger operation (including the press operation and the release operation) for the operation control, the terminal device compares the received trigger operation with trigger operations corresponding to each movement method, determines a target movement method corresponding to the received trigger operation, and controls the virtual object to move in the target movement method relative to the obstacle that can be overcome.
[0066] In some embodiments, the trigger operation on the operation control further includes a first sliding operation, and in the process of performing a pressing operation on the first-style operation control, the terminal device can further receive the first sliding operation triggered through the first-style operation control, and in the sliding process, i.e., in the process of sliding the operation control based on the first sliding operation, if a release operation for the pressing operation and a release operation for the first sliding operation are received, i.e., when the pressing operation and the first sliding operation are released, the trigger operation is received.
[0067] Here, in the process of performing a pressing operation on a first-style operation control, the user can press and slide, and after sliding a certain distance, release the pressing and sliding operations. In this case, the pressing operation, the first sliding operation, and the release operation are consecutive operations, and this series of consecutive operations is considered to be a trigger operation for the operation control. In this case, based on the sliding distance or sliding trajectory of the sliding operation, it is determined whether the trigger operation is the same as the trigger operation corresponding to the target movement method. If it is determined to be the same, the virtual object can be controlled to move toward an obstacle that can be overcome in the target movement method.
[0068] In some embodiments, the trigger operation on the operation control further includes a second sliding operation, and in the process of performing a pressing operation on the first-style operation control, the terminal device can further receive a second sliding operation on the first-style operation control, and in the sliding process, i.e., in the process of sliding the operation control based on the second sliding operation, in response to the sliding distance of the second sliding operation being equal to or greater than a first distance threshold, control the display style of the operation control to switch from the first style to a second style, where the second style corresponds to another movement method among the at least two movement methods associated with the operation control excluding the target movement method, and in the process of displaying the operation control in the second style, receive a pressing operation release operation and a second sliding operation release operation on the second-style operation control.
[0069] Here, the first distance threshold is a distance for distinguishing the target movement method from other movement methods, and when the terminal device receives a release operation when the sliding distance of the second sliding operation is smaller than the first distance threshold, the trigger operation (including the press operation, the second sliding operation, and the release operation) on the operation control corresponds to the target movement method, and in this case, the terminal device can control the virtual object to move in the target movement method relative to the obstacle that can be overcome. When the terminal device receives a release operation when the sliding distance of the second sliding operation is equal to or greater than the first distance threshold, the trigger operation (including the press operation, the second sliding operation, and the release operation) on the operation control corresponds to another movement method different from the target movement method, and in this case, the terminal device can control the virtual object to move in the other movement method relative to the obstacle that can be overcome.
[0070] Referring to FIG. 6, FIG. 6 is a schematic diagram of the display of an operation control according to an embodiment of the present application. In the process of a user performing a long press operation on a first style operation control and performing a second sliding operation, if the sliding distance of the second sliding operation is less than a first distance threshold, the display style of the operation control remains the first style. If the sliding distance of the second sliding operation is equal to or greater than the first distance threshold, the trigger operation on the operation control no longer corresponds to the target movement manner. In this case, the terminal device controls the display style of the operation control to switch from the first style to a second style corresponding to another movement manner. For example, if the target movement manner is jumping and the other movement manner is climbing over, the terminal device controls the icon displayed in the display area of the operation control to switch from a jump icon to a climbing over icon, thereby indicating to the user that the climbing over function can be triggered in this situation, that is, the user can control the virtual object to move in the climbing over movement manner against a climbable obstacle.
[0071] In some embodiments, the trigger operation of the operation control further includes a callback operation, and the terminal device can receive a release operation for the press operation and a release operation for the second sliding operation in the following manner: in a process of performing a press operation and a second sliding operation on the operation control in a second style, the callback operation for the second sliding operation is received; in the callback process, i.e., in a process of performing a callback on the operation control based on the callback operation, in response to the callback distance of the callback operation exceeding a second distance threshold, the display style of the operation control is controlled to return from the second style to the first style; and in a process of displaying the operation control in the first style, the release operation for the press operation, the release operation for the second sliding operation, and the release operation for the callback operation are received.
[0072] Continuing with reference to FIG. 6 , in the process of performing a press operation and a second sliding operation on a second-style operation control, if the sliding distance of the second sliding operation is equal to or greater than the first distance threshold and the trigger operation on the operation control does not correspond to the target movement method, a callback operation (continuous with the second sliding operation, for example, continuing to slide in the opposite direction to the second sliding operation) is performed to make the sliding distance of the second sliding operation (the slide distance of the second sliding operation is subtracted by the callback distance of the callback operation from the slide distance of the second sliding operation before the callback) smaller than the first distance threshold, thereby making the trigger operation on the operation control correspond to the target movement method. In this case, the icon displayed in the display area of the operation control is controlled to change from the jump icon back to the jump icon. If a release operation is received during the process of the operation control being displayed as the jump icon, the trigger operation on the operation control (including the press operation, the second sliding operation, the callback operation, and the release operation) corresponds to the target movement method. In this case, the virtual object can be controlled to move in the target movement method relative to the jumpable obstacle.
[0073] In some embodiments, the terminal device can receive a release operation for a press operation and a release operation for a second slide operation in the following manner: in the process of performing the press operation and the second slide operation on the second-style operation control, in response to a movement command for the virtual object, control the virtual object to move in the virtual scene along a direction indicated by the movement command, in the movement process, in response to the distance between the virtual object and the jumpable obstacle being equal to or greater than a target distance, control the display style of the operation control to return from the second style to the first style, and in the process of displaying the operation control in the first style, receive a release operation for the press operation and a release operation for the second slide operation.
[0074] Here, in the process of performing a press operation and a second sliding operation on the second-style operation control, if the sliding distance of the second sliding operation is equal to or greater than the first distance threshold and the trigger operation on the operation control does not correspond to the target movement manner, the virtual object is further controlled to move away from the jumpable obstacle so that the trigger operation on the operation control corresponds to the target movement manner. For example, if the target movement manner is a jump and the other movement manner is a climb-over, the icon displayed in the display area of the operation control is controlled to change from the climb-over icon back to the jump icon. If a release operation for the trigger operation is received while the operation control is being displayed as the jump icon, the trigger operation on the operation control (including the press operation, the second sliding operation, and the release operation) corresponds to the target movement manner, so that the virtual object can be controlled to move in the target movement manner with respect to the jumpable obstacle. That is, by controlling the virtual object to perform a jump operation on the jumpable obstacle, the virtual object jumps from the side of the jumpable obstacle where the virtual object is located to the other side of the jumpable obstacle.
[0075] In some embodiments, before controlling the virtual object to move in a target movement manner relative to the surmountable obstacle, the terminal device may further determine whether the received trigger operation corresponds to the target movement manner in the following manner: if the trigger operation includes a pressing operation on an operation control, obtain pressing parameters corresponding to the pressing operation, the pressing parameters including at least one of a pressing duration, a pressing force, and a pressing frequency, and determine that the trigger operation corresponds to the target movement manner if the pressing parameters match the target pressing parameters corresponding to the target movement manner.
[0076] Here, when multiple movement methods associated with an operation control are triggered by a press operation on the operation control, different press parameters can correspond to different movement methods. For example, taking the press parameter as a press time length, in the first, second and third movement methods associated with the operation control, the first press time length corresponding to the first movement method is less than or equal to the first time length threshold, the second press time length corresponding to the second movement method is greater than the first time length threshold and less than or equal to the second time length threshold, the second time length threshold is greater than the first time length threshold, and the third press time length corresponding to the third movement method is greater than the second time length threshold. For example, if the pressing duration corresponding to the first motion mode is less than 1 second, the pressing duration corresponding to the second motion mode is more than 1 second but less than 3 seconds, and the pressing duration corresponding to the third motion mode is more than 3 seconds, after receiving a trigger operation (including a pressing operation) for the operation control, the terminal device will match the pressing duration of the pressing operation in the received trigger operation (the difference between the time of the release operation for the pressing operation and the time of the pressing operation) with the pressing durations corresponding to each of the three motion modes associated with the operation control, and select the motion mode whose pressing durations match as the motion mode to be adopted. For example, if the pressing duration of the received pressing operation is 2 seconds, the corresponding motion mode to be adopted is the second motion mode. Alternatively, the terminal device may directly compare the pressing duration of the pressing operation in the received trigger operation with the pressing duration corresponding to the target motion mode, and if they match, determine that the received trigger operation corresponds to the target motion mode, i.e., determine that the motion mode to be adopted indicated by the trigger operation is the target motion mode.
[0077] In some embodiments, before controlling the virtual object to move in a target movement manner relative to the surmountable obstacle, the terminal device may further determine whether the received trigger operation corresponds to the target movement manner in the following manner: if the trigger operation includes a slide operation on the operation control, obtain a slide trajectory corresponding to the slide operation, and if the slide trajectory matches a target slide trajectory corresponding to the target movement manner, determine that the trigger operation corresponds to the target movement manner.
[0078] Here, when the trigger operation on the operation control includes a slide operation on the operation control, in addition to determining whether the received trigger operation corresponds to the target motion mode based on the above-mentioned slide distance, it can also be determined based on the slide trajectory. In some embodiments, each motion mode corresponds to one slide trajectory, and the slide trajectories corresponding to different motion modes are different. For example, in a first motion mode, a second motion mode, and a third motion mode associated with the operation control, the slide trajectory corresponding to the first motion mode is "V" shaped, the slide trajectory corresponding to the second motion mode is "S" shaped, and the slide trajectories other than the above two slide trajectories correspond to the third motion mode. After obtaining the trigger operation (including the slide operation) on the operation control, the terminal device matches the slide trajectory of the slide operation in the received trigger operation with the slide trajectories corresponding to each of the three motion modes associated with the operation control, and selects the motion mode whose slide trajectories match each other as the motion mode to be adopted. For example, if the slide trajectory of the received slide operation is "V" shaped, the corresponding adopted motion method is the first motion method; alternatively, the slide trajectory of the slide operation in the received trigger operation is directly compared with the slide trajectory corresponding to the target motion method, and if they match, it is determined that the received trigger operation corresponds to the target motion method, that is, it is determined that the adopted motion method indicated by the trigger operation is the target motion method.
[0079] In some embodiments, the terminal device can further receive a trigger operation on the operation control in the following manner: in response to a press operation on the operation control, display options corresponding to each of at least two movement methods associated with the operation control, and in response to a selection operation on a target option, receive a trigger operation on the operation control, and set the movement method corresponding to the target option as the movement method instructed to be executed by the trigger operation, i.e., the target movement method.
[0080] In actual applications, the options corresponding to each motion mode may be displayed in various ways, for example, in a floating window style, a list style, or a control style, and the present embodiment is not limited thereto.
[0081] 7 is a schematic diagram of triggering an operation control according to an embodiment of the present application. When a user presses (or clicks) an operation control, options corresponding to each of a plurality of motion modes associated with the operation control are displayed in an area associated with the operation control. For example, a plurality of selectable options are displayed in a floating window style. In the process of pressing the operation control, the user swipes his finger to an area where a target option is located or directly clicks on the target option, thereby triggering a selection operation for the target option as a trigger operation for the operation control. The motion mode corresponding to the target option selected by the selection operation is the motion mode instructed to be executed by the trigger operation. For example, if the motion mode corresponding to the target option is a jump, then the motion mode instructed by the trigger operation for the operation control received by the terminal device after selecting the target option is a jump. That is, the trigger operation can control a virtual object to move in a jumping motion mode toward an obstacle that can be overcome.
[0082] In some embodiments, the terminal device may further receive a trigger operation for the operation control in the following manner: display operation instruction information, where the operation instruction information is used to indicate a movement manner that the virtual object should adopt in response to a surmountable obstacle, and receive a trigger operation for the operation control based on the operation instruction information, where the trigger operation corresponds to the movement manner indicated by the operation instruction information.
[0083] Here, if the distance between the virtual object and the jumpable obstacle is shorter than the target distance, i.e., if the virtual object is close to the jumpable obstacle, operation instruction information is displayed to instruct which movement mode the virtual object should adopt toward the jumpable obstacle and how to trigger the corresponding movement mode, and the user can perform the corresponding trigger operation on the operation control according to the operation mode instructed by the operation instruction information.
[0084] Referring to FIG. 8, FIG. 8 is a schematic diagram of the display of operation instruction information according to an embodiment of the present application. When a virtual object approaches an obstacle, such as a castle wall, operation instruction information 801 is displayed, stating, "The enemy is hiding on the other side of the castle wall. Slide the control upward to jump onto the castle wall, aim and shoot." After the user slides the operation control 802 upward in accordance with the information instructed by the operation instruction information 801, if the terminal device determines that the received upward sliding operation of the operation control corresponds to the target movement mode of jumping, the user can control the virtual object to jump onto the castle wall and aim at the enemy.
[0085] In some embodiments, before displaying the operation instruction information, the terminal device may further obtain scene data of the virtual scene, and based on the scene data, invoke a machine learning model to predict a movement mode that the virtual object needs to adopt in response to a surmountable obstacle, and the movement mode obtained by the prediction may be the movement mode instructed by the operation instruction information.
[0086] Here, the machine learning model is obtained by training based on sample scene data and the annotated movement methods. After adjusting the operation modes of at least two movement methods associated with the operation control to the split mode, the terminal device uses the machine learning model based on an artificial intelligence algorithm to predict which movement method is more appropriate for the virtual object to adopt in relation to the surmountable obstacle based on scene data of the virtual scene (e.g., location data of the current virtual object or other virtual objects, interaction data between the current virtual object and other virtual objects, and environmental data such as position information of the surmountable obstacle). This makes the prediction result more accurate, so that the trigger operation performed by the user based on the operation instruction information triggers a movement method appropriate for the current situation. Furthermore, the virtual object can be controlled to move in a movement method appropriate for the current situation in relation to the surmountable obstacle, thereby improving the effectiveness of control over the movement method.
[0087] The above machine learning model may be a neural network model (e.g., a convolutional neural network, a deep convolutional neural network, or a fully connected neural network), a decision tree model, a gradient boosting decision tree (GBDT), a multilayer perceptron, a support vector machine, etc., and the embodiments of the present application are not limited to the type of machine learning model.
[0088] In some embodiments, the terminal device obtains scene data of a virtual scene and reference scene data corresponding to a target motion mode, matches the scene data with the reference scene data, and if the scene data matches the reference scene data, sets the target motion mode to the motion mode indicated by the operation instruction information.
[0089] Here, when an operation control is associated with multiple motion modes, corresponding reference scene data exists for each motion mode, and different motion modes correspond to different reference scene data. For example, reference scene data corresponding to a motion mode called "jump" is different from reference scene data corresponding to a motion mode called "overcome." When a virtual object is near a surmountable obstacle, the terminal device acquires current scene data, matches the acquired scene data with reference scene data corresponding to each of the multiple motion modes associated with the operation control, selects the motion mode corresponding to the reference scene data that successfully matches, and sets it as the motion mode indicated by the operation instruction information. After the user performs a corresponding trigger operation in accordance with the operation instruction information, the terminal device compares the motion mode indicated by the trigger operation with the target motion mode. If the two motion modes match, the terminal device determines that the trigger operation corresponds to the target motion mode and controls the virtual object to move in the target motion mode relative to the surmountable obstacle. If the two motion modes do not match, the terminal device determines that the trigger operation does not correspond to the target motion mode and controls the virtual object to move in the motion mode indicated by the trigger operation relative to the surmountable obstacle.
[0090] Of course, in actual application, after acquiring current scene data, the terminal device can directly match the acquired scene data with reference scene data corresponding to a target motion mode among the multiple motion modes associated with the operation control. If the matching is successful, it can determine that the target motion mode is the motion mode instructed by the operation instruction information, and directly control the virtual object to move in the target motion mode toward the surmountable obstacle. If the matching is unsuccessful, it can follow the above method to match the acquired scene data with reference scene data corresponding to each motion mode among the multiple motion modes associated with the operation control, determine that the target motion mode is not the motion mode instructed by the operation instruction information, and select the motion mode corresponding to the reference scene data that was successfully matched as the motion mode waiting for instruction by the operation instruction information.
[0091] It is to be understood that the scene data of the virtual scene referred to in the embodiments of the present application is essentially user-related data, and when the embodiments of the present application are applied to certain products or technologies, user permission or consent is required, and the collection, use and processing of related data should comply with the relevant laws, regulations and standards of the relevant countries or regions.
[0092] Here, if it is determined that the trigger operation corresponds to the target movement manner, the virtual object can be controlled to move toward the jumpable obstacle in the target movement manner instructed by the trigger operation. For example, if the target movement manner is jumping, the virtual object can be controlled to move toward the jumpable obstacle in the jumping movement manner so that the virtual object jumps from one side of the jumpable obstacle and stands on the jumpable obstacle. If the target movement manner is climbing over, the virtual object can be controlled to move toward the jumpable obstacle in the climbing over movement manner so that the virtual object climbs over from one side of the jumpable obstacle to the other.
[0093] According to the above method, when the distance between the virtual object and the jumpable obstacle is closer than the target distance, i.e., when the virtual object is near the jumpable obstacle, the movement method that the virtual object will adopt to move against the jumpable obstacle is entirely determined by the player's trigger operation on the operation control. This enhances the player's initiative, and the adopted movement method conforms to the player's will. This avoids the need for multiple operations due to the system's decision on the movement method going against the player's will. This improves the effectiveness of the control over the movement method and supports the interactive operation of virtual objects in the virtual scene, thereby improving the efficiency of interaction.
[0094] The following describes an exemplary application of the embodiment of the present application in one practical application scenario. Taking the example that the virtual scene is a game and the motion modes associated with the operation controls include two motion modes, namely, jumping and climbing over, the following describes a motion processing method in a virtual scene according to the embodiment of the present application. The embodiment of the present application focuses on the following experience optimizations, namely, adding a switch for controlling a new operation, and adding a function for triggering jumping and climbing over based on the sliding distance, which will be described one by one below.
[0095] 1. Adding switches to control new operations 4, the setting interface displays an ON / OFF option for setting an operation mode of two movement modes associated with the operation control. When the OFF option is selected, the operation mode is adjusted to the combination mode, and when the ON option is selected, the operation mode is adjusted to the split mode. When the operation mode is adjusted to the combination mode, control is performed in the normal mode. That is, the function (the movement mode of the virtual object relative to the jump-over obstacle) triggered by the user's triggering of the operation control is determined by the system based on the location environment of the virtual object. For example, when the terminal device receives a trigger operation on the operation control when the distance between the virtual object and the jump-over obstacle is shorter than the target distance (i.e., the virtual object is near the jump-over obstacle), the jump-over function is triggered, and the virtual object is controlled to move in a jump-over movement mode relative to the jump-over obstacle, that is, the virtual object is controlled to jump over from one side of the jump-over obstacle to the other side. In another example, if the terminal device receives a trigger operation on the operation control when the virtual object is moving on flat ground or the distance between the virtual object and a surmountable obstacle exceeds the target distance (cannot be surmounted), a jump function is triggered and the virtual object is controlled to move in a jumping motion manner.
[0096] When the operation mode is adjusted to the split mode, the function triggered by the user's triggering of the operation control is determined by the user's trigger operation on the operation control. When the trigger operation corresponds to a certain movement manner, the corresponding function is triggered to control the virtual object to move in the corresponding movement manner relative to the jumpable obstacle. For example, when the distance between the virtual object and the jumpable obstacle is shorter than the target distance (i.e., the virtual object is close to the jumpable obstacle), the trigger operation corresponds to a movement manner of jumping, and the jump function is triggered to control the virtual object to move in the jumping movement manner relative to the jumpable obstacle, i.e., the virtual object is controlled to jump from one side of the jumpable obstacle and stand on the jumpable obstacle. When the trigger operation corresponds to a movement manner of overcoming, the overcoming function is triggered to control the virtual object to move in the jumping movement manner relative to the jumpable obstacle, i.e., the virtual object is controlled to overcoming from one side of the jumpable obstacle to the other side.
[0097] 2. Added the ability to trigger jumps and vaults based on sliding distance. This function is mainly targeted at a function that is triggered when a virtual object is near a jumpable obstacle. Even if the virtual object is not near a jumpable obstacle, the jump function is still triggered when the jump button (i.e., the above-mentioned operation control) is triggered. The movement processing method in a virtual scene according to the embodiment of the present application mainly focuses on the expression when a virtual object is near a jumpable obstacle. In the conventional design, when a virtual object is near a jumpable obstacle (wall), the jump function is triggered immediately after the jump button is pressed. However, in the present application, the function is not triggered even when the jump button is pressed. In this case, the jump button is highlighted. When the jump button pops up, a corresponding function is triggered according to the sliding operation of the finger. If the player immediately releases the finger or if the sliding distance of the finger is less than a preset distance threshold (the first distance threshold described above), the jump function is triggered. If the player slides the finger more than the distance threshold, the jump button changes to a jump over button. If the player immediately releases the button, the jump over function is triggered. To cancel the jump over function, one method is to move away from the jumpable obstacle while pressing the jump over button (e.g., the distance between the two exceeds the target distance), and the jump over button changes back to a jump button. If the player releases the button, the jump function is triggered. Another method is to move the finger toward the pressed position. If the sliding distance is less than the preset distance threshold, the jump over button changes back to a jump button. If the player releases the button, the jump function is triggered.
[0098] In view of the above, reference is made to FIG. 9, which is a schematic diagram of a method for processing motion in a virtual scene according to an embodiment of the present invention, which includes the following steps:
[0099] In step 201, the terminal device displays surmountable obstacles, virtual objects and default style operation controls on the interface of the virtual scene.
[0100] Here, the operation control is used to control the movement manner of the virtual object relative to the obstacles that can be overcome, and the icon displayed in the display area of the operation control in the default style (e.g., grayscale) is a jump icon.
[0101] A plurality of obstacles may be displayed on the interface of the virtual scene, and a surmountable obstacle is an obstacle that a virtual object can jump onto or overcome. In practical applications, whether an obstacle is surmountable can be determined by detecting the relationship between the vertical height of the obstacle and the maximum height that the virtual object can jump or overcome. Referring to FIG. 10, which is a schematic diagram of detection according to an embodiment of the present application, a collision component (e.g., a collision box, a collision ball, etc.) is bound to each obstacle. A detection ray is emitted downward from a camera component bound to the top of the obstacle toward the collision component at the bottom of the obstacle. When the detection ray hits the collision component at the bottom of the obstacle, the vertical height of the obstacle is determined based on the length of the detection ray. If the vertical height is less than the maximum height that the virtual object can jump or overcome, the obstacle is determined to be a surmountable obstacle. If the vertical height exceeds the maximum height that the virtual object can jump or overcome, the obstacle is determined to be an insurmountable obstacle.
[0102] In step 202, if the distance between the virtual object and the surmountable obstacle is less than the target distance, a push operation on the default style operation control is received.
[0103] In step 203, the display style of the operation control is controlled to switch from the default style to the first style.
[0104] For example, when a press operation is received on a default style operation control, the display style of the operation control is controlled to switch from the default style to the first style, for example, the display style of the operation control is switched from grayscale display to highlighted display, and the icon displayed in the display area of the first style operation control is still a jump icon.
[0105] In step 204, if a slide operation for the first style operation control is received, the slide distance of the slide operation is obtained.
[0106] Here, in the process of performing a pressing operation on the first-style operation control, the user can perform a sliding operation on the first-style operation control, and when the terminal device receives the sliding operation on the first-style operation control, it obtains the sliding distance of the sliding operation in real time and determines which function to trigger based on the sliding distance.
[0107] Referring to FIG. 11, FIG. 11 is a schematic diagram of a slide according to an embodiment of the present application. When a player presses the first style operation control, an initial position 0 of the press operation is obtained. A circular area is created with the initial position 0 as the center and the distance threshold as the radius, which is the detection area for triggering a slide operation. Here, the distance threshold is a distance for distinguishing whether to trigger a jump function or a jump-over function. A slide operation within the circular area triggers the jump function, and a slide operation outside the circular area triggers the jump-over function.
[0108] During the sliding process, the sliding position A corresponding to the sliding operation is obtained in real time, and the distance between the sliding position A and the initial position 0 is obtained as the sliding distance of the sliding operation.
[0109] In step 205, it is determined whether the sliding distance is less than the distance threshold.
[0110] If the sliding distance is less than the distance threshold, step 206 is executed; if the sliding distance is equal to or greater than the distance threshold, step 208 is executed.
[0111] In step 206, maintaining the display of the operation control in the first style.
[0112] In step 207, if a release operation for a push operation and a release operation for a slide operation are received, a jump function is triggered.
[0113] Here, in the process of sliding the first-style operation control, if the player releases his / her hand when the sliding distance is less than the distance threshold, the terminal device receives a release operation for the pressing operation and a release operation for the sliding operation, and triggers a jump function in response to the release operation, so that the virtual object can be controlled to move in a jumping motion toward the jumpable obstacle, as shown in FIG. 12 , which is a schematic diagram of the motion according to an embodiment of the present application, and the virtual object can be controlled to jump from one side of the jumpable obstacle and stand on the jumpable obstacle.
[0114] In step 208, the display style of the operation control is controlled to switch from the first style to the second style.
[0115] Here, if the slide distance is equal to or greater than the distance threshold, the display style of the operation control is controlled to switch from the first style to the second style, and for example, the icon displayed in the display area of the operation control is controlled to switch from a jump icon to an overcoming icon and be highlighted.
[0116] In step 209, if a release operation for a push operation and a release operation for a slide operation are received, the over-ride function is triggered.
[0117] Here, in the process of sliding the second-style operation control, if the player releases his / her hand when the sliding distance is equal to or greater than the distance threshold, the terminal device receives a release operation for the pressing operation and a release operation for the sliding operation, and triggers a jump-over function in response to the release operation, so as to control the virtual object to move in a jump-over movement manner with respect to the jump-over obstacle, as shown in FIG. 13 , which is a schematic diagram of the movement according to an embodiment of the present application, in which the virtual object can be controlled to jump over from one side to the other side of the jump-over obstacle.
[0118] According to the above method, when the distance between the virtual object and the jumpable obstacle is closer than the target distance, i.e., when the virtual object is near the jumpable obstacle, the movement method that the virtual object will adopt to move against the jumpable obstacle is entirely determined by the player's trigger operation on the operation control. This enhances the player's initiative, and the adopted movement method conforms to the player's will. This avoids the need for multiple operations due to the system's decision on the movement method based on the environment being contrary to the player's will. This improves the effectiveness of the control over the movement method and supports the interactive operation of virtual objects in the virtual scene, thereby improving the efficiency of interaction.
[0119] The following describes an exemplary structure of the virtual scene motion processor 465 implemented as a software module according to an embodiment of the present invention. In some embodiments, the software modules in the virtual scene motion processor 465 stored in the memory 460 of FIG. 2 include: a display module 4651 configured to display surmountable obstacles, virtual objects, and manipulation controls of a virtual scene, the manipulation controls being used to control a movement manner of the virtual objects relative to the surmountable obstacles, the manipulation controls being associated with at least two movement manners, and different trigger operations on the manipulation controls corresponding to different movement manners; and a control module 4653 configured to, in response to a trigger operation on the operation control, control the virtual object to move relative to the surmountable obstacle in a target movement manner corresponding to the trigger operation, when the distance between the virtual object and the surmountable obstacle is shorter than a target distance.
[0120] In some embodiments, the device further comprises a receiving module 4652 configured to receive a trigger operation on the manipulation control when the distance between the virtual object and the surmountable obstacle is less than a target distance.
[0121] In some embodiments, the device further includes a setting module configured to adjust the operation mode of the at least two movement methods associated with the operation control to a split mode in response to a setting command for the operation mode of the operation control, and the device further includes a trigger module configured to trigger, in the split mode, matching of the trigger operation with a trigger operation corresponding to a target movement method among the at least two movement methods.
[0122] In some embodiments, the receiving module is further configured to control, in response to a press operation on the operation control, to switch a display style of the operation control from a default style to a first style, the first style corresponding to the target movement method, and to receive the trigger operation in response to a release operation for the press operation triggered via the operation control of the first style, the trigger operation including the press operation and the release operation.
[0123] In some embodiments, the trigger operation further includes a first slide operation, and the device further includes a first release receiving module configured to receive the first slide operation triggered via the first style operation control during the process of performing the press operation on the first style operation control, and to receive a release operation for the press operation and a release operation for the first slide operation during the slide process.
[0124] In some embodiments, the trigger operation further includes a second slide operation, and the device further includes a second release receiving module configured to receive the second slide operation triggered via the first style operation control during the process of performing the press operation on the first style operation control, and to control the display style of the operation control to switch from the first style to a second style in response to a slide distance of the second slide operation being equal to or greater than a first distance threshold during the slide process, the second style corresponding to another movement method among the at least two movement methods excluding the target movement method, and to receive a release operation for the press operation and a release operation for the second slide operation triggered via the second style operation control during the process of the operation control being displayed in the second style.
[0125] In some embodiments, the trigger operation further includes a callback operation, and the second release receiving module is further configured to receive the callback operation for the second slide operation during the process of performing the press operation and the second slide operation on the operation control of the second style, control the display style of the operation control to return from the second style to the first style in response to the callback distance of the callback operation exceeding a second distance threshold during the callback process, and receive a release operation for the press operation, a release operation for the second slide operation, and a release operation for the callback operation during the process of the operation control being displayed in the first style.
[0126] In some embodiments, the second release receiving module is further configured to: in the process of performing the press operation and the second slide operation on the second style operation control, in response to a movement command for the virtual object, control the virtual object to move in the virtual scene along a direction indicated by the movement command; in the movement process, in response to a distance between the virtual object and the jumpable obstacle being equal to or greater than the target distance, control the display style of the operation control to return from the second style to the first style; and in the process of displaying the operation control in the first style, receive a release operation for the press operation and a release operation for the second slide operation.
[0127] In some embodiments, after controlling the display style of the operation control to switch from the first style to the second style, the device further includes another control module configured to control the virtual object to move with the other movement manner relative to the overcome obstacle in response to a release operation for a press operation of the second style operation control and a release operation for the second slide operation.
[0128] In some embodiments, the device further comprises a first determination module configured to obtain a distance interval between a position corresponding to the press operation and a position corresponding to the release operation, and determine that the trigger operation corresponds to the target movement manner if the distance interval is smaller than a first distance threshold.
[0129] In some embodiments, the device further includes a second determination module configured to: if the trigger operation includes a press operation on the operation control, obtain press parameters corresponding to the press operation, the press parameters including at least one of a press duration, a press force, and a press frequency; and if the press parameters match target press parameters corresponding to the target movement manner, determine that the trigger operation corresponds to the target movement manner.
[0130] In some embodiments, the device further includes a third determination module configured to: when the trigger operation includes a slide operation on the operation control, obtain a slide trajectory corresponding to the slide operation; and when the slide trajectory matches a target slide trajectory corresponding to the target movement manner, determine that the trigger operation corresponds to the target movement manner.
[0131] In some embodiments, the receiving module is further configured to, in response to a press operation on the operation control, display options corresponding to each of the at least two movement methods, and, in response to a selection operation on a target option, receive the trigger operation, and set the movement method corresponding to the target option as the movement method indicated by the trigger operation.
[0132] In some embodiments, the receiving module is further configured to display operation instruction information, the operation instruction information being used to indicate a movement strategy that the virtual object needs to adopt relative to the surmountable obstacle, and to receive a trigger operation on the operation control, the trigger operation being performed in accordance with the operation instruction information.
[0133] In some embodiments, the device further comprises a prediction module configured to obtain scene data of the virtual scene, and based on the scene data, invoke a machine learning model to predict a movement strategy that the virtual object needs to adopt with respect to the surmountable obstacle, and set the predicted movement strategy as the movement strategy instructed by the operation instruction information, wherein the machine learning model is obtained by training based on sample scene data and annotated movement strategies.
[0134] In some embodiments, the device further comprises a matching module configured to obtain scene data of the virtual scene and reference scene data corresponding to the target motion manner, match the scene data with the reference scene data, and if the scene data matches the reference scene data, set the target motion manner to the motion manner indicated by the operation instruction information.
[0135] An embodiment of the present application provides a computer program product or a computer program including computer instructions stored on a computer-readable storage medium, wherein a processor of a computing device reads the computer instructions from the computer-readable storage medium and executes them to cause the computing device to perform the method for processing motion in a virtual scene described in the embodiment of the present application.
[0136] An embodiment of the present application provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform a method for processing motion in a virtual scene according to an embodiment of the present application, for example, the method shown in FIG.
[0137] In some embodiments, the computer-readable storage medium may be a memory such as Read-Only Memory (ROM), Random Access Memory (RAM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory, magnetic surface memory, optical disk, or CD-ROM, or may be various devices including one or any combination of the above memories.
[0138] In some embodiments, the executable instructions may take the form of a program, software, software module, script, or code, and may be written in any form of programming language (including compiled or interpreted, or declarative or procedural languages), and deployed in any form, such as as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0139] As an example, the executable instructions may, but do not necessarily, correspond to a file in a file system, and may be stored in part of a file that stores other programs or data, for example, in one or more scripts within a HyperText Markup Language (HTML) document, in a single file of the discussed program, or in multiple joint files (e.g., files that store one or more modules, subprograms, or code portions).
[0140] As an example, the executable instructions may be deployed to be executed on one computing device, or on multiple computing devices that are co-located, or on multiple computing devices that are distributed across multiple locations and interconnected by a communications network.
[0141] The above description is merely an example of the present application and does not limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and scope of the present application shall all be included in the scope of protection of the present application.
Claims
1. A method for processing motion in a virtual scene, which is performed by electronic devices, A step of displaying a virtual scene with climbable obstacles, virtual objects, and control interfaces, wherein the control interfaces are used to control the motion schemes of the virtual objects, and the control interfaces are associated with two motion schemes, each including at least a jump motion scheme and a climb motion scheme, and different trigger operations on the control interfaces correspond to different motion schemes. If the distance between the virtual object and the obstacle that can be overcome is shorter than the target distance, the virtual object is controlled to move with respect to the obstacle in the manner of overcoming it, in response to a first trigger operation on the operation control. A method for processing motion in a virtual scene, including [specific details omitted].
2. The motion processing method in a virtual scene according to Claim 1, wherein the first trigger operation is an operation of pressing the operation control and sliding it beyond a first distance threshold and then releasing it.
3. A motion processing method in a virtual scene according to claim 1 or 2, further comprising the step of controlling the virtual object to move in the jump motion manner in response to a second trigger operation for the operation control.
4. The motion processing method in a virtual scene according to claim 3, wherein the second trigger operation is an operation of pressing and releasing the operation control, or an operation of clicking the operation control.
5. The motion processing method in a virtual scene according to claim 1 or 2, wherein the display style of the operation control includes a first style corresponding to the jump motion method and a second style corresponding to the climb-over motion method.
6. A computer program for causing a computer to execute the motion processing method in a virtual scene described in either Claim 1 or 2.