Object jumping control method and apparatus, and computer device and storage medium

IN606921BActive Publication Date: 2026-10-23TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
IN202147051116
Authority / Receiving Office
IN · IN
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-05-23
Filing Date
2021-11-08
Publication Date
2026-10-23
Estimated Expiration
2040-05-19

AI Technical Summary

Technical Problem

Current methods for controlling virtual object jumps in game scenes require manual configuration of link bridges in non-walkable regions, leading to high resource consumption and low resource utilization due to the need for extensive manual labor and memory usage.

Method used

An object jump control method that determines a target landing point and jump trajectory for virtual objects based on their current position and destination, allowing them to jump automatically without pre-configured jump points, thereby reducing the need for manual configuration of link bridges.

Benefits of technology

This approach reduces the costs and resource consumption associated with manual configuration, improving resource utilization by enabling automatic jump control in game scenes without the need for extensive manual setup.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

An object jumping control method and apparatus, and a computer device and a storage medium, relating to the technical field of networks. The method comprises: in a process that a first virtual object moves to a destination in a virtual scene, when the current position of the first virtual object satisfies a jumping condition, determining a target landing point of the first virtual object according to the position of the destination; determining, according to the current position and the target landing point, a jumping trajectory that the first virtual object jumps to the target landing point from the current position; and controlling, according to the jumping trajectory, the first virtual object to jump to the target landing point from the current position.
Need to check novelty before this filing date? Find Prior Art

Description

FIELD OF THE TECHNOLOGY

[0002] Embodiments of this application relate to the field of network technologies, andin particular, to an object jump control method and apparatus, a computer device, and a storagemedium.BACKGROUND OF THE DISCLOSURE

[0003] Currently, many games are provided with adversarial virtual objects fightingagainst virtual user objects. For example, in a game scene, an adversarial virtual object in theform of a zombie may move close to a virtual user object, to attack the virtual user object.When the adversarial virtual object moves, if the adversarial virtual object moves to a non20walkable region, a server may control the adversarial virtual object to jump, for example, fromone end of the non-walkable region to another end thereof.

[0004] In the related art, an object jump control process may include: a serverconfigures a link bridge manually in each non-walkable region based on jump points selectedby a user, where the link bridge includes two jump points selected by the user. The server maycontrol the adversarial virtual object to jump from one jump point to the other jump point.

[0005] A link bridge needs to be manually configured in each non-walkable region inthe foregoing method. However, a game scene generally includes a lot of non-walkable regions.Therefore, a lot of link bridges need to be manually configured, and a lot of internal memoryof a server is occupied. As a result, a lot of resources, such as labor power and internal memory,are consumed and costs are high, leading to relatively low utilization of resources.SUMMARY

[0006] Embodiments of this application provide an object jump control method andapparatus, a computer device, and a storage medium.

[0007] According to an aspect, an object jump control method is provided, performedby a computer device, the method including:determining, in a process that a first virtual object in a virtual scene moves to adestination, a target landing point of the first virtual object according to a position of thedestination when a current position of the first virtual object meets a jump condition;determining, according to the current position and the target landing point, ajump trajectory of the first virtual object jumping from the current position to the target landingpoint; andcontrolling the first virtual object to jump from the current position to the targetlanding point according to the jump trajectory.

[0008] According to another aspect, an object jump control apparatus is provided, theapparatus including:a determining module, configured to determine, in a process that a first virtualobject in a virtual scene moves to a destination, a target landing point of the first virtual objectaccording to a position of the destination when a current position of the first virtual objectmeets a jump condition;the determining module being further configured to determine, according to thecurrent position and the target landing point, a jump trajectory of the first virtual object jumpingfrom the current position to the target landing point; anda jump control module, configured to control the first virtual object to jumpfrom the current position to the target landing point according to the jump trajectory.

[0009] In one embodiment, the destination refers to a current position of a target virtualobject in the virtual scene, or a selected position in the virtual scene.

[0010] In one embodiment, the jump condition includes: there is no walking pathbetween the current position and the destination, or there is an obstacle in front of the currentposition in a direction of a shortest path between the current position and the destination.

[0011] In one embodiment, the determining module is further configured to determinea jump speed of the first virtual object at the current position according to the current positionand the target landing point; and determine the jump trajectory of the first virtual object fromthe current position to the target landing point according to the jump speed.

[0012] According to another aspect, a computer device is provided, including amemory and a processor, the memory storing computer-readable instructions, the computer readableinstructions, when executed by the processor, causing the processor to performoperations of the foregoing object jump control method.

[0013] According to another aspect, one or more non-volatile storage media storingcomputer-readable instructions are provided, the computer-readable instructions, whenexecuted by one or more processors, causing the one or more processors to perform operationsof the foregoing object jump control method.

[0014] Details of one or more embodiments of this application are provided in theaccompanying drawings and descriptions below. Other features, objectives, and advantages ofthis application become apparent from the specification, the drawings, and the claims.BRIEF DESCRIPTION OF THE DRAWINGS

[0015] To describe the technical solutions of the embodiments of this application moreclearly, the following briefly introduces the accompanying drawings required for describingthe embodiments. Apparently, the accompanying drawings in the following description showonly some embodiments of this application, and a person of ordinary skill in the art may stillderive other drawings from these accompanying drawings without creative efforts.

[0016] FIG. 1 is a schematic diagram of a scene of an object jump control methodaccording to an embodiment of this application.

[0017] FIG. 2 is a schematic diagram of a scene interface of an object jump controlmethod according to an embodiment of this application.

[0018] FIG. 3 is a flowchart of an object jump control method according to anembodiment of this application.

[0019] FIG. 4 is a flowchart of object state detection according to an embodiment ofthis application.

[0020] FIG. 5 is a flowchart of object state detection according to an embodiment ofthis application.

[0021] FIG. 6 is a schematic diagram of a jump obstacle according to an embodimentof this application.

[0022] FIG. 7 is a schematic diagram of an interface of a jump obstacle according toan embodiment of this application.

[0023] FIG. 8 is a schematic diagram of jump trajectories according to an embodimentof this application.

[0024] FIG. 9 is a flowchart of object jump control according to an embodiment of thisapplication.

[0025] FIG. 10 is a schematic structural diagram of an object jump control apparatusaccording to an embodiment of this application.

[0026] FIG. 11 is a schematic structural diagram of a terminal according to anembodiment of this application.

[0027] FIG. 12 is a schematic structural diagram of a server according to anembodiment of this application.DESCRIPTION OF EMBODIMENTS

[0028] The following clearly and completely describes the technical solutions in theembodiments of this application with reference to the accompanying drawings in theembodiments of this application. Apparently, the described embodiments are some rather thanall of the embodiments of this application. All other embodiments obtained by a person ofordinary skill in the art based on the embodiments of this application without creative effortsshall fall within the protection scope of this application.

[0029] Embodiments of this application relate to a video game scene, where the videogame scene includes a virtual scene and a virtual object. The virtual object refers to an objectthat can complete various actions in the virtual scene, for example, at least one action ofjumping, walking, or running. The virtual object may be a virtual user object for representinga user; or the virtual object may be used for representing an adversarial virtual object preconfiguredin a game and fighting against a virtual user object. For example, an adversarialvirtual object in the form of a zombie may attack a virtual user object. The virtual object mayalternatively be used for representing a user-associated virtual object having an associationrelationship with a virtual user object in a virtual scene, for example, a prop or a virtual petowned by or a vehicle ridden by the virtual user object in the virtual scene. The virtual objectmay be in any form, for example, a person, an animal, or any virtualized shape, such as anadversarial virtual object in the form of a zombie.

[0030] In one embodiment, the adversarial virtual object may move toward a directionof the virtual user object, the adversarial virtual object moves close to the virtual user object,and attacks the virtual user object. A user may also control the virtual user object to move, toevade from attack of the adversarial virtual object, or the user may control the virtual userobject to fight against the adversarial virtual object, for example, control the virtual user objectto fight against the adversarial virtual object by using a virtual prop. In a process that theadversarial virtual object moves to the virtual user object, the adversarial virtual object mayalso perform a jump action to jump toward the direction of the virtual user object. For example,as shown in FIG. 1, if the virtual user object is located on a roof of a house and the adversarialvirtual object is located on a ground, the adversarial virtual object may jump to the roof. Asshown in FIG. 2, FIG. 2 is a schematic diagram of an actual scene interface of FIG. 1, and avirtual scene corresponding to FIG. 1 may be known more clearly from FIG. 2.

[0031] In another embodiment, the user may also select a destination in the virtualscene in advance, and the virtual user object may move toward a direction of the destination.In a moving process, the virtual user object may also perform a jump action. For example, ifthe virtual user object encounters an obstacle such as a river in a process of running along ashortest path, the virtual user object may also jump to the other side of the river.

[0032] In another embodiment, the user-associated virtual object may also move alongwith the virtual user object in real time, and in a real time following movement process, theuser-associated virtual object may also perform a jump action. For example, when the virtualuser object moves forward quickly on virtual stairs, a virtual pet dog of the virtual user objectmay also jump to a stair on which the virtual user object is currently located.

[0033] The virtual scene may be a simulated scene of a real world, or may be a semisimulatedsemi-fictional scene, or may be an entirely fictional scene. For example, the virtualscene may include at least one of the sky, the land, and the ocean, and the land may include atleast one environment element such as a desert or a city. The virtual object may move in thevirtual scene. By using a shooting game as an example, the virtual object falls freely, glides,opens a parachute to fall, or the like in the sky of the virtual scene, or runs, jumps, crawls,bends forward, or the like on the land, or swims, floats, dives, or the like in the ocean. Certainly,the virtual object may alternatively drive a vehicle to move in the virtual scene. Herein, theforegoing scene is merely used as an example for description, and this is not specifically limitedin the embodiments of this application.

[0034] In the embodiments of this application, a computer device may obtain a gameconfiguration file of a game application in advance, and the game configuration file mayinclude an application program, page display data, virtual scene data, or the like of the videogame, so that the computer device can invoke the game configuration file while starting thevideo game, to render and display a page of the video game. The game configuration file mayfurther include action logic of the virtual object, and the computer device may control the jumpaction of the virtual object based on the action logic. The computer device may be a terminal,and the terminal controls the virtual object to jump based on the action logic of the virtualobject, determines game data corresponding to the jump process based on the jump process,and renders and displays the game data in real time. The game data may include virtual scenedata, action data of the virtual object in the virtual scene, and the like. The computer devicemay alternatively be a server. The server may be a backend server of the game application, andthe server may transmit jump information of the virtual object to a terminal in real time basedon the action logic of the virtual object, for example, at least one of a landing point, a jumpspeed, or a jump trajectory during jumping, so that the terminal determines game datacorresponding to the jump process based on the jump information and renders and displays thegame data.

[0035] The terminal may be any terminal on which the application program is installed.This is not specifically limited in the embodiments of this application. For example, theterminal may be any device such as a mobile phone terminal, a portable android device (PAD)terminal or a computer terminal on which the video game is installed.

[0036] FIG. 3 is a flowchart of an operation control method according to anembodiment of this application. An entity executing this embodiment of the present disclosureis a computer device. Referring to FIG. 3, the method includes:

[0037] 301. A computer device obtains a destination of a first virtual object, andcontrols the first virtual object to move toward the destination.

[0038] In the embodiments of this application, the first virtual object may be a virtualuser object, an adversarial virtual object fighting against a virtual user object, a user-associatedvirtual object of a virtual user object, a subsidiary virtual object of an adversarial virtual object,or the like. The destination refers to a current position of a target virtual object in the virtualscene, or a selected position in the virtual scene. The target virtual object may also be any oneof a virtual user object, an adversarial virtual object fighting against a virtual user object, auser-associated virtual object of a virtual user object, a subsidiary virtual object of anadversarial virtual object, and the like.

[0039] In some implementation scenes, the first virtual object may move along with thetarget virtual object. In one embodiment, an adversarial virtual object pursues and attacks avirtual user object, for example, a zombie virtual object pursues and attacks a virtual user objectwithin a target scene range. In another example, a user-associated virtual object moves alongwith a virtual user object in real time, for example, a virtual pet moves along with a virtual userobject in real time. In another example, a subsidiary virtual object of an adversarial virtualobject moves along with the adversarial virtual object in real time, for example, a small zombievirtual object moves along with a large zombie virtual object in real time, or a virtual soldiermoves along with a virtual captain. In another example, a task collaboration object of the firstvirtual object may also follow the first virtual object in real time. The foregoing examples areprovided in the embodiments of this application for description, and specific representationforms of the target virtual object and the first virtual object are not specifically limited in theembodiments of this application.

[0040] In one embodiment, the target virtual object may include, but is not limited to,a second virtual object within a target scene range of the first virtual object, a third virtualobject having an adversarial association relationship with the first virtual object, or a taskcollaboration object of the first virtual object. In this step, the computer device may determinethe destination of the first virtual object based on any one of the following four methods.

[0041] The first method: when a second virtual object is included in the target scenerange corresponding to the first virtual object, the computer device determines the secondvirtual object as the target virtual object, obtains a current position of the target virtual object,and determines the current position of the target virtual object as the destination.

[0042] In one embodiment, the target virtual object may be a virtual user object, andthe first virtual object may be an adversarial virtual object of the virtual user object. Thecomputer device may configure one or more adversarial virtual objects within a specific scenerange, each adversarial virtual object corresponds to one target scene range, and when thecomputer device detects that the virtual user object is included in the target scene rangecorresponding to the adversarial virtual object, the computer device uses a current position ofthe virtual user object as the destination, and controls the adversarial virtual object to pursueand attack the virtual user object.

[0043] In another example, the target virtual object and the first virtual object may bevirtual user objects. For example, the target virtual object and the first virtual object may be inthe same team; when an auto follow mode of the first virtual object is in an enabled state andthe target scene range of the first virtual object includes a teammate virtual object that is in thesame team, the computer device uses a current position of the teammate virtual object as thedestination, and controls the first virtual object to move along with the teammate virtual objectin real time.

[0044] The second method: the computer device determines a third virtual objecthaving an adversarial association relationship with the first virtual object as the target virtualobject, obtains a current position of the target virtual object, and determines the current positionof the target virtual object as the destination.

[0045] In one embodiment, the target virtual object may be a virtual user object, andthe first virtual object may be an adversarial virtual object of the virtual user object. Thecomputer device may store the adversarial association relationship between the first virtualobject and the third virtual object. For example, if an adversarial virtual object A pursues andattacks a virtual user object B in real time, a destination of the adversarial virtual object A is acurrent position of the virtual user object B.

[0046] The third method: the computer device determines a task collaboration objectof the first virtual object as the target virtual object, obtains a current position of the targetvirtual object, and determines the current position of the target virtual object as the destination.

[0047] In one embodiment, the first virtual object may be a virtual user object or anadversarial virtual object, and the task collaboration object of the first virtual object may be avirtual object having a virtual dependency relationship or a teammate virtual object that is in asame team with the first virtual object, for example, a virtual pet, a virtual soldier object of avirtual captain, or a small zombie virtual object. For example, the virtual pet of the virtual userobject may move along with the virtual user object in real time.

[0048] The fourth method: the computer device obtains a selected position in the virtualscene, and determines a current position of the target virtual object as the destination.

[0049] In one embodiment, the destination may be a scene position that is selected inadvance. For example, a destination such as a mountaintop or the front of a door of an armoryis selected in advance, and a plurality of virtual objects seize the destination quickly.

[0050] The computer device may use a current position of the target virtual object asthe destination, or may use a position selected by a user as the destination, and control the firstvirtual object to move, where the target virtual object may have an adversarial relationship ora task collaboration relationship with the first virtual object, thereby enriching the applicabilityof the object jump control method.

[0051] 302. In a process that the first virtual object in a virtual scene moves to thedestination, the computer device detects whether a current position of the first virtual objectmeets a jump condition according to the current position of the first virtual object.

[0052] In the embodiments of this application, the computer device may obtain acurrent position of the first virtual object, and detect whether the current position of the firstvirtual object meets a jump condition according to the current position and the destination.

[0053] In one embodiment, the jump condition may be: there is no walking pathbetween the current position and the destination. The walking path refers to a path for walkingmovement. In this step, the computer device may detect whether there is a walking pathbetween the current position and the destination according to the current position, and whenthere is no walking path between the current position and the destination, the computer devicedetermines that the current position of the first virtual object meets the jump condition. In oneembodiment, the computer device may use a navigation mesh to represent positions of sceneobjects and virtual objects in the virtual scene, such as positions of houses, rivers, containers,or vehicles. The navigation mesh includes a plurality of polygonal cells, each polygonal cell isused for representing a position node in the virtual scene, and the computer device may furtherdetermine a walking path between the current position and the destination based on thenavigation mesh. In this step, the computer device may find a walking path from a positionnode in which the current position is located to a position node in which the destination islocated by using a target pathfinding algorithm according to the position node in which thecurrent position is located, and determine that the current position meets the jump condition ifno walking path from the position node in which the current position is located to the positionnode in which the destination is located is found; otherwise, the computer device determinesthat the current position does not meet the jump condition.

[0054] In one embodiment, the target pathfinding algorithm may be set as required,which is not limited in the embodiments of this application. For example, the target pathfindingalgorithm may be an A* (A-Star, heuristic searching) algorithm. The navigation mesh may beNav Mesh. A plurality of adjacent polygons surround each polygonal cell and adjacentpolygonal cells are communicated. A virtual object may walk from a polygonal cell to anadjacent polygonal cell. The adjacent polygonal cell refers to a polygonal cell that is near apolygonal cell and that has a common side with the polygonal cell. A walking path findingprocess may include: the computer device uses a polygonal cell in which the current positionis located as a starting point, and uses a polygonal cell in which the destination is located as anendpoint; the computer device finds a plurality of intermediate nodes from the starting point tothe endpoint by using the A* algorithm to find a path, and when no path is found, it indicatesthat the two points cannot reach each other.

[0055] When the computer device finds an intermediate node during pathfinding, thecomputer device may continue to find a next intermediate node based on the currentintermediate node and the endpoint until the endpoint is reached. The computer device doesnot need to store a plurality of intermediate nodes that are found, and only needs to determinewhether there is a walking path between the current position and the destination. It isunnecessary to obtain the intermediate nodes included in a specific walking path. Therefore,storage time is saved, and a pathfinding result can be determined quickly, thereby improvingprocessing efficiency.

[0056] In one embodiment, the jump condition may alternatively be: there is anobstacle in front of the current position in a direction of a shortest path between the currentposition and the destination. In this step, the computer device may determine a shortest pathbetween the current position and the destination, and the shortest path may be a straight-linedirection from the current position to the destination. In a process that the first virtual objectmoves toward the destination, the computer device may control the first virtual object to movealong the shortest path. The computer device may detect whether there is an obstacle within afirst target range in front of the current position in the direction of the shortest path. When thereis an obstacle within the first target range in front of the current position, the computer devicedetermines that the current position meets the jump condition (the target range in this step isreferred to as the first target range, to be distinguished from a second target range in step 303).The first target range may be set as required, for example, the first target range refers to a rangewithin 1 meter or 2 meters in front of the first virtual object. The obstacle refers to a physicalobject that blocks the first virtual object from walking, for example, at least one of a river, astone, or a railing.

[0057] In the embodiments of this application, the computer device may perform theprocess of step 302 periodically, and perform a process of subsequent steps 303 to 306, that is,an object jump process, when the current position meets the jump condition. In oneembodiment, the first virtual object may be an artificial intelligence (AI) object that is preconfiguredin a game. The AI object may be used for fighting against a virtual user object. Forexample, the AI object is an adversarial virtual object in the form of a zombie. The AI objectmay perform a jump process based on a pre-configured action tree, where the action tree refersto a tree structure formed by action nodes of the AI object and used for indicating action logicof the AT object, and execution of an action node is affected and controlled by a parent node.This step may alternatively be: when the first virtual object is an AI object, the computer devicemay add a first node to an action tree of the first virtual object, where the first node is used forinstructing to perform the detection process of step 302 according to a target cycle, therebyupdating a detection state of the current position periodically. The computer device may furtheradd a second node to the action tree, where the second node is used for instructing to performa process of step 303 when the current position meets the jump condition. As shown in FIG. 4,when a current position of the AI object meets the jump condition, for example, the AI objectcannot walk to the virtual user object, the jump process of subsequent steps 303 to 306 isperformed; and when the current position of the AI object does not meet the jump condition,normal pathfinding and attack logic of the AI object is performed, that is, the AI object iscontrolled to walk to the virtual user object and attack the virtual user object.

[0058] In one embodiment, the first node may be a service node, and the second nodemay be a task node, for example, a decorator node. As shown in FIG. 5, description is made byusing a service node as an example. The service node may be set to perform the process of step302 once per second, to determine whether the current position meets the jump condition, forexample, whether the AI object can walk to the virtual user object. When the AI object cannotwalk to the virtual user object, the computer device sets a state of the AI object to an out-ofreachstate; otherwise, the computer device sets the state to a within-reach state. When it isdetected that the state of the AI object is the out-of-reach state, the jump process of subsequentsteps 302 to 305 is performed.

[0059] 303. The computer device determines a target landing point of the first virtualobject according to a position of the destination when the current position of the first virtualobject meets the jump condition.

[0060] The target landing point refers to a position the first virtual object reaches afterperforming a jump action. In the embodiments of this application, the computer device mayselect one point within a walking region of the destination as the target landing point. Thecomputer device may alternatively select a point that is relatively close to the destination as thetarget landing point, or the computer device may directly use the destination as the targetlanding point. Correspondingly, this step may include any one of the following fourimplementations.

[0061] The first implementation: when the current position meets the jump condition,the computer device determines a target landing point within a walking region based on thewalking region of the destination.

[0062] There is a walking path between any position in the walking region and thedestination, that is, a first virtual object on any position in the walking region can walk to thedestination. In this step, the destination may be the current position of the target virtual objectin the virtual scene.

[0063] In the embodiments of this application, the virtual scene includes a plurality ofwalking regions, and the computer device may determine a walking region including thedestination as a walking region of the destination according to the position of the destination.In one embodiment, the computer device may alternatively select a relatively small region inthe walking region in which the destination is located as a walking region of the destination.The process may include: the computer device determines a walking region within a targetrange including the destination as a walking region of the destination according to the positionof the destination. For example, the computer device may use the destination as a central pointto obtain a walking region of which a distance to the destination does not exceed a first targetdistance.

[0064] The computer device obtains a walking region in which the destination islocated according to the position of the destination, and the computer device may continue toobtain a circular region, which uses the destination as a central point and the first target distanceas a radius, as a walking region of the destination. For example, a circular walking region witha radius of 5 meters is obtained.

[0065] In one embodiment, the computer device may select the target landing pointbased on a jump speed of the first virtual object, that is, a process of the following step a. Inanother embodiment, the computer device may alternatively select the target landing pointbased on user selection, that is, a process of the following step b.

[0066] Step a. The computer device obtains, according to a maximum jump speed ofthe first virtual object, a target landing point corresponding to the maximum jump speed in thewalking region.

[0067] In the embodiments of this application, a jump speed range of the first virtualobject is limited, and the computer device may obtain a point that causes the first virtual objectto jump farthest as the target landing point according to a maximum jump speed of the firstvirtual object. In one embodiment, the computer device may obtain the maximum jump speedof the first virtual object, and determine a maximum jump distance of the first virtual objectaccording to the maximum jump speed. The computer device obtains a target landing pointcorresponding to the maximum jump distance in the walking region according to the maximumjump distance and the current position.

[0068] In one embodiment, when the destination and the current position of the firstvirtual object are located in the same horizontal plane, the computer device may determine afarthest jump distance of the first virtual object in the horizontal plane according to themaximum jump speed of the first virtual object. The computer device determines a targetlanding point corresponding to the farthest jump distance in the walking region of the firstvirtual object according to the farthest jump distance.

[0069] In one embodiment, when the destination and the current position of the firstvirtual object are located at different levels, the computer device may determine farthest jumpdistances of the first virtual object in a horizontal plane and a vertical plane respectivelyaccording to the maximum jump speed of the first virtual object. The computer devicedetermines a target landing point corresponding to the farthest jump distance in the walkingregion of the first virtual object according to the farthest jump distances of the first virtualobject in the horizontal plane and the vertical plane.

[0070] Step b. The computer device obtains a selected position in the walking region,and determines the selected position as the target landing point.

[0071] In this step, the first virtual object may be a virtual user object, and thedestination may be a current position of the target virtual object, or a selected position in thevirtual scene.

[0072] When the computer device is a terminal, the computer device may display thewalking region of the destination in an application interface, and the user may select a targetlanding point of the first virtual object in the walking region. The computer device obtains thetarget landing point selected by the user. In one embodiment, the computer device may furthertransmit the target landing point selected by the user to a server after obtaining the targetlanding point selected by the user.

[0073] When the computer device is a server, a terminal in which the user is locatedmay display the walking region of the destination, and the terminal transmits the target landingpoint selected by the user to the computer device.

[0074] The jump speed of the first virtual object is limited. Therefore, a jump distanceof the first virtual object is limited. The computer device may select, in the walking region, apoint within the reach of the maximum jump speed as the target landing point according to themaximum jump speed of the first virtual object, so that the first virtual object can jump as faras possible through one jump, thereby preventing the virtual object from running due to arelatively short jump distance. If the first virtual object is a virtual user object, the virtual userobject may also be prevented from losing too many hit points, thereby maximizing thevirtualization ability of the first virtual object in the game. In addition, the computer devicemay further provide a selection entry for the user to use a point selected by the user as the targetlanding point, thereby better meeting user requirements and improving user experience.

[0075] The second method: when current position meets the jump condition, thecomputer device determines a position that is closest to the destination in the virtual scene asthe target landing point.

[0076] In this step, the destination may be the current position of the target virtualobject in the virtual scene. The computer device may obtain a plurality of adjacent positions ofthe destination by using the destination as a center according to the position of the destination.The computer device obtains a distance between each adjacent position and the destination,and selects, according to the plurality of distances, a position that is closest to the destinationfrom the plurality of adjacent positions as the target landing point.

[0077] In one embodiment, if the computer device uses a navigation mesh to representpositions of objects in a virtual scene, the computer device may obtain, according to apolygonal cell in which the destination is located, a plurality of adjacent polygonal cells of thepolygonal cell in which the destination is located, calculate a distance between each adjacentpolygonal cell and the polygonal cell in which the destination is located sequentially, todetermine an adjacent polygonal cell that is closest to the polygonal cell in which thedestination is located, and use a position node corresponding to the adjacent polygonal cell asthe target landing point.

[0078] The third method: when the current position meets the jump condition, thecomputer device determines an adjacent position of the destination in the virtual scene as thetarget landing point.

[0079] In this step, the destination may be the current position of the target virtualobject in the virtual scene. In one embodiment, if the computer device uses a navigation meshto represent positions of objects in a virtual scene, the computer device may obtain, accordingto a polygonal cell in which the destination is located, any adjacent polygonal cell of thepolygonal cell in which the destination is located, and use a position node corresponding to theany adjacent polygonal cell as the target landing point.

[0080] The fourth method: when the current position meets the jump condition, thecomputer device determines the destination as the target landing point.

[0081] In this step, the destination may be a selected position in the virtual scene. Thecomputer device may further obtain a polygonal cell in which the destination is located in anavigation mesh, and use a position node corresponding to the polygonal cell in which thedestination is located as the target landing point of the first virtual object. The first virtual objectmay directly jump to the destination.

[0082] When the destination is the current position of the target virtual object, thecomputer device may determine the target landing point based on the position, an adjacentposition, or a closest position of the destination in the walking region based on the foregoingfirst method to the third method, thereby preventing the first virtual object and the target virtualobject from colliding with each other. When the destination is a position that is selected inadvance, the computer device may directly use the destination as the target landing pointaccording to the foregoing fourth method, thereby saving calculation time and improving theapplicability of the object jump control method.

[0083] 304. The computer device detects whether there is a jump obstacle between thecurrent position and the destination, moves the first virtual object when there is a jump obstaclebetween the current position and the destination, and obtains a current position of the firstvirtual object after the movement.

[0084] A jump obstacle refers to an object that the first virtual object encounters in theair after jumping and before reaching the target landing point. When there is no jump obstaclebetween the current position and the destination, the computer device directly performs step305. In this step, the computer device may detect whether there is a jump obstacle within asecond target range of the current position based on a distance between the current position andthe destination. When there is a jump obstacle within the second target range, the computerdevice controls the first virtual object to move by a target movement distance in a directionaway from the jump obstacle, that is, controls the first virtual object to retreat by the targetmovement distance. The computer device obtains a current position after the movement.

[0085] In one embodiment, the computer device may further detect a height of the jumpobstacle within the second target range, and control the first virtual object to move by a targetmovement distance in a direction away from the jump obstacle when the height of the jumpobstacle exceeds a target height. The second target range may be a range in which a distanceto the current position does not exceed a second target distance in a direction toward thedestination. The second target distance, the target height, and the target movement distancemay be set based on requirements, which are not specifically limited in the embodiments ofthis application. For example, the second target distance may be 2 meters or 3 meters. Thetarget height may be 10 meters or 8 meters. The target movement distance may be 3 meters or1 meter. In one embodiment, the computer device may store a correspondence between aplurality of heights of the jump obstacle and a plurality of movement distances. The computerdevice obtains a height of a jump obstacle within the second target range, obtains a targetmovement corresponding to the height of the jump obstacle according to the correspondencebetween the plurality of heights and the movement distances, and controls the first virtualobject to move by the target movement distance in a direction away from the jump obstacle.For example, when the height of the jump obstacle is 10 meters, the first virtual object retreatsby 3 meters correspondingly; and when the height of the jump obstacle is 15 meters, the firstvirtual object retreats by 5 meters correspondingly.

[0086] As shown in FIG. 6, when there is a relatively high container in front of the firstvirtual object, it may be learned based on a predicted possible jump trajectory that, the firstvirtual object may encounter the container in the air after jumping and before reaching thetarget landing point, and the container is the jump obstacle of the first virtual object. Thecomputer device may control the first virtual object to retreat by a specific distance and thenjump. As shown in FIG. 7, FIG. 7 is a schematic diagram of an actual scene interface of thevirtual scene shown in FIG. 6, and an actual form of the virtual scene may be understood moreclearly from FIG. 7.

[0087] 305. The computer device determines, according to the current position and thetarget landing point, a jump trajectory of the first virtual object jumping from the currentposition to the target landing point.

[0088] In the embodiments of this application, the computer device may first determinea jump speed of jumping from the current position to the target landing point, and thendetermine the jump trajectory based on the jump speed. This step may include: the computerdevice may determine a jump speed of the first virtual object at the current position accordingto the current position and the target landing point, and the computer device determines thejump trajectory of the first virtual object from the current position to the target landing pointaccording to the jump speed. The jump speed includes a speed value and a speed direction ofthe jump speed.

[0089] In one embodiment, the jump trajectory may be a parabolic trajectory, and thecomputer device may determine the jump speed of the first virtual object by using the followingFormula 1 according to the current position and the target landing point:Formula 1

[0090] where x is used for representing a horizontal displacement from the currentposition to the target landing point, y is used for representing a vertical displacementperpendicular to a horizontal plane from the current position to the target landing point, v0 isused for representing the speed value of the jump speed, θ is used for representing the speeddirection of the jump speed, and g represents the gravitational acceleration.

[0091] In the embodiments of this application, θ may be an angle between the speeddirection and the horizontal plane, θ is shown in Formula 2:Formula 2The computer device may obtain a speed range of thefirst virtual object, and obtain, based on a plurality of speed values included in the speed range,a speed value and a speed direction that meet Formula 1. For example, the computer devicemay substitute, starting from a minimum value vmin of speed values in the speed range, thespeed values into Formula 1, to determine whether Formula 1 is met. If the formula is not met,the minimum value is increased by a target threshold to vmin+Δv and substitute the value intoFormula 1 until a jump speed meeting Formula 1 is obtained.

[0092] In one embodiment, as shown in FIG. 8, the computer device determines twojump trajectories based on Formula 1, where a left figure in FIG. 8 is a first jump trajectorycorresponding to jumping downward directly, and a right figure in FIG. 8 is a second jumptrajectory corresponding to jumping upward first and then landing. In FIG. 8, in the twocoordinate systems, a horizontal coordinate is a distance in a horizontal direction, and a verticalcoordinate is a distance in a vertical direction. The current position is (0, 200), the target landingpoint is (200, 0), and a unit may be meter. The computer device may select the second jumptrajectory corresponding to jumping upward first and then landing. In another embodiment, thecomputer device may alternatively determine the jump trajectory based on a relative heightbetween the current position and the target landing point. When the height of the currentposition is higher than that of the target landing point, the computer device may also select thefirst jump trajectory corresponding to jumping downward directly; and when the height of thecurrent position is lower than that of the target landing point, the computer device may selectthe second jump trajectory corresponding to jumping upward first and then landing.

[0093] If the first virtual object is an AI object, the computer device may implementthe process of steps 302 to 305 by using a method of adding nodes to an action tree of the AIobject, to control a jump process of the virtual object. In one embodiment, the computer devicemay configure the detection logic of step 302 in a first node, configure the jump logic of steps303 to 305 in a second node, and add the first node and the second node to the action tree, toimplement a jump control process of the virtual object. When the action tree of the AI objectis modified, original AI logic such as underlying pathfinding and attack logic of the AI objectdoes not need to be modified, and nodes in the action tree can be added or deleted at any time,so that the method of the embodiments of this application may be implemented moreconveniently. In addition, there is no need to configure a lot of link bridges in the navigationmesh, thereby improving the applicability of the object jump control method.

[0094] 306. The computer device controls the first virtual object to jump from thecurrent position to the target landing point according to the jump trajectory.

[0095] The computer device may insert and display a plurality of intermediate imagescorresponding to the jump process between the first image and a second image according tothe jump trajectory. In this step, the computer device may obtain, according to the jumptrajectory, a plurality of aerial positions of the first virtual object after leaving the currentposition and before reaching the target landing point. The computer device obtains a pluralityof intermediate images of the first virtual object based on the plurality of aerial positions, eachintermediate image being used for displaying the first virtual object located at an aerial position.The computer device plays the plurality of intermediate images based on a play sequence ofthe plurality of intermediate images.

[0096] If the computer device is a terminal, a process that the first virtual object jumpsfrom the current position to the target landing point is displayed based on the foregoing steps.If the computer device is a server, the computer device may obtain the plurality of aerialpositions, and transmit the plurality of aerial positions to a terminal. The terminal obtains aplurality of intermediate images and plays the plurality of intermediate images based on a playsequence of the plurality of intermediate images.

[0097] In one embodiment, starting from a jump start time corresponding to the currentposition, the computer device may obtain, according to the jump trajectory, one intermediateposition of the first virtual object at intervals of a target time period, and stop obtaining until ajump end time corresponding to the target landing point is reached, to obtain a plurality ofintermediate positions. The computer device renders and displays, according to object displaydata of the first virtual object and each intermediate position, the first virtual object located ata corresponding intermediate position in each intermediate image.

[0098] In one embodiment, the destination is the current position of the target virtualobject, the first virtual object may be an AI object, and the target virtual object may be a virtualuser object. When the computer device controls the first virtual object to jump to the targetlanding point, the computer device may further display a process that the AI object attacks thetarget virtual object based on pathfinding and attack logic of the AI object.

[0099] To describe the process of the embodiments of this application more clearly, theforegoing steps 301 to 306 are described below by using the flowchart shown in FIG. 9. An AIobject is used as an example. When the computer device detects that the AI object cannot walkto a virtual user object, a target landing point around the virtual user object is selected, forexample, a point located in a walking region of the virtual user object. The computer devicestarts calculation, based on a speed range of the AI object and Formula 1 in step 305, bysubstituting a minimum value in the speed range into Formula 1. If the calculation fails, theminimum value is increased and then substituted into Formula 1 for calculation again until ajump speed meeting Formula 1 is determined. The computer device controls the first virtualobject to jump to the target landing point at the jump speed to attack the virtual user object.

[0100] In the embodiments of this application, the computer device may obtain thetarget landing point based on the position of the destination, determine the jump trajectory andcontrol the first virtual object to jump from the current position to the target landing pointwithout jumping according to pre-configured jump points. Therefore, a process of configuringa lot of link bridges in non-walkable regions is omitted, costs of object jump control arereduced, and resource utilization is improved.

[0101] It is to be understood that the steps in the embodiments of this application arenot necessarily performed according to a sequence indicated by step numbers. Unless otherwiseexplicitly specified in this application, execution of the steps is not strictly limited, and thesteps may be performed in other sequences. Moreover, at least some of the steps in eachembodiment may include a plurality of sub-steps or a plurality of stages. The sub-steps or stagesare not necessarily performed at the same moment but may be performed at different moments.The sub-steps or stages are not necessarily performed sequentially, but may be performed inturn or alternately with another step or at least some of sub-steps or stages of the another step.

[0102] FIG. 10 is a schematic structural diagram of an object jump control apparatusaccording to an embodiment of this application. Referring to FIG. 10, the apparatus includes:a determining module 1001, configured to determine, in a process that a firstvirtual object in a virtual scene moves to a destination, a target landing point of the first virtualobject according to a position of the destination when a current position of the first virtualobject meets a jump condition;the determining module 1001 being further configured to determine, accordingto the current position and the target landing point, a jump trajectory of the first virtual objectjumping from the current position to the target landing point; anda jump control module 1002, configured to control the first virtual object tojump from the current position to the target landing point according to the jump trajectory.

[0103] In one embodiment, the determining module 1001 is further configured toperform any one of the following:determining, based on a walking region of the destination, a target landing pointlocated in the walking region when the current position meets the jump condition, a walkingpath existing between any position in the walking region and the destination;determining a position that is closest to the destination in the virtual scene asthe target landing point when the current position meets the jump condition;determining an adjacent position of the destination in the virtual scene as thetarget landing point when the current position meets the jump condition; ordetermining the destination as the target landing point when the current positionmeets the jump condition.

[0104] In one embodiment, the determining module 1001 is further configured toperform any one of the following:obtaining, according to a maximum jump speed of the first virtual object, atarget landing point corresponding to the maximum jump speed in the walking region; orobtaining a selected position in the walking region, and determining the selectedposition as the target landing point.

[0105] In one embodiment, the destination refers to a current position of a target virtualobject in the virtual scene, or a selected position in the virtual scene.

[0106] In one embodiment, the jump condition includes: there is no walking pathbetween the current position and the destination, or there is an obstacle in front of the currentposition in a direction of a shortest path between the current position and the destination.

[0107] In one embodiment, the determining module 1001 is further configured todetermine a jump speed of the first virtual object at the current position according to the currentposition and the target landing point; and determine the jump trajectory of the first virtual objectfrom the current position to the target landing point according to the jump speed.

[0108] In one embodiment, the apparatus further includes:an obtaining module, configured to move the first virtual object when there is ajump obstacle between the current position and the destination, and obtain a current positionof the first virtual object after the movement, a distance between the first virtual object afterthe movement and the target landing point being greater than a distance between the first virtualobject before the movement and the target landing point.

[0109] In one embodiment, the jump control module 1002 is further configured toobtain, according to the jump trajectory, a plurality of aerial positions of the first virtual objectafter leaving the current position and before reaching the target landing point; obtain a pluralityof intermediate images of the first virtual object based on the plurality of aerial positions, eachintermediate image being used for displaying the first virtual object located at an aerial position;and play the plurality of intermediate images based on a play sequence of the plurality ofintermediate images.

[0110] In the embodiments of this application, the computer device may obtain thetarget landing point based on the position of the destination, determine the jump trajectory andcontrol the first virtual object to jump from the current position to the target landing pointwithout jumping according to pre-configured jump points. Therefore, a process of configuringa lot of link bridges in non-walkable regions is omitted, costs of object jump control arereduced, and resource utilization is improved.

[0111] Any combination of the foregoing technical solutions may be used to form anembodiment of the present disclosure. Details are not described herein again.

[0112] When an object is controlled to jump by using the object jump control apparatusprovided in the foregoing embodiments, description is made with an example of division of theforegoing functional modules. During actual application, the functions may be allocated to andcompleted by different functional modules according to requirements, that is, the internalstructure of the computer device is divided into different functional modules, to implement allor some of the functions described above. In addition, the object jump control apparatusprovided in the foregoing embodiment belongs to the same conception as the embodiment ofthe object jump control method. For the specific implementation process, reference may bemade to the method embodiments, and details are not described herein again.

[0113] FIG. 11 is a schematic structural diagram of a terminal according to anembodiment of this application. The terminal 1100 may be a smartphone, a tablet computer, aMoving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts GroupAudio Layer IV (MP4) player, a notebook computer, or a desktop computer. The terminal 1100may also be referred to as another name such as user equipment, a portable terminal, a laptopterminal, or a desktop terminal.

[0114] Generally, the terminal 1100 includes a processor 1101 and a memory 1102.

[0115] The processor 1101 may include one or more processing cores, for example, a4-core processor or an 8-core processor. The processor 1101 may be implemented in at leastone hardware form of a digital signal processor (DSP), a field-programmable gate array(FPGA), and a programmable logic array (PLA). The processor 1101 may also include a mainprocessor and a coprocessor. The main processor is a processor configured to process data inan awake state, and is also referred to as a central processing unit (CPU). The coprocessor is alow power consumption processor configured to process the data in a standby state. In someembodiments, the processor 1101 may be integrated with a graphics processing unit (GPU).The GPU is configured to render and draw content that needs to be displayed on a displayscreen. In some embodiments, the processor 1101 may further include an artificial intelligence(AI) processor. The AI processor is configured to process computing operations related tomachine learning.

[0116] The memory 1102 may include one or more computer-readable storage media.The computer-readable storage medium may be non-transient. The memory 1102 may furtherinclude a high-speed random access memory and a nonvolatile memory, for example, one ormore disk storage devices or flash storage devices. In some embodiments, a non-transitorycomputer-readable storage medium in the memory 1102 is configured to store at least oneinstruction, the at least one instruction being configured to be executed by the processor 1101to implement the object jump control method provided in the method embodiments of thisapplication.

[0117] In some embodiments, the terminal 1100 may include: a peripheral deviceinterface 1103 and at least one peripheral device. The processor 1101, the memory 1102, andthe peripheral device interface 1103 may be connected by using a bus or a signal cable. Eachperipheral device may be connected to the peripheral device interface 1103 by using a bus, asignal cable, or a circuit board. Specifically, the peripheral device includes: at least one of aradio frequency (RF) circuit 1104, a display screen 1105, a camera component 1106, an audiocircuit 1107, a positioning component 1108, and a power supply 1109.

[0118] The peripheral device interface 1103 may be configured to connect the at leastone peripheral related to input / output (I / O) to the processor 1101 and the memory 1102. Insome embodiments, the processor 1101, the memory 1102 and the peripheral device interface1103 are integrated on the same chip or circuit board. In some other embodiments, any one ortwo of the processor 1101, the memory 1102, and the peripheral device interface 1103 may beimplemented on a single chip or circuit board. This is not limited in this embodiment.

[0119] The RF circuit 1104 is configured to receive and transmit an RF signal, alsoreferred to as an electromagnetic signal. The RF circuit 1104 communicates with acommunication network and other communication devices through the electromagnetic signal.The RF circuit 1104 converts an electrical signal into an electromagnetic signal fortransmission, or converts a received electromagnetic signal into an electrical signal. In someembodiments, the RF circuit 1104 includes: an antenna system, an RF transceiver, one or moreamplifiers, a tuner, an oscillator, a digital signal processor, a codec chip set, a subscriberidentity module card, and the like. The RF circuit 1104 may communicate with another terminalby using at least one wireless communication protocol. The wireless communication protocolincludes, but is not limited to, a metropolitan area network, different generations of mobilecommunication networks (2G, 3G, 4G, and 5G), a wireless local area network, and / or awireless fidelity (Wi-Fi) network. In some embodiments, the RF 1104 may further include acircuit related to NFC, which is not limited in this application.

[0120] The display screen 1105 is configured to display a user interface (UI). The UImay include a graph, text, an icon, a video, and any combination thereof. When the displayscreen 1105 is a touch display screen, the display screen 1105 is further capable of collectingtouch signals on or above a surface of the display screen 1105. The touch signal may be inputtedto the processor 1101 as a control signal for processing. In this case, the display screen 1105may be further configured to provide a virtual button and / or a virtual keyboard, which is alsoreferred to as a soft button and / or a soft keyboard. In some embodiments, there may be onedisplay screen 1105, disposed on a front panel of the terminal 1100. In some otherembodiments, there may be at least two display screens 1105, respectively disposed ondifferent surfaces of the terminal 1100 or designed in a foldable shape. In still some otherembodiments, the display screen 1105 may be a flexible display screen, disposed on a curvedsurface or a folded surface of the terminal 1100. Even, the display screen 1105 may be furtherset in a non-rectangular irregular pattern, namely, a special-shaped screen. The display screen1105 may be prepared by using materials such as a liquid crystal display (LCD), an organiclight-emitting diode (OLED), or the like.

[0121] The camera component 1106 is configured to collect images or videos. In someembodiments, the camera component 1106 includes a front-facing camera and a rear-facingcamera. Generally, the front-facing camera is disposed on the front panel of the terminal, andthe rear-facing camera is disposed on a back surface of the terminal. In some embodiments,there are at least two rear cameras, which are respectively any of a main camera, a depth-offieldcamera, a wide-angle camera, and a telephoto camera, to achieve background blur throughfusion of the main camera and the depth-of-field camera, panoramic photographing and virtualreality (VR) photographing through fusion of the main camera and the wide-angle camera, orother fusion photographing functions. In some embodiments, the camera component 1106 mayfurther include a flash. The flash may be a monochrome temperature flash, or may be a doublecolor temperature flash. The double color temperature flash refers to a combination of a warmlight flash and a cold light flash, and may be used for light compensation under different colortemperatures.

[0122] The audio circuit 1107 may include a microphone and a speaker. Themicrophone is configured to collect sound waves of a user and an environment, and convertthe sound waves into an electrical signal to input to the processor 1101 for processing, or inputto the RF circuit 1104 for implementing voice communication. For the purpose of stereo soundacquisition or noise reduction, there may be a plurality of microphones, respectively disposedat different parts of the terminal 1100. The microphone may further be an array microphone oran omni-directional collection type microphone. The speaker is configured to convert electricalsignals from the processor 1101 or the RF circuit 1104 into sound waves. The speaker may bea conventional film speaker, or may be a piezoelectric ceramic speaker. When the speaker isthe piezoelectric ceramic speaker, the speaker not only can convert an electric signal intoacoustic waves audible to a human being, but also can convert an electric signal into acousticwaves inaudible to a human being, for ranging and other purposes. In some embodiments, theaudio circuit 1107 may also include an earphone jack.

[0123] The positioning component 1108 is configured to determine a currentgeographic location of the terminal 1100, to implement a navigation or a location based service(LBS). The positioning component 1108 may be a positioning component based on the GlobalPositioning System (GPS) of the United States, the BeiDou system of China, the GLONASSSystem of Russia, or the GALILEO System of the European Union.

[0124] The power supply 1109 is configured to supply power to components in theterminal 1100. The power supply 1109 may be an alternating-current power supply, a directcurrentpower supply, a disposable battery, or a rechargeable battery. In a case that the powersupply 1109 includes the rechargeable battery, the rechargeable battery may support wiredcharging or wireless charging. The rechargeable battery may be further configured to supporta fast charging technology.

[0125] In some embodiments, the terminal 1100 further includes one or more sensors1110. The one or more sensors 1110 include, but are not limited to: an acceleration sensor1111, a gyroscope sensor 1112, a pressure sensor 1113, a fingerprint sensor 1114, an opticalsensor 1115, and a proximity sensor 1116.

[0126] The acceleration sensor 1111 may detect acceleration on three coordinate axesof a coordinate system established by the terminal 1100. For example, the acceleration sensor1111 may be configured to detect components of gravity acceleration on the three coordinateaxes. The processor 1101 may control, according to a gravity acceleration signal acquired bythe acceleration sensor 1111, the touch display screen 1105 to display the UI in a landscapeview or a portrait view. The acceleration sensor 1111 may be further configured to acquiremotion data of a game or a user.

[0127] The gyroscope sensor 1112 may detect a body direction and a rotation angle ofthe terminal 1100. The gyroscope sensor 1112 may cooperate with the acceleration sensor 1111to collect a 3D action by the user on the terminal 1100. The processor 1101 may implement thefollowing functions according to data acquired by the gyroscope sensor 1112: motion sensing(for example, the UI is changed according to a tilt operation of a user), image stabilizationduring shooting, game control, and inertial navigation.

[0128] The pressure sensor 1113 may be disposed at a side frame of the terminal 1100and / or a lower layer of the touch display screen 1105. When the pressure sensor 1113 isdisposed at the side frame of the terminal 1100, a holding signal of the user on the terminal1100 may be detected. The processor 1101 performs left and right hand recognition or a quickoperation according to the holding signal collected by the pressure sensor 1113. When thepressure sensor 1113 is disposed at the low layer of the touch display screen 1105, the processor1101 controls, according to a pressure operation of the user on the touch display screen 1105,an operable control on the UI. The operable control includes at least one of a button control, ascroll-bar control, an icon control, and a menu control.

[0129] The fingerprint sensor 1114 is configured to collect a user's fingerprint, and theprocessor 1101 identifies a user's identity according to the fingerprint collected by thefingerprint sensor 1114, or the fingerprint sensor 1114 identifies a user's identity according tothe collected fingerprint. When identifying that the user's identity is a trusted identity, theprocessor 1101 authorizes the user to perform related sensitive operations. The sensitiveoperations include: unlocking a screen, viewing encrypted information, downloading software,paying, changing a setting, and the like. The fingerprint sensor 1114 may be disposed on a frontsurface, a back surface, or a side surface of the terminal 1100. When a physical button or avendor logo is disposed on the terminal 1100, the fingerprint 1114 may be integrated with thephysical button or the vendor logo.

[0130] The optical sensor 1115 is configured to collect ambient light intensity. In anembodiment, the processor 1101 may control the display brightness of the touch display screen1105 according to the ambient light intensity collected by the optical sensor 1115. Specifically,when the ambient light intensity is relatively high, the display brightness of the touch displayscreen 1105 is increased. When the ambient light intensity is relatively low, the displaybrightness of the touch display screen 1105 is decreased. In another embodiment, the processor1101 may further dynamically adjust a camera parameter of the camera component 1106according to the ambient light intensity collected by the optical sensor 1115.

[0131] The proximity sensor 1116, also referred to as a distance sensor, is usuallydisposed on the front panel of the terminal 1100. The proximity sensor 1116 is configured tocollect a distance between the user and the front face of the terminal 1100. In an embodiment,when the proximity sensor 1116 detects that a distance between the user and the front face ofthe terminal 1100 gradually becomes smaller, the touch display screen 1105 is controlled bythe processor 1101 to switch from a screen-on state to a screen-off state. When the proximitysensor 1116 detects that the distance between the user and the front face of the terminal 1100gradually becomes larger, the touch display screen 1105 is controlled by the processor 1101 toswitch from the screen-off state to the screen-on state.

[0132] A person skilled in the art may understand that a structure shown in FIG. 11constitutes no limitation on the terminal 1100, and the terminal may include more or fewercomponents than those shown in the figure, or some components may be combined, or adifferent component deployment may be used.

[0133] FIG. 12 is a schematic structural diagram of a server according to anembodiment of this application. The server 1200 may vary greatly due to differentconfigurations or performance, and may include one or more central processing units (CPUs)1201 and one or more memories 1202. The memory 1202 stores at least one instruction, the atleast one instruction being loaded and executed by the processor 1201 to implement the objectjump control method provided in the foregoing method embodiments. Certainly, the servermay further have a wired or wireless network interface, a keyboard, an I / O interface and othercomponents to facilitate I / O. The server may further include other components forimplementing device functions. Details are not described herein again.

[0134] In an exemplary embodiment, a computer-readable storage medium is furtherprovided, for example, a memory including instructions. The instructions may be executed bya processor in the computer device to complete the object jump control method in the foregoingembodiments. For example, the computer-readable storage medium may be a read-onlymemory (ROM), a random access memory (RAM), a compact disc read-only memory (CDROM),a magnetic tape, a floppy disk, an optical data storage device, or the like.

[0135] A person of ordinary skill in the art may understand that all or some of the stepsof the foregoing embodiments may be implemented by hardware, or may be implemented by aprogram instructing related hardware. The program may be stored in a computer-readablestorage medium. The storage medium mentioned above may be: a ROM, a magnetic disk, oran optical disc.

[0136] The foregoing descriptions are merely preferred embodiments of thisapplication, and are not intended to limit this application. Any modification, equivalentreplacement, improvement and the like made within the spirit and principle of this applicationshall fall within the protection scope of this application.

Claims

1. An object jump control method, performed by a computer device, comprising: determining, in a process that a first virtual object in a virtual scene moves to a destination, a target landing point of the first virtual object according to a position of the destination when a current position of the first virtual object meets a jump condition; determining, according to the current position and the target landing point, a jump trajectory of the first virtual object jumping from the current position to the target landing point; and controlling the first virtual object to jump from the current position to the target landing point according to the jump trajectory.

2. The method according to claim 1, wherein the determining a target landing point of the first virtual object according to a position of the destination when a current position of the first virtual object meets a jump condition comprises any one of the following: determining, based on a walking region of the destination, a target landing point located in the walking region when the current position meets the jump condition, a walking path existing between any position in the walking region and the destination; determining a position that is closest to the destination in the virtual scene as the target landing point when the current position meets the jump condition; determining an adjacent position of the destination in the virtual scene as the target landing point when the current position meets the jump condition; or determining the destination as the target landing point when the current position meets the jump condition.

3. The method according to claim 2, wherein the determining, based on a walking region of the destination, a target landing point located in the walking region comprises any one of the following: obtaining, according to a maximum jump speed of the first virtual object, a target landing point corresponding to the maximum jump speed in the walking region; or obtaining a selected position in the walking region, and determining the selected position as the target landing point.

4. The method according to claim 1, wherein the destination refers to a current position of a target virtual object in the virtual scene, or a selected position in the virtual scene.

5. The method according to claim 1, wherein the jump condition comprises: there being no walking path between the current position and the destination, or there being an obstacle in front of the current position in a direction of a shortest path between the current position and the destination.

6. The method according to claim 1, wherein the determining, according to the current position and the target landing point, a jump trajectory of the first virtual object jumping from the current position to the target landing point comprises: determining a jump speed of the first virtual object at the current position according to the current position and the target landing point; and determining the jump trajectory of the first virtual object from the current position to the target landing point according to the jump speed.

7. The method according to claim 1, wherein before the determining, according to the current position and the target landing point, a jump trajectory of the first virtual object jumping from the current position to the target landing point, the method further comprises: moving the first virtual object when there is a jump obstacle between the current position and the destination, and obtaining a current position of the first virtual object after the movement, a distance between the first virtual object after the movement and the target landing point being greater than a distance between the first virtual object before the movement and the target landing point.

8. The method according to claim 1, wherein the controlling the first virtual object to jump from the current position to the target landing point according to the jump trajectory comprises: obtaining, according to the jump trajectory, a plurality of aerial positions of the first virtual object after leaving the current position and before reaching the target landing point; obtaining a plurality of intermediate images of the first virtual object based on the plurality of aerial positions, each intermediate image being used for displaying the first virtual object located at an aerial position; and playing the plurality of intermediate images based on a play sequence of the plurality of intermediate images.

9. An object jump control apparatus, comprising: a determining module, configured to determine, in a process that a first virtual object in a virtual scene moves to a destination, a target landing point of the first virtual object according to a position of the destination when a current position of the first virtual object meets a jump condition; the determining module being further configured to determine, according to the current position and the target landing point, a jump trajectory of the first virtual object jumping from the current position to the target landing point; and a jump control module, configured to control the first virtual object to jump from the current position to the target landing point according to the jump trajectory.

10. A computer device, comprising a memory and a processor, the memory storing computer-readable instructions, the computer-readable instructions, when executed by the processor, causing the processor to perform operations of the method according to any one of claims 1 to 8.