Virtual object control method, device, electronic device and storage medium
By displaying editing controls on the graphical user interface of the virtual object and responding to touch operations, combined with virtual roulette sliding, the problem of low efficiency and difficulty in precise control of the virtual object rotation operation is solved, and efficient and precise rotation control is achieved.
Patent Information
- Application Number
- CN202210753877.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2042-06-28
AI Technical Summary
In the prior art, virtual object rotation operation is inefficient and difficult to control accurately, especially when a large angle adjustment is required.
The virtual object is displayed through the graphical user interface of the terminal device. When the object enters an editable state, the first editing control is displayed, and rotation control is performed in response to the touch operation of the first editing control. At the same time, through the touch operation of the second editing control, further rotation control of the virtual object is realized, and precise angle adjustment is achieved in combination with the virtual roulette sliding.
The efficiency and accuracy of virtual object rotation operation is improved. Users can flexibly control the rotation angle of virtual objects through a variety of touch operations to meet the precise fine-tuning of different needs.
Smart Images

Figure CN115228093B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of virtual object control, and in particular to a method, device, electronic device and storage medium for controlling a virtual object. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the application that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.
[0003] At present, most game systems or other application systems involving virtual object rotation use the method of clicking to rotate to rotate the virtual object in the preview to the desired angle before placing it. There are also methods that determine the orientation of the placed object by the specific object orientation or the plane orientation of the placement point. The above solutions limit the angle of placing buildings or make it very troublesome to rotate virtual objects. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide a control method, device, electronic device and storage medium for a virtual object.
[0005] Based on the above purpose, the present application provides a method for controlling a virtual object, wherein the virtual object is displayed through a graphical user interface of a terminal device, and the method comprises:
[0006] In response to the virtual object entering an editable state, displaying a first editing control on the graphical user interface, the first editing control including a first sub-control and a second sub-control;
[0007] In response to a first touch operation on the first editing control, controlling the virtual object to rotate according to a first preset manner;
[0008] In response to a second touch operation on the second sub-control, displaying a second editing control in an associated area of the second sub-control, the second editing control including the second sub-control and a third sub-control;
[0009] In response to a third touch operation on the second editing control, the virtual object is controlled to rotate according to a second preset manner.
[0010] In some embodiments, in response to the first touch operation on the first editing control, controlling the virtual object to rotate according to a first preset manner includes:
[0011] In response to a first touch operation on a first sub-control in the first editing control, the virtual object is controlled to rotate according to a first preset manner.
[0012] In some embodiments, controlling the virtual object to rotate according to a first preset manner includes:
[0013] Control the virtual object to rotate at a specified angle.
[0014] In some embodiments, the first sub-control includes a first rotation sub-control and a second rotation sub-control;
[0015] The step of responding to a first touch operation on a first subcontrol in the first editing control and controlling the virtual object to rotate in a first preset manner includes:
[0016] In response to a first touch operation on a first rotation subcontrol in the first subcontrol, controlling the virtual object to rotate in a first direction according to a first preset manner; or,
[0017] In response to a first touch operation on a second rotation subcontrol in the first subcontrol, controlling the virtual object to rotate toward a second direction according to a first preset manner;
[0018] The first direction is opposite to the second direction.
[0019] In some embodiments, the method further comprises:
[0020] In response to a first touch operation on a first rotation subcontrol in the first subcontrol, switching a current display mode of the first rotation subcontrol to a target display mode; or,
[0021] In response to a first touch operation on a second rotation sub-control in the first sub-control, a current display mode of the second rotation sub-control is switched to a target display mode.
[0022] In some embodiments, the first sub-control includes a first rotation sub-control and a second rotation sub-control;
[0023] In response to a first touch operation on the first editing control, controlling the virtual object to rotate according to a first preset manner includes:
[0024] In response to a dragging operation of dragging the second subcontrol to the position where the first rotation subcontrol is located, controlling the virtual object to rotate in a first direction according to a first preset manner; or,
[0025] In response to a dragging operation of dragging the second sub-control to a position where the second rotation sub-control is located, controlling the virtual object to rotate in a second direction according to a first preset manner;
[0026] The first direction is opposite to the second direction.
[0027] In some embodiments, the second sub-control is located in the middle of the first rotation sub-control and the second rotation sub-control.
[0028] In some embodiments, the third sub-control is a virtual roulette wheel;
[0029] The step of responding to the third touch operation on the second editing control and controlling the virtual object to rotate according to a second preset manner includes:
[0030] In response to a third touch operation on a second sub-control in the second editing control, controlling the second sub-control to slide within the range of the virtual wheel;
[0031] According to the sliding of the second sub-control, the virtual object is controlled to rotate.
[0032] In some embodiments, controlling the virtual object to rotate according to the sliding of the second sub-control includes:
[0033] The direction and angle of rotation of the virtual object are controlled according to the position of the second sub-control in the virtual wheel.
[0034] In some embodiments, the method further comprises:
[0035] In response to a third touch operation on the second editing control, the first sub-control is controlled to be hidden.
[0036] In some embodiments, after displaying the second editing control in the associated area of the second sub-control, the method further includes:
[0037] In response to a fourth touch operation on the second sub-control, the first sub-control is displayed.
[0038] In some embodiments, the method further comprises:
[0039] In response to the third touch operation being ended, displaying the first sub-control.
[0040] In some embodiments, controlling the virtual object to rotate according to the sliding of the second sub-control includes:
[0041] According to the sliding of the second sub-control, the virtual object is controlled to rotate an angle above a preset threshold.
[0042] Based on the same inventive concept, the exemplary embodiment of the present application further provides a control device for a virtual object, which displays a virtual object through a graphical user interface of a terminal device, and the device includes:
[0043] A first display module, in response to the virtual object entering an editable state, displays a first editing control on the graphical user interface, wherein the first editing control includes a first sub-control and a second sub-control;
[0044] A first control module, in response to a first touch operation on the first editing control, controls the virtual object to rotate according to a first preset manner;
[0045] a second display module, in response to a second touch operation on the second sub-control, displaying a second editing control in an associated area of the second sub-control, wherein the second editing control includes the second sub-control and a third sub-control;
[0046] The second control module controls the virtual object to rotate according to a second preset manner in response to a third touch operation on the second editing control.
[0047] Based on the same inventive concept, an exemplary embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the virtual object control method as described above when executing the program.
[0048] Based on the same inventive concept, an exemplary embodiment of the present application further provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the control method of the virtual object as described above.
[0049] As can be seen from the above, the control method, device, electronic device and storage medium of the virtual object provided by the present application display the virtual object through the graphical user interface of the terminal device. When the virtual object enters an editable state, a first editing control is displayed on the graphical user interface, and the first editing control includes a first sub-control and a second sub-control; in response to a first touch operation on the first editing control, the virtual object is controlled to rotate according to a first preset method; in response to a second touch operation on the second sub-control, a second editing control is displayed in an associated area of the second sub-control, and the second editing control includes the second sub-control and a third sub-control; in response to a third touch operation on the second editing control, the virtual object is controlled to rotate according to a second preset method, so that the virtual object can be controlled to rotate according to two preset methods through the first touch operation and the third touch operation respectively, thereby ensuring the efficiency and accuracy of the rotation operation at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technical members in this field, other drawings can be obtained based on these drawings without paying creative work.
[0051] Figure 1 A flowchart of a method for controlling a virtual object according to an embodiment of the present application;
[0052] Figure 2 This is a schematic diagram of the structure of the first rotary control in an embodiment of the present application;
[0053] Figure 3 This is a schematic diagram of the structure of a second rotation control according to an embodiment of the present application;
[0054] Figure 4 This is a schematic diagram of the structure of a third rotary control according to an embodiment of the present application;
[0055] Figure 5 This is a schematic diagram of the structure of a fourth rotary control according to an embodiment of the present application;
[0056] Figure 6 This is a schematic diagram of the structure of a fifth rotation control according to an embodiment of the present application;
[0057] Figure 7 A schematic diagram of the structure of a control device for a virtual object according to an embodiment of the present application;
[0058] Figure 8 A schematic diagram of the structure of a specific electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0059] The principles and spirit of the present application will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable members of the technical field to better understand and implement the present application, and are not intended to limit the scope of the present application in any way. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to members of the technical field.
[0060] According to an embodiment of the present application, a control method, device, electronic device and storage medium of a virtual object are proposed.
[0061] It should be understood herein that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.
[0062] The following is a detailed explanation of the principles and spirit of the present application with reference to several representative embodiments of the present application. In the prior art, most game systems or other application systems involving the rotation of virtual objects use a click-to-rotate method to rotate the virtual object in the preview to the desired angle before placing it. At this time, if the value of the rotation angle after each click is too large, for example, it is set to 90°, the freedom of the rotated virtual object will be too low. If the value of the rotation angle after each click is too small, for example, it is set to 10°, the operation of the rotated virtual object will be too cumbersome when the angle is adjusted significantly. In addition, in some systems, the rotation of the virtual object can also be freely controlled by sliding operations, but the sliding operation cannot guarantee that the virtual object can be accurately rotated to the angle desired by the user, and cannot satisfy the user's precise fine-tuning of the rotation of the virtual object.
[0063] In order to solve the above problems, the present application provides a method for controlling a virtual object, which specifically includes:
[0064] A virtual object is displayed through a graphical user interface of a terminal device. When the virtual object enters an editable state, a first editing control is displayed on the graphical user interface, wherein the first editing control includes a first sub-control and a second sub-control; in response to a first touch operation on the first editing control, the virtual object is controlled to rotate according to a first preset method; in response to a second touch operation on the second sub-control, a second editing control is displayed in an associated area of the second sub-control, wherein the second editing control includes the second sub-control and a third sub-control; in response to a third touch operation on the second editing control, the virtual object is controlled to rotate according to a second preset method, so that the virtual object can be controlled to rotate according to two preset methods respectively through the first touch operation and the third touch operation, thereby ensuring both the efficiency and accuracy of the rotation operation.
[0065] After introducing the basic principles of the present application, various non-limiting implementation methods of the present application are described in detail below.
[0066] In some specific application scenarios, the virtual object control method of the present application can be applied to various game systems involving the control of virtual objects.
[0067] In some specific application scenarios, the virtual object control method of the present application can be applied to other systems involving the control of virtual objects, for example, the system can be an indoor virtual decoration system or a modeling system.
[0068] The following describes the control method of the virtual object according to the exemplary embodiment of the present application in conjunction with a specific application scenario. It should be noted that the above application scenario is only shown to facilitate understanding of the spirit and principle of the present application, and the implementation of the present application is not limited in this regard. On the contrary, the implementation of the present application can be applied to any applicable scenario.
[0069] The control method of the virtual object in the embodiment of the present application can be run on a terminal device or a server. Among them, the terminal device can be a local terminal device. When the game data processing method is run on a server, it can be a cloud game.
[0070] In an optional implementation, cloud gaming refers to a gaming method based on cloud computing. In the operation mode of cloud gaming, the operating entity of the game program and the entity presenting the game screen are separated. The storage and operation of the control method of the virtual object are completed on the cloud gaming server. The role of the cloud gaming client is to receive and send data and present the game screen. For example, the cloud gaming client can be a display device with data transmission function close to the user side, such as a mobile terminal, a television, a computer, a handheld computer, etc.; but the terminal device for processing game data is a cloud gaming server in the cloud. When playing the game, the player operates the cloud gaming client to send operation instructions to the cloud gaming server. The cloud gaming server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the cloud gaming client through the network. Finally, the cloud gaming client decodes and outputs the game screen.
[0071] In an optional embodiment, the terminal device may be a local terminal device. The local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0072] refer to Figure 1 The embodiment of the present application provides a method for controlling a virtual object, wherein the virtual object is displayed through a graphical user interface of a terminal device, and the method comprises the following steps:
[0073] S101, in response to the virtual object entering an editable state, displaying a first editing control on the graphical user interface, wherein the first editing control includes a first sub-control and a second sub-control.
[0074] In a specific implementation, when the virtual object enters an editable state, the first editing control is displayed on a graphical user interface, and the first editing control includes a first sub-control and a second sub-control. Figure 2 , where 001 represents the second sub-control, and 002 represents the first sub-control. Whether the target virtual object enters the editable state can be determined by a preset trigger condition. The preset trigger condition can be set as needed, and is not specifically limited. For example, the preset trigger condition can be that the virtual object enters the construction state, or enters the rotation mode.
[0075] S102: In response to a first touch operation on the first editing control, control the virtual object to rotate according to a first preset manner.
[0076] In a specific implementation, when a first touch operation on the first editing control is received, the virtual object is controlled to rotate according to a first preset manner. Optionally, the first preset manner can be set as required and is not limited here.
[0077] In some embodiments, in response to the first touch operation on the first editing control, controlling the virtual object to rotate according to a first preset manner includes:
[0078] In response to a first touch operation on a first sub-control in the first editing control, the virtual object is controlled to rotate according to a first preset manner.
[0079] In a specific implementation, when a first touch operation on the first sub-control in the first editing control is received, the virtual object is controlled to rotate according to a first preset manner. Optionally, the first touch operation may be a click operation or a touch operation, which is not limited here.
[0080] In some embodiments, controlling the virtual object to rotate according to a first preset manner includes:
[0081] Control the virtual object to rotate at a specified angle.
[0082] During specific implementation, the specified angle can be set as needed and is not limited here.
[0083] In some embodiments, the first sub-control includes a first rotation sub-control and a second rotation sub-control;
[0084] The step of responding to a first touch operation on a first subcontrol in the first editing control and controlling the virtual object to rotate in a first preset manner includes:
[0085] In response to a first touch operation on a first rotation subcontrol in the first subcontrol, controlling the virtual object to rotate in a first direction according to a first preset manner; or,
[0086] In response to a first touch operation on a second rotation subcontrol in the first subcontrol, controlling the virtual object to rotate toward a second direction according to a first preset manner;
[0087] The first direction is opposite to the second direction.
[0088] It should be noted that the first touch operation of this embodiment may be a click operation, and the first direction and the second direction may be clockwise or counterclockwise, which are not limited here. The first touch operation may realize precise rotation control of the virtual object, for example, each time the first touch operation is performed, the virtual object may be rotated in the first direction or the second direction by a specified angle according to the first preset method.
[0089] In some embodiments, the method further comprises:
[0090] In response to a first touch operation on a first rotation subcontrol in the first subcontrol, switching a current display mode of the first rotation subcontrol to a target display mode; or,
[0091] In response to a first touch operation on a second rotation sub-control in the first sub-control, a current display mode of the second rotation sub-control is switched to a target display mode.
[0092] In a specific implementation, in order to enable the user to easily distinguish the sub-control currently being touched when performing the first touch operation, when the first touch operation on the first rotation sub-control (or the first rotation sub-control) in the first sub-control is received, the current display mode of the first rotation sub-control (or the first rotation sub-control) is switched to the target display mode. Optionally, the target display mode can be set as needed and is not limited here. For example, the color of the first rotation sub-control (or the first rotation sub-control) can be set to a preset color.
[0093] In some embodiments, the first sub-control includes a first rotation sub-control and a second rotation sub-control;
[0094] In response to a first touch operation on the first editing control, controlling the virtual object to rotate according to a first preset manner includes:
[0095] In response to a dragging operation of dragging the second subcontrol to the position where the first rotation subcontrol is located, controlling the virtual object to rotate in a first direction according to a first preset manner; or,
[0096] In response to a dragging operation of dragging the second sub-control to a position where the second rotation sub-control is located, controlling the virtual object to rotate in a second direction according to a first preset manner;
[0097] The first direction is opposite to the second direction.
[0098] In some embodiments, the second sub-control is located in the middle of the first rotation sub-control and the second rotation sub-control.
[0099] In specific implementation, in order to facilitate manipulation, the second sub-control can be set in the middle position between the first rotation sub-control and the second rotation sub-control, refer to Figure 2 or Figure 3 The second subcontrol is the central area of the rotation control, and the first rotation subcontrol and the second rotation subcontrol are located at both ends of the second subcontrol and are symmetrically arranged with the second subcontrol as the center. Optionally, the shapes of the first rotation subcontrol and the second rotation subcontrol can be set as needed, refer to Figure 2-4 It should be noted that those skilled in the art may also set the second sub-control, the first rotation sub-control, and the second rotation sub-control in other shapes as required, which is not limited here. For example, Figure 2 The second sub-control is a circle, and the first rotation sub-control and the second rotation sub-control 002 are parts of an ellipse. Figure 3 In the example, the second subcontrol 001 is a circle, and the first rotation subcontrol and the second rotation subcontrol 002 are rectangles. Figure 4 In the figure, the second sub-control 001 is circular, and the first rotation sub-control and the second rotation sub-control 002 are ring-shaped.
[0100] S103, in response to a second touch operation on the second sub-control, displaying a second editing control in an associated area of the second sub-control, wherein the second editing control includes the second sub-control and a third sub-control.
[0101] In a specific implementation, after the first editing control is displayed on the graphical user interface, when a second touch operation on a second sub-control is received, a second editing control is displayed in an associated area of the second sub-control, the second editing control including the second sub-control and the third sub-control. Optionally, the second touch operation may be a click operation.
[0102] S104: In response to a third touch operation on the second editing control, control the virtual object to rotate according to a second preset manner.
[0103] In a specific implementation, after the second editing control is displayed in the associated area of the second subcontrol, when a third touch operation on the second editing control is received, the virtual object is controlled to rotate according to a second preset manner. Optionally, the second preset manner can be set as needed and is not limited here.
[0104] In some embodiments, the third sub-control is a virtual roulette wheel;
[0105] The step of responding to the third touch operation on the second editing control and controlling the virtual object to rotate according to a second preset manner includes:
[0106] In response to a third touch operation on a second sub-control in the second editing control, controlling the second sub-control to slide within the range of the virtual wheel;
[0107] According to the sliding of the second sub-control, the virtual object is controlled to rotate.
[0108] In a specific implementation, when a third touch operation is received on the second sub-control in the second editing control, the second sub-control is controlled to slide within the range of the virtual wheel, and the virtual object is controlled to rotate according to the sliding of the second sub-control.
[0109] In some embodiments, controlling the virtual object to rotate according to the sliding of the second sub-control includes:
[0110] The direction and angle of rotation of the virtual object are controlled according to the position of the second sub-control in the virtual wheel.
[0111] In a specific implementation, when the second sub-control slides within the range of the virtual wheel, the direction and angle of rotation of the virtual object correspond to the position of the second sub-control in the virtual wheel.
[0112] In some embodiments, the method further comprises:
[0113] In response to a third touch operation on the second editing control, the first sub-control is controlled to be hidden.
[0114] In a specific implementation, in order to accurately control the rotation of the target virtual object through the touch operation on the second sub-control and prevent accidental touches on other operations during the touch operation, the virtual wheel is used to limit the sliding range of the second sub-control to within the virtual wheel, and when receiving the third touch operation on the second editing control, the first sub-control is controlled to be hidden. Figure 6 , where 001 represents the second sub-control, and 003 represents the virtual roulette. Figure 6The third touch operation on the second editing control is being performed, so the first sub-control is hidden at this time. Optionally, the size and shape of the virtual roulette wheel can be set as needed, and is not limited here. For example, the virtual roulette wheel can be set to be circular. Figure 5 , where 001 represents the second sub-control, 002 represents the first sub-control, and 003 represents the virtual roulette wheel (the third sub-control).
[0115] In some embodiments, the method further comprises:
[0116] In response to the third touch operation being ended, displaying the first sub-control.
[0117] In a specific implementation, in order to improve the user experience and prevent the virtual wheel from blocking the scene where the target virtual object is located, the virtual wheel is displayed only when the second touch operation on the second sub-control is received, and the first sub-control is displayed after the third touch operation on the second editing control is stopped. At the same time, the virtual wheel can be hidden after the third touch operation on the second editing control is stopped.
[0118] In some embodiments, after displaying the second editing control in the associated area of the second sub-control, the method further includes:
[0119] In response to a fourth touch operation on the second sub-control, the first sub-control is displayed.
[0120] In specific implementation, after the first sub-control is hidden, a fourth touch operation on the second sub-control is required to redisplay the first sub-control. Optionally, the fourth touch operation may be a click touch operation on the second editing control when the first sub-control is hidden.
[0121] In some embodiments, a rotation scale is displayed on the virtual wheel, so that the user can more accurately control the rotation angle of the target virtual object. Optionally, the specific accuracy of the rotation scale can be set as needed and is not limited here.
[0122] In some embodiments, controlling the virtual object to rotate according to the sliding of the second sub-control includes:
[0123] According to the sliding of the second sub-control, the virtual object is controlled to rotate an angle above a preset threshold.
[0124] In specific implementation, in order to ensure that the first preset method and the second preset method are easier to cooperate, so that when the target virtual object is controlled by the sliding operation and the clicking operation, the connection between them is smoother, and further avoid the inconsistency of the minimum angles generated by the two rotation control methods, and the inability to directly cooperate, according to the sliding of the second sub-control, when the virtual object is controlled to rotate, the virtual object is controlled to rotate to an angle above the preset threshold. Optionally, the preset threshold can be set as needed, and is not limited here. For example, the preset threshold can be set to 5° or 10°.
[0125] In some embodiments, the minimum rotation angle of the target virtual object that can be rotated according to the sliding of the second sub-control is equal to the preset threshold.
[0126] It should be noted that, in some embodiments, controlling the target virtual object in the first preset manner is mainly used to compensate for the lack of precision of the rotation angle caused by controlling the rotation of the virtual object according to the sliding of the second sub-control, that is, it is a kind of rotation angle fine-tuning. Therefore, the specified angle and the preset threshold can be set to be smaller, for example, can be set to 10° or less. In some embodiments, reference Figure 4 The first sub-control 002 is a whole. When the upper part of the first sub-control (the first rotation sub-control) receives a click operation, the target virtual object is rotated along the first direction and at a specified angle. When the lower part of the second area (the second rotation sub-control) receives a click operation, the target virtual object is rotated along the second direction and at a specified angle.
[0127] The control method of the virtual object provided by the present application displays the virtual object through the graphical user interface of the terminal device. When the virtual object enters the editable state, a first editing control is displayed on the graphical user interface, and the first editing control includes a first sub-control and a second sub-control; in response to a first touch operation on the first editing control, the virtual object is controlled to rotate according to a first preset method; in response to a second touch operation on the second sub-control, a second editing control is displayed in the associated area of the second sub-control, and the second editing control includes the second sub-control and a third sub-control; in response to a third touch operation on the second editing control, the virtual object is controlled to rotate according to a second preset method, so that the virtual object can be controlled to rotate according to two preset methods respectively through the first touch operation and the third touch operation, thereby ensuring the efficiency and accuracy of the rotation operation at the same time. In addition, the present application can make the editing control more delicate and compact by setting the display and hiding of the editing control.
[0128] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a control device for a virtual object, which displays the virtual object through a graphical user interface of a terminal device.
[0129] refer to Figure 7 , the control device of the virtual object comprises:
[0130] A first display module 201, in response to the virtual object entering an editable state, displays a first editing control on the graphical user interface, wherein the first editing control includes a first sub-control and a second sub-control;
[0131] A first control module 202 controls the virtual object to rotate in a first preset manner in response to a first touch operation on the first editing control;
[0132] A second display module 203, in response to a second touch operation on the second sub-control, displays a second editing control in an associated area of the second sub-control, where the second editing control includes the second sub-control and a third sub-control;
[0133] The second control module 204 controls the virtual object to rotate according to a second preset manner in response to a third touch operation on the second editing control.
[0134] In some embodiments, the first control module is specifically configured to:
[0135] In response to a first touch operation on a first sub-control in the first editing control, the virtual object is controlled to rotate according to a first preset manner.
[0136] In some embodiments, the first control module is specifically configured to:
[0137] Control the virtual object to rotate at a specified angle.
[0138] In some embodiments, the first sub-control includes a first rotation sub-control and a second rotation sub-control; the first control module is specifically configured to:
[0139] In response to a first touch operation on a first rotation subcontrol in the first subcontrol, controlling the virtual object to rotate in a first direction according to a first preset manner; or,
[0140] In response to a first touch operation on a second rotation subcontrol in the first subcontrol, controlling the virtual object to rotate toward a second direction according to a first preset manner;
[0141] The first direction is opposite to the second direction.
[0142] In some embodiments, the apparatus further comprises:
[0143] In response to a first touch operation on a first rotation subcontrol in the first subcontrol, switching a current display mode of the first rotation subcontrol to a target display mode; or,
[0144] In response to a first touch operation on a second rotation sub-control in the first sub-control, a current display mode of the second rotation sub-control is switched to a target display mode.
[0145] In some embodiments, the first sub-control includes a first rotation sub-control and a second rotation sub-control;
[0146] The first control module is specifically configured as follows:
[0147] In response to a dragging operation of dragging the second subcontrol to the position where the first rotation subcontrol is located, controlling the virtual object to rotate in a first direction according to a first preset manner; or,
[0148] In response to a dragging operation of dragging the second sub-control to a position where the second rotation sub-control is located, controlling the virtual object to rotate in a second direction according to a first preset manner;
[0149] The first direction is opposite to the second direction.
[0150] In some embodiments, the second sub-control is located in the middle of the first rotation sub-control and the second rotation sub-control.
[0151] In some embodiments, the third sub-control is a virtual roulette wheel;
[0152] The second control module is specifically configured as follows:
[0153] In response to a third touch operation on a second sub-control in the second editing control, controlling the second sub-control to slide within the range of the virtual wheel;
[0154] According to the sliding of the second sub-control, the virtual object is controlled to rotate.
[0155] In some embodiments, the second control module is specifically configured to:
[0156] The direction and angle of rotation of the virtual object are controlled according to the position of the second sub-control in the virtual wheel.
[0157] In some embodiments, the apparatus further comprises:
[0158] In response to a third touch operation on the second editing control, the first sub-control is controlled to be hidden.
[0159] In some embodiments, the apparatus further comprises:
[0160] In response to a fourth touch operation on the second sub-control, the first sub-control is displayed.
[0161] In some embodiments, the apparatus further comprises:
[0162] In response to the third touch operation being ended, displaying the first sub-control.
[0163] In some embodiments, the second control module is specifically configured to:
[0164] According to the sliding of the second sub-control, the virtual object is controlled to rotate an angle above a preset threshold.
[0165] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0166] The device of the above embodiment is used to implement the corresponding virtual object control method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0167] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for controlling a virtual object described in any of the above embodiments is implemented.
[0168] Figure 8 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0169] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0170] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0171] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0172] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0173] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0174] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by technical members in this field that the above device may also only include the components necessary for implementing the embodiments of this specification, and does not necessarily include all the components shown in the figure.
[0175] The electronic device of the above embodiment is used to implement the corresponding virtual object control method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0176] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the control method of the virtual object as described in any of the above embodiments.
[0177] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0178] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the control method of the virtual object as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0179] It should be understood by those skilled in the art that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples; in the spirit of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0180] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the following fact, that is, the details of the implementation method of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be completely within the scope of understanding of members of the art). In the case of elaborating specific details (e.g., circuit) to describe exemplary embodiments of the present application, it is obvious to members of the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0181] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to members of ordinary skill in the art based on the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0182] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A method for controlling a virtual object, characterized in that: Displaying a virtual object through a graphical user interface of a terminal device, the method comprising: In response to the virtual object entering an editable state, displaying a first editing control on the graphical user interface, the first editing control including a first sub-control and a second sub-control; In response to a first touch operation on the first editing control, controlling the virtual object to rotate according to a first preset manner; wherein, in response to the first touch operation on the first editing control, controlling the virtual object to rotate according to the first preset manner includes: in response to a first touch operation on a first sub-control in the first editing control, controlling the virtual object to rotate according to the first preset manner; the first preset manner includes rotating the virtual object at a specified angle; In response to a second touch operation on the second sub-control, displaying a second editing control in an associated area of the second sub-control, the second editing control including the second sub-control and a third sub-control; the third sub-control is a virtual wheel; In response to a third touch operation on the second editing control, controlling the virtual object to rotate according to a second preset manner; The step of responding to the third touch operation on the second editing control and controlling the virtual object to rotate according to a second preset manner includes: In response to a third touch operation on a second sub-control in the second editing control, controlling the second sub-control to slide within the range of the virtual wheel; According to the sliding of the second sub-control, controlling the virtual object to rotate; The step of controlling the virtual object to rotate according to the sliding of the second subcontrol includes: The direction and angle of rotation of the virtual object are controlled according to the position of the second sub-control in the virtual wheel.
2. The control method according to claim 1, characterized in that: The controlling the virtual object to rotate according to a first preset manner includes: Control the virtual object to rotate at a specified angle.
3. The control method according to claim 1, characterized in that: The first sub-control includes a first rotation sub-control and a second rotation sub-control; The step of responding to a first touch operation on a first subcontrol in the first editing control and controlling the virtual object to rotate in a first preset manner includes: In response to a first touch operation on a first rotation subcontrol in the first subcontrol, controlling the virtual object to rotate in a first direction according to a first preset manner; or, In response to a first touch operation on a second rotation subcontrol in the first subcontrol, controlling the virtual object to rotate toward a second direction according to a first preset manner; The first direction is opposite to the second direction.
4. The control method according to claim 3, characterized in that: The method further comprises: In response to a first touch operation on a first rotation subcontrol in the first subcontrol, switching a current display mode of the first rotation subcontrol to a target display mode; or, In response to a first touch operation on a second rotation sub-control in the first sub-control, a current display mode of the second rotation sub-control is switched to a target display mode.
5. The control method according to claim 1, characterized in that: The first sub-control includes a first rotation sub-control and a second rotation sub-control; In response to a first touch operation on the first editing control, controlling the virtual object to rotate according to a first preset manner includes: In response to a dragging operation of dragging the second subcontrol to the position where the first rotation subcontrol is located, controlling the virtual object to rotate in a first direction according to a first preset manner; or, In response to a dragging operation of dragging the second sub-control to a position where the second rotation sub-control is located, controlling the virtual object to rotate in a second direction according to a first preset manner; The first direction is opposite to the second direction.
6. The control method according to claim 3 or 5, characterized in that: The second sub-control is located in the middle of the first rotation sub-control and the second rotation sub-control.
7. The control method according to claim 1, characterized in that: The method further comprises: In response to a third touch operation on the second editing control, the first sub-control is controlled to be hidden.
8. The control method according to claim 7, characterized in that: After displaying the second editing control in the associated area of the second sub-control, the method further includes: In response to a fourth touch operation on the second sub-control, the first sub-control is displayed.
9. The control method according to claim 7, characterized in that: The method further comprises: In response to the third touch operation being ended, displaying the first sub-control.
10. The control method according to claim 1, characterized in that: The controlling the virtual object to rotate according to the sliding of the second subcontrol includes: According to the sliding of the second sub-control, the virtual object is controlled to rotate an angle above a preset threshold.
11. A control device for a virtual object, characterized in that: Displaying a virtual object through a graphical user interface of a terminal device, the device comprises: A first display module, in response to the virtual object entering an editable state, displays a first editing control on the graphical user interface, wherein the first editing control includes a first sub-control and a second sub-control; A first control module, in response to a first touch operation on the first editing control, controls the virtual object to rotate according to a first preset mode; the first control module is specifically configured to: in response to a first touch operation on a first sub-control in the first editing control, controls the virtual object to rotate according to a first preset mode; the first preset mode includes rotating the virtual object at a specified angle; a second display module, in response to a second touch operation on the second sub-control, displaying a second editing control in an associated area of the second sub-control, wherein the second editing control includes the second sub-control and a third sub-control; A second control module, in response to a third touch operation on the second editing control, controls the virtual object to rotate according to a second preset manner; Wherein, the third sub-control is a virtual roulette wheel; the second control module is specifically configured as follows: In response to a third touch operation on a second sub-control in the second editing control, controlling the second sub-control to slide within the range of the virtual wheel; According to the sliding of the second sub-control, controlling the virtual object to rotate; The second control module is specifically configured as follows: The direction and angle of rotation of the virtual object are controlled according to the position of the second sub-control in the virtual wheel.
12. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method according to any one of claims 1 to 10 when executing the program.
13. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Method for controlling rotation angles of three-dimensional graphs
CN106296831A
Control method of information processing device and information processing device
CN107239217A