Object movement control method, device and electronic equipment

By displaying spatial position reference markers in the 3D game scene, players can select the first position information and direction of the target movement on the 2D plane, which solves the problem of inaccurate movement in 3D games, realizes the precise movement of target objects, and improves the ease of game operation and experience.

CN115738244BActive Publication Date: 2026-04-07NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-13
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

In 3D game scenes, players find it difficult to precisely control the movement of game items, resulting in cumbersome controls and negatively impacting the gaming experience.

Method used

By displaying spatial location reference markers in the 3D game scene, players can select the first location information of the target's movement position on the 2D plane, and combine this with the direction selection operation to determine the second location information of the target's movement position, thereby accurately locating the target object's movement position in 3D space.

Benefits of technology

It simplifies the movement of target objects in a 3D game scene, improving the player's gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115738244B_ABST
    Figure CN115738244B_ABST
Patent Text Reader

Abstract

The application provides a mobile control method and device of an object and electronic equipment. In response to a first trigger operation, a spatial position reference mark is displayed in a three-dimensional game scene. In response to a first position selection operation acting on a scene picture, first position information of a target mobile position corresponding to a target object in a first plane in the three-dimensional game scene is determined. In response to a second position selection operation acting on the scene picture, second position information of the target mobile position in a first direction in the three-dimensional game scene is determined. Spatial position information of the target mobile position in the three-dimensional game scene is determined based on the first position information and the second position information, and the target object is controlled to move to the target mobile position based on the spatial position information. This way can accurately determine the spatial position information of the target mobile position, thereby simplifying the operation of controlling the target object to move and improving the game experience of the player.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of game interaction, in particular to a moving control method and device of an object and an electronic device. BACKGROUND

[0002] In the related art, when a player wants to control a movable game prop to reach a certain position in a game scene, the player can click a display position on the screen corresponding to the position, so that the game prop advances to the position and reaches the position. However, when a three-dimensional scene is displayed in the game scene, the position clicked by the player is not accurate, so that the moving direction of the game prop needs to be adjusted again in the process of advancing the game prop. This way is relatively cumbersome in operation process, and the game experience of the player is poor. SUMMARY

[0003] Therefore, the present application aims to provide a moving control method and device of an object and an electronic device to simplify the operation of the player in controlling a target object to move in a three-dimensional game scene and improve the game experience of the player.

[0004] In a first aspect, an embodiment of the present application provides a moving control method of an object. A graphical user interface is provided by a terminal device. The graphical user interface displays a scene picture of a three-dimensional game scene in which a target object is located. The method comprises the following steps: in response to a first trigger operation, a spatial position reference mark is displayed in the three-dimensional game scene. The spatial position reference mark is used to indicate a position in a first plane in the three-dimensional game scene and a position in a first direction perpendicular to the first plane. In response to a first position selection operation acting on the scene picture, first position information of a target moving position corresponding to the target object in the first plane is determined. In response to a second position selection operation acting on the scene picture, second position information of the target moving position in the first direction is determined. Spatial position information of the target moving position in the three-dimensional game scene is determined based on the first position information and the second position information. The target object is controlled to move to the target moving position based on the spatial position information.

[0005] In a second aspect, an embodiment of the present application provides a mobile control device of an object, which provides a graphical user interface through a terminal device; the graphical user interface displays a scene picture of a three-dimensional game scene in which a target object is located; the device comprises: a spatial position reference mark display module, configured to display a spatial position reference mark in the three-dimensional game scene in response to a first trigger operation; wherein the spatial position reference mark is used to indicate a position in a first plane and a position in a first direction perpendicular to the first plane in the three-dimensional game scene; a first position information determination module, configured to determine first position information of a target mobile position corresponding to the target object in the first plane in response to a first position selection operation on the scene picture; a second position information determination module, configured to determine second position information of the target mobile position in the first direction in response to a second position selection operation on the scene picture; and a moving module, configured to determine spatial position information of the target mobile position in the three-dimensional game scene based on the first position information and the second position information, and control the target object to move to the target mobile position based on the spatial position information.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the mobile control method of the object.

[0007] In a fourth aspect, an embodiment of the present application provides a machine readable storage medium, which stores machine executable instructions, and the machine executable instructions, when invoked and executed by a processor, cause the processor to implement the mobile control method of the object.

[0008] The embodiments of the present application have the following beneficial effects:

[0009] The mobile control method, device and electronic device of the object described above display a spatial position reference mark in the three-dimensional game scene in response to a first trigger operation; determine first position information of a target mobile position corresponding to the target object in a first plane in the three-dimensional game scene in response to a first position selection operation on the scene picture; determine second position information of the target mobile position in a first direction in the three-dimensional game scene in response to a second position selection operation on the scene picture; determine spatial position information of the target mobile position in the three-dimensional game scene based on the first position information and the second position information, and control the target object to move to the target mobile position based on the spatial position information. This way can accurately determine the spatial position information of the target mobile position, thereby simplifying the operation of controlling the target object to move and improving the game experience of the player.

[0010] Other features and advantages of the present application will be set forth in the descriptions that follow, and in part will be apparent from the description, or can be learned by practice of the application. The purposes and other advantages of the present application will be realized and attained by the structures particularly pointed out in the description, claims and drawings.

[0011] In order to make the above objectives, features and advantages of the present application more apparent, the following will describe a preferred embodiment in detail, and the accompanying drawings will be referred to, as follows. BRIEF DESCRIPTION OF DRAWINGS

[0012] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings needed to be used in the specific embodiments or the prior art description. Obviously, the drawings described below are some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.

[0013] Figure 1 A flow chart of an object movement control method provided by an embodiment of the present application is shown in the figure.

[0014] Figure 2 A schematic diagram of a first plane and a first direction provided by an embodiment of the present application is shown in the figure.

[0015] Figure 3 A scene picture schematic diagram of displaying direction information of a touch point position in a first plane provided by an embodiment of the present application is shown in the figure.

[0016] Figure 4 A scene picture schematic diagram of displaying a spatial distance of a touch point position and a coordinate origin provided by an embodiment of the present application is shown in the figure.

[0017] Figure 5 A structure schematic diagram of an object movement control device provided by an embodiment of the present application is shown in the figure.

[0018] Figure 6 A structure schematic diagram of an electronic device provided by an embodiment of the present application is shown in the figure. DETAILED DESCRIPTION

[0019] In order to make the objectives, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the present application will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the protection scope of the present application.

[0020] In some competitive or open-world games, to enhance the player experience, the game environment is often set in a three-dimensional space. However, moving to a specific location and choosing a direction in three-dimensional space is quite difficult, and finding and selecting a precise point to move to in a vast three-dimensional space is also quite complex.

[0021] In related technologies, players need to double-tap the screen to move and select a direction in a game scene. However, the selected location is actually a distant point without a definite location, so it's still impossible to select a specific spatial coordinate. When a player double-tap the screen in a game, because a distant point is selected, the target object needs to keep moving to move. But in most parts of the game, players need to move to a specific location for precise movement to proceed with the next action, which the current game cannot meet.

[0022] Based on this, embodiments of the present invention provide a method, apparatus, and electronic device for controlling the movement of an object, which can be applied to various three-dimensional game scenes.

[0023] The object movement control method disclosed in one embodiment of the present invention can run on a local terminal device or a server. When the object movement control method runs 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.

[0024] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separated. The storage and execution of object movement control methods are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses game screen data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.

[0025] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.

[0026] In one possible implementation, embodiments of the present invention provide a method for controlling the movement of an object, which provides a graphical user interface (GUI) through a terminal device; the GUI displays a scene of a three-dimensional game scene where the target object is located; wherein, the terminal device can be the aforementioned local terminal device, or a client device in the aforementioned cloud interaction system. Figure 1 As shown, the method includes the following steps:

[0027] Step S102, in response to the first triggering operation, display a spatial position reference marker in the three-dimensional game scene; wherein, the spatial position reference marker is used to: indicate the position in the first plane in the three-dimensional game scene, and the position in the first direction perpendicular to the first plane.

[0028] The first trigger operation mentioned above can be clicking a pre-set control in the scene screen to trigger the movement of the target object, or it can be a touch operation on the scene screen, such as a long press operation, a double-click operation, or a sliding operation that sets the direction or shape. The specific operation can be set according to the requirements.

[0029] In everyday life, three-dimensional space refers to the space composed of length, width, and height. A position in three-dimensional space typically requires three parameters to represent it. For example, when using a three-dimensional Cartesian coordinate system as a reference, the components of the line connecting the position to the origin along the three coordinate axes can be used as parameters to represent the position. When using a spherical coordinate system as a reference, the position can be represented by its azimuth, elevation, and distance from the center of the sphere.

[0030] Since selecting a position in the scene displayed on the terminal device can only determine the position in two-dimensional space, it is necessary to display spatial position reference markers in the three-dimensional game scene to help players determine their spatial position in three-dimensional space. The positional relationship between the aforementioned first plane and first direction is as follows: Figure 2As shown. To indicate the position in the first plane, the spatial position reference mark may include two mutually perpendicular coordinate axes located in the first plane, or indicate the position in the plane in polar coordinates, that is, the plane is represented by a fixed point and a polar axis. The origin or fixed point can be the location of the target object, or the initial position preset by the 3D game scene. As for the first direction, the spatial position reference mark usually uses a coordinate axis parallel to the first direction to indicate the direction.

[0031] Step S104: In response to the first position selection operation applied to the scene screen, determine the first position information of the target movement position corresponding to the target object in the first plane.

[0032] The aforementioned first position selection operation is typically a swipe operation, but it can also be a click operation or other operations. In specific implementations, the first position information of the target object's movement position in the first plane needs to be determined based on the positional relationship between the touch point of the first position selection operation (which can be the touch point of a swipe operation or the click point of a click operation) and the portion of the spatial position reference marker indicating the first plane. This portion of the marker can be called the planar position reference marker. As mentioned above, the planar position reference marker can be a planar coordinate system or a polar coordinate system, etc.

[0033] The aforementioned first position information represents the projected position of the target's movement location onto the first plane. The touch point position of the first position selection operation can be considered as the projection of the target's movement location onto the first plane. When the Cartesian coordinate system includes an x-axis and a y-axis, the x and y coordinates of the touch point position can be used as the first position information. In some cases, the target movement location of an object in the game needs to be limited by direction and distance. In this case, the aforementioned first position information can be the direction of the target's movement location in the first plane.

[0034] Players can change the initial position information of the target movement location by altering the touch point of the initial position selection operation, such as by swiping or tapping. When a player performs a swipe or tap, the corresponding initial position information is displayed on the scene screen, allowing the player to adjust their actions accordingly to determine the target movement location. After finding the desired initial position, the player can long-press the touch point to lock it. Based on this initial position, further actions can be taken to determine the final spatial location of the target movement. Once the initial position information is locked, it remains displayed on the scene screen, ensuring the player is aware of the determined portion of the target movement's spatial location.

[0035] Step S106: In response to the second position selection operation applied to the scene screen, determine the second position information of the target movement position in the first direction.

[0036] The second position selection operation described above is typically implemented based on the first position selection operation. For example, if the first position selection operation is a swipe, and the player locks the first position information by long-pressing the touch point corresponding to the first position information, then continuing to swipe can be considered a second position selection operation. Similar to the first position selection operation, the second position selection operation can also be a click operation, etc. The specific operation can be determined according to the requirements.

[0037] When the first position information is the set position of the first plane, the straight line passing through the set position and parallel to the first direction is determined as the selection range of the second position selection operation. At this time, the above-mentioned second position information can usually be represented by the distance from the touch point position to the first plane, that is, the z-axis coordinate.

[0038] When the first position information is a certain direction of the first plane, the plane determined by the ray pointing from the origin of the coordinate system to that direction and the coordinate axis indicating the first direction is the selection range of the second position selection operation. At this time, the aforementioned second position information usually needs to include the target movement position and the direction information of the coordinate axis that is only the first direction, as well as the spatial distance between the target movement position and the origin of the coordinate system.

[0039] The aforementioned second position information can be determined based on the positional relationship between the touch point position of the second position selection operation and the coordinate axis indicating the first direction and the origin of the coordinate system. When the player adjusts the touch point position, the second position information that changes with the touch point position can be displayed on the scene screen. After the second position information is determined, it can be locked by releasing the slide operation when the second position selection operation is a swipe operation, or by long-pressing the touch point position of the determined second position information when the second position selection operation is a click operation.

[0040] Step S108: Determine the spatial location information of the target's movement position in the three-dimensional game scene based on the first location information and the second location information, and control the target object to move to the target movement position based on the spatial location information.

[0041] After determining the first and second position information of the target's movement position, the spatial position information of the target's movement position can be determined. The specific method can be determined according to the content of the first and second position information. For example, if the first position information includes the x and y coordinates of the target's movement position in the plane coordinate system, and the second position information includes the coordinates of the target's movement position in the z-axis direction, the x, y, and z coordinates can be determined as the spatial position information of the target's movement position. Furthermore, the target object can be controlled to move to the target's movement position based on the spatial position information.

[0042] The aforementioned object movement control method, in response to a first trigger operation, displays a spatial position reference marker in the 3D game scene; in response to a first position selection operation applied to the scene screen, determines the first position information of the target object's movement position in a first plane within the 3D game scene; in response to a second position selection operation applied to the scene screen, determines the second position information of the target object's movement position in a first direction within the 3D game scene; based on the first and second position information, determines the spatial position information of the target object's movement position in the 3D game scene, and controls the target object to move to the target movement position based on the spatial position information. This method can accurately determine the spatial position information of the target object's movement position, thereby simplifying the operation of controlling the movement of the target object and improving the player's gaming experience.

[0043] The following embodiments provide a specific method for displaying spatial position reference markers in a three-dimensional game scene in response to a first trigger operation.

[0044] In practical implementation, a long-press operation applied to the scene screen can be used as a trigger operation, causing the terminal device to respond to the long-press operation applied to the scene screen and display a spatial position reference marker in the 3D game scene. Alternatively, movement control controls can be set in the scene screen as needed. When the player clicks on the control, a spatial reference marker will be displayed in the 3D scene to help the player determine the target movement position.

[0045] The aforementioned spatial location reference markers can be common three-dimensional spatial coordinate systems, or other markers that can be used to represent three-dimensional space as needed.

[0046] The following embodiments provide a specific method for determining the first position information of the target movement position corresponding to the target object in a first plane in response to a first position selection operation applied to the scene screen.

[0047] To help players determine the target's position within the first plane, the aforementioned spatial position reference marker includes a planar position reference marker. This planar position reference marker includes a coordinate origin marker, a first coordinate axis marker, and a second coordinate axis marker, with the first and second coordinate axis markers intersecting at the coordinate origin marker. For example...Figure 3 As shown in the figure, the first coordinate axis is identified by the x-axis, the second coordinate axis by the y-axis, and the origin is identified by O.

[0048] The aforementioned first position selection operation can be a sliding operation. In response to a sliding operation applied to the scene screen, the touch point position of the sliding operation can be monitored. Then, based on the positional relationship between the touch point position and the planar position reference marker, the direction information of the touch point position on the first plane is determined and simultaneously displayed. When the player confirms that the displayed direction information is the desired direction information, the touch point position can be stopped at the current position. Responding to the touch point position stopping at the first position on the scene screen, the direction information of the first plane corresponding to the first position is determined as the first position information of the target movement position on the first plane. The aforementioned direction information includes the angle value parameter of the angle between the first line connecting the touch point position and the origin marker and the first or second coordinate axis marker. Alternatively, the angle value parameter of the angle between the first line connecting the origin marker and the first or second coordinate axis marker can also be displayed simultaneously.

[0049] When displaying the directional information of the touch point position of the sliding operation on the first plane, the first line connecting the touch point position and the coordinate origin can be displayed; the angle value parameter of the included angle is displayed in the area formed by the first line connecting the touch point position and the coordinate origin and the first or second coordinate axis label. For example... Figure 3 As shown, taking the angle between the first line and the x-axis as an example...

[0050] The following embodiments provide a specific method for determining the second position information of a target's movement position in a first direction in response to a second position selection operation applied to a scene screen.

[0051] To help players determine the target's position in the first direction, the aforementioned spatial position reference marker includes a first direction reference marker; this first direction reference marker typically includes a first direction coordinate axis marker and a coordinate origin marker. This coordinate origin marker usually coincides with the coordinate origin marker in the planar position reference marker.

[0052] The aforementioned second position determination operation can be a sliding operation, specifically implemented by taking the touch point position that determines the first position information as the starting point. In response to a sliding operation starting from the touch point position that determines the first position information, the touch point position of the sliding operation is monitored; then, based on the positional relationship between the touch point position and the first direction reference marker, and the first position information, the position information corresponding to the touch point position in the first direction is determined; finally, in response to the end event of the sliding operation, the position information corresponding to the touch point position in the first direction is determined as the second position information of the target movement position in the first direction.

[0053] When determining the position information of the touch point in the first direction, a second plane can be determined based on the direction information of the target's movement position in the first plane, forming a coordinate system with the first direction coordinate axis. Then, based on the second line connecting the touch point position on the second plane and the origin coordinate axis, the direction information of the touch point position in the first direction, i.e., the angle between the second line and the first direction, is determined. Then, based on the direction information of the touch point position in the first plane and the direction information in the first direction, as well as the planar distance between the touch point position and the origin coordinate axis, the spatial distance between the touch point position and the origin coordinate axis in the 3D game scene is determined. This process requires using the coordinate ratio between this coordinate system and the game scene. Furthermore, the second line connecting the touch point position and the origin coordinate axis can be displayed in the game scene, and the spatial distance between the touch point position and the target object in the 3D game scene can be displayed at a specified location on the second line, such as... Figure 4 As shown, this allows players to know the spatial distance corresponding to the current touch point position.

[0054] After determining the direction information of the target's movement position on the first plane, the direction information of the target's movement position in the first direction, and the spatial distance between the target's movement position and the target object in the three-dimensional game scene, the direction information of the target's movement position on the first plane and the direction information in the first direction can be determined as the spatial direction information of the target's movement position in the three-dimensional game scene, and the spatial distance between the target's movement position and the target object in the three-dimensional game scene can be determined as the spatial distance information of the target's movement position in the three-dimensional game scene, thereby obtaining the spatial position information of the target's movement position.

[0055] This invention also provides another method for controlling the movement of an object. This method... Figure 1 Implemented based on the method shown.

[0056] This method can be implemented through the following steps:

[0057] 1. Press and hold the screen for about 1 second to bring up the planar position reference markers on the plane. These planar position reference markers can include the x-axis and y-axis. Players can select the planar direction in 360 degrees in the plane defined by the x-axis and y-axis by sliding the screen.

[0058] 2. After selecting the plane direction, press and hold for 1 second to lock the plane direction, and then slide up and down on the screen to select the z-axis direction. At the same time, the screen displays the movement distance corresponding to the sliding touch point. After releasing the finger, the position where the player's finger lands is the target movement position.

[0059] 3. Releasing your finger triggers the movement action.

[0060] The above method determines whether to trigger distance movement by recognizing the player's finger screen operation and operation duration, and selects the direction by using the finger swipe on the screen. Finally, based on the position of the player's finger landing point, the movement operation is triggered, which can help the player accurately select coordinates in three-dimensional space.

[0061] For the above method embodiments, see Figure 5 The illustrated object movement control device provides a graphical user interface (GUI) via a terminal device; the GUI displays a scene view of a 3D game scene where the target object is located; the device includes:

[0062] The spatial position reference mark display module 502 is used to display a spatial position reference mark in the three-dimensional game scene in response to a first trigger operation; wherein, the spatial position reference mark is used to indicate the position in a first plane in the three-dimensional game scene, and the position in a first direction perpendicular to the first plane;

[0063] The first position information determination module 504 is used to respond to the first position selection operation applied to the scene screen and determine the first position information of the target movement position corresponding to the target object in the first plane.

[0064] The second position information determination module 506 is used to respond to the second position selection operation applied to the scene screen and determine the second position information of the target's movement position in the first direction.

[0065] The movement module 508 is used to determine the spatial position information of the target movement position in the three-dimensional game scene based on the first position information and the second position information, and to control the target object to move to the target movement position based on the spatial position information.

[0066] The aforementioned object movement control device, in response to a first trigger operation, displays a spatial position reference marker in a 3D game scene; in response to a first position selection operation applied to the scene screen, determines first position information of the target object's movement position in a first plane within the 3D game scene; in response to a second position selection operation applied to the scene screen, determines second position information of the target object's movement position in a first direction within the 3D game scene; based on the first and second position information, it determines the spatial position information of the target object's movement position in the 3D game scene, and controls the target object to move to the target movement position based on the spatial position information. This method can accurately determine the spatial position information of the target object's movement position, thereby simplifying the operation of controlling the movement of the target object and improving the player's gaming experience.

[0067] The aforementioned spatial location reference marker display module is also used to: display spatial location reference markers in the 3D game scene in response to a long press operation applied to the scene screen.

[0068] The aforementioned spatial position reference markers include planar position reference markers; the aforementioned first position information determination module is further configured to: respond to a sliding operation acting on the scene screen, monitor the touch point position of the sliding operation; determine the direction information of the touch point position of the sliding operation on the first plane based on the positional relationship between the touch point position of the sliding operation and the planar position reference markers; and, in response to the touch point position stopping at the first position on the scene screen, determine the direction information of the first plane corresponding to the first position as the first position information of the target movement position in the first plane.

[0069] The aforementioned device also includes a direction information display module, used to display the direction information of the contact point position of the sliding operation on the first plane.

[0070] The aforementioned planar position reference markers include a coordinate origin marker, a first coordinate axis marker, and a second coordinate axis marker; the first coordinate axis marker and the second coordinate axis marker intersect at the coordinate origin marker; the direction information includes the angle parameter of the angle between the first line connecting the contact point position and the coordinate origin marker and the first coordinate axis marker and / or the second coordinate axis marker; the aforementioned first position information determination module is further used to: display the first line connecting the contact point position and the coordinate origin marker; and display the angle parameter of the angle formed by the first line connecting the contact point position and the coordinate origin marker and the first coordinate axis marker and / or the second coordinate axis marker.

[0071] The aforementioned spatial location reference marker includes a first direction reference marker; the aforementioned second location information determination module is further configured to: respond to a sliding operation starting from the touch point position that determines the first location information, monitor the touch point position of the sliding operation; and determine the second location information of the target movement position in the first direction based on the positional relationship between the touch point position and the first direction reference marker, and the first location information.

[0072] The aforementioned first direction reference marker includes a first direction coordinate axis marker and a coordinate origin marker; the first position information includes the direction information of the target's movement position on the first plane; the second position information includes the direction information of the target's movement position in the first direction and the spatial distance between the target's movement position and the target object in the three-dimensional game scene; the aforementioned second position information determination module is further used to: determine the second plane formed by the touch point position and the first direction coordinate axis marker based on the direction information of the target's movement position on the first plane; determine the direction information of the target's movement position in the first direction based on the second line connecting the touch point position located on the second plane and the coordinate origin marker; and determine the spatial distance between the target's movement position and the target object in the three-dimensional game scene based on the direction information of the target's movement position on the first plane and the direction information in the first direction, as well as the planar distance between the touch point position and the coordinate origin marker.

[0073] The first position information includes the direction information of the target's movement position on the first plane; the second position information includes the direction information of the target's movement position in the first direction and the spatial distance between the target's movement position and the target object in the three-dimensional game scene; the spatial position information includes spatial direction information and spatial distance information; the movement module is further configured to: determine the direction information of the target's movement position on the first plane and the direction information in the first direction as the spatial direction information of the target's movement position in the three-dimensional game scene; and determine the spatial distance between the target's movement position and the target object in the three-dimensional game scene as the spatial distance information of the target's movement position in the three-dimensional game scene.

[0074] The aforementioned device also includes a spatial distance display module, used to: display a second line connecting the touch point position and the coordinate origin marker; and display the target movement position and the spatial distance of the target object in the three-dimensional game scene at a designated position on the second line.

[0075] This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor executes the machine-executable instructions to implement the aforementioned motion control method for the object, for example:

[0076] In response to a first trigger operation, a spatial position reference marker is displayed in the 3D game scene; wherein, the spatial position reference marker is used to: indicate the position in a first plane in the 3D game scene, and the position in a first direction perpendicular to the first plane; in response to a first position selection operation applied to the scene screen, determine the first position information of the target movement position corresponding to the target object in the first plane; in response to a second position selection operation applied to the scene screen, determine the second position information of the target movement position in the first direction; based on the first position information and the second position information, determine the spatial position information of the target movement position in the 3D game scene, and control the target object to move to the target movement position based on the spatial position information.

[0077] The above method can accurately determine the spatial location information of the target's movement, thereby simplifying the operation of controlling the movement of the target object and improving the player's gaming experience.

[0078] Optionally, the step of displaying a spatial location reference marker in the three-dimensional game scene in response to the first trigger operation includes: displaying a spatial location reference marker in the three-dimensional game scene in response to a long press operation applied to the scene screen.

[0079] Optionally, the aforementioned spatial position reference marker includes a planar position reference marker; the step of determining the first position information of the target movement position corresponding to the target object in the first plane in response to the first position selection operation applied to the scene screen includes: in response to a sliding operation applied to the scene screen, listening to the touch point position of the sliding operation; determining the direction information of the touch point position of the sliding operation in the first plane based on the positional relationship between the touch point position of the sliding operation and the planar position reference marker; and in response to the touch point position stopping at the first position in the scene screen, determining the direction information of the first plane corresponding to the first position as the first position information of the target movement position in the first plane.

[0080] Optionally, after determining the direction information of the touch point position of the sliding operation on the first plane based on the positional relationship between the touch point position of the sliding operation and the plane position reference mark, the method further includes: displaying the direction information of the touch point position of the sliding operation on the first plane.

[0081] Optionally, the aforementioned planar position reference markers include a coordinate origin marker, a first coordinate axis marker, and a second coordinate axis marker; the first coordinate axis marker and the second coordinate axis marker intersect at the coordinate origin marker; the direction information includes the angle parameter of the angle between the first line connecting the touch point position and the coordinate origin marker and the first coordinate axis marker and / or the second coordinate axis marker; the step of displaying the direction information of the touch point position of the sliding operation on the first plane includes: displaying the first line connecting the touch point position and the coordinate origin marker; and displaying the angle parameter of the angle formed by the first line connecting the touch point position and the coordinate origin marker and the first coordinate axis marker and / or the second coordinate axis marker.

[0082] Optionally, the aforementioned spatial location reference marker includes a first direction reference marker; the step of determining the second location information of the target movement position in the first direction in response to a second location selection operation applied to the scene screen includes: responding to a sliding operation starting from a touch point position that determines the first location information, listening to the touch point position of the sliding operation; and determining the second location information of the target movement position in the first direction based on the positional relationship between the touch point position and the first direction reference marker, and the first location information.

[0083] Optionally, the aforementioned first direction reference marker includes a first direction coordinate axis marker and a coordinate origin marker; the first position information includes the direction information of the target movement position on a first plane; the position information corresponding to the touch point position in the first direction includes the direction information of the touch point position in the first direction and the spatial distance between the touch point position and the coordinate origin in the three-dimensional game scene; the step of determining the position information corresponding to the touch point position in the first direction based on the positional relationship between the touch point position and the first direction reference marker, and the first position information, includes: determining a second plane formed by the touch point position and the first direction coordinate axis marker based on the direction information of the target movement position on the first plane; determining the direction information of the touch point position in the first direction based on the second line connecting the touch point position located on the second plane and the coordinate origin marker; and determining the spatial distance between the touch point position and the coordinate origin in the three-dimensional game scene based on the direction information of the touch point position on the first plane, the direction information in the first direction, and the planar distance between the touch point position and the coordinate origin marker. The spatial distance between the target movement position and the target object in the three-dimensional game scene is determined by considering the direction information of the touch point position on the first plane, the direction information in the first direction, and the planar distance between the touch point position and the coordinate origin marker.

[0084] Optionally, the first position information includes the direction information of the target's movement position on the first plane; the second position information includes the direction information of the target's movement position in the first direction and the spatial distance between the target's movement position and the target object in the three-dimensional game scene; the spatial position information includes spatial direction information and spatial distance information; the step of determining the spatial position information of the target's movement position in the three-dimensional game scene based on the first position information and the second position information includes: determining the direction information of the target's movement position on the first plane and the direction information in the first direction as the spatial direction information of the target's movement position in the three-dimensional game scene; and determining the spatial distance between the target's movement position and the target object in the three-dimensional game scene as the spatial distance information of the target's movement position in the three-dimensional game scene.

[0085] Optionally, after determining the spatial distance between the touch point position and the target object in the three-dimensional game scene based on the direction information of the target movement position in the first plane and the direction information in the first direction, as well as the planar distance between the touch point position and the coordinate origin, the method further includes: displaying a second line connecting the touch point position and the coordinate origin; and displaying the spatial distance between the touch point position and the target object in the three-dimensional game scene at a specified position on the second line.

[0086] See Figure 6 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100. The processor 100 executes the machine-executable instructions to implement the aforementioned motion control method for the object.

[0087] Furthermore, Figure 6 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 100, the communication interface 103 and the memory 101 connected via the bus 102.

[0088] The memory 101 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 102 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 6 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0089] Processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 100 or by instructions in software form. Processor 100 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 101, and the processor 100 reads the information from memory 101 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.

[0090] This embodiment also provides a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are invoked and executed by a processor, the machine-executable instructions cause the processor to implement the aforementioned motion control method for the object.

[0091] The present invention provides a method, apparatus, and electronic device for controlling the movement of an object, comprising a computer-readable storage medium storing program code. The program code includes instructions that can be used to execute the methods described in the preceding method embodiments, for example:

[0092] In response to a first trigger operation, a spatial position reference marker is displayed in the 3D game scene; wherein, the spatial position reference marker is used to: indicate the position in a first plane in the 3D game scene, and the position in a first direction perpendicular to the first plane; in response to a first position selection operation applied to the scene screen, determine the first position information of the target movement position corresponding to the target object in the first plane; in response to a second position selection operation applied to the scene screen, determine the second position information of the target movement position in the first direction; based on the first position information and the second position information, determine the spatial position information of the target movement position in the 3D game scene, and control the target object to move to the target movement position based on the spatial position information.

[0093] The above method can accurately determine the spatial location information of the target's movement, thereby simplifying the operation of controlling the movement of the target object and improving the player's gaming experience.

[0094] Optionally, the step of displaying a spatial location reference marker in the three-dimensional game scene in response to the first trigger operation includes: displaying a spatial location reference marker in the three-dimensional game scene in response to a long press operation applied to the scene screen.

[0095] Optionally, the aforementioned spatial position reference marker includes a planar position reference marker; the step of determining the first position information of the target movement position corresponding to the target object in the first plane in response to the first position selection operation applied to the scene screen includes: in response to a sliding operation applied to the scene screen, listening to the touch point position of the sliding operation; determining the direction information of the touch point position of the sliding operation in the first plane based on the positional relationship between the touch point position of the sliding operation and the planar position reference marker; and in response to the touch point position stopping at the first position in the scene screen, determining the direction information of the first plane corresponding to the first position as the first position information of the target movement position in the first plane.

[0096] Optionally, after determining the direction information of the touch point position of the sliding operation on the first plane based on the positional relationship between the touch point position of the sliding operation and the plane position reference mark, the method further includes: displaying the direction information of the touch point position of the sliding operation on the first plane.

[0097] Optionally, the aforementioned planar position reference markers include a coordinate origin marker, a first coordinate axis marker, and a second coordinate axis marker; the first coordinate axis marker and the second coordinate axis marker intersect at the coordinate origin marker; the direction information includes the angle parameter of the angle between the first line connecting the touch point position and the coordinate origin marker and the first coordinate axis marker and / or the second coordinate axis marker; the step of displaying the direction information of the touch point position of the sliding operation on the first plane includes: displaying the first line connecting the touch point position and the coordinate origin marker; and displaying the angle parameter of the angle formed by the first line connecting the touch point position and the coordinate origin marker and the first coordinate axis marker and / or the second coordinate axis marker.

[0098] Optionally, the aforementioned spatial location reference marker includes a first direction reference marker; the step of determining the second location information of the target movement position in the first direction in response to a second location selection operation applied to the scene screen includes: responding to a sliding operation starting from a touch point position that determines the first location information, listening to the touch point position of the sliding operation; and determining the second location information of the target movement position in the first direction based on the positional relationship between the touch point position and the first direction reference marker, and the first location information.

[0099] Optionally, the aforementioned first direction reference marker includes a first direction coordinate axis marker and a coordinate origin marker; the first position information includes the direction information of the target movement position on a first plane; the position information corresponding to the touch point position in the first direction includes the direction information of the touch point position in the first direction and the spatial distance between the touch point position and the coordinate origin in the three-dimensional game scene; the step of determining the position information corresponding to the touch point position in the first direction based on the positional relationship between the touch point position and the first direction reference marker, and the first position information, includes: determining a second plane formed by the touch point position and the first direction coordinate axis marker based on the direction information of the target movement position on the first plane; determining the direction information of the touch point position in the first direction based on the second line connecting the touch point position located on the second plane and the coordinate origin marker; and determining the spatial distance between the touch point position and the coordinate origin in the three-dimensional game scene based on the direction information of the touch point position on the first plane, the direction information in the first direction, and the planar distance between the touch point position and the coordinate origin marker. The spatial distance between the target movement position and the target object in the three-dimensional game scene is determined by considering the direction information of the touch point position on the first plane, the direction information in the first direction, and the planar distance between the touch point position and the coordinate origin marker.

[0100] Optionally, the first position information includes the direction information of the target's movement position on the first plane; the second position information includes the direction information of the target's movement position in the first direction and the spatial distance between the target's movement position and the target object in the three-dimensional game scene; the spatial position information includes spatial direction information and spatial distance information; the step of determining the spatial position information of the target's movement position in the three-dimensional game scene based on the first position information and the second position information includes: determining the direction information of the target's movement position on the first plane and the direction information in the first direction as the spatial direction information of the target's movement position in the three-dimensional game scene; and determining the spatial distance between the target's movement position and the target object in the three-dimensional game scene as the spatial distance information of the target's movement position in the three-dimensional game scene.

[0101] Optionally, after determining the spatial distance between the touch point position and the target object in the three-dimensional game scene based on the direction information of the target movement position in the first plane and the direction information in the first direction, as well as the planar distance between the touch point position and the coordinate origin, the method further includes: displaying a second line connecting the touch point position and the coordinate origin; and displaying the spatial distance between the touch point position and the target object in the three-dimensional game scene at a specified position on the second line.

[0102] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0103] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.

[0104] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0105] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0106] Finally, it should be noted that the above embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for controlling the movement of an object, characterized in that, A graphical user interface is provided through a terminal device; the graphical user interface displays a scene of a three-dimensional game scene in which the target object is located; the method includes: In response to a first triggering operation, a spatial position reference marker is displayed in the three-dimensional game scene; wherein the spatial position reference marker is used to: indicate the position in a first plane in the three-dimensional game scene, and the position in a first direction perpendicular to the first plane; In response to a first position selection operation applied to the scene screen, the first position information of the target movement position corresponding to the target object in the first plane is determined; In response to a second position selection operation applied to the scene screen, the system determines second position information of the target movement position in the first direction; based on the first position information and the second position information, the system determines spatial position information of the target movement position in the three-dimensional game scene; and based on the spatial position information, the system controls the target object to move to the target movement position. The first position information includes the direction information of the target movement position in the first plane; the spatial position reference identifier includes a planar position reference identifier; the planar position reference identifier includes a coordinate origin identifier, a first coordinate axis identifier, and a second coordinate axis identifier; the first coordinate axis identifier and the second coordinate axis identifier intersect at the coordinate origin identifier; the direction information of the target movement position in the first plane includes the angle value parameter of the angle between the first line connecting the touch point position of the first position selection operation and the first coordinate origin identifier and the first coordinate axis identifier and / or the second coordinate axis identifier; The second location information includes the direction information of the target's movement position in the first direction and the spatial distance between the target's movement position and the target object in the three-dimensional game scene; the spatial location information includes spatial direction information and spatial distance information; The step of determining the spatial location information of the target's movement position in the 3D game scene based on the first location information and the second location information includes: The directional information of the target's movement position in the first plane and the directional information in the first direction are determined as the spatial directional information of the target's movement position in the three-dimensional game scene; The spatial distance between the target's moving position and the target object in the three-dimensional game scene is determined as the spatial distance information of the target's moving position in the three-dimensional game scene.

2. The method according to claim 1, characterized in that, The step of displaying a spatial position reference marker in the 3D game scene in response to a first triggering operation includes: In response to a long press operation applied to the scene screen, a spatial position reference marker is displayed in the 3D game scene.

3. The method according to claim 1, characterized in that, The step of determining the first position information of the target movement position corresponding to the target object in the first plane in response to the first position selection operation applied to the scene screen includes: In response to a sliding operation applied to the scene screen, monitor the touch point position of the sliding operation; Based on the positional relationship between the touch point position of the sliding operation and the planar position reference mark, the directional information of the touch point position of the sliding operation in the first plane is determined; When the touch point stops at a first position in the scene, the direction information of the first plane corresponding to the first position is determined as the first position information of the target movement position in the first plane.

4. The method according to claim 3, characterized in that, Based on the positional relationship between the touch point position of the sliding operation and the planar position reference marker, after determining the direction information of the touch point position of the sliding operation in the first plane, the method further includes: This displays the orientation information of the touch point position of the sliding operation in the first plane.

5. The method according to claim 4, characterized in that, The step of displaying the orientation information of the touch point position of the sliding operation in the first plane includes: Display the first line connecting the location of the touch point and the coordinate origin marker; The angle value parameter of the included angle is displayed in the area formed by the first line connecting the contact point position and the origin of the coordinate system, and the first coordinate axis label and / or the second coordinate axis label.

6. The method according to claim 1, characterized in that, The spatial position reference identifier also includes a first direction coordinate axis identifier; the position information corresponding to the touch point position of the second position selection operation in the first direction includes the direction information of the touch point position in the first direction and the spatial distance between the touch point position and the coordinate origin in the three-dimensional game scene; The step of determining the second position information of the target's movement position in the first direction in response to a second position selection operation applied to the scene screen includes: In response to a sliding operation starting from the contact point position determined by the first position information, the contact point position of the sliding operation is monitored; Based on the directional information of the target's movement position in the first plane, a second plane is determined by the contact point position and the coordinate axis markings of the first direction. Based on the second line connecting the contact point location located in the second plane and the coordinate origin marker, the directional information of the contact point location in the first direction is determined; Based on the directional information of the touch point position in the first plane and the directional information in the first direction, as well as the planar distance between the touch point position and the coordinate origin, the spatial distance between the touch point position and the coordinate origin in the three-dimensional game scene is determined. In response to the end event of the sliding operation, the position information corresponding to the touch point position in the first direction is determined as the second position information of the target movement position in the first direction.

7. The method according to claim 6, characterized in that, Based on the directional information of the touch point position on the first plane and the directional information in the first direction, and the planar distance between the touch point position and the coordinate origin, after determining the spatial distance between the touch point position and the target object in the three-dimensional game scene, the method further includes: Displays a second line connecting the location of the touch point and the coordinate origin marker; The spatial distance between the touch point location and the target object in the three-dimensional game scene is displayed at a designated position on the second connection line.

8. A device for controlling the movement of an object, characterized in that, A graphical user interface is provided through a terminal device; the graphical user interface displays a scene of a three-dimensional game scene in which the target object is located; the device includes: A spatial position reference marker display module is used to display a spatial position reference marker in the three-dimensional game scene in response to a first trigger operation; wherein the spatial position reference marker is used to indicate the position in a first plane in the three-dimensional game scene, and the position in a first direction perpendicular to the first plane; The first position information determination module is used to respond to the first position selection operation applied to the scene screen and determine the first position information of the target movement position corresponding to the target object in the first plane; The second position information determination module is used to respond to a second position selection operation applied to the scene screen and determine the second position information of the target's movement position in the first direction; A movement module is used to determine the spatial location information of a target movement position in the three-dimensional game scene based on the first location information and the second location information, and to control the target object to move to the target movement position based on the spatial location information. The first position information includes the direction information of the target movement position in the first plane; the spatial position reference identifier includes a planar position reference identifier; the planar position reference identifier includes a coordinate origin identifier, a first coordinate axis identifier, and a second coordinate axis identifier; the first coordinate axis identifier and the second coordinate axis identifier intersect at the coordinate origin identifier; the direction information of the target movement position in the first plane includes the angle value parameter of the angle between the first line connecting the touch point position of the first position selection operation and the first coordinate origin identifier and the first coordinate axis identifier and / or the second coordinate axis identifier; The second location information includes the direction information of the target's movement position in the first direction and the spatial distance between the target's movement position and the target object in the three-dimensional game scene; the spatial location information includes spatial direction information and spatial distance information; The mobile module is also used for: The directional information of the target's movement position in the first plane and the directional information in the first direction are determined as the spatial directional information of the target's movement position in the three-dimensional game scene; The spatial distance between the target's moving position and the target object in the three-dimensional game scene is determined as the spatial distance information of the target's moving position in the three-dimensional game scene.

9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the motion control method for the object according to any one of claims 1-7.

10. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores machine-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the motion control method for the object according to any one of claims 1-7.

Citation Information

Patent Citations

  • Method and device for selecting three-dimensional position in game scene

    CN109316739A

  • Object moving method and device, storage medium and electronic device

    CN112230836A