Virtual object control method and device, medium, equipment and product

By generating multiple virtual objects in a virtual scene and adjusting their target positions in real time, the problem of single fish behavior in existing fishing games is solved, and more realistic and diverse virtual object movement is achieved, improving user interaction experience.

CN119925934APending Publication Date: 2025-05-06BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510400458.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-31
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

In existing fishing games, the behavior of fish is relatively single and patterned, and lacks a sense of reality.

Method used

Generate multiple virtual objects in a virtual scene and control their movement by determining the target position in real time. Dynamically adjust the target position based on the threshold of the number of virtual objects in each area of ​​the virtual scene to ensure that the virtual objects are distributed scattered.

Benefits of technology

It improves the diversity of movement control of virtual objects, makes their behavior more in line with real scenes, and enhances the realism and user interaction experience of virtual scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119925934A_ABST
    Figure CN119925934A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual object control method and device, a medium, equipment and a product, and the method comprises the steps: generating a plurality of virtual objects in a virtual scene, and determining the target position of each virtual object; in the process of controlling the virtual object to move towards the target position, whether the target position needs to be updated or not is determined based on a virtual object number threshold value corresponding to each area in a plurality of areas in the virtual scene; if it is determined that the target position needs to be updated, an updated target position is determined based on an area to which the target position belongs, and the areas to which the target position belongs before and after updating are different; and controlling the virtual object to move towards the updated target position. Therefore, the diversity of movement control of the virtual object can be improved, and the method better fits a real scene. And virtual objects in the virtual scene can be dispersedly distributed in the virtual area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, medium, equipment and product for controlling a virtual object. Background Art

[0002] In current fishing games, the behavior of fish is often relatively simple and stereotyped. In related technologies, the movement path of fish is usually predetermined, and then the fish is controlled to move along the fixed movement path. The behavior of fish is relatively simple and fixed, lacking realism. Summary of the invention

[0003] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0004] In a first aspect, the present disclosure provides a method for controlling a virtual object, the method comprising: Generating a plurality of virtual objects in a virtual scene, and determining a target position of each of the virtual objects; In the process of controlling the virtual object to move toward the target position, determining whether the target position needs to be updated based on a threshold value of the number of virtual objects corresponding to each of a plurality of areas in the virtual scene; If it is determined that the target position needs to be updated, determining an updated target position based on the region to which the target position belongs, wherein the regions to which the target position belongs before and after the update are different; The virtual object is controlled to move toward the updated target position.

[0005] In a second aspect, the present disclosure provides a control device for a virtual object, the device comprising: A processing module, used to generate a plurality of virtual objects in a virtual scene and determine a target position of each of the virtual objects; A first determination module, configured to determine whether the target position needs to be updated based on a threshold value of the number of virtual objects corresponding to each of a plurality of areas in the virtual scene during the process of controlling the virtual object to move toward the target position; A second determination module is used to determine an updated target location based on the region to which the target location belongs if it is determined that the target location needs to be updated, wherein the regions to which the target location belongs before and after the update are different; The first control module is used to control the virtual object to move toward the updated target position.

[0006] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which implements the steps of the method described in the first aspect when the computer program is executed by a processing device.

[0007] In a fourth aspect, the present disclosure provides an electronic device, including: a storage device having a computer program stored thereon; A processing device is used to execute the computer program in the storage device to implement the steps of the method described in the first aspect.

[0008] In a fifth aspect, the present disclosure provides a computer program product, including a computer program, which implements the steps of the method described in the first aspect when executed by a processor.

[0009] Therefore, through the above technical solution, in the process of controlling the movement of virtual objects, the target position is determined in real time and then the movement is controlled based on the target position. Compared with the related art of using a pre-set movement path, the diversity of the movement control of virtual objects can be improved, which is more in line with the real scene. In addition, in the process of controlling the movement of virtual objects, the target position can be dynamically adjusted based on the number threshold of each area of ​​the virtual scene, so that the virtual objects in the virtual scene can be dispersedly distributed in the virtual area, which is convenient for users to interact and further improves the realism of the virtual scene.

[0010] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings: Figure 1 is a flowchart of a method for controlling a virtual object provided according to an embodiment of the present disclosure.

[0012] Figure 2 It is a schematic diagram of the area division of a virtual scene provided according to an embodiment of the present disclosure.

[0013] Figure 3 is a block diagram of a virtual object control device provided according to an embodiment of the present disclosure.

[0014] Figure 4 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0015] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0016] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0017] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0018] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0019] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0020] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0021] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0022] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0023] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0024] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0025] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0026] Figure 1 As shown, it is a flowchart of a method for controlling a virtual object according to an embodiment of the present disclosure, as shown in Figure 1 As shown, the method may include: In step 11, a plurality of virtual objects are generated in the virtual scene, and a target position of each virtual object is determined.

[0027] Among them, the virtual object can be an interactive object in the virtual scene, such as an object that can interact with the user's virtual fishing gear. For example, the virtual object can include virtual objects of fish, such as crucian carp, carp and other objects, and can also include virtual objects of non-fish, such as shrimp, crab and other objects, which can interact with the user's virtual fishing gear in the virtual scene to achieve the user's fishing operation. As an example, the number range of generated virtual objects can be pre-configured, and then random sampling can be performed based on the number range to determine the number of virtual objects to be generated, and then the corresponding number of virtual objects are randomly generated at the generation point in the virtual scene, and a position is randomly determined in the virtual scene as the target position, thereby achieving the generation of virtual objects and controlling the random movement of the virtual objects.

[0028] In step 12, in the process of controlling the virtual object to move toward the target position, it is determined whether the target position needs to be updated based on a threshold value of the number of virtual objects corresponding to each of the multiple areas in the virtual scene.

[0029] Among them, the virtual scene can be divided into multiple areas. In order to avoid the virtual objects from gathering in some locations in the virtual scene, in this step, a comparison can be made by comparing the virtual object quantity threshold corresponding to each area to limit the number of virtual objects in each area, thereby realizing the dynamic distribution of virtual objects in the virtual scene.

[0030] In step 13, if it is determined that the target position needs to be updated, an updated target position is determined based on the region to which the target position belongs, wherein the regions to which the target position belongs before and after the update are different.

[0031] Among them, determining that the target position needs to be updated indicates that the number of virtual objects in the area to which the target position belongs exceeds the number threshold of the area. At this time, in order to ensure the number limit of virtual objects in the area, the target position can be selected in other areas to avoid more virtual objects from gathering in the area to which the target position belongs, thereby achieving dispersed distribution of virtual objects.

[0032] In step 14, the virtual object is controlled to move toward the updated target position.

[0033] The movement of the virtual object may be controlled based on a control parameter of the virtual object. For example, the control parameter may be pre-configured, such as including a moving speed of the virtual object, and the movement of the virtual object may be controlled at the moving speed.

[0034] Therefore, through the above technical solution, in the process of controlling the movement of virtual objects, the target position is determined in real time and then the movement is controlled based on the target position. Compared with the related art of using a pre-set movement path, the diversity of the movement control of virtual objects can be improved, which is more in line with the real scene. In addition, in the process of controlling the movement of virtual objects, the target position can be dynamically adjusted based on the number threshold of each area of ​​the virtual scene, so that the virtual objects in the virtual scene can be dispersedly distributed in the virtual area, which is convenient for users to interact and further improves the realism of the virtual scene.

[0035] In some embodiments, if it is determined that the target position of the virtual object does not need to be updated, the virtual object is controlled to move toward the target position. After reaching the target position, a new target position can be re-determined, and the movement of the virtual object is continued to be controlled based on the target position.

[0036] In some embodiments, generating a plurality of virtual objects in a virtual scene may include: In response to determining that a generation time of a generation period has been reached, body shape information corresponding to the generation period and a quantity range corresponding to the body shape information are determined based on a period type of the generation period.

[0037] As an example, multiple time period types can be pre-set based on actual application scenarios. For example, the time period types can include afternoon, dusk, night, early morning, etc. The time period types can be cycled in a preset order to simulate real-life scenarios. Among them, the duration of the generation time period under each time period type can be set based on the actual application scenario, and can be set to be the same or different. For example, the duration of the generation time periods under the afternoon, dusk, night, early morning and other types is configured to be 150s, and they are cycled in this order. When it is determined that a generation time period has been entered, it is determined that the generation time of the generation time period has been reached.

[0038] As an example, the generation time period when the user first starts the virtual scene can be pre-configured, such as afternoon by default. As another example, the user can select a time period type. When the user selects a time period type, the virtual scene is started to enter the generation time period under the selected time period type. For example, if the user selects night, the virtual scene is started in the generation time period of night.

[0039] Among them, the body shape information corresponding to the generation period is used to indicate the body shape information of the virtual objects that can be generated within the generation period, and the quantity range corresponding to the body shape information is used to constrain the number of virtual objects that can be generated under the body shape information. As an example, the body shape information and quantity range can be configured in advance for each period type, as shown in Table 1 below, the body shape information can include 6 types such as small, medium, large, giant 1, giant 2 and giant 3, and the period type can include 4 types such as afternoon, dusk, night and early morning. If it is determined that the period type of the generation period is afternoon, then the body shape information corresponding to the generation period can be determined to be small and medium based on the configuration information, and the quantity range corresponding to the small is 5-6, the quantity range corresponding to the medium is 3-4, and the quantity range corresponding to the large is 2-3.

[0040]

[0041] Table 1 Among them, the above Table 1 is only an exemplary description and does not limit the present disclosure. As an example, the above Table 1 may be a virtual object of fish, and the number of virtual objects of non-fish, such as shrimps, crabs, etc., may also be pre-set based on the actual application scenario. By pre-configuring each time period type, the diversity of virtual objects in different time periods can be improved, and the virtual objects will also change when switching between different time periods, further improving the authenticity of the virtual scene and enhancing the user interaction experience.

[0042] Afterwards, the virtual object may be generated based on the body shape information and the quantity range.

[0043] As an example, there are multiple body shape information corresponding to the time period type, and each body shape information contains multiple species information, wherein the body shape information to which each species information belongs can be pre-set. For example, if the species information is crucian carp, its corresponding body shape information is small. For example, the body shape information corresponding to silver minnow is small, and the body shape information of carp, grass carp and other species information belongs to medium. Based on the corresponding relationship, the species information contained in each body shape information can be pre-configured.

[0044] Accordingly, generating the virtual object based on the body shape information and the quantity range includes: Based on a quantity range corresponding to the body shape information, a generation quantity corresponding to the body shape information is determined.

[0045] Among them, the generation quantity can be determined by random sampling based on the quantity range. For example, in the above example, the quantity range corresponding to small is 5-6, the quantity range corresponding to medium is 3-4, and the quantity range corresponding to large is 2-3. Then random sampling is performed respectively, and the generated quantity corresponding to small is 5, the generated quantity corresponding to medium is 4, and the generated quantity corresponding to large is 3.

[0046] For each piece of body shape information, based on the body shape information and the generation quantity, a generation point of the virtual object under the body shape information is determined from a plurality of generation points of the virtual scene.

[0047] Among them, multiple generation points can be pre-set in the virtual scene to generate virtual objects at the generation points. Each of the generation points corresponds to at least one body type information and is used to generate virtual objects under the at least one body type information. For example, generation points S1-S8 correspond to small and medium, S9-S14 correspond to small, medium and large, S14-S18 correspond to small, medium, large and giant 1, S19-S22 correspond to small, medium, large, giant 1 and giant 2, and S23-S25 correspond to small, medium, large, giant 1, giant 2 and giant 3.

[0048] As an example, in this step, for each body shape information, the generation point of the virtual object under the body shape information can be determined from the generation point corresponding to the body shape information, for example, the generation point of the virtual object can be determined by randomly selecting from the generation point corresponding to the body shape information. For example, the number of generation corresponding to large is 3, and its corresponding generation points are S9-S25, then 3 can be randomly selected from S9-S25 as the generation points of large virtual objects. The number of generation corresponding to medium is 4, and its corresponding generation points are S1-S25, then 4 can be randomly selected from S1-S25 as the generation points of medium virtual objects, and similarly, 5 can be randomly selected from S1-S25 as the generation points of small virtual objects. The generation point can be used to generate one or more virtual objects.

[0049] As another example, for each piece of body shape information, determining, based on the body shape information and the generation quantity, a generation point of the virtual object under the body shape information from a plurality of generation points of the virtual scene may include: The body shape information is traversed according to a preset order of the body shape information, and the generation points in the candidate point set of the generation period corresponding to the traversed current body shape information are taken as candidate generation points, wherein the candidate point set of each generation period initially includes multiple generation points of the virtual scene.

[0050] For example, the sorting of body size information can be pre-set, such as giant 3, giant 2, giant 1, large, medium, and small. In the above example, the body size information determined is small, medium, and large. The current body size information that can be traversed preferentially is large. Initially, the candidate point set includes S1-S25, among which the generation points corresponding to large are S9-S25, which can be used as candidate generation points.

[0051] Afterwards, based on the generation quantity corresponding to the current body shape information and the candidate generation points, the generation point of the virtual object under the current body shape information is determined, and the generation point of the virtual object under the body shape information is moved out of the candidate point set.

[0052] Still taking the above example, the number of generation points corresponding to large is 3, then 3 can be randomly selected from S9-S25 as the generation points of large virtual objects. For example, if the selected generation points are S9, S12 and S15, they can be used as the generation points of large virtual objects, and S9, S12 and S15 can be removed from the candidate point set. The current body size information traversed later is medium, and its corresponding candidate point set includes S1-S8, S10-S11, S13-S14, S16-S25. The generation points corresponding to the medium are further used as candidate generation points. In this example, S1-S8, S10-S11, S13-S14, S16-S25 can all be used as candidate generation points for the medium, then 5 generation points can be randomly selected from them. If S1-S5 is selected, S1-S5 will be further removed from the candidate point set. The current body size information traversed later is small, and its corresponding candidate point set includes S6-S8, S10-S11, S13-S14, S16-S25, then the generation point of the small virtual object can be selected based on the above-mentioned similar method.

[0053] Therefore, through the above technical solution, one generation point can be used to generate a virtual object, so that the virtual object can be dispersed when initially generated, further improving the rationality of the distribution of the virtual object in the virtual scene.

[0054] Afterwards, based on the type information under the body shape information and the generation point, the generated number of virtual objects are generated.

[0055] If the number of generation points and the number of generation are the same, a virtual object can be generated at each generation point. For each generation point, when generating a virtual object at the generation point, a type can be further randomly selected from the type information under the type information in combination with the body shape information as the type of the virtual object to be generated at the generation point. Taking a small fish as an example, one can be selected from the type information of a small fish at its generation point, such as selecting a crucian carp, and a crucian carp object can be generated at the current generation point.

[0056] As another example, the generation period is also associated with a number range of target virtual objects, and the target virtual objects are used to represent virtual objects with rarity identifiers. In order to further enhance user interest, virtual objects of a certain rarity may be generated, such as the number range of virtual objects with rarity identifiers in the generation period may be preconfigured for the period, such as the number range corresponding to the afternoon period is 0-2.

[0057] Accordingly, the method may further include: Based on the number range of the target virtual objects, a first number of the target virtual objects is determined, wherein random sampling may be performed from the number range to obtain the first number, such as the random sampling is 1.

[0058] The generating the generated number of virtual objects based on the type information under the body shape information and the generating point may include: Based on the body shape information corresponding to the generation time period, the body shape information of the target virtual object is determined.

[0059] As an example, for a target virtual object, the body shape information corresponding to the generation period can be randomly sampled, and one of them can be selected as the body shape information of the target virtual object. As another example, different body shape information can be pre-set with corresponding weights. Then, for a target virtual object, sampling can be performed based on the weights of different body shape information in the generation period, and one of them can be selected as the body shape information of the target virtual object. For example, the body shape information of the target virtual object is determined to be medium. It should be noted that if the first number is greater than 1, the body shape information of each target virtual object can be determined separately, and the body shape information of multiple target virtual objects determined can be the same or different.

[0060] Afterwards, with respect to the body shape information of the target virtual object, the first number of the target virtual objects is generated according to the type information with a rarity identifier under the body shape information and the generation point, and the second number of the virtual objects is generated according to the type information without a rarity identifier under the body shape information and the generation point, wherein the second number is the difference between the generation number corresponding to the body shape information and the first number.

[0061] Continuing with the above example, if the body type information of the target virtual object is determined to be large, and the first quantity is 1, then when generating a large virtual object, one of the type information with a rarity mark under large can be selected as the type information of the target virtual object, and the virtual object is generated at the corresponding generation point. If the generation quantity corresponding to large is 3, then for the other two virtual objects, their type information can be determined from the type information without a rarity mark under the body type information, and then generated at the corresponding generation point. In this way, three large virtual objects can be generated, and one of them includes a virtual object with a rarity mark.

[0062] For body shape information other than the body shape information of the target virtual object, the generated number of virtual objects are generated according to the type information without rarity identification under the body shape information and the generation point.

[0063] For example, for medium-sized items, at each generation point of medium-sized items, one type of information can be selected from the type information without rarity identification under medium-sized items as the type information of the virtual object to be generated, and the virtual object can be generated at the generation point. For small-sized items, at each generation point of small-sized items, one type of information can be selected from the type information without rarity identification under small-sized items as the type information of the virtual object to be generated, and the virtual object can be generated at the generation point.

[0064] Therefore, through the above technical solution, virtual objects with rarity identifiers can be generated in the process of generating virtual objects, further improving the diversity of generated virtual objects and providing more interaction methods for subsequent user interactions.

[0065] In some embodiments, determining the target position of each of the virtual objects comprises: The target position is determined by matching the current position of the virtual object with the path planning rule. The path planning rule can be configured based on different body shape information or different types of information to implement the path rule of the virtual object. The path planning rule may include: If the target position is the first N positions of the virtual object, and the current position of the virtual object is not at the edge of the virtual scene, the direction away from the vertical center line of the virtual scene is used as a candidate moving direction, that is, the N positions of the virtual object after initial generation are controlled to move to both sides of the screen.

[0066] If the target position is not the first N positions of the virtual object, the candidate moving direction may include any direction, that is, the virtual object may move in any direction at this stage.

[0067] The target position is determined based on the current position of the virtual object, the candidate moving directions, and a vertical center line of the virtual scene.

[0068] For example, a position can be selected at random from the candidate moving directions. If it is determined based on the position, the current position, the distance between the current position and the vertical center line, and the moving speed of the virtual object that the virtual object can pass through the vertical center line within the limited time after moving to the position, then the position can be used as the target position. For another example, multiple conditions can be constructed based on the path planning rules, and then the target position can be obtained by solving the multiple conditions.

[0069] Therefore, in the process of controlling the movement of the virtual object, the virtual object can be controlled to pass through the vertical center line of the virtual scene, thereby ensuring the reasonable distribution of the virtual object and increasing the movement range of the virtual object during the movement process.

[0070] In some embodiments, determining the target position of each of the virtual objects comprises: A target path is selected from a path library corresponding to the virtual object, wherein the path library contains multiple paths, and the path can be configured based on actual application scenarios and preset path planning rules. Wherein, each path can contain multiple positions. As an example, the target path can be determined first and then the target position can be determined, such as a path can be randomly selected as the target path, and the point closest to the current position of the virtual object on the target path is used as the target position point. As another example, the target position can be directly determined, such as the distance between the current position of the virtual object and the position on the path can be calculated, the position closest to the target position can be used as the target position, and the path to which the target position belongs can be used as the target path. After determining the target position, the virtual object is controlled to move to the target position, and the next target position is re-determined based on the target path after reaching the target position. The next target position can be determined according to the position sequence on the target path, or the next target position can be randomly selected from the position on the target path. Repeat the above steps to realize the virtual object's tour in the virtual scene. When it is determined based on the above steps that the target position needs to be updated, the new target position can be re-determined.

[0071] In some embodiments, in the process of controlling the virtual object to move toward the target position, determining whether the target position needs to be updated based on a threshold value of the number of virtual objects corresponding to each of a plurality of areas in the virtual scene may include: The target position of each of the virtual objects is acquired at intervals of a preset time period, and the target number of virtual objects in each of the areas is determined based on the target position.

[0072] When the virtual object is controlled to reach the target position, the new target position of the virtual object can be determined. In this step, the target position of the virtual object can be monitored at intervals of a preset period, and the preset period can be set based on the actual application scenario, which is not limited in the present disclosure, and can be set to 5s, for example.

[0073] If the target number of virtual objects in the area exceeds a threshold value of the number of virtual objects corresponding to the area, an updated virtual object is selected from virtual objects whose target positions belong to the area, and it is determined that the target position of the updated virtual object needs to be updated.

[0074] like Figure 2 As shown, the area of ​​the virtual scene includes a first area Q1, a second area Q2 and a third area Q3, and a threshold value of the number of virtual objects corresponding to each area can be preset, such as the first area on each side is set to 3, the second area on each side is set to 4, and the third area is set to 3. For example, based on the target position, the target number of virtual objects in the first area is determined to be 2, the target number of virtual objects in the second area is 4, and the target number of virtual objects in the third area is 4. At this time, it is determined that the target number of virtual objects in the third area exceeds its corresponding threshold value of the number of virtual objects, and the difference between the target number and the threshold value of the number of virtual objects can be used as the number of updated virtual objects, that is, if there is 1 virtual target position that needs to be updated, then a virtual object can be randomly selected from the virtual objects belonging to the area at the target position as the updated virtual object.

[0075] As an example, when determining the updated target location based on the area to which the target location belongs, if there are multiple areas that do not reach the threshold value of the number of virtual objects, the area to which the updated target location belongs can be determined according to the selection priority of the area. Among them, the selection priority of the area can be configured based on the actual application scenario and is not limited here. If there is an area that does not reach the threshold value of the number of virtual objects, the updated target location is determined from the area. For example, one of the locations on the target path of the virtual object that belongs to the area can be selected as the updated target location.

[0076] Therefore, through the above technical scheme, it is possible to effectively avoid the virtual objects in the virtual scene from gathering in a local area, realize the dispersed distribution of virtual objects in the virtual scene, fit the distribution of virtual objects in the actual scene, realize the true simulation of virtual objects such as fish schools, improve the accuracy and effectiveness of virtual object control, facilitate users to view and distinguish virtual objects, so that users can determine the objects to interact with, and enhance the user's interactive experience.

[0077] In some embodiments, Figure 2 As shown, the area of ​​the virtual scene includes a first area Q1, a second area Q2 and a third area Q3, the third area includes the vertical center line of the virtual scene, and the third area is used for the virtual object to interact with the user; the second area is adjacent to the third area, and the first area is adjacent to the second area. The vertical center line of the virtual scene, that is, the center line of the virtual scene in the vertical direction when it is displayed in the interface, is as shown in FIG. Figure 2 As shown in H.

[0078] As an example, the ratio of the first area, the second area and the third area can be determined based on the display parameters of the display terminal. Among them, the display parameter can be the resolution of the display terminal. For example, for resolution R1, the virtual scene is divided into a first area (3 / 16 on the left and right, a total of 37.5%), a second area (1 / 4 on the left and right, a total of 50%), and a third area (1 / 8 in the middle, 12.5%) according to the horizontal ratio. For resolution R2, the corresponding ratios of the first area, the second area and the third area can be set. After obtaining the resolution of the display terminal, it can be determined whether there is a ratio corresponding to the resolution. If so, the area division is performed based on the ratio. If not, the area division can be performed based on the default ratio.

[0079] Accordingly, the method further comprises: Based on the display parameters of the display terminal, a target area in the virtual scene is determined, and the target area at least includes the third area and the second area.

[0080] The virtual object in the target area is displayed in the target interface of the display terminal.

[0081] Among them, the area range that can be displayed in the vertical screen display and horizontal screen display scenes of the display terminal is usually different. In this embodiment, the target area that can be displayed can be determined based on the display parameters. For example, based on the display parameters, the display terminal is determined to be a horizontal screen display, such as the display parameters of the display terminal are 1920×1080, the first area, the second area, and the third area can be used as target areas, and the content of the entire virtual scene can be displayed in the interface of the display terminal. If the display terminal is determined to be a vertical screen display based on the display parameters, such as the display parameters of the display terminal are 1080×1920, the second area and the third area can be used as target areas, and part of the content in the virtual scene, that is, the content of the second area and the third area, can be displayed in the interface of the display terminal.

[0082] Therefore, through the above technical solution, the area content displayed in the display terminal can be automatically determined based on the display parameters of the display terminal, and the content in the central area of ​​the virtual scene can be displayed preferentially when switching between horizontal and vertical screens, thereby ensuring the consistency of the display content in the target interface during the horizontal and vertical screen switching process.

[0083] In some embodiments, each of the first area, the second area and the third area is evenly divided into a plurality of sub-areas in a direction perpendicular to the area division direction of the virtual scene.

[0084] like Figure 2 As shown, the direction L is the area division direction of the virtual scene, which divides the first area, the second area and the third area. In the vertical direction of L, each area is further evenly divided into multiple sub-areas, such as the second area Q2 includes sub-areas Q21, Q22 and Q23.

[0085] Accordingly, determining the target position of each virtual object includes: The target position is determined based on the current position of the virtual object and the number of virtual objects in each of the sub-areas.

[0086] As an example, the number of virtual objects in each sub-region may be determined, and the sub-regions that do not reach the average number may be used as candidate sub-regions. Then, a solution may be performed based on the region range of the candidate sub-regions and the path planning rules described above to determine the target location.

[0087] Therefore, through the above technical solution, by dividing each area into sub-areas, the virtual objects in the same area can be evenly distributed in the area to a certain extent, further avoiding the clustered display of virtual objects, making it easier for users to observe and distinguish virtual objects, and improving the user interaction experience.

[0088] In some embodiments, controlling the virtual object to move toward the updated target position may include: Based on the size information and type information of the virtual object, a moving display mode and a moving speed of the virtual object are determined.

[0089] Among them, the mobile display mode and mobile speed can be pre-set according to the body shape information. The mobile speed can include the cruising speed and the turning speed. The cruising speed of large virtual objects is stable but slow, and the turning and starting and stopping are not agile enough. The mobile display mode is a large and stable swing. The cruising speed of medium-sized virtual objects is moderate, with good flexibility, flexible steering, and fast start and stop. The mobile display mode is a moderate swing amplitude and swing frequency. The cruising speed of small virtual objects is fast, the movements are fast, and the mobile display mode is a high swing frequency. Therefore, the mobile display mode can be configured based on the swing frequency and swing amplitude, and the mobile speed can be configured based on the cruising speed and the turning speed.

[0090] As an example, the movement display method of the virtual object under the category information can be set in advance for at least part of the category information, such as eels swimming in waves; lantern fish and pufferfish moving slowly by quickly swinging their small fins; hairtails and seahorses moving slowly by vibrating their dorsal fins and maintaining a vertical posture; shellfish, shrimps, and octopuses moving by opening and closing their tails to generate thrust.

[0091] In this step, after the body shape information and type information of the virtual object are determined, the movement display mode and the movement speed can be determined based on the body shape information, and whether there is a corresponding movement display mode based on the type information. If it is determined that there is a corresponding movement display mode based on the type information, the movement display mode corresponding to the type information and the movement speed corresponding to the body shape information can be used as the movement display mode and the movement speed of the virtual object.

[0092] Based on the movement display mode and the movement speed, the virtual object is controlled to move toward the updated target position.

[0093] Therefore, through the above technical solution, the movement behavior of virtual objects under different body shape information and type information can be simulated, the rationality of the behavior of virtual objects can be improved, thereby increasing the realism of the interaction between users and virtual objects, and improving the user's interactive participation and interest.

[0094] In some embodiments, the method may further include: The moving speed is adjusted based on a speed adjustment parameter of the area to which the current position of the virtual object belongs to, to obtain an updated moving speed.

[0095] Among them, corresponding speed adjustment parameters can be pre-set for different areas in the virtual scene. For example, for the first area, the virtual object will not respond to the user's interaction in this area. When it enters the buffer area of ​​the second area as a virtual object, its speed can be increased, and the speed adjustment parameter can be set to 1.1. For the second area, the virtual object in this area can observe the user's interaction, and its speed can be reduced, and the speed adjustment parameter can be set to 0.95.

[0096] After determining the moving speed based on the body shape information of the virtual object, the speed adjustment parameter of the area to which the current position belongs can be obtained. For example, if the moving speed is V1 and the current position is in the first area, the moving speed can be adjusted, and the updated moving speed is 1.1×V1.

[0097] Accordingly, controlling the virtual object to move to the updated target position based on the movement display mode and the movement speed may include: Based on the movement display mode and the updated movement speed, the virtual object is controlled to move toward the updated target position.

[0098] The implementation method of this step is similar to the implementation method described above and will not be repeated here.

[0099] Therefore, through the above technical solution, the movement speed of the virtual object can be adjusted according to the area where the virtual object is located, so as to achieve more refined control over the virtual object and further enhance the realism of the virtual object when moving in the virtual scene.

[0100] In some embodiments, the method may further include: In response to reaching the end time of the generation period, it is determined that the life cycle of the virtual objects in the generation period is zero, and the end display mode of each of the virtual objects is determined.

[0101] Among them, multiple ending display methods can be pre-set, such as ending the display by moving to the edge of the virtual scene to simulate the virtual object moving out of the visible area, or ending the display by moving in an internal direction perpendicular to the display device to simulate the virtual object diving.

[0102] As an example, when the end time of the generation period is reached, each virtual object may randomly select from a plurality of preset end display modes to determine its end display mode.

[0103] As another example, a specific end display method can be set for a virtual object under some category information. In this step, it can be determined whether there is an associated end display method based on the category information of the virtual object. If there is, the end display method associated with the category information is used as the end display method of the virtual object. If not, one of the preset multiple end display methods can be randomly selected as the end display method of the virtual object. If the life cycle of the virtual object within the generation period is zero, the virtual object can be deleted.

[0104] Afterwards, the generation time of the next generation period is determined, and the virtual object is controlled to exit the virtual scene based on the end display mode.

[0105] After determining that the generation time of the next generation period has arrived, the above steps 11 to 14 can be re-executed to realize the generation and control of the virtual object in the next generation period, and the virtual object can be controlled to exit the virtual scene based on the end display method to ensure the display smoothness of the virtual object during the switching of the generation period.

[0106] Based on the same inventive concept, the present disclosure also provides a control device for a virtual object, such as Figure 3 As shown, the device 10 comprises: The processing module 100 is used to generate a plurality of virtual objects in a virtual scene in response and determine a target position of each of the virtual objects; A first determination module 200 is used to determine whether the target position needs to be updated based on a threshold value of the number of virtual objects corresponding to each of a plurality of areas in the virtual scene during the process of controlling the virtual object to move toward the target position; A second determination module 300 is used to determine an updated target location based on the region to which the target location belongs if it is determined that the target location needs to be updated, wherein the regions to which the target location belongs before and after the update are different; The first control module 400 is used to control the virtual object to move toward the updated target position.

[0107] Optionally, the first determining module includes: A first determination submodule, configured to obtain the target position of each of the virtual objects at intervals of a preset time period, and determine the target number of virtual objects in each of the areas based on the target position; The second determination submodule is used to select an updated virtual object from the virtual objects whose target positions belong to the area if the target number of virtual objects in the area exceeds a threshold value of the number of virtual objects corresponding to the area, and determine that the target position of the updated virtual object needs to be updated.

[0108] Optionally, the area of ​​the virtual scene includes a first area, a second area and a third area, the third area includes a vertical center line of the virtual scene, and the third area is used for the virtual object to interact with the user; the second area is adjacent to the third area, and the first area is adjacent to the second area; and the ratio of the first area, the second area and the third area is determined based on a display parameter of a display terminal; The device also includes: A third determining module, configured to determine a target area in the virtual scene based on display parameters of the display terminal, wherein the target area at least includes the third area and the second area; The display module is used to display the virtual object in the target area in the target interface of the display terminal.

[0109] Optionally, each of the first area, the second area and the third area is evenly divided into a plurality of sub-areas in a direction perpendicular to the area division direction of the virtual scene; The processing module comprises: The third determination submodule is used to determine the target position based on the current position of the virtual object and the number of virtual objects in each of the sub-areas.

[0110] Optionally, the first control module includes: A fourth determination submodule, configured to determine a movement display mode and a movement speed of the virtual object based on the size information and type information of the virtual object; The control submodule is used to control the virtual object to move to the updated target position based on the movement display mode and the movement speed.

[0111] Optionally, the device further comprises: An adjustment submodule, configured to adjust the moving speed based on a speed adjustment parameter of the area to which the current position of the virtual object belongs, to obtain an updated moving speed; The control submodule is further used for: Based on the movement display mode and the updated movement speed, the virtual object is controlled to move toward the updated target position.

[0112] Optionally, the processing module includes: a fifth determining submodule, configured to determine, in response to determining that the generation time of the generation period has been reached, body shape information corresponding to the generation period and a quantity range corresponding to the body shape information based on a period type of the generation period; The first generating submodule is used to generate the virtual object based on the body shape information and the quantity range.

[0113] Optionally, there are multiple pieces of body shape information corresponding to the time period type, and each piece of body shape information includes multiple types of information; The first generation submodule comprises: a sixth determining submodule, configured to determine a generation quantity corresponding to the body shape information based on a quantity range corresponding to the body shape information; a seventh determination submodule, configured to determine, for each piece of body shape information, a generation point of the virtual object under the body shape information from a plurality of generation points of the virtual scene based on the body shape information and the generation quantity; The second generation submodule is used to generate the generated number of virtual objects based on the type information under the body shape information and the generation point.

[0114] Optionally, the generation period is further associated with a quantity range of target virtual objects, and the target virtual objects are used to represent virtual objects with rarity identifiers; The device also includes: A fourth determining module, configured to determine a first number of the target virtual objects based on a number range of the target virtual objects; The second generation submodule includes: an eighth determination submodule, configured to determine the body shape information of the target virtual object based on the body shape information corresponding to the generation time period; A third generation submodule is used for generating the first number of the target virtual objects according to the type information with a rarity mark under the body shape information and the generation point, and generating a second number of the virtual objects according to the type information without a rarity mark under the body shape information and the generation point, wherein the second number is the difference between the generation number corresponding to the body shape information and the first number; The fourth generation submodule is used to generate the virtual objects of the generated quantity according to the type information without rarity identification under the body shape information and the generation point for the body shape information other than the body shape information of the target virtual object.

[0115] Optionally, each of the generation points corresponds to at least one body shape information, and is used to generate a virtual object under the at least one body shape information; The seventh determining submodule comprises: a ninth determination submodule, configured to traverse the body shape information according to a preset order of the body shape information, and to use the generation points in the candidate point set of the generation period corresponding to the traversed current body shape information as candidate generation points, wherein the candidate point set of each generation period initially includes a plurality of generation points of the virtual scene; A tenth determination submodule is used to determine the generation point of the virtual object under the current body shape information based on the generation quantity corresponding to the current body shape information and the candidate generation point, and to move the generation point of the virtual object under the body shape information out of the candidate point set.

[0116] Optionally, the device further comprises: a fifth determining module, configured to determine, in response to reaching the end time of the generation period, that the life cycle of the virtual objects within the generation period is zero, and determine an end display mode of each of the virtual objects; The second control module is used to determine the generation time of the next generation period, and control the virtual object to exit the virtual scene based on the end display mode.

[0117] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device (such as a terminal device or a server) 600 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0118] like Figure 4 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0119] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0120] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0121] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0122] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0123] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0124] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: generates multiple virtual objects in a virtual scene and determines the target position of each of the virtual objects; in the process of controlling the virtual object to move to the target position, determines whether the target position needs to be updated based on a threshold value of the number of virtual objects corresponding to each of multiple areas in the virtual scene; if it is determined that the target position needs to be updated, determines an updated target position based on the area to which the target position belongs, wherein the areas to which the target position belongs before and after the update are different; and controls the virtual object to move to the updated target position.

[0126] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0127] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0128] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a module does not limit the module itself in some cases. For example, a processing module may also be described as a "module for generating multiple virtual objects in a virtual scene and determining a target position of each of the virtual objects".

[0129] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0130] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0131] According to one or more embodiments of the present disclosure, Example 1 provides a method for controlling a virtual object, the method comprising: Generating a plurality of virtual objects in a virtual scene, and determining a target position of each of the virtual objects; In the process of controlling the virtual object to move toward the target position, determining whether the target position needs to be updated based on a threshold value of the number of virtual objects corresponding to each of a plurality of areas in the virtual scene; If it is determined that the target position needs to be updated, determining an updated target position based on the region to which the target position belongs, wherein the regions to which the target position belongs before and after the update are different; The virtual object is controlled to move toward the updated target position.

[0132] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, wherein in the process of controlling the virtual object to move toward the target position, determining whether the target position needs to be updated based on a threshold value of the number of virtual objects corresponding to each of a plurality of areas in the virtual scene, includes: Acquire the target position of each of the virtual objects at intervals of a preset time period, and determine the target number of virtual objects in each of the areas based on the target position; If the target number of virtual objects in the area exceeds a threshold value of the number of virtual objects corresponding to the area, an updated virtual object is selected from virtual objects whose target positions belong to the area, and it is determined that the target position of the updated virtual object needs to be updated.

[0133] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 1, wherein the area of ​​the virtual scene includes a first area, a second area, and a third area, the third area includes a vertical center line of the virtual scene, and the third area is used for the virtual object to interact with the user; the second area is adjacent to the third area, and the first area is adjacent to the second area; and the ratio of the first area, the second area, and the third area is determined based on a display parameter of a display terminal; The method further comprises: Based on display parameters of the display terminal, determining a target area in the virtual scene, wherein the target area at least includes the third area and the second area; The virtual object in the target area is displayed in the target interface of the display terminal.

[0134] According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 3, wherein each of the first area, the second area, and the third area is evenly divided into a plurality of sub-areas in a direction perpendicular to the area division direction of the virtual scene; The determining of the target position of each virtual object comprises: The target position is determined based on the current position of the virtual object and the number of virtual objects in each of the sub-areas.

[0135] According to one or more embodiments of the present disclosure, Example 5 provides the method of Example 1, wherein controlling the virtual object to move to the updated target position includes: Determining a moving display mode and a moving speed of the virtual object based on the size information and type information of the virtual object; Based on the movement display mode and the movement speed, the virtual object is controlled to move toward the updated target position.

[0136] According to one or more embodiments of the present disclosure, Example 6 provides the method of Example 5, wherein the method further includes: Adjusting the moving speed based on a speed adjustment parameter of the area to which the current position of the virtual object belongs to obtain an updated moving speed; The controlling the virtual object to move to the updated target position based on the movement display mode and the movement speed includes: Based on the movement display mode and the updated movement speed, the virtual object is controlled to move toward the updated target position.

[0137] According to one or more embodiments of the present disclosure, Example 7 provides the method of Example 1, wherein generating a plurality of virtual objects in a virtual scene includes: In response to determining that a generation time of a generation period has been reached, based on a period type of the generation period, determining body shape information corresponding to the generation period and a quantity range corresponding to the body shape information; The virtual object is generated based on the body shape information and the number range.

[0138] According to one or more embodiments of the present disclosure, Example 8 provides the method of Example 7, wherein there are multiple pieces of body shape information corresponding to the time period type, and each piece of body shape information includes multiple types of information; The generating the virtual object based on the body shape information and the quantity range includes: Determining the generation quantity corresponding to the body shape information based on the quantity range corresponding to the body shape information; For each body shape information, based on the body shape information and the generation quantity, determining a generation point of the virtual object under the body shape information from a plurality of generation points of the virtual scene; Based on the type information under the body shape information and the generation point, the generated number of virtual objects is generated.

[0139] According to one or more embodiments of the present disclosure, Example 9 provides the method of Example 8, wherein the generation period is further associated with a quantity range of target virtual objects, and the target virtual objects are used to represent virtual objects with rarity identifiers; The method further comprises: Determining a first quantity of the target virtual objects based on a quantity range of the target virtual objects; The step of generating the generated number of virtual objects based on the type information under the body shape information and the generation point includes: Determining the body shape information of the target virtual object based on the body shape information corresponding to the generation time period; For the body shape information of the target virtual object, the first number of the target virtual objects is generated according to the type information with a rarity identifier under the body shape information and the generation point, and the second number of the virtual objects is generated according to the type information without a rarity identifier under the body shape information and the generation point, wherein the second number is the difference between the generation number corresponding to the body shape information and the first number; For body shape information other than the body shape information of the target virtual object, the generated number of virtual objects are generated according to the type information without rarity identification under the body shape information and the generation point.

[0140] According to one or more embodiments of the present disclosure, Example 10 provides the method of Example 8, wherein each of the generation points corresponds to at least one body shape information, and is used to generate a virtual object under the at least one body shape information; The step of determining, for each body shape information, a generation point of the virtual object under the body shape information from a plurality of generation points of the virtual scene based on the body shape information and the generation quantity, comprises: Traversing the body shape information according to a preset order of the body shape information, and taking the generation points in the candidate point set of the generation period corresponding to the traversed current body shape information as candidate generation points, wherein the candidate point set of each generation period initially includes a plurality of generation points of the virtual scene; Based on the generation quantity and the candidate generation points corresponding to the current body shape information, the generation point of the virtual object under the current body shape information is determined, and the generation point of the virtual object under the body shape information is moved out of the candidate point set.

[0141] According to one or more embodiments of the present disclosure, Example 11 provides the method of Example 7, wherein the method further includes: In response to reaching the end time of the generation period, determining that the life cycle of the virtual objects in the generation period is zero, and determining an end display mode of each of the virtual objects; The generation time of the next generation period is determined, and the virtual object is controlled to exit the virtual scene based on the end display mode.

[0142] According to one or more embodiments of the present disclosure, Example 12 provides a control device for a virtual object, the device comprising: A processing module, used to generate a plurality of virtual objects in a virtual scene and determine a target position of each of the virtual objects; A first determination module, configured to determine whether the target position needs to be updated based on a threshold value of the number of virtual objects corresponding to each of a plurality of areas in the virtual scene during the process of controlling the virtual object to move toward the target position; A second determination module is used to determine an updated target location based on the region to which the target location belongs if it is determined that the target location needs to be updated, wherein the regions to which the target location belongs before and after the update are different; The first control module is used to control the virtual object to move toward the updated target position.

[0143] According to one or more embodiments of the present disclosure, Example 13 provides a computer-readable medium having a computer program stored thereon, which implements the steps of any of the methods described in Examples 1-11 when executed by a processing device.

[0144] According to one or more embodiments of the present disclosure, Example 14 provides an electronic device, including: a storage device having a computer program stored thereon; A processing device is used to execute the computer program in the storage device to implement the steps of the method described in any one of Examples 1-11.

[0145] According to one or more embodiments of the present disclosure, Example 15 provides a computer program product, including a computer program, which implements the steps of any one of the methods of Examples 1-11 when executed by a processor.

[0146] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0147] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0148] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims

1. A method for controlling a virtual object, characterized in that: The method comprises: Generating a plurality of virtual objects in a virtual scene, and determining a target position of each of the virtual objects; In the process of controlling the virtual object to move toward the target position, determining whether the target position needs to be updated based on a threshold value of the number of virtual objects corresponding to each of a plurality of areas in the virtual scene; If it is determined that the target position needs to be updated, determining an updated target position based on the region to which the target position belongs, wherein the regions to which the target position belongs before and after the update are different; The virtual object is controlled to move toward the updated target position.

2. The method according to claim 1, characterized in that In the process of controlling the virtual object to move toward the target position, determining whether the target position needs to be updated based on a threshold value of the number of virtual objects corresponding to each of a plurality of areas in the virtual scene includes: Acquire the target position of each of the virtual objects at intervals of a preset time period, and determine the target number of virtual objects in each of the areas based on the target position; If the target number of virtual objects in the area exceeds a threshold value of the number of virtual objects corresponding to the area, an updated virtual object is selected from virtual objects whose target positions belong to the area, and it is determined that the target position of the updated virtual object needs to be updated.

3. The method according to claim 1, characterized in that The area of ​​the virtual scene includes a first area, a second area and a third area, the third area includes a vertical center line of the virtual scene, and the third area is used for the virtual object to interact with the user; The second area is adjacent to the third area, and the first area is adjacent to the second area; The method further comprises: Based on display parameters of the display terminal, determining a target area in the virtual scene, wherein the target area at least includes the third area and the second area; The virtual object in the target area is displayed in the target interface of the display terminal.

4. The method according to claim 3, characterized in that Each of the first area, the second area and the third area is evenly divided into a plurality of sub-areas in a direction perpendicular to the area division direction of the virtual scene; The determining of the target position of each virtual object comprises: The target position is determined based on the current position of the virtual object and the number of virtual objects in each of the sub-areas.

5. The method according to claim 1, characterized in that The controlling the virtual object to move toward the updated target position includes: Determining a moving display mode and a moving speed of the virtual object based on the size information and type information of the virtual object; Based on the movement display mode and the movement speed, the virtual object is controlled to move toward the updated target position.

6. The method according to claim 5, characterized in that The method further comprises: Adjusting the moving speed based on a speed adjustment parameter of the area to which the current position of the virtual object belongs to obtain an updated moving speed; The controlling the virtual object to move to the updated target position based on the movement display mode and the movement speed includes: Based on the movement display mode and the updated movement speed, the virtual object is controlled to move toward the updated target position.

7. The method according to claim 1, characterized in that The generating of multiple virtual objects in the virtual scene comprises: In response to determining that a generation time of a generation period has been reached, based on a period type of the generation period, determining body shape information corresponding to the generation period and a quantity range corresponding to the body shape information; The virtual object is generated based on the body shape information and the number range.

8. The method according to claim 7, characterized in that There are multiple pieces of body shape information corresponding to the time period type, and each piece of body shape information includes multiple types of information; The generating the virtual object based on the body shape information and the quantity range includes: Determining the generation quantity corresponding to the body shape information based on the quantity range corresponding to the body shape information; For each piece of body shape information, based on the body shape information and the generation quantity, determining a generation point of the virtual object under the body shape information from a plurality of generation points of the virtual scene; The generated number of virtual objects is generated based on the type information under the body shape information and the generation point.

9. The method according to claim 8, characterized in that The generation period is also associated with a quantity range of target virtual objects, where the target virtual objects are used to represent virtual objects with rarity identifiers; The method further comprises: Determining a first number of the target virtual objects based on a number range of the target virtual objects; The generating the generated number of virtual objects based on the type information under the body shape information and the generation point includes: Determining the body shape information of the target virtual object based on the body shape information corresponding to the generation time period; For the body shape information of the target virtual object, the first number of the target virtual objects is generated according to the type information with a rarity identifier under the body shape information and the generation point, and the second number of the virtual objects is generated according to the type information without a rarity identifier under the body shape information and the generation point, wherein the second number is the difference between the generation number corresponding to the body shape information and the first number; For body shape information other than the body shape information of the target virtual object, the generated number of virtual objects are generated according to the type information without rarity identification under the body shape information and the generation point.

10. The method according to claim 8, characterized in that Each of the generation points corresponds to at least one body shape information, and is used to generate a virtual object under the at least one body shape information; The step of determining, for each body shape information, a generation point of the virtual object under the body shape information from a plurality of generation points of the virtual scene based on the body shape information and the generation quantity, comprises: Traversing the body shape information according to a preset order of the body shape information, and taking the generation points in the candidate point set of the generation period corresponding to the traversed current body shape information as candidate generation points, wherein the candidate point set of each generation period initially includes a plurality of generation points of the virtual scene; Based on the generation quantity and the candidate generation points corresponding to the current body shape information, the generation point of the virtual object under the current body shape information is determined, and the generation point of the virtual object under the body shape information is moved out of the candidate point set.

11. The method according to claim 7, characterized in that The method further comprises: In response to reaching the end time of the generation period, determining that the life cycle of the virtual objects in the generation period is zero, and determining an end display mode of each of the virtual objects; The generation time of the next generation period is determined, and the virtual object is controlled to exit the virtual scene based on the end display mode.

12. A control device for a virtual object, characterized in that: The device comprises: A processing module, used to generate a plurality of virtual objects in a virtual scene and determine a target position of each of the virtual objects; A first determination module, configured to determine whether the target position needs to be updated based on a threshold value of the number of virtual objects corresponding to each of a plurality of areas in the virtual scene during the process of controlling the virtual object to move toward the target position; A second determination module is used to determine an updated target location based on the region to which the target location belongs if it is determined that the target location needs to be updated, wherein the regions to which the target location belongs before and after the update are different; The first control module is used to control the virtual object to move toward the updated target position.

13. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processing device, the steps of the method according to any one of claims 1 to 11 are implemented.

14. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 11.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.