Target object determination method and device, electronic device, computer readable medium

CN116407839BActive Publication Date: 2026-08-11SHANGHAI MIHAYOULIYUE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

[0003]但是,游戏加载过程会耗费大量的硬件资源,甚至会影响玩家的游戏体验

Benefits of technology

[0037]This disclosure provides a method for determining a target object, as well as an apparatus, electronic device, and computer-readable medium for implementing the method. In this disclosure, objects in a game scene that can influence a character can be filtered based on an acquired loading list to obtain the target object. When determining the influence of loaded objects in the game scene on the character to simulate the interaction between objects and the character, calculations only need to be performed on the target object, rather than on every single object loaded in the game scene. This saves computational resources, improves game loading efficiency, and enhances the player's gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116407839B_ABST
    Figure CN116407839B_ABST
Patent Text Reader

Abstract

This disclosure provides a method for determining a target object, comprising: obtaining a loading list of objects in a scene where a character is located, the loading list corresponding to multiple objects; determining a target object in the scene based on the loading list, the target object being an object capable of influencing the character's motion state; and determining the influence information of the target object on the character's motion state based on the target object's position information and motion state information. This disclosure also provides a device for determining a target object, an electronic device, and a computer-readable medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a method for determining a target object, a device for determining a target object, an electronic device, and a computer-readable medium. Background Technology

[0002] With the continuous improvement of hardware performance and software technology, game scenes are becoming increasingly detailed, and the objects loaded in games are becoming increasingly complex. In order to provide gamers with a gaming experience that is close to the real world, a lot of processing is required during the game loading process to improve the similarity between the game scene and the real world.

[0003] However, the game loading process consumes a lot of hardware resources and may even affect the player's gaming experience. Summary of the Invention

[0004] This disclosure provides a method for determining a target object, a device for determining a target object, an electronic device, and a computer-readable medium.

[0005] In a first aspect, embodiments of this disclosure provide a method for determining a target object, including:

[0006] Obtain the loading list of objects in the scene where the character is located, where the loading list corresponds to multiple objects;

[0007] Based on the loading list, a target object in the scene is determined, wherein the target object is an object that can affect the movement state of the character;

[0008] Based on the position information and motion state information of the target object, determine the influence information of the target object on the motion state of the character.

[0009] In some embodiments, the step of determining the target object in the scene based on the loading list includes:

[0010] The loading list is filtered according to preset keywords to determine the target objects whose names contain the keywords. The loading list records the names of each object, and the keywords are used to identify objects that can affect the movement state of the character.

[0011] In some embodiments, the step of filtering the loading list based on preset keywords to determine the target object whose name contains the keywords includes:

[0012] The loading list is filtered based on the keywords to determine the first candidate object whose name contains the keywords;

[0013] Based on the position information and motion state information of the first candidate object, the target object is determined among the first candidate objects.

[0014] In some embodiments, the step of determining the target object among the first candidate objects based on the position information and motion state information of the first candidate object includes:

[0015] Based on the position information of the first candidate object and the position information of the character, determine the distance between the first candidate object and the character;

[0016] Identify a second candidate object among the first candidate objects whose distance from the character is greater than a distance threshold;

[0017] Based on the motion state information of the second candidate object and the motion state information of the character, determine the movement direction of the second candidate object relative to the character;

[0018] The second candidate object whose movement direction is within the target direction range is determined as the target object, where the target direction range is the range of directions that reduce the distance between the object and the character.

[0019] In some embodiments, the step of determining the influence information of the target object on the motion state of the character based on the position information and motion state information of the target object includes:

[0020] When the distance between the target object and the character is greater than the distance threshold, the time when the target object will affect the character is determined based on the position information and motion state information of the target object and the position information and motion state information of the character.

[0021] The priority of each target object is determined based on the time it will affect the character.

[0022] According to the priority order of each target object, the influence information of each target object on the motion state of the character is determined sequentially based on the position information and motion state information of each target object.

[0023] In some embodiments, after determining the influence information of the target object on the motion state of the character based on the position information and motion state information of the target object, the method for determining the target object further includes:

[0024] Based on the influence information, a prompt message is generated to indicate the influence of the target object on the character.

[0025] In some embodiments, the step of determining the target object among the first candidate objects based on the position information and motion state information of the first candidate objects further includes:

[0026] Determine a third candidate object from the first candidate objects whose distance to the character is less than or equal to the distance threshold;

[0027] Based on the motion state information of the third candidate object, determine the moving speed of the third candidate object;

[0028] The third candidate object whose moving speed is greater than the speed threshold is identified as the target object.

[0029] Secondly, embodiments of this disclosure provide a device for determining a target object, comprising:

[0030] The data loading module is used to obtain a loading list of objects in the scene where the character is located, and the loading list corresponds to multiple objects;

[0031] The data filtering module is used to determine the target object in the scene based on the loading list. The target object is an object that can affect the movement state of the character.

[0032] The data processing module is used to determine the influence information of the target object on the motion state of the character based on the position information and motion state information of the target object.

[0033] Thirdly, embodiments of this disclosure provide an electronic device, including:

[0034] One or more processors;

[0035] A memory having stored one or more programs that, when executed by one or more processors, cause the one or more processors to implement the method for determining a target object as described in the first aspect of the present disclosure.

[0036] Fourthly, embodiments of this disclosure provide a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method for determining a target object as described in the first aspect of embodiments of this disclosure.

[0037] This disclosure provides a method for determining a target object, as well as an apparatus, electronic device, and computer-readable medium for implementing the method. In this disclosure, objects in a game scene that can influence a character can be filtered based on an acquired loading list to obtain the target object. When determining the influence of loaded objects in the game scene on the character to simulate the interaction between objects and the character, calculations only need to be performed on the target object, rather than on every single object loaded in the game scene. This saves computational resources, improves game loading efficiency, and enhances the player's gaming experience. Attached Figure Description

[0038] Figure 1 This is a flowchart of a method for determining a target object according to an embodiment of this disclosure;

[0039] Figure 2 This is a flowchart of some steps in another method for determining a target object in an embodiment of this disclosure;

[0040] Figure 3 This is a schematic diagram illustrating the determination of a target object according to an embodiment of this disclosure;

[0041] Figure 4 This is a block diagram of a target object determination device according to an embodiment of the present disclosure;

[0042] Figure 5 This is a block diagram of an electronic device according to an embodiment of the present disclosure. Detailed Implementation

[0043] To enable those skilled in the art to better understand the technical solutions of this disclosure, the method for determining the target object, the device for determining the target object, the electronic device, and the computer-readable medium provided in this disclosure will be described in detail below with reference to the accompanying drawings.

[0044] Exemplary embodiments will be described more fully below with reference to the accompanying drawings; however, these exemplary embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will enable those skilled in the art to fully understand the scope of this disclosure.

[0045] Where there is no conflict, the various embodiments of this disclosure and the features thereof in the embodiments may be combined with each other.

[0046] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.

[0047] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. As used herein, the singular forms “a” and “the” are also intended to include the plural forms unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded.

[0048] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning, unless expressly so defined herein.

[0049] Firstly, referring to Figure 1 This disclosure provides a method for determining a target object, including:

[0050] S1. Obtain the loading list of objects in the scene where the character is located, wherein the loading list corresponds to multiple objects;

[0051] S2. Based on the loading list, determine the target object in the scene, wherein the target object is an object that can affect the movement state of the character;

[0052] S3. Based on the position information and motion state information of the target object, determine the influence information of the target object on the motion state of the character.

[0053] In this embodiment of the disclosure, the game includes multiple game scenes, and each game scene includes multiple objects. For example, objects in a game scene include mountains, water bodies, plants, animals, buildings, etc. This embodiment of the disclosure does not impose any special limitations on this. During game operation, it is necessary to load the objects in the game scene. For example, when a game character enters a game scene, the objects in the game scene need to be loaded; as the game character moves, the objects in the game scene need to be loaded in real time according to changes in the game scene. This embodiment of the disclosure does not impose any special limitations on this.

[0054] In this embodiment, the loading list corresponds to the objects already loaded in the current game scene, and records information about the objects already loaded in the current game scene. In this embodiment, the loading list can distinguish between objects in the game scene that can affect the character and those that cannot. It should be noted that, in this embodiment, for an object in the game scene to affect the character's motion state, it means that the simulated object in the game scene can exert a force on the character, thereby changing the character's motion state. For example, an object affecting the character can be achieved by simulating an object changing the character's motion state through collision; or by simulating an object exerting a force on the character through a medium such as air or water, changing the character's force state and thus changing the character's motion state. This embodiment does not impose any special limitations on this.

[0055] In this embodiment of the disclosure, when determining the target object in the scene based on the loading list in step S2, the loading list may have already distinguished between objects that can affect the character's movement state and those that cannot, and the objects in the loading list that can affect the character's movement state are directly determined as the target object; alternatively, the loading list may have already distinguished between objects that can affect the character's movement state and those that cannot, and the objects in the loading list that can affect the character's movement state are further filtered to obtain objects that will affect the character's movement state as the target object. This embodiment of the disclosure does not impose any special limitations on this. It should be noted that objects that will affect the character's movement state may include objects that have already affected the character's movement state in the current game scene. For example, objects that will affect the character's movement state include objects that collide with the character in the current game scene; or when the character is in water, objects that will affect the character's movement state include objects that move in the water and are close enough to affect the character's movement state through the water. Objects that can affect a character's movement can also include objects in the current game scene that have not yet affected the character's movement but will affect it. For example, objects that can affect a character's movement include objects whose movement trajectories intersect with the character's movement trajectory and are expected to collide with the character; or, when the character is in water, objects that can affect the character's movement include objects that are currently far enough away from the character but are moving in a direction that reduces the distance between them and are expected to affect the character's movement through the water. This disclosure does not impose any special limitations on these aspects.

[0056] In this embodiment, determining the influence information of the target object on the character's motion state by executing step S3 can be either determining the force information exerted by the target object on the character and using this force information as the influence information, or, based on determining the force information exerted by the target object on the character, further determining the character's motion state information after being influenced by the target object and using this motion state information as the influence information. This embodiment does not impose any special limitations on this method. In this embodiment, step S3 can simulate a change in the character's motion state due to the influence of a target object in the game scene. This change in the character's motion state can be a change in the direction of movement, a change in the speed of movement, or a simultaneous change in both the direction of movement and the speed of movement. This embodiment does not impose any special limitations on this method.

[0057] The method for determining target objects provided in this embodiment can filter objects in the game scene that can affect the character based on the acquired loading list to obtain the target object. When determining the influence of the loaded objects in the game scene on the character to simulate the interaction between the object and the character, only the target object needs to be calculated, instead of calculating for every single object loaded in the game scene. This saves computing resources, improves game loading efficiency, and enhances the player's gaming experience.

[0058] This disclosure does not specifically limit how objects that can affect the character's movement state and those that cannot are distinguished in the loading list. In some embodiments, identification information is added to the loading list to identify objects that can affect the character's movement state and those that cannot. In some embodiments, objects in the game scene are named according to a preset naming rule, and the names of objects in the loading list are used to distinguish between objects that can affect the character's movement state and those that cannot.

[0059] In some embodiments, a preset naming rule is to add keywords to the names of objects that can affect the character's movement state. Accordingly, in some embodiments, the step of determining the target object in the scene based on the loading list includes:

[0060] The loading list is filtered according to preset keywords to determine the target objects whose names contain the keywords. The loading list records the names of each object, and the keywords are used to identify objects that can affect the movement state of the character.

[0061] For example, in a scenario simulating objects exerting forces on a character through water to influence the character, objects that can move in water and are large enough are considered to affect the character's movement. Keywords are added to the object's name according to naming rules. For instance, a ship sailing in the water can affect the character's movement, so its name includes the keyword; a ship under construction on land cannot affect the character's movement, so its name does not include the keyword; a whale in the water can affect the character's movement, so its name includes the keyword; and small fish in the water cannot affect the character's movement, so its name does not include the keyword.

[0062] In this embodiment of the disclosure, objects in the game scene are named according to preset naming rules, and target objects are filtered using keywords, which can save computing resources and improve loading efficiency.

[0063] In this embodiment of the disclosure, when filtering at least one target object from the loading list based on keywords, objects whose names contain keywords can be directly identified as target objects; alternatively, objects whose names contain keywords can be further filtered to obtain objects that will affect the character's movement state as target objects. Objects that will affect the character's movement state include objects that have already affected the character's movement state in the current game scene, and / or objects that have not yet affected the character's movement state in the current game scene but will affect the character's movement state. This embodiment of the disclosure does not impose any special limitations on this.

[0064] In some embodiments, based on filtering objects from the loading list that can affect the character's motion state according to keywords, it is determined whether an object will affect the character's motion state based on the object's position and motion state.

[0065] Accordingly, in some embodiments, reference is made to Figure 2 The step of filtering the loading list based on preset keywords to determine the target object whose name contains the preset keywords includes:

[0066] S21. Filter the loading list according to the keyword to determine the first candidate object whose name contains the keyword;

[0067] S22. Based on the position information and motion state information of the first candidate object, determine the target object among the first candidate objects.

[0068] In some embodiments, the position information of the first candidate object can be represented as the coordinates of the first candidate object in the scene. In some embodiments, the motion state information of the first candidate object includes the moving speed and moving direction of the candidate object.

[0069] In some embodiments, the position information and motion state information of the first candidate object are recorded in a loading list, and the position information and motion state information of the first candidate object are obtained according to the loading list.

[0070] In this embodiment of the disclosure, the influence of objects in the game scene on the character's movement state has a certain range. When the character is within this range, the object affects the character's movement state; when the character is outside this range, the object does not affect the character's movement state. Figure 3 As shown, the game scene includes objects A, B, and C. Character O is within the range of object A, and object A has already affected character O's movement in the current game scene; therefore, object A is the target object. Character O is outside the range of object B, and object B has not yet affected character O's movement in the current game scene. However, object B is moving in a direction that decreases the distance between object B and character O, and object B is expected to affect character O's movement; therefore, object B is the target object. Character O is outside the range of object C, and object C has not yet affected character O's movement in the current game scene. Moreover, object C is moving in a direction that increases the distance between object C and character O, and object C is not expected to affect character O's movement; therefore, object C is not the target object.

[0071] In some embodiments, the distance between the object and the character is used to determine whether the character is within the object's effective range.

[0072] In some embodiments, when it is determined that the character is outside the scope of the object's influence based on the distance between the object and the character, it is further determined whether the object will affect the character's movement state based on the object's movement state and the character's movement state; if so, the object is identified as the target object.

[0073] Accordingly, in some embodiments, reference is made to Figure 2 The step of determining the target object among the first candidate objects based on the position information and motion state information of the first candidate objects includes:

[0074] S221. Determine the distance between the first candidate object and the character based on the position information of the first candidate object and the position information of the character;

[0075] S222. Determine a second candidate object in the first candidate object whose distance from the character is greater than a distance threshold;

[0076] S223. Based on the motion state information of the second candidate object and the motion state information of the character, determine the movement direction of the second candidate object relative to the character;

[0077] S224. The second candidate object whose movement direction is within the target direction range is determined as the target object, where the target direction range is the direction range that reduces the distance between the object and the character.

[0078] In this embodiment of the disclosure, by executing steps S221 to S224, it is possible to pre-determine the target object that will affect the character's motion state and calculate the impact of the target object on the character's motion state, thereby improving loading efficiency.

[0079] In this embodiment, the distance thresholds corresponding to different first candidate objects can be the same or different. This embodiment does not impose any special limitations on this. When the distance thresholds corresponding to different first candidate objects are different, it indicates that the different first candidate objects have different effects on the character, thus more closely resembling the real world and improving the gaming experience.

[0080] In some embodiments, when the distance between multiple target objects and the character is greater than a distance threshold, the time at which each target object affects the character can be determined based on the motion states of each target object and the character. Furthermore, the influence of each target object on the character's motion state can be determined based on the order in which it affects the character's motion state. In some embodiments, the order in which the target objects affect the character's motion state is represented by the priority of each target object.

[0081] Accordingly, the step of determining the influence information of the target object on the motion state of the character based on the position information and motion state information of the target object includes:

[0082] When the distance between the target object and the character is greater than the distance threshold, the time when the target object will affect the character is determined based on the position information and motion state information of the target object and the position information and motion state information of the character.

[0083] The priority of each target object is determined based on the time it will affect the character.

[0084] According to the priority order of each target object, the influence information of each target object on the motion state of the character is determined sequentially based on the position information and motion state information of each target object.

[0085] In this embodiment of the disclosure, target objects that will affect the character's motion state are pre-determined, and the influence of each target object on the character's motion state is determined according to the order in which they affect the character's motion state. This eliminates the need to detect each target object simultaneously, thereby saving computing resources and improving loading efficiency.

[0086] In some embodiments, after determining the influence information of the target object on the motion state of the character based on the position information and motion state information of the target object, the method for determining the target object further includes:

[0087] Based on the influence information, a prompt message is generated to indicate the influence of the target object on the character.

[0088] In some embodiments, an object only affects the character's motion state when the character is within the object's range and the object's speed is sufficiently high. For example, in a scenario simulating an object exerting a force on a character through a medium such as air or water, thus affecting the character's motion state, when the object is stationary, it does not exert a force on the character; when the object's speed is less than a speed threshold, its effect on the character's motion state is negligible; and when the object's speed is greater than the speed threshold, the object affects the character's motion state.

[0089] Accordingly, in some embodiments, reference is made to Figure 2 The step of determining the target object among the first candidate objects based on the position information and motion state information of the first candidate objects further includes:

[0090] S225. Determine a third candidate object among the first candidate objects whose distance from the character is less than or equal to the distance threshold;

[0091] S226. Determine the moving speed of the third candidate object based on the motion state information of the third candidate object;

[0092] S227. The third candidate object whose moving speed is greater than the speed threshold is determined as the target object.

[0093] In this embodiment, the velocity thresholds corresponding to different first candidate objects can be the same or different. This embodiment does not impose any special limitations on this. When the velocity thresholds corresponding to different first candidate objects are different, it indicates that the different first candidate objects have different effects on the character, thus more closely resembling the real world and improving the gaming experience.

[0094] Secondly, referring to Figure 4 This disclosure provides a device for determining a target object, comprising:

[0095] The data loading module 101 is used to obtain a loading list of objects in the scene where the character is located, and the loading list corresponds to multiple objects;

[0096] The data filtering module 102 is used to determine the target object in the scene according to the loading list, wherein the target object is an object that can affect the movement state of the character;

[0097] The data processing module 103 is used to determine the influence information of the target object on the motion state of the character based on the position information and motion state information of the target object.

[0098] In some embodiments, the data filtering module 102 is used to filter the loading list according to preset keywords to determine the target objects whose names contain the keywords, wherein the loading list records the names of each object, and the keywords are used to identify objects that can affect the movement state of the character.

[0099] In some embodiments, the data filtering module 102 is used to filter the loading list according to the keyword, determine a first candidate object whose name carries the keyword, and determine the target object among the first candidate objects according to the position information and motion state information of the first candidate object.

[0100] In some embodiments, the data filtering module 102 is configured to: determine the distance between the first candidate object and the character based on the position information of the first candidate object and the position information of the character; determine a second candidate object among the first candidate objects whose distance from the character is greater than a distance threshold; determine the movement direction of the second candidate object relative to the character based on the movement state information of the second candidate object and the movement state information of the character; and determine the second candidate object whose movement direction is within a target direction range as the target object, wherein the target direction range is a range of directions that reduce the distance between the object and the character.

[0101] In some embodiments, the data processing module 103 is configured to, when the distance between the target object and the character is greater than the distance threshold, determine the time when the target object will affect the character based on the position information and motion state information of the target object and the position information and motion state information of the character; determine the priority of each target object based on the time when each target object will affect the character; and determine the influence information of each target object on the motion state of the character in sequence according to the priority order of each target object and the position information and motion state information of each target object.

[0102] In some embodiments, the target object determination device further includes an information prompting module, configured to generate prompting information based on the influence information to indicate the influence of the target object on the character.

[0103] In some embodiments, the data filtering module 102 is used to determine a third candidate object among the first candidate objects whose distance to the character is less than or equal to the distance threshold; determine the moving speed of the third candidate object based on the motion state information of the third candidate object; and determine the third candidate object whose moving speed is greater than the speed threshold as the target object.

[0104] Thirdly, referring to Figure 5 This disclosure provides an electronic device, which includes:

[0105] One or more processors 201;

[0106] The memory 202 stores one or more programs that, when executed by one or more processors, cause the one or more processors to implement the method for determining the target object as described in the first aspect of the present disclosure.

[0107] One or more I / O interfaces 203 are connected between the processor and the memory and configured to enable information exchange between the processor and the memory.

[0108] Among them, processor 201 is a device with data processing capabilities, including but not limited to central processing unit (CPU); memory 202 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); I / O interface (read-write interface) 203 is connected between processor 201 and memory 202, and can realize information interaction between processor 201 and memory 202, including but not limited to data bus (Bus).

[0109] In some embodiments, the processor 201, memory 202, and I / O interface 203 are interconnected via bus 204, and thus connected to other components of the computing device.

[0110] Fourthly, embodiments of this disclosure provide a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method for determining a target object as described in the first aspect of embodiments of this disclosure.

[0111] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0112] Example embodiments have been disclosed herein, and while specific terminology has been used, it is for illustrative purposes only and should be construed as such, and is not intended to be limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in connection with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in connection with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of this disclosure as set forth by the appended claims.

Claims

1. A method for determining a target object, comprising: Obtain the loading list of objects in the scene where the character is located, where the loading list corresponds to multiple objects; Based on the loading list, a target object in the scene is determined, wherein the target object is an object that can affect the movement state of the character; Based on the position information and motion state information of the target object, determine the influence information of the target object on the motion state of the character; The influence information includes: the force exerted by the target object on the character, and the motion state information of the character after being affected by the force of the target object; The steps for determining the target object in the scene based on the loaded list include: The loading list is filtered according to preset keywords to determine the target objects whose names contain the keywords. The loading list records the names of each object, and the keywords are used to identify objects that can affect the movement state of the character. The step of filtering the loading list based on preset keywords to determine the target object whose name contains the keywords includes: The loading list is filtered based on the keywords to determine the first candidate object whose name contains the keywords; Based on the position information and motion state information of the first candidate object, the target object among the first candidate objects is determined; The step of determining the target object among the first candidate objects based on the position information and motion state information of the first candidate objects includes: Based on the position information of the first candidate object and the position information of the character, determine the distance between the first candidate object and the character; Identify a second candidate object among the first candidate objects whose distance from the character is greater than a distance threshold; Based on the motion state information of the second candidate object and the motion state information of the character, determine the movement direction of the second candidate object relative to the character; The second candidate object whose movement direction is within the target direction range is determined as the target object, where the target direction range is the range of directions that reduce the distance between the object and the character.

2. The method according to claim 1, wherein, The step of determining the influence information of the target object on the motion state of the character based on the position information and motion state information of the target object includes: When the distance between the target object and the character is greater than the distance threshold, the time when the target object will affect the character is determined based on the position information and motion state information of the target object and the position information and motion state information of the character. The priority of each target object is determined based on the time it will affect the character. According to the priority order of each target object, the influence information of each target object on the motion state of the character is determined sequentially based on the position information and motion state information of each target object.

3. The method according to claim 2, wherein, After determining the influence information of the target object on the character's motion state based on the target object's position information and motion state information, the method for determining the target object further includes: Based on the influence information, a prompt message is generated to indicate the influence of the target object on the character.

4. The method according to any one of claims 1 to 3, wherein, The step of determining the target object among the first candidate objects based on the position information and motion state information of the first candidate objects further includes: Determine a third candidate object from the first candidate objects whose distance to the character is less than or equal to the distance threshold; Based on the motion state information of the third candidate object, determine the moving speed of the third candidate object; The third candidate object whose moving speed is greater than the speed threshold is identified as the target object.

5. A device for determining a target object, comprising: The data loading module is used to obtain a loading list of objects in the scene where the character is located, and the loading list corresponds to multiple objects; The data filtering module is used to determine the target object in the scene based on the loading list. The target object is an object that can affect the movement state of the character. The data processing module is used to determine the influence information of the target object on the motion state of the character based on the position information and motion state information of the target object; The influence information includes: the force exerted by the target object on the character, and the motion state information of the character after being affected by the force of the target object; The steps for determining the target object in the scene based on the loaded list include: The loading list is filtered according to preset keywords to determine the target objects whose names contain the keywords. The loading list records the names of each object, and the keywords are used to identify objects that can affect the movement state of the character. The step of filtering the loading list based on preset keywords to determine the target object whose name contains the keywords includes: The loading list is filtered based on the keywords to determine the first candidate object whose name contains the keywords; Based on the position information and motion state information of the first candidate object, the target object among the first candidate objects is determined; The step of determining the target object among the first candidate objects based on the position information and motion state information of the first candidate objects includes: Based on the position information of the first candidate object and the position information of the character, determine the distance between the first candidate object and the character; Identify a second candidate object among the first candidate objects whose distance from the character is greater than a distance threshold; Based on the motion state information of the second candidate object and the motion state information of the character, determine the movement direction of the second candidate object relative to the character; The second candidate object whose movement direction is within the target direction range is determined as the target object, where the target direction range is the range of directions that reduce the distance between the object and the character.

6. An electronic device, comprising: One or more processors; A memory having stored one or more programs that, when executed by one or more processors, cause the one or more processors to implement the method for determining a target object according to any one of claims 1 to 4.

7. A computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method for determining a target object according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Object loading method and device in scene, storage medium and electronic equipment

    CN111790151A

  • Game control method and device, electronic equipment and storage medium

    CN112807681A