Path generation method and device, electronic equipment and storage medium
By using the path editing interface and editing indicators in game scenes, users can customize the movement path of virtual objects, solving the problem of poor path effects in the existing technology, and achieving path generation that is more in line with needs.
Patent Information
- Application Number
- CN202411047052.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-19
AI Technical Summary
The prior art is difficult to meet the user's needs for moving paths of custom virtual objects in game scenarios, resulting in poorly generated path effects.
By displaying the path editing interface, using reference points and editing indicators, users can adjust the relative spatial position of the target virtual object and set waypoints to generate a moving path that is more in line with user needs.
Improve the movement path effect of virtual objects, making them more in line with user expectations and needs.
Smart Images

Figure CN118976249A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of path generation, and in particular to a path generation method, device, electronic device and storage medium. Background Art
[0002] Under the wave of the Internet, the continuous development and evolution of hardware and software technologies have promoted the emergence of smart devices and software. At the same time, a large number of games with different themes have emerged to meet the needs of users. At present, in order to better make the game scene fit the needs of users, users can customize the style and movement path of some virtual objects in the game scene.
[0003] At present, when users want to set the moving path of virtual objects in the game scene by themselves, they often generate the corresponding moving path by inputting multiple coordinates. However, in the process of building the game scene, due to the different needs of different users, the moving path of the virtual object sometimes changes greatly. The method of generating the moving path only by inputting coordinates cannot meet the user needs well, resulting in poor path effect of the moving path generated for the virtual object. Summary of the invention
[0004] Embodiments of the present application provide a path generation method, device, electronic device, and storage medium, which can improve the path effect of the generated moving path of a virtual object.
[0005] In a first aspect, an embodiment of the present application provides a path generation method, the method comprising:
[0006] Displaying a path editing interface, the path editing interface including a reference point, an editing indicator, and a target virtual object, the editing indicator being used to indicate a partial area of a solid geometry constructed based on the reference point;
[0007] In response to a position adjustment operation on the target virtual object, determining a relative spatial position of the target virtual object relative to the reference point;
[0008] Based on the relative spatial position, setting a waypoint of a target path of the target virtual object;
[0009] Based on the multiple waypoints of the target virtual object, a moving path of the target virtual object is generated.
[0010] In a second aspect, an embodiment of the present application provides a path generation device, the device comprising:
[0011] An interface display module, used to display a path editing interface, wherein the path editing interface includes a reference point, an editing indicator, and a target virtual object, wherein the editing indicator is used to indicate a partial area of a solid geometry constructed based on the reference point;
[0012] a position determination module, configured to determine a relative spatial position of the target virtual object relative to the reference point in response to a position adjustment operation on the target virtual object;
[0013] A waypoint setting module, used for setting a waypoint of a target path of the target virtual object based on the relative spatial position;
[0014] The path generation module is used to generate a moving path of the target virtual object based on the multiple waypoints of the target virtual object.
[0015] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory storing a plurality of instructions; a processor loads instructions from the memory to execute the steps of any one of the path generation methods provided in the embodiments of the present application.
[0016] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a plurality of instructions suitable for loading by a processor to execute the steps of any one of the path generation methods provided in the embodiments of the present application.
[0017] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the steps of any one of the path generation methods provided in the embodiments of the present application.
[0018] By adopting the scheme of the embodiment of the present application, a path editing interface can be displayed, wherein the path editing interface includes a reference point, an editing indicator and a target virtual object, wherein the editing indicator is used to indicate a partial area of a solid geometry constructed based on the reference point; in response to a position adjustment operation for the target virtual object, a relative spatial position of the target virtual object relative to the reference point is determined; based on the relative spatial position, a waypoint of a target path of the target virtual object is set; based on the multiple waypoints of the target virtual object, a moving path of the target virtual object is generated, thereby generating a target path that better meets user needs by setting a reference point and an editing indicator surrounding the reference point, so as to set the waypoints of the target virtual object based on the reference point and the editing indicator, so as to improve the path effect of the generated moving path of the virtual object. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 This is a schematic diagram of an embodiment of the path generation method provided in the embodiments of the present application;
[0021] Figure 2 is a schematic diagram of a game interface provided in an embodiment of the present application;
[0022] Figure 3 is a schematic diagram of a path editing interface provided in an embodiment of the present application;
[0023] Figure 4 is a schematic diagram of the size adjustment process provided in an embodiment of the present application;
[0024] Figure 5 is a schematic diagram of an object position adjustment process provided in an embodiment of the present application;
[0025] Figure 6 is a schematic diagram of the region editing process provided in an embodiment of the present application;
[0026] Figure 7 is a schematic diagram of the structure of a path generation device provided in an embodiment of the present application;
[0027] Figure 8 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application. At the same time, in the description of the embodiments of the present application, the terms "first", "second", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0029] Before explaining the embodiments of the present application in detail, some terms involved in the embodiments of the present application are first explained.
[0030] The game screen displayed in the game interface is the display screen corresponding to the virtual scene displayed by the terminal device. The game screen presents the entire virtual scene, or only presents part of the virtual scene when the virtual scene is relatively large. The virtual scene includes multiple static virtual objects, including the ground, mountains, rocks, vegetation, buildings, etc., and also includes multiple dynamic virtual objects, such as game characters, NPC characters, AI characters and other virtual objects that execute game logic in the virtual scene.
[0031] Among them, the virtual scene is a virtual scene displayed (or provided) when the application is running on a terminal or server. Optionally, the virtual scene can be a simulation environment of the real world, a semi-simulated and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene can be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene. The embodiment of the present application does not limit the dimension of the virtual scene. For example, the virtual scene may include the sky, land, ocean, etc., and the land may include environmental elements such as deserts and cities, and the user can control the game character to move in the virtual scene.
[0032] In an optional implementation, the game screen is a display screen corresponding to a virtual scene displayed by a terminal device, and the game screen may include virtual objects such as game characters, NPC characters, AI characters, etc. that execute game logic in the virtual scene.
[0033] Among them, the game character refers to a dynamic object that can be controlled in a virtual scene. Optionally, the game character can be a virtual person, a virtual animal, a cartoon character, etc. The game character can be a virtual image in the virtual scene that is used to represent the user. The virtual scene may include at least one game character, each of which has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene. In one possible implementation, the user can control the game character to move in the virtual scene, for example, control the game character to run, jump, crawl, etc., and can also control the game character to fight with other game characters using skills, virtual props, etc. provided by the application.
[0034] In this embodiment, the game character may be a virtual character controlled by a user through operations on a client. In some embodiments, the game character may be a virtual person competing in a virtual scene. In some embodiments, the number of game characters participating in the interaction in the virtual scene may be preset or dynamically determined according to the number of clients participating in the interaction.
[0035] Embodiments of the present application provide a path generation method, device, electronic device, and computer-readable storage medium.
[0036] Specifically, this embodiment will be described from the perspective of a path generation device, which can be integrated in an electronic device, that is, the path generation method of the embodiment of the present application can be executed by an electronic device, and optionally, the electronic device can include: a terminal device. The terminal device can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop computer, a game console, or a personal computer (PC) and other devices.
[0037] The path generation method provided in the embodiment of the present application can be applied to a path generation system. The path generation system may include a player terminal device and a server, and the terminal may be a device including both receiving and transmitting hardware, that is, a device having receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. The player terminal device and the server may perform two-way communication via a network.
[0038] Optionally, the server may be an independent server, or a server network or server cluster composed of servers, including but not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud server composed of multiple servers. The cloud server is composed of a large number of computers or network servers based on cloud computing.
[0039] The path generation method in one embodiment of the present disclosure can be run on a local terminal device or a server. When the game interaction method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0040] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game method based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the interactive methods in the game are completed on the cloud game server. The role of the client device is to receive and send data and present the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is responsible for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0041] In an optional embodiment, taking a game as an example, a 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.
[0042] The following is a detailed description in conjunction with the accompanying drawings. In this embodiment, the execution subject is a terminal device as an example. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments. Although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown in the accompanying drawings.
[0043] The path generation method of this embodiment can improve the path effect of the generated moving path of the virtual object.
[0044] Please refer to Figure 1 Taking a terminal as an example, this embodiment provides a path generation method. The specific process of the path generation method can be as follows: Step 101 to Step 104, wherein:
[0045] Step 101: display a path editing interface, wherein the path editing interface includes a reference point, an editing indicator, and a target virtual object, wherein the editing indicator is used to indicate a partial area of a solid geometry constructed based on the reference point.
[0046] It is understandable that, currently, when users want to set the movement path of virtual objects in the game scene by themselves, they often generate the corresponding movement path by inputting multiple coordinates, which fails to meet user needs well, resulting in poor path effect of the movement path generated for the virtual object.
[0047] Therefore, in this embodiment, the terminal introduces a path editing interface, which is an interface for editing the moving path of the target virtual object. The terminal can display the path editing interface so that the user can perform editing operations on the path editing interface.
[0048] The target virtual object is the virtual object for which the moving path currently needs to be generated.
[0049] The path editing interface includes but is not limited to reference points, editing indicators, target virtual objects, etc. The content displayed on the path editing interface assists the user in performing corresponding editing operations to generate a path that meets the user's needs.
[0050] It is understandable that due to the existing method of inputting coordinates, it is easy for the path to deviate too much from what the user actually wants due to inaccurate evaluation of the coordinates. Therefore, in this embodiment, the terminal can introduce reference points to limit the relative distance between waypoints on the path through the reference points.
[0051] Among them, the above-mentioned reference point is used to indicate the reference point required for drawing the target virtual object. The reference point can be a virtual object in the virtual scene, such as stationary objects such as trees and houses in the virtual scene, or moving objects such as flying birds, NPCs, game characters, etc. in the virtual scene; the reference point can also be a point in the virtual scene, such as a point on a virtual object, or a pixel point in the virtual scene.
[0052] It is understandable that different users expect different shapes of the moving path of the target virtual object to change. If the coordinate input method is simply relied on, it will not be possible to ensure that the changing shape of the moving path is consistent with what the user actually wants. It is possible that due to deviations in some of the input coordinates, the final changing shape of the moving path may be different from what the user actually wants. Therefore, in this embodiment, the terminal can introduce an editing indicator to prompt the changing shape of the moving path to meet user needs through the editing indicator.
[0053] Among them, the above-mentioned editing indicator mark is used to indicate a partial area of the solid geometry constructed based on the reference point. The shape of the solid geometry represents the reference figure of the changing shape that the user actually wants. If the changing shape is a tornado shape, then the solid geometry can be a sphere, and accordingly, the partial area of the solid geometry can be a spherical surface, such as the edge area of a circle with the center of the sphere as the section is a partial area.
[0054] In some embodiments, the display of the path editing interface may include: the terminal may display a game interface, wherein the game interface includes virtual objects. Then, in response to an edit trigger operation on a first virtual object and a second virtual object in the virtual objects, the terminal may use the first virtual object as the reference point and the second virtual object as the target virtual object. Finally, the terminal may display the path editing interface based on the reference point and the target virtual object.
[0055] Among them, the above-mentioned editing trigger operation can be a selection operation on the virtual object, such as selection through a click operation, a double-click operation, a sliding operation, etc.; the above-mentioned editing trigger operation can also be an association operation on the virtual object, that is, dragging a virtual object to a preset range of another virtual object to achieve the association between the two, the dragged virtual object is the above-mentioned second virtual object, and the other virtual object is the first virtual object.
[0056] In this embodiment, the reference point and the target virtual object are determined respectively by selecting multiple virtual objects, so as to achieve the setting of the moving path of another virtual corresponding object by one virtual object. The moving path can be a curve or a straight line, which is determined according to the association method between the target virtual object and the reference point. For example, the moving trajectory of the target virtual object is set with the reference point as the center of the circle, that is, a sphere is made with the reference point as the center of the circle, and the sphere is the above-mentioned solid geometry. The target virtual object is used to attach to the spherical surface of the sphere. Then the moving trajectory of the target virtual object set based on the reference point can be a curve.
[0057] Among them, the number of the above-mentioned first virtual objects used as reference points can be one, so as to limit the moving path of the target virtual object based on the only reference point; or, the number of the above-mentioned first virtual objects used as reference points can be at least two, so as to limit the range of the moving path of the target virtual object based on at least two reference points, that is, the moving path can only move within this range.
[0058] Among them, the number of the second virtual objects used as the target virtual objects can be one or at least two. If there is only one, the operations performed on the path editing interface are for this target virtual object; if there are at least two, the at least two second virtual objects can be bound to achieve that one operation on the path editing interface will act on at least two second virtual objects at the same time; or, the terminal can also perform corresponding operations on different second virtual objects on the path editing interface.
[0059] Specifically, the terminal may respond to an editing trigger operation on the first virtual object and the second virtual object in the virtual objects. The terminal may simultaneously select the first virtual object and the second virtual object to determine the target virtual object and the reference point in the time order of the selection, such as the first selected virtual object being the reference point, and the subsequently selected virtual object being the target virtual object. Alternatively, corresponding labels may be configured for the selected virtual objects in a targeted manner, such as after selecting at least two virtual objects, respectively making settings for the two virtual objects, such as setting one virtual object as the first virtual object and setting the other virtual object as the second virtual object.
[0060] For example, refer to Figure 2 and Figure 3 ,like Figure 2 The game interface shown in Figure 2 There are four virtual objects provided in the embodiment, namely virtual object 201, virtual object 202, virtual object 203 and virtual object 204. The terminal can respond to the Figure 2 The trigger operation of the "Multi-select" control in the lower left corner of Figure 2 Then, the terminal can select virtual object 203 and virtual object 204 in response to the selection operation of virtual object 203 and virtual object 204 in sequence. Figure 2 In the details viewing area on the right, you can see that two objects are currently selected.
[0061] If the selection of the virtual object has been completed, the terminal can respond to the user's selection. Figure 2 The selection operation of the "Enable Curve Path Drawing" control in the detail viewing area on the right triggers the completion of the selection of the virtual object. Then, the terminal can determine the target virtual object and the reference point according to the time sequence of the selection, that is, the virtual object 203 is used as the reference point and the virtual object 204 is used as the target virtual object, so as to display the virtual object based on the determined reference point and target virtual object. Figure 3 In the path editing interface shown in the figure, if the solid geometry is set as a sphere with the reference point as the center and the edge area of the circle with the center of the sphere as the section as the partial area, Figure 3 As can be seen in FIG. 1 , the target virtual object is located in a partial area of the solid geometry.
[0062] Step 102: In response to a position adjustment operation on the target virtual object, determine a relative spatial position of the target virtual object relative to the reference point.
[0063] In this embodiment, the terminal can determine the relative spatial position of the target virtual object relative to the reference point in response to the user's position adjustment operation on the path adjustment interface of the target virtual object, so as to determine the waypoint of the target virtual object based on the relative spatial position of the target virtual object relative to the reference point.
[0064] It can be understood that since the above-mentioned target virtual object may be in the partial area of the solid geometry indicated by the editing indicator, the above-mentioned position adjustment of the target virtual object can be to adjust the position of the target virtual object in the partial area to adjust the relative spatial position of the target virtual object and the reference point; it can also be to adjust the size of the solid geometry to adjust the relative spatial position of the target virtual object in the partial area of the solid geometry and the reference point; it can also be to switch the partial area on the solid geometry, and then change the position of the target virtual object to adjust the relative spatial position of the target virtual object in the new area and the reference point, etc. The specific setting can be made according to the needs and is not limited here.
[0065] Optionally, the above relative spatial position includes but is not limited to the relative distance from the reference point on different coordinate axes.
[0066] Specifically, the above-mentioned position adjustment operation can be achieved by operating at least one path editing control set on the path adjustment interface; the above-mentioned position adjustment operation can also be an operation directly implemented on the path adjustment interface, such as selecting the target virtual object on the path adjustment interface, and dragging the target virtual object to move in a partial area of the solid geometry, or, implementing a shortcut gesture on the path adjustment interface to indicate a certain operation through a shortcut gesture.
[0067] In some embodiments, the path editing interface further includes at least one path editing control, the target virtual object is in a partial area of the solid geometry, and the determination of the relative spatial position of the target virtual object relative to the reference point in response to the position adjustment operation on the target virtual object may include: the terminal may adjust the position of the target virtual object on the solid geometry based on the editing operation in response to the editing operation on the path editing control. Then, the terminal may determine the relative spatial position of the target virtual object relative to the reference point based on the position of the target virtual object on the solid geometry.
[0068] Specifically, the path editing control includes a size adjustment control, and the above-mentioned response to the editing operation of the path editing control, based on the editing operation, adjusting the position of the target virtual object on the solid geometry, may include: the terminal may respond to the size editing operation of the size adjustment control, determine the geometric size indicated by the size editing operation. Then, based on the geometric size, with the reference point as a reference, the solid geometry is enlarged or reduced in the path editing interface, thereby increasing the distance between the reference point and the target virtual object, or reducing the distance between the reference point and the target virtual object.
[0069] Among them, the above-mentioned size adjustment control can be a control for information input, which is used to input the corresponding geometric dimensions; it can also include two size adjustment sub-controls and a numerical display area, wherein one size adjustment sub-control is used to increase the geometric dimensions, and the other size adjustment sub-control is used to decrease the geometric dimensions, and the corresponding numerical display area is used to display the adjusted geometric dimensions; it can also include only one size scaling control, so as to reduce or enlarge the preset value by triggering the control, etc., which can be set specifically according to needs and is not limited here.
[0070] Correspondingly, due to the differences in size adjustment controls, the corresponding size editing operations are also different. For example, if the size adjustment control is a control used for information input, the corresponding size editing operation is an information input operation. Another example is that the size adjustment control includes two size adjustment sub-controls and a numerical display area, and the corresponding size editing operation is a trigger operation on the size adjustment sub-control. The trigger operation can be a click operation, a sliding operation, etc., which can be set specifically according to needs and is not limited here.
[0071] For example, Figure 4 As shown, Figure 4 The following is a schematic diagram of the size adjustment process. Figure 4 In the diagram 401, the solid geometry is set as a sphere with the reference point as the center, and the edge area of the circle with the center of the sphere as the section is set as the partial area. The target virtual object is located on the partial area of the solid geometry, and a size adjustment control is displayed in the right area of the diagram 401. The size adjustment control includes two size adjustment sub-controls and a numerical display area. At this time, the size corresponding to the solid geometry is a radius of 122.
[0072] Then, the terminal can increase the size corresponding to the solid geometry in response to the triggering operation of the size adjustment sub-control on the right side, until the size corresponding to the solid geometry is a radius of 140, and then stop the triggering operation of the size adjustment sub-control on the right side, such as Figure 4 402 , in which the size of the solid geometry increases, causing the relative spatial position between the target virtual object and the reference point to change.
[0073] Specifically, the path editing control includes a position adjustment control, and the step of adjusting the position of the target virtual object on the solid geometry based on the editing operation in response to the editing operation on the path editing control may include: the terminal may determine the object position indicated by the object position adjustment operation in response to the object position adjustment operation on the position adjustment control. Then, the terminal may adjust the position of the target virtual object in the partial area of the solid geometry on the path editing interface based on the object position.
[0074] Among them, the above-mentioned position adjustment control can be a control for information input, which is used to input the corresponding object position; it can also include a position adjustment bar, and a position adjustment slider located on the above-mentioned position adjustment bar, so as to adjust the object position by adjusting the position of the position adjustment slider on the position adjustment bar, etc. The specific setting can be made according to needs and is not limited here.
[0075] Correspondingly, due to the differences in position adjustment controls, the corresponding object position adjustment operations are also different. For example, if the object position adjustment control is a control for information input, the corresponding object position adjustment operation is an information input operation, etc., which can be set according to specific needs and is not limited here.
[0076] Correspondingly, due to the differences between the position adjustment controls and the object position adjustment operations, the position adjustment of the corresponding target virtual object in the partial area of the above-mentioned solid geometry is also different. For example, by entering a value, the target object can be prompted to move in a certain direction a distance consistent with the value.
[0077] Specifically, the above-mentioned position adjustment control includes a position adjustment bar and a position adjustment slider located on the above-mentioned position adjustment bar. The above-mentioned response to the editing operation of the above-mentioned path editing control and adjusting the position of the above-mentioned target virtual object on the above-mentioned solid geometry based on the above-mentioned editing operation may include: the terminal may adjust the position of the above-mentioned target virtual object in a partial area of the above-mentioned solid geometry on the above-mentioned path editing interface in response to controlling the sliding operation of the above-mentioned position adjustment slider on the above-mentioned position adjustment bar.
[0078] Accordingly, the above-mentioned determining the relative spatial position of the target virtual object relative to the reference point based on the position of the target virtual object on the solid geometry includes: the terminal can determine the target position of the target virtual object in the partial area of the solid geometry when the position adjustment slider is released in response to the release operation of the position adjustment slider. Then, the terminal can determine the relative spatial position of the target virtual object relative to the reference point based on the target position.
[0079] For example, Figure 5 As shown, Figure 5 The figure shows a schematic diagram of the object position adjustment process. Figure 5 In the diagram 501, the solid geometry is set as a sphere with the reference point as the center, and the edge area of the circle with the center of the sphere as the section is set as the partial area. The target virtual object is located on the partial area of the solid geometry, and a position adjustment control is displayed in the right area of the diagram 501, i.e., a control corresponding to the "position of the object on the circle". The position adjustment control includes a position adjustment bar and a position adjustment slider located on the position adjustment bar.
[0080] Then, the terminal may adjust the position of the target virtual object in the partial area of the solid geometry in response to controlling the position adjustment slider to move right on the position adjustment bar, such as Figure 5 In the diagram 502 , the target virtual object moves to the left in the partial area of the solid geometry, causing the relative spatial position between the target virtual object and the reference point to change.
[0081] Specifically, the path editing control includes an area editing control, and the position of the target virtual object on the solid geometry is adjusted based on the editing operation in response to the editing operation of the path editing control, including: the terminal can update the editing indicator in the path editing interface in response to the area editing operation of the area editing control, and display the updated editing indicator, and the updated editing indicator is used to indicate the target area of the solid geometry. Then, the terminal can display the target virtual object in the target area based on the relative position of the target virtual object in the partial area.
[0082] Among them, the above-mentioned area editing control can be a control for information input, such as dividing the solid geometry into multiple areas in advance and assigning values to each area, so as to determine the editing indicator corresponding to the current target area to be displayed by entering the value corresponding to a certain area, so as to update it, and then update the position of the target virtual object; it can also include an angle adjustment bar, and an angle adjustment slider located on the above-mentioned angle adjustment bar, so as to determine the matching area after rotating the corresponding angle by adjusting the position of the angle adjustment slider on the angle adjustment bar, etc. The specific setting can be made according to the needs and is not limited here.
[0083] Correspondingly, due to the differences in area editing controls, the corresponding area editing operations are also different. For example, the area editing control is a control for information input, and the corresponding area editing operation is an information input operation, etc. The specific settings can be made according to needs and are not limited here.
[0084] Correspondingly, due to the differences in the area editing controls and the area editing operations, the corresponding target area is determined in different ways.
[0085] Specifically, the above-mentioned area editing control includes an angle adjustment bar and an angle adjustment slider located on the above-mentioned angle adjustment bar. The above-mentioned response to the area editing operation of the above-mentioned area editing control, updating the above-mentioned editing indicator in the above-mentioned path editing interface, and displaying the updated editing indicator, may include: the terminal may determine the target angle to be selected in response to the sliding operation of controlling the above-mentioned angle adjustment slider on the above-mentioned angle adjustment bar. Then, based on the above-mentioned target angle and taking the above-mentioned reference point as a reference, the terminal may rotate the above-mentioned editing indicator in the above-mentioned path editing interface, and display the rotated editing indicator.
[0086] For example, Figure 6 As shown, Figure 6 The following is a schematic diagram of the region editing process. Figure 6 In the diagram 601, the solid geometry is set as a sphere with the reference point as the center, and the edge area of the circle with the center of the sphere as the section is set as the partial area. The target virtual object is located on the partial area of the solid geometry, and in the right area of the diagram 601, an area editing control is displayed, that is, a control corresponding to the "circular plane rotation angle", and the above-mentioned area editing control includes an angle adjustment bar and an angle adjustment slider located on the above-mentioned angle adjustment bar.
[0087] Then, the terminal can respond to the control of the angle adjustment slider on the angle adjustment bar to move rightward, and rotate the editing indicator in the path editing interface by a corresponding angle based on the reference point, such as Figure 6 In the diagram 602, the editing indicator rotates on the sphere to point to a new target area, which is still the edge area of a circle with the center of the sphere as a section, causing the directions of the two to change, thereby causing the target virtual object to change accordingly, causing the relative spatial position between the target virtual object and the reference point to change.
[0088] Step 103: Based on the relative spatial position, a waypoint of the target path of the target virtual object is set.
[0089] In this embodiment, the terminal can respond to the setting completion event of the relative spatial position of the target virtual object to set a waypoint of the target path of the target virtual object based on the relative spatial position. The waypoint can be used as a waypoint of the target path of the target virtual object in a key frame, or as a waypoint of the target path of the target virtual object in a normal frame, etc., which can be set according to needs and is not limited here.
[0090] Specifically, the above-mentioned path editing interface also includes waypoint setting controls, such as Figures 4 to 6The "Set Waypoint" control shown, which sets a waypoint on the target path of the target virtual object based on the relative spatial position, may include: the terminal may respond to a trigger operation on the waypoint setting control to complete an event with the setting of the relative spatial position of the target virtual object, and then the terminal may set a waypoint on the target path of the target virtual object under a key frame based on the relative spatial position.
[0091] Step 104: Generate a moving path of the target virtual object based on the multiple waypoints of the target virtual object.
[0092] In this embodiment, the terminal can obtain multiple waypoints of the target virtual object through the above steps, and thus can generate a moving path of the target virtual object based on the multiple waypoints of the target virtual object, so as to set the moving path of the target virtual object through more accurate and standard means, so that the moving path of the target virtual object is more regular and meets user needs.
[0093] Specifically, since the waypoints can be used as waypoints of the target path of the target virtual object in a key frame, the above-mentioned generation of the moving path of the target virtual object based on the multiple waypoints of the target virtual object includes: obtaining the moving duration configured for the target virtual object, and generating the moving path of the target virtual object based on the moving duration and the waypoints in multiple key frames. The waypoints of the ordinary frames between the key frames can be generated by interpolation.
[0094] From the above content, it can be seen that by displaying the path editing interface, the path editing interface includes a reference point, an editing indicator and a target virtual object, the editing indicator is used to indicate a partial area of the solid geometry constructed based on the reference point; in response to a position adjustment operation for the target virtual object, the relative spatial position of the target virtual object relative to the reference point is determined; based on the relative spatial position, a waypoint of the target path of the target virtual object is set; based on the multiple waypoints of the target virtual object, a moving path of the target virtual object is generated, so that by setting a reference point and an editing indicator around the reference point, the waypoints of the target virtual object are set based on the reference point and the editing indicator, so as to generate a target path that better meets user needs, so as to improve the path effect of the generated moving path of the virtual object.
[0095] This embodiment also provides a path generation device, which can be integrated into a terminal device. Figure 7 As shown, the path generating device may include:
[0096] The interface display module 701 is used to display a path editing interface, wherein the path editing interface includes a reference point, an editing indicator, and a target virtual object, wherein the editing indicator is used to indicate a partial area of a solid geometry constructed based on the reference point;
[0097] A position determination module 702, configured to determine a relative spatial position of the target virtual object relative to the reference point in response to a position adjustment operation on the target virtual object;
[0098] A waypoint setting module 703, used for setting a waypoint of a target path of the target virtual object based on the relative spatial position;
[0099] The path generation module 704 is used to generate a moving path of the target virtual object based on the multiple waypoints of the target virtual object.
[0100] In some embodiments, the interface display module 701 is specifically used for:
[0101] Display a game interface, wherein the game interface includes virtual objects;
[0102] In response to an edit triggering operation on a first virtual object and a second virtual object among the virtual objects, taking the first virtual object as the reference point and taking the second virtual object as the target virtual object;
[0103] Based on the reference point and the target virtual object, the path editing interface is displayed.
[0104] In some embodiments, the path editing interface further includes at least one path editing control, the target virtual object is in a partial area of the solid geometry, and the position determination module 702 is specifically used to:
[0105] In response to an editing operation on the path editing control, adjusting the position of the target virtual object on the solid geometry based on the editing operation;
[0106] Based on the position of the target virtual object on the solid geometry, a relative spatial position of the target virtual object relative to the reference point is determined.
[0107] In some embodiments, the path editing control includes a size adjustment control, and the position determination module 702 is specifically used to:
[0108] In response to a size editing operation on the size adjustment control, determining a geometric size indicated by the size editing operation;
[0109] Based on the geometric dimensions and taking the reference point as a reference, the three-dimensional geometry is enlarged or reduced in the path editing interface.
[0110] In some embodiments, the path editing control includes an object position adjustment control, the position adjustment control includes a position adjustment bar and a position adjustment slider located on the position adjustment bar, and the position determination module 702 is specifically used to:
[0111] In response to controlling the sliding operation of the position adjustment slider on the position adjustment bar, the position of the target virtual object in the partial area of the solid geometry is adjusted on the path editing interface.
[0112] In some embodiments, the location determination module 702 is specifically used to:
[0113] In response to a release operation of the position adjustment slider, determining a target position of the target virtual object in the partial area of the solid geometry when the position adjustment slider is released;
[0114] Based on the target position, a relative spatial position of the target virtual object relative to the reference point is determined.
[0115] In some embodiments, the path editing control includes an area editing control, and the location determination module 702 is specifically used to:
[0116] In response to the region editing operation on the region editing control, the editing indicator is updated in the path editing interface and the updated editing indicator is displayed, wherein the updated editing indicator is used to indicate the target region of the solid geometry;
[0117] Based on the relative position of the target virtual object in the partial area, the target virtual object is displayed in the target area.
[0118] In some embodiments, the region editing control includes an angle adjustment bar and an angle adjustment slider located on the angle adjustment bar, and the position determination module 702 is specifically used to:
[0119] In response to controlling the sliding operation of the angle adjustment slider on the angle adjustment bar, determining a target angle to be selected;
[0120] Based on the target angle and taking the reference point as a reference, the editing indicator is rotated in the path editing interface, and the rotated editing indicator is displayed.
[0121] In some embodiments, the path editing interface further includes a waypoint setting control, and the waypoint setting module 703 is specifically used to:
[0122] In response to a triggering operation on the waypoint setting control, a waypoint of a target path of the target virtual object is set at a key frame based on the relative spatial position;
[0123] The above-mentioned path generation module 704 is specifically used for:
[0124] The moving duration configured for the target virtual object is obtained, and a moving path of the target virtual object is generated based on the moving duration and waypoints under a plurality of key frames.
[0125] From the above content, it can be seen that by displaying the path editing interface, the path editing interface includes a reference point, an editing indicator and a target virtual object, the editing indicator is used to indicate a partial area of the solid geometry constructed based on the reference point; in response to a position adjustment operation for the target virtual object, the relative spatial position of the target virtual object relative to the reference point is determined; based on the relative spatial position, a waypoint of the target path of the target virtual object is set; based on the multiple waypoints of the target virtual object, a moving path of the target virtual object is generated, so that by setting a reference point and an editing indicator around the reference point, the waypoints of the target virtual object are set based on the reference point and the editing indicator, so as to generate a target path that better meets user needs, so as to improve the path effect of the generated moving path of the virtual object.
[0126] Accordingly, an embodiment of the present application further provides an electronic device, which may be a terminal, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA) and other terminal devices. Alternatively, the electronic device may be a server.
[0127] like Figure 8 As shown, Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 800 includes a processor 801 having one or more processing cores, a memory 802 having one or more computer-readable storage media, and a computer program stored in the memory 802 and executable on the processor. The processor 801 is electrically connected to the memory 802. Those skilled in the art will appreciate that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.
[0128] The processor 801 is the control center of the electronic device 800, and uses various interfaces and lines to connect various parts of the entire electronic device 800. By running or loading software programs and / or units stored in the memory 802, and calling data stored in the memory 802, the processor 801 executes various functions of the electronic device 800 and processes data, thereby monitoring the electronic device 800 as a whole. The processor 801 can be a central processing unit CPU, a graphics processing unit GPU, a network processor (Network Processor, NP), etc., and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application.
[0129] In the embodiment of the present application, the processor 801 in the electronic device 800 will load instructions corresponding to the processes of one or more application programs into the memory 802 according to the following steps, and the processor 801 will run the application programs stored in the memory 802 to implement various functions, such as:
[0130] Displaying a path editing interface, the path editing interface including a reference point, an editing indicator, and a target virtual object, the editing indicator being used to indicate a partial area of a solid geometry constructed based on the reference point;
[0131] In response to a position adjustment operation on the target virtual object, determining a relative spatial position of the target virtual object relative to the reference point;
[0132] Based on the relative spatial position, setting a waypoint of a target path of the target virtual object;
[0133] Based on the multiple waypoints of the target virtual object, a moving path of the target virtual object is generated.
[0134] In some embodiments, the above display path editing interface includes:
[0135] Display a game interface, wherein the game interface includes virtual objects;
[0136] In response to an edit triggering operation on a first virtual object and a second virtual object among the virtual objects, taking the first virtual object as the reference point and taking the second virtual object as the target virtual object;
[0137] Based on the reference point and the target virtual object, the path editing interface is displayed.
[0138] In some embodiments, the path editing interface further includes at least one path editing control, the target virtual object is in a partial area of the solid geometry, and in response to a position adjustment operation on the target virtual object, determining a relative spatial position of the target virtual object relative to the reference point includes:
[0139] In response to an editing operation on the path editing control, adjusting the position of the target virtual object on the solid geometry based on the editing operation;
[0140] Based on the position of the target virtual object on the solid geometry, a relative spatial position of the target virtual object relative to the reference point is determined.
[0141] In some embodiments, the path editing control includes a size adjustment control, and in response to an editing operation on the path editing control, adjusting the position of the target virtual object on the solid geometry based on the editing operation includes:
[0142] In response to a size editing operation on the size adjustment control, determining a geometric size indicated by the size editing operation;
[0143] Based on the geometric dimensions and taking the reference point as a reference, the three-dimensional geometry is enlarged or reduced in the path editing interface.
[0144] In some embodiments, the path editing control includes an object position adjustment control, the position adjustment control includes a position adjustment bar, and a position adjustment slider located on the position adjustment bar, and the response to the editing operation on the path editing control, based on the editing operation, adjusting the position of the target virtual object on the solid geometry includes:
[0145] In response to controlling the sliding operation of the position adjustment slider on the position adjustment bar, the position of the target virtual object in the partial area of the solid geometry is adjusted on the path editing interface.
[0146] In some embodiments, determining the relative spatial position of the target virtual object relative to the reference point based on the position of the target virtual object on the three-dimensional geometry includes:
[0147] In response to a release operation of the position adjustment slider, determining a target position of the target virtual object in the partial area of the solid geometry when the position adjustment slider is released;
[0148] Based on the target position, a relative spatial position of the target virtual object relative to the reference point is determined.
[0149] In some embodiments, the path editing control includes an area editing control, and in response to an editing operation on the path editing control, adjusting the position of the target virtual object on the solid geometry based on the editing operation includes:
[0150] In response to the region editing operation on the region editing control, the editing indicator is updated in the path editing interface and the updated editing indicator is displayed, wherein the updated editing indicator is used to indicate the target region of the solid geometry;
[0151] Based on the relative position of the target virtual object in the partial area, the target virtual object is displayed in the target area.
[0152] In some embodiments, the region editing control includes an angle adjustment bar and an angle adjustment slider located on the angle adjustment bar, and in response to the region editing operation on the region editing control, updating the editing indicator in the path editing interface and displaying the updated editing indicator include:
[0153] In response to controlling the sliding operation of the angle adjustment slider on the angle adjustment bar, determining a target angle to be selected;
[0154] Based on the target angle and taking the reference point as a reference, the editing indicator is rotated in the path editing interface, and the rotated editing indicator is displayed.
[0155] In some embodiments, the path editing interface further includes a waypoint setting control, and the step of setting a waypoint of the target path of the target virtual object based on the relative spatial position includes:
[0156] In response to a triggering operation on the waypoint setting control, a waypoint of a target path of the target virtual object is set at a key frame based on the relative spatial position;
[0157] The step of generating a moving path of the target virtual object based on the multiple waypoints of the target virtual object includes:
[0158] The moving duration configured for the target virtual object is obtained, and a moving path of the target virtual object is generated based on the moving duration and waypoints under a plurality of key frames.
[0159] Therefore, the electronic device 800 provided by this embodiment can bring the following technical effects: improving the path effect of the moving path of the generated virtual object.
[0160] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0161] Optional, such as Figure 8 As shown, the electronic device 800 further includes: a touch screen 803, a radio frequency circuit 804, an audio circuit 805, an input unit 806, and a power supply 807. The processor 801 is electrically connected to the touch screen 803, the radio frequency circuit 804, the audio circuit 805, the input unit 806, and the power supply 807, respectively. Those skilled in the art can understand that Figure 8 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0162] The touch display screen 803 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 803 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 801, and can receive the command sent by the processor 801 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 801 to determine the type of touch event, and then the processor 801 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 803 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 803 can also be used as a part of the input unit 806 to realize the input function.
[0163] The radio frequency circuit 804 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals with the network device or other electronic devices.
[0164] The audio circuit 805 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 805 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 805 and converted into audio data, and then the audio data is output to the processor 801 for processing, and then sent to another electronic device through the radio frequency circuit 804, or the audio data is output to the memory 802 for further processing. The audio circuit 805 may also include an earplug jack to provide communication between an external headset and an electronic device.
[0165] The input unit 806 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0166] The power supply 807 is used to supply power to various components of the electronic device 800. Optionally, the power supply 807 can be logically connected to the processor 801 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 807 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0167] although Figure 8 Not shown, the electronic device 800 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0168] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0169] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0170] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute any path generation method provided in the embodiment of the present application. The computer program can execute the following steps of the path generation method:
[0171] Displaying a path editing interface, the path editing interface including a reference point, an editing indicator, and a target virtual object, the editing indicator being used to indicate a partial area of a solid geometry constructed based on the reference point;
[0172] In response to a position adjustment operation on the target virtual object, determining a relative spatial position of the target virtual object relative to the reference point;
[0173] Based on the relative spatial position, setting a waypoint of a target path of the target virtual object;
[0174] Based on the multiple waypoints of the target virtual object, a moving path of the target virtual object is generated.
[0175] It can be seen that the computer program can be loaded by the processor to execute any path generation method provided in the embodiments of the present application, thereby bringing the following technical effects: improving the path effect of the moving path of the generated virtual object.
[0176] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0177] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0178] Since the computer program stored in the computer-readable storage medium can execute any path generation method provided in the embodiments of the present application, the beneficial effects that can be achieved by any path generation method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0179] According to one aspect of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the methods provided in various optional implementations of the above embodiments.
[0180] In the above-mentioned embodiments of the path generation device, computer-readable storage medium, electronic device, and computer program product, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process and beneficial effects of the above-mentioned path generation device, computer-readable storage medium, computer program product, electronic device and its corresponding units can refer to the description of the path generation method in the above embodiment, and will not be repeated here.
[0181] The above is a detailed introduction to a path generation method, device, electronic device, computer-readable storage medium and computer program product provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A path generation method, characterized in that: The method comprises: Displaying a path editing interface, the path editing interface including a reference point, an editing indicator, and a target virtual object, the editing indicator being used to indicate a partial area of a solid geometry constructed based on the reference point; In response to a position adjustment operation on the target virtual object, determining a relative spatial position of the target virtual object with respect to the reference point; Based on the relative spatial position, setting a waypoint of a target path of the target virtual object; Based on the multiple waypoints of the target virtual object, a moving path of the target virtual object is generated.
2. The path generation method according to claim 1, characterized in that: The display path editing interface includes: Displaying a game interface, wherein the game interface includes a virtual object; In response to an edit triggering operation on a first virtual object and a second virtual object among the virtual objects, taking the first virtual object as the reference point and taking the second virtual object as the target virtual object; The path editing interface is displayed based on the reference point and the target virtual object.
3. The path generation method according to claim 1, characterized in that: The path editing interface further includes at least one path editing control, the target virtual object is in a partial area of the solid geometry, and in response to a position adjustment operation on the target virtual object, determining a relative spatial position of the target virtual object relative to the reference point includes: In response to an editing operation on the path editing control, adjusting a position of the target virtual object on the solid geometry based on the editing operation; Based on the position of the target virtual object on the solid geometry, a relative spatial position of the target virtual object relative to the reference point is determined.
4. The path generation method according to claim 3, characterized in that: The path editing control includes a size adjustment control, and in response to an editing operation on the path editing control, adjusting the position of the target virtual object on the solid geometry based on the editing operation, includes: In response to a size editing operation on the size adjustment control, determining a geometric size indicated by the size editing operation; Based on the geometric size and taking the reference point as a reference, the three-dimensional geometry is enlarged or reduced in the path editing interface.
5. The path generation method according to claim 3, characterized in that: The path editing control includes an object position adjustment control, the position adjustment control includes a position adjustment bar and a position adjustment slider located on the position adjustment bar, and the response to the editing operation of the path editing control is based on the editing operation, and the position of the target virtual object on the solid geometry is adjusted, including: In response to controlling the sliding operation of the position adjustment slider on the position adjustment bar, the position of the target virtual object in the partial area of the solid geometry is adjusted on the path editing interface.
6. The path generation method according to claim 5, characterized in that: The determining, based on the position of the target virtual object on the solid geometry, the relative spatial position of the target virtual object relative to the reference point comprises: In response to a release operation of the position adjustment slider, determining a target position of the target virtual object in the partial area of the solid geometry when the position adjustment slider is released; Based on the target position, a relative spatial position of the target virtual object relative to the reference point is determined.
7. The path generation method according to claim 3, characterized in that: The path editing control includes an area editing control, and the step of adjusting the position of the target virtual object on the solid geometry in response to an editing operation on the path editing control based on the editing operation includes: In response to the region editing operation on the region editing control, updating the editing indication mark in the path editing interface and displaying the updated editing indication mark, wherein the updated editing indication mark is used to indicate the target region of the solid geometry; The target virtual object is displayed in the target area based on the relative position of the target virtual object in the partial area.
8. The path generation method according to claim 7, characterized in that: The region editing control includes an angle adjustment bar and an angle adjustment slider located on the angle adjustment bar, and in response to the region editing operation on the region editing control, updating the editing indicator in the path editing interface and displaying the updated editing indicator includes: In response to controlling the sliding operation of the angle adjustment slider on the angle adjustment bar, determining a target angle to be selected; Based on the target angle and taking the reference point as a reference, the editing indication mark is rotated in the path editing interface, and the rotated editing indication mark is displayed.
9. The path generation method according to any one of claims 1 to 8, characterized in that: The path editing interface also includes a waypoint setting control, and the step of setting a waypoint of the target path of the target virtual object based on the relative spatial position includes: In response to a triggering operation on the waypoint setting control, setting a waypoint of a target path of the target virtual object under a key frame based on the relative spatial position; The step of generating a moving path of the target virtual object based on the multiple waypoints of the target virtual object comprises: A moving duration configured for the target virtual object is obtained, and a moving path of the target virtual object is generated based on the moving duration and waypoints under a plurality of key frames.
10. A path generation device, characterized in that: The device comprises: An interface display module, used to display a path editing interface, wherein the path editing interface includes a reference point, an editing indicator, and a target virtual object, wherein the editing indicator is used to indicate a partial area of a solid geometry constructed based on the reference point; a position determination module, configured to determine a relative spatial position of the target virtual object relative to the reference point in response to a position adjustment operation on the target virtual object; A waypoint setting module, used for setting a waypoint of a target path of the target virtual object based on the relative spatial position; The path generation module is used to generate a moving path of the target virtual object based on multiple waypoints of the target virtual object.
11. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the steps of the path generation method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps of the path generation method according to any one of claims 1 to 9.
