Method, apparatus, electronic device, and computer storage medium for controlling virtual objects

By configuring predetermined attributes for virtual objects and executing functions when conditions are met, the problem of single control operation of virtual objects is solved, which improves efficiency and convenience and improves user experience.

CN111617477BActive Publication Date: 2025-07-08W Y D TECH ZHUHAI CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010394260.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-11
Publication Date
2025-07-08
Estimated Expiration
2040-05-11

AI Technical Summary

Technical Problem

In the existing virtual object control technology, the control operation is single, resulting in low efficiency and convenience and poor user experience.

Method used

By configuring predetermined attributes for virtual objects and performing corresponding functions when the predetermined execution conditions are met, the state of virtual objects is changed, and control efficiency and convenience are improved.

Benefits of technology

It realizes the efficiency and convenience of virtual object control and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111617477B_ABST
    Figure CN111617477B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to a method, apparatus, electronic device, and computer storage medium for controlling virtual objects. A method for controlling a virtual object is provided, including: selecting a first virtual object having at least one predetermined attribute; performing manipulation of the first virtual object according to a manipulation instruction for the first virtual object; and performing at least one function corresponding to at least one predetermined attribute of the first virtual object according to a determination that a predetermined execution condition is satisfied, where the at least one function changes the state of the first virtual object. Through the embodiments of the present disclosure, the efficiency of virtual object control and the convenience of use can be improved, thereby enhancing the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure mainly relate to the field of computers, and more particularly, to methods, devices, electronic devices, and computer-readable storage media for controlling virtual objects. Background Art

[0002] In the current field of virtual object control, the control operations for virtual objects are often rather single. For example, in current virtual object control, it is often only possible to control virtual objects such as virtual vehicles to perform simple movement operations, such as controlling the traveling direction to move forward, turn left, turn right, and simple movement mode conversions (drifting, etc.), without configuring other functions. This will greatly reduce the efficiency and convenience of virtual object control. Summary of the Invention

[0003] According to an exemplary embodiment of the present disclosure, a solution for controlling a virtual object is provided.

[0004] In a first aspect of the present disclosure, a method for controlling a virtual object is provided. The method includes: selecting a first virtual object, where the first virtual object has at least one predetermined attribute; performing a manipulation on the first virtual object according to a manipulation instruction for the first virtual object; and performing at least one function corresponding to the at least one predetermined attribute of the first virtual object according to determining that a predetermined execution condition is satisfied, where the at least one function changes the state of the first virtual object.

[0005] In a second aspect of the present disclosure, a device for controlling a virtual object is provided. The device includes: a virtual object selection module configured to select a first virtual object, where the first virtual object has at least one predetermined attribute; a manipulation execution module configured to perform a manipulation on the first virtual object according to a manipulation instruction for the first virtual object; and a function execution module configured to perform at least one function corresponding to the at least one predetermined attribute of the first virtual object according to determining that a predetermined execution condition is satisfied, where the at least one function changes the state of the first virtual object.

[0006] In a third aspect of the present disclosure, an electronic device is provided, including one or more processors; and a storage device for storing one or more programs, where when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to the first aspect of the present disclosure.

[0007] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the method according to the first aspect of the present disclosure is implemented.

[0008] It should be understood that the content described in the Summary of the Invention section is not intended to define the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In conjunction with the accompanying drawings and with reference to the following detailed description, the above and other features, advantages, and aspects of the embodiments of the present disclosure will become more apparent. In the drawings, like or similar reference numerals denote like or similar elements, wherein:

[0010] Figure 1 A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;

[0011] Figure 2 A flowchart showing a method for controlling a virtual object according to an embodiment of the present disclosure;

[0012] Figure 3 A flowchart showing a method for performing at least one function corresponding to at least one predetermined attribute of a virtual object according to an embodiment of the present disclosure;

[0013] Figure 4 A block diagram showing an apparatus for controlling a virtual object according to an embodiment of the present disclosure; and

[0014] Figure 5 A block diagram showing an electronic device capable of implementing embodiments of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0015] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Instead, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not used to limit the scope of protection of the present disclosure.

[0016] In the description of the embodiments of the present disclosure, the term "comprising" and its like terms should be understood as an open inclusion, that is, "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", and so on may refer to different or the same objects. There may also be other explicit and implicit definitions hereinafter.

[0017] In the current field of virtual object control, the control operations for virtual objects are often relatively simple. For example, in current virtual object control, one can often only control virtual objects such as virtual vehicles to perform simple movement operations, such as controlling the traveling direction to move forward, turn left, turn right, and simple movement mode conversions (drifting, etc.), without configuring other functions. This will greatly reduce the efficiency and convenience of virtual object control.

[0018] According to an embodiment of the present disclosure, an improved solution for controlling a virtual object is proposed. In this solution, the virtual object is configured with at least one predetermined attribute. By executing, when a predetermined execution condition is satisfied, at least one function corresponding to the at least one predetermined attribute that can change the state of the virtual object, the efficiency and convenience of virtual object control can be improved, thereby enhancing the user experience.

[0019] Figure 1 FIG. shows a schematic diagram of an exemplary environment 100 in which embodiments of the present disclosure can be implemented. As Figure 1 shown, the exemplary environment 100 includes a virtual object control device 110, a first virtual object 120, a second virtual object 130, and instructions 140-1 to 140-3 (collectively referred to as instructions 140). Various methods according to embodiments of the present disclosure can be implemented at the virtual object control device 110.

[0020] The virtual object control device 110 can be a device capable of executing functions corresponding to the predetermined attributes of the first virtual object 120. In some embodiments, the virtual object control device 110 can be an electronic device, including but not limited to a personal computer, a server computer, a handheld or laptop device, a multiprocessor system, a consumer electronic product, a minicomputer, a mainframe computer, a distributed computing environment including any one of the above systems or devices, etc.

[0021] The first virtual object 120 and the second virtual object 130 can be objects to be controlled in a virtual environment. The first virtual object 120 and the second virtual object 130 can have various shapes and colors. For example, in an embodiment of a virtual racing environment, the first virtual object 120 can be a virtual vehicle with various shapes and colors. The second virtual object 130 can be a virtual ground with different states. For example, the second virtual object 130 can be a virtual ground simulating ordinary roads, snow, grasslands, etc.

[0022] The instructions 140 can be instructions for the virtual object control device 110 to control the first virtual object 120 and / or the second virtual object 130. The instructions 140 can include various different types of instructions, such as manipulation instructions for virtual objects, function execution instructions, etc., which will be described in detail below.

[0023] In some embodiments, the instruction 140 may be generated by the virtual object control device 120 itself. Additionally or alternatively, in other embodiments, the instruction 140 may be received by the virtual object control device 120 from the outside. For example, in some embodiments, a user may issue an instruction to control a virtual object through a user device (not shown), and then these instructions may be received by the virtual object control device 110 via a network such as the Internet, an intranet, etc. The user device includes, but is not limited to, a personal computer, a server computer, a handheld or laptop device, a mobile device, a multiprocessor system, a consumer electronic product, a minicomputer, a mainframe computer, etc.

[0024] It should be understood that the exemplary environment 100 is described only for illustrative purposes and does not imply any limitation on the scope of the present disclosure. For example, embodiments of the present disclosure may also be applied to environments different from the exemplary environment 100. It should be understood that the specific numbers of the above devices and instructions are given only for illustrative purposes and do not imply any limitation on the scope of the present disclosure. For example, embodiments of the present disclosure may also be applied to more or fewer devices and instructions.

[0025] Figure 2 A flowchart of a method 200 for controlling a virtual object according to an embodiment of the present disclosure is shown. For example, the method 200 may be executed by the virtual object control device 110 as Figure 1 shown. It should be understood that the method 200 may also be executed by other devices, and the scope of the present disclosure is not limited in this regard. It should also be understood that the method 200 may further include additional actions not shown and / or may omit the shown actions, and the scope of the present disclosure is not limited in this regard.

[0026] At 210, the virtual object control device 110 may select a first virtual object that has at least one predetermined attribute. For example, in some embodiments, the virtual object control device 110 may select the first virtual object from a plurality of virtual objects according to a virtual object selection instruction. For example, in some embodiments, the predetermined attribute may correspond to the function of the first virtual object. Additionally, in some embodiments, the virtual object selection instruction may be received from an external user device. For example, in some embodiments, a user may issue a virtual object selection instruction through an interaction operation with the user device. For example, a user may issue a virtual object selection instruction by touching a specific touch area on the user interface of the user device or by causing the user device to sense the user's gesture (such as a hand gesture, a head gesture, etc.).

[0027] In some embodiments, the function corresponding to a predetermined attribute of the first virtual object may be a function capable of changing the state of the first virtual object. For example, in some embodiments, the function corresponding to a predetermined attribute of the first virtual object may be a function of changing the motion parameters of the first virtual object. Alternatively or additionally, in some other embodiments, the function corresponding to a predetermined attribute of the first virtual object may be a function of changing the association between the first virtual object and the second virtual object. Alternatively or additionally, in some further embodiments, the function corresponding to a predetermined attribute of the first virtual object may be a function of changing the state parameters corresponding to the first virtual object. These functions will be described in detail later with reference to Figure 3 to be described in detail later.

[0028] At 220, the virtual object control device 110 may perform the manipulation of the first virtual object according to the manipulation instruction for the first virtual object. For example, in some embodiments, the virtual object control device 110 may control the first virtual object to start moving according to the manipulation instruction for indicating the first virtual object to start moving.

[0029] At 230, the virtual object control device 110 may perform at least one function corresponding to at least one predetermined attribute of the first virtual object according to the determination that a predetermined execution condition is satisfied.

[0030] In some embodiments, the virtual object control device 110 may perform at least one function corresponding to at least one predetermined attribute of the first virtual object according to the determination that the value of the motion parameter of the first virtual object reaches a predetermined threshold. For example, in some embodiments, the motion parameter may be the translational speed, translational acceleration, steering angle, steering angular velocity, inclination, inclination speed, or cumulative movement distance of the first virtual object. Alternatively, in some other embodiments, the virtual object control device 110 may also perform at least one function corresponding to at least one predetermined attribute of the first virtual object according to the determination that different motion parameters all reach their respective predetermined thresholds.

[0031] Taking a virtual racing environment as an example, the virtual object control device 110 can perform corresponding functions according to determining that the translational speed, translational acceleration, steering angle, steering angular velocity, inclination, inclination speed, or cumulative movement distance of the virtual vehicle reaches a predetermined threshold. For example, in some embodiments, the translational speed of the virtual vehicle can be the speed when the virtual vehicle is moving forward, moving backward (e.g., reversing), or coasting; the translational acceleration of the virtual vehicle can be the acceleration when the virtual vehicle is accelerating or decelerating (braking); the steering angle of the virtual vehicle can be the degree of the vehicle body turning when the virtual vehicle is changing lanes or drifting; the steering angular velocity of the virtual vehicle can be the steering angular velocity when the virtual vehicle is turning or drifting; the inclination of the virtual vehicle can be the angle between the virtual vehicle and the virtual ground when the virtual vehicle is partially leaving the virtual ground; the inclination speed of the virtual vehicle can be the speed when the virtual vehicle is partially leaving the virtual ground or the speed when the virtual vehicle returns to the virtual ground after partially leaving the virtual ground; the cumulative movement distance of the virtual vehicle can be the total movement distance of the virtual vehicle within a specific time period. Alternatively, in some embodiments, the translational speed, translational acceleration, steering angle, and steering angular velocity of the virtual vehicle can also be the translational speed, translational acceleration, steering angle, and steering angular velocity when the virtual vehicle is not in contact with the virtual ground (e.g., when the virtual vehicle is airborne). For example, the virtual object control device 110 can perform corresponding functions according to determining that the virtual vehicle completes each lap.

[0032] Alternatively or additionally, in some embodiments, the virtual object control device 110 can perform at least one function corresponding to at least one predetermined attribute of the first virtual object according to determining that the value of the state parameter of the first virtual object reaches a predetermined threshold. For example, in some embodiments, the state parameter can be an integral corresponding to the first virtual object. Alternatively or additionally, in some other embodiments, the state parameter can be an identifier indicating whether the first virtual object is in a stationary state or a moving state. Alternatively or additionally, in some further embodiments, the state parameter can be an identifier indicating what kind of motion state the first virtual object is in.

[0033] Taking a virtual racing environment as an example, in some virtual racing environments, the virtual object control device 110 can accumulate points for the virtual vehicle when the virtual vehicle is in a specific state, such as a drifting motion state or an accelerating motion state. The virtual object control device 110 can increase the acceleration of the virtual vehicle while reducing the points according to a point reduction instruction, so this point can sometimes also be referred to as energy. The virtual object control device 110 can perform corresponding functions according to determining that the point reaches a predetermined threshold. The virtual object control device 110 can also perform corresponding functions when a specific identifier indicates that the virtual vehicle is in a stationary state or a moving state, or when the virtual vehicle is in a specific motion state.

[0034] Alternatively or additionally, in some embodiments, the virtual object control device 110 may execute at least one function corresponding to at least one predetermined attribute of the first virtual object when receiving a function execution instruction indicating to start executing the corresponding function. For example, in some embodiments, the virtual object control device 110 may execute the corresponding function when receiving a function execution instruction sent by the user through the user device. For example, in some embodiments, the user may send a function execution instruction through an interaction operation with the user device. For example, the user may send a function execution instruction by touching a specific touch area on the user interface of the user device or by enabling the user device to sense the user's gesture (e.g., hand gesture, head gesture, etc.).

[0035] In the above exemplary embodiments, by executing at least one function corresponding to at least one predetermined attribute of the virtual object when a predetermined execution condition is satisfied, the state of the virtual object can be changed, the efficiency and convenience of virtual object control can be improved, and thus the user experience can be enhanced.

[0036] Figure 3 A flowchart of a method 300 for executing at least one function corresponding to at least one predetermined attribute of a virtual object according to an embodiment of the present disclosure is shown. Method 300 is an embodiment of block 230 in method 200. For example, method 300 may be executed by a virtual object control device 110 as shown Figure 1 It should be understood that method 300 may also be executed by other devices, and the scope of the present disclosure is not limited in this regard. It should also be understood that method 300 may further include additional actions not shown and / or may omit the shown actions, and the scope of the present disclosure is not limited in this regard.

[0037] At 310, the virtual object control device 110 may determine whether a predetermined execution condition is satisfied. As mentioned above, in some embodiments, the virtual object control device 110 may determine whether a function execution instruction is received. Alternatively or additionally, the virtual object control device 110 may determine whether the values of the motion parameters and / or state parameters of the first virtual object reach a predetermined threshold.

[0038] If the virtual object control device 110 determines that the predetermined execution condition is satisfied, then at 320, the virtual object control device 110 executes at least one function corresponding to at least one predetermined attribute of the first virtual object.

[0039] For example, in some embodiments, when the virtual object control device 110 determines that a function execution instruction has been received, it can determine the current position and the destination position of the first virtual object, and then calculate the target movement path between the current position and the destination position. In some embodiments, the duration for the first virtual object to reach the destination position along the calculated target movement path is less than a predetermined duration. For example, in some embodiments, the virtual object control device 110 can first calculate multiple alternative movement paths, then respectively determine the durations required for the first virtual object to reach the destination position along the multiple alternative movement paths, and finally select the movement path with a relatively shorter duration from the multiple alternative movement paths as the target movement path. Next, the virtual object control device 110 can display the target movement path. In some embodiments, the display of the target movement path can guide the user who transmits a manipulation instruction for the first virtual object through the user device to control the first virtual object to move along the target movement path. Finally, the virtual object control device 110 can set the resistance coefficient between the first virtual object and the second virtual object according to whether the current movement path of the first virtual object matches the target movement path. In some embodiments, taking a virtual racing environment as an example, when the virtual object control device 110 determines that the current movement path coincides with the target movement path, it can reduce the resistance coefficient between the virtual vehicle and the virtual ground. Additionally, in some embodiments, the virtual object control device 110 can directly set the resistance coefficient to 0. Through the above exemplary embodiments, the effect of controlling the virtual object to reach the destination position relatively quickly can be achieved.

[0040] Alternatively or additionally, in some embodiments, when the virtual object control device 110 receives a function execution instruction, it can cancel the association between the movement parameters of the first virtual object and the state parameters of the second virtual object. Taking a virtual racing environment as an example, before receiving the function execution instruction, the virtual object control device 110 can set the influence of different virtual grounds on the movement of the virtual vehicle. For example, when the scenario is that the virtual vehicle moves on different virtual grounds, such as on a virtual road, virtual snow, and virtual grassland, different virtual grounds will have different state parameters, and these state parameters will have different effects on the movement of the virtual vehicle. In other words, there is an association between different virtual grounds and the movement parameters of the virtual vehicle. After the virtual object control device 110 receives the function execution instruction, the virtual object control device 110 can cancel the association between the movement parameters of the virtual vehicle and the state parameters of the virtual ground. Through the above exemplary embodiments, the effect of controlling the movement of the virtual object without being affected by other virtual objects can be achieved.

[0041] Additionally, in some other embodiments, the virtual object control device 110 may adjust the value of the score corresponding to the first virtual object according to the first virtual object being in a predetermined motion state. Still taking the virtual racing environment as an example, in some embodiments, before receiving the function execution instruction, when the virtual vehicle is in a predetermined motion state, such as in a drifting state, the virtual object control device 110 may increase the value of the score corresponding to the virtual vehicle. After receiving the function execution instruction, the virtual object control device 110 may no longer increase the value of the score corresponding to the virtual vehicle when the virtual vehicle is in a drifting state. In the above exemplary embodiments, by canceling the association between the motion parameters of the virtual object and the state parameters of other virtual objects, and at the same time adjusting the value of the score corresponding to the virtual object, it is possible to control the motion of the virtual object without being affected by other virtual objects, and at the same time avoid the problem of unbalanced functions of different virtual objects caused by this function being too strong compared with other functions.

[0042] Alternatively or additionally, in some embodiments, after receiving the function execution instruction, the virtual object control device 110 may increase the value of the motion parameter of the first virtual object, such as increasing the value of the steering angular velocity of the first virtual object. Alternatively or additionally, the virtual object control device 110 may increase the speed, acceleration, etc. of the first virtual object. Taking the virtual racing environment as an example, when the virtual vehicle is steering, the virtual object control device 110 may increase the steering angular velocity of the virtual vehicle, so as to control the virtual vehicle to turn extremely quickly and achieve an enhanced virtual vehicle drifting effect.

[0043] Alternatively or additionally, in some embodiments, after receiving the function execution instruction, the virtual object control device 110 may convert the score corresponding to the virtual object into another score, and this another score has a different type. Taking the virtual racing environment as an example, as mentioned above, in some embodiments, the virtual object control device 110 may increase the score corresponding to the virtual vehicle when the virtual vehicle is in a predetermined motion state, and this score is also called energy. After receiving the function execution instruction, the virtual object control device 110 may convert this score into another score of another type, such as converting it into a virtual reward. Additionally, the virtual object control device 110 may perform this conversion according to a higher conversion rate. In other words, compared with a virtual vehicle that does not have this function, executing this function can obtain a higher virtual reward. Through the above exemplary embodiments, the conversion of the score corresponding to the virtual object can be realized, improving the user experience.

[0044] Alternatively or additionally, in some embodiments, the virtual object control device 110 may increase the value range of the motion parameters of the first virtual object when the motion parameters of the first virtual object reach a predetermined threshold. Taking a virtual racing environment as an example, the virtual object control device 110 may increase the upper limit of the acceleration by a certain percentage, such as 5%, after each lap completed by the virtual vehicle. Additionally, the virtual object control device 110 may also set an upper limit for this increase percentage, such as at most 15%. In the above exemplary embodiments, the value range of the motion parameters or other motion parameters can be automatically adjusted by determining the motion parameters of the first virtual object, thereby increasing the convenience of control.

[0045] Alternatively or additionally, in some embodiments, the virtual object control device 110 may increase the value of the integral corresponding to the first virtual object when the integral corresponding to the first virtual object reaches a predetermined threshold and a function execution instruction is received.

[0046] Taking a virtual racing environment as an example, for ease of understanding, the context of this function is first described: the virtual object control device 110 may increase the value of the integral, also known as energy, when the virtual vehicle is in a specific motion state, such as a drifting state or an accelerating state; when an integral reduction instruction is received, the virtual object control device 110 may increase the acceleration of the virtual vehicle while reducing the energy value, and increase the energy value again according to the time during which the energy value is reduced after the end of the energy value reduction process. For example, originally the energy value obtained by the virtual vehicle through drifting motion or accelerating motion, etc. is 10. After receiving the integral reduction instruction, the energy value is reduced from 10 to 0 within 3 seconds. Then the virtual object control device 110 may increase the energy value from 0 to a value less than 10 again within 3 seconds, such as from 0 to 3. In some embodiments, the virtual object control device 110 may set different parameters corresponding to the energy value, such as setting an energy acquisition parameter corresponding to the energy value increased through a specific motion state; setting an energy collection parameter corresponding to the energy value increased again due to the reduction of the energy value corresponding to the energy acquisition parameter.

[0047] In this context, when the energy value corresponding to the energy harvesting parameter reaches a predetermined threshold, the virtual object control device 110 can enable an interface for receiving function execution instructions, such as a touch control, to make it possible to receive function execution instructions. At this time, if the virtual object control device 110 receives a function execution instruction, it can increase the energy value corresponding to the energy acquisition parameter. Additionally, the virtual object control device 110 can set multiple energy harvesting parameters to increase the energy values corresponding to the multiple energy harvesting parameters simultaneously when the energy value corresponding to the energy acquisition parameter decreases. In this way, compared with the scenario with only one energy harvesting parameter, more energy can be harvested in a shorter time, improving the efficiency of energy harvesting. Moreover, by increasing the energy value corresponding to the energy acquisition parameter, the first virtual object can be controlled to increase to a larger acceleration more quickly, improving the efficiency of virtual object control and enhancing the user experience.

[0048] Alternatively or additionally, in some embodiments, the virtual object control device 110 can first determine whether the first virtual object is in a stationary state or a moving state, which can be achieved through an identifier indicating whether the first virtual object is in a stationary state or a moving state. Then, when it is determined that the first virtual object is in a moving state, the virtual object control device 110 can enable an interface for receiving function execution instructions, such as a touch control, to make it possible to receive function execution instructions. At this time, if the virtual object control device 110 receives a function execution instruction, it can set the drag coefficient between the first virtual object and the second virtual object to a predetermined drag coefficient within a predetermined time period. Taking a virtual racing environment as an example, the virtual object control device 110 can enable an interface for receiving function execution instructions when it determines that the virtual vehicle is in a moving state, and then after receiving the function execution instruction, set the drag coefficient between the virtual vehicle and the virtual ground to a predetermined drag coefficient, such as 0, and after a period of time, reset the drag coefficient to the previous drag coefficient.

[0049] Alternatively or additionally, in some other embodiments, the virtual object control device 110 can first determine what kind of motion state the first virtual object is in, which can be achieved through an identifier indicating what kind of motion state the first virtual object is in. For example, the virtual object control device 110 can enable an interface for receiving function execution instructions when it determines that the first virtual object is in an accelerating state or a decelerating state, and then after receiving the function execution instruction, set the drag coefficient between the virtual vehicle and the virtual ground to a predetermined drag coefficient, such as 0, and after a period of time, reset the drag coefficient to the previous drag coefficient.

[0050] In the above exemplary embodiments, by changing the resistance coefficient between a virtual object and other virtual objects when the virtual object is in a specific motion state, it is possible to control the virtual object to move a relatively long distance, thereby improving the efficiency of virtual object control and enhancing the user experience.

[0051] Figure 4 FIG. 4 shows a schematic block diagram of a device 400 for controlling a virtual object according to an embodiment of the present disclosure. As Figure 4 shown, the device 400 may include: a virtual object selection module 410 configured to select a first virtual object having at least one predetermined attribute; a manipulation execution module 420 configured to execute manipulation of the first virtual object according to a manipulation instruction for the first virtual object; and a function execution module 430 configured to execute at least one function corresponding to at least one predetermined attribute of the first virtual object according to a determination that a predetermined execution condition is satisfied, the at least one function changing the state of the first virtual object.

[0052] In some embodiments, the predetermined execution condition includes at least one of the following: a value of a motion parameter and / or a state parameter of the first virtual object reaches a predetermined threshold; and a function execution instruction is received, the function execution instruction indicating to start executing at least one function.

[0053] In some embodiments, the motion parameters of the first virtual object include at least one of the following: translational speed, translational acceleration, steering angle, steering angular velocity, inclination, inclination speed, and cumulative motion distance.

[0054] In some embodiments, the state parameters of the first virtual object include: an integral corresponding to the first virtual object; an identifier indicating whether the first virtual object is in a stationary state or a motion state; and an identifier indicating what motion state the first virtual object is in.

[0055] In some embodiments, the function execution module 430 includes: a position determination module (not shown) configured to determine a current position and a destination position of the first virtual object; a motion path calculation module (not shown) configured to calculate a target motion path between the current position and the destination position such that a duration for the first virtual object to reach the destination position along the target motion path is less than a predetermined duration; a motion path display module (not shown) configured to display the target motion path; and a first resistance coefficient setting module (not shown) configured to set a resistance coefficient between the first virtual object and a second virtual object based on whether a current motion path of the first virtual object matches the target motion path.

[0056] In some embodiments, the function execution module 430 includes an association cancellation module (not shown) configured to cancel an association between a motion parameter of the first virtual object and a state parameter of a second virtual object.

[0057] In some embodiments, the function execution module 430 includes: a first integral adjustment module (not shown), configured to adjust the value of the integral corresponding to the first virtual object based on the first virtual object being in a predetermined motion state.

[0058] In some embodiments, the function execution module 430 includes: a motion parameter setting module (not shown), configured to increase the value of the motion parameter of the first virtual object; a motion parameter value range setting module (not shown), configured to increase the value range of the motion parameter of the first virtual object; a second drag coefficient setting module (not shown), configured to set the drag coefficient between the first virtual object and the second virtual object to a predetermined drag coefficient within a predetermined time period; a second integral adjustment module (not shown), configured to increase the value of the integral corresponding to the first virtual object; and an integral conversion module (not shown), configured to convert the integral into another integral, where the other integral has a different type from the integral.

[0059] Figure 5 A block diagram of an electronic device 500 capable of implementing the embodiments of the present disclosure is shown. The device 500 can be used to implement Figure 1 the virtual object control device 110. As shown, the device 500 includes a central processing unit (CPU) 501, which can execute various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 502 or computer program instructions loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The CPU 501, ROM 502, and RAM 503 are connected to each other through a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0060] Multiple components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disc, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0061] The processing unit 501 executes the various methods and processes described above, such as processes 200 and 300. For example, in some embodiments, processes 200 and 300 may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed onto device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by CPU 501, one or more steps of processes 200 and 300 described above can be executed. Alternatively, in other embodiments, CPU 501 may be configured to execute processes 200 and 300 by any other suitable means (e.g., by means of firmware).

[0062] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. By way of example, and not limitation, the 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 a chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0063] The program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program codes, when executed by the processor or controller, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine, or entirely on the remote machine or server.

[0064] In the context of the present disclosure, a machine-readable medium may be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. 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, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0065] In addition, although the operations are depicted in a particular order, this should be understood as requiring that the operations be performed in the particular order shown or in sequential order, or that all of the illustrated operations be performed to achieve the desired result. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the foregoing description, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments may also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation may also be implemented separately or in any suitable subcombination in multiple implementations.

[0066] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A method for controlling a virtual object, comprising: Selecting a first virtual object, the first virtual object having at least one predetermined attribute; Performing manipulation of the first virtual object according to a manipulation instruction for the first virtual object; And Performing at least one function corresponding to the at least one predetermined attribute of the first virtual object according to determining that a predetermined execution condition is satisfied, the at least one function changing the state of the first virtual object, wherein performing the at least one function corresponding to the at least one predetermined attribute of the first virtual object includes: Calculating a plurality of alternative motion paths; Selecting, from the plurality of alternative motion paths, a motion path with a relatively shorter duration as a target motion path, such that the duration for the first virtual object to reach a destination position along the target motion path is less than a predetermined duration; In response to the current motion path coinciding with the target motion path, reducing the drag coefficient between the first virtual object and a second virtual object.

2. The method according to claim 1, wherein the predetermined execution condition includes at least one of the following: The value of a motion parameter and / or a state parameter of the first virtual object reaches a predetermined threshold; and Receiving a function execution instruction, the function execution instruction indicating to start executing the at least one function.

3. The method according to claim 2, wherein the motion parameter of the first virtual object includes at least one of the following: Translation speed, translation acceleration, steering angle, steering angular velocity, inclination, inclination speed, and cumulative motion distance.

4. The method according to claim 2, wherein the state parameter of the first virtual object includes: An integral corresponding to the first virtual object; An identifier indicating whether the first virtual object is in a stationary state or a motion state; And An identifier indicating what motion state the first virtual object is in.

5. The method according to any one of claims 1-4, wherein performing the at least one function corresponding to the at least one predetermined attribute of the first virtual object further includes: Determining the current position and the destination position of the first virtual object, the current position and the destination position being used to calculate the target motion path; And Displaying the target motion path.

6. The method according to any one of claims 1-4, wherein performing the at least one function corresponding to the at least one predetermined attribute of the first virtual object includes: Canceling the association between the motion parameter of the first virtual object and the state parameter of the second virtual object.

7. The method according to claim 6, wherein performing the at least one function corresponding to the at least one predetermined attribute of the first virtual object further includes: Adjusting the value of the integral corresponding to the first virtual object based on the first virtual object being in a predetermined motion state.

8. The method according to any one of claims 1-4, wherein performing the at least one function corresponding to the at least one predetermined attribute of the first virtual object includes: Increasing the value of the motion parameter of the first virtual object; Increasing the value range of the motion parameter of the first virtual object; Within a predetermined time period, set the resistance coefficient between the first virtual object and the second virtual object to a predetermined resistance coefficient; Increase the value of the integral corresponding to the first virtual object; And Convert the integral into another integral, and the other integral has a different type from the integral.

9. An apparatus for controlling a virtual object, comprising: A virtual object selection module configured to select a first virtual object having at least one predetermined attribute; A manipulation execution module configured to execute manipulation of the first virtual object according to a manipulation instruction for the first virtual object; And A function execution module configured to execute at least one function corresponding to the at least one predetermined attribute of the first virtual object according to a determination that a predetermined execution condition is satisfied, and the at least one function changes the state of the first virtual object, wherein the function execution module further includes: An alternative motion path calculation module configured to calculate a plurality of alternative motion paths; A target motion path selection module configured to select, as a target motion path, a motion path with a relatively shorter duration from the plurality of alternative motion paths, such that the duration for the first virtual object to reach a destination position along the target motion path is less than a predetermined duration; A first resistance coefficient setting module configured to reduce the resistance coefficient between the first virtual object and the second virtual object in response to a determination that the current motion path coincides with the target motion path.

10. The apparatus according to claim 9, wherein the predetermined execution condition includes at least one of the following: The value of the motion parameter and / or state parameter of the first virtual object reaches a predetermined threshold; and A function execution instruction is received, and the function execution instruction instructs to start executing the at least one function.

11. The apparatus according to claim 10, wherein the motion parameter of the first virtual object includes at least one of the following: Translation speed, translation acceleration, steering angle, steering angular velocity, inclination, inclination speed, and cumulative motion distance.

12. The apparatus according to claim 10, wherein the state parameter of the first virtual object includes: An integral corresponding to the first virtual object; An identifier indicating whether the first virtual object is in a stationary state or a motion state; And An identifier indicating what kind of motion state the first virtual object is in.

13. The apparatus according to any one of claims 9-12, wherein the function execution module includes: A position determination module configured to determine the current position and the destination position of the first virtual object, and the current position and the destination position are used to calculate the target motion path; And A motion path display module configured to display the target motion path.

14. The apparatus according to any one of claims 9-12, wherein the function execution module includes: An association cancellation module configured to cancel the association between the motion parameter of the first virtual object and the state parameter of the second virtual object.

15. The apparatus according to claim 14, wherein the function execution module further includes: A first integral adjustment module configured to adjust the value of the integral corresponding to the first virtual object based on the first virtual object being in a predetermined motion state.

16. The apparatus according to any one of claims 9-12, wherein the function execution module comprises: A motion parameter setting module configured to increase the value of the motion parameter of the first virtual object; A motion parameter value range setting module configured to increase the value range of the motion parameter of the first virtual object; A second drag coefficient setting module configured to set the drag coefficient between the first virtual object and the second virtual object to a predetermined drag coefficient within a predetermined time period; A second integral adjustment module configured to increase the value of the integral corresponding to the first virtual object; And An integral conversion module configured to convert the integral into another integral, the other integral being of a different type from the integral.

17. An electronic device, the electronic device comprising: One or more processors; And A storage device for storing one or more programs, which when executed by the one or more processors cause the one or more processors to implement the method according to any one of claims 1-8.

18. A computer-readable storage medium having stored thereon a computer program, which when executed by a processor implements the method according to any one of claims 1-8.

Citation Information

Patent Citations

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

    CN110090443A