CN113769405A - Object control method and device - Google Patents
Object control method and device Download PDFInfo
- Publication number
- CN113769405A CN113769405A CN202111078792.0A CN202111078792A CN113769405A CN 113769405 A CN113769405 A CN 113769405A CN 202111078792 A CN202111078792 A CN 202111078792A CN 113769405 A CN113769405 A CN 113769405A
- Authority
- CN
- China
- Prior art keywords
- virtual
- virtual character
- absolute position
- vehicle
- character
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 86
- 238000009877 rendering Methods 0.000 claims abstract description 19
- 238000004590 computer program Methods 0.000 claims description 6
- 238000013461 design Methods 0.000 description 24
- 230000008569 process Effects 0.000 description 18
- 238000010586 diagram Methods 0.000 description 16
- 238000013507 mapping Methods 0.000 description 9
- 230000001360 synchronised effect Effects 0.000 description 7
- 230000009471 action Effects 0.000 description 6
- 230000008859 change Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000002269 spontaneous effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000009194 climbing Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
- A63F13/56—Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
- A63F13/58—Controlling game characters or game objects based on the game progress by computing conditions of game characters, e.g. stamina, strength, motivation or energy level
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
- A63F2300/65—Methods for processing data by generating or executing the game program for computing the condition of a game character
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/80—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
- A63F2300/8017—Driving on land or water; Flying
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Processing Or Creating Images (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the application provides an object control method and device, and the method comprises the following steps: and acquiring a first absolute position of the virtual carrier in a preset coordinate system and a second absolute position of the virtual character in the preset coordinate system at a first moment. And acquiring a third absolute position of the virtual carrier under a preset coordinate system at the second moment according to the first movement information of the virtual carrier. And determining a fourth absolute position of the virtual character under the preset coordinate system at the second moment according to the first absolute position, the second absolute position, the third absolute position and the second movement information of the virtual character. And rendering the position of the virtual carrier at the second moment on the graphical user interface according to the third absolute position, and rendering the position of the virtual character at the second moment on the graphical user interface according to the fourth absolute position. The virtual character moves under a world coordinate system, so that the virtual character can get on or off the virtual carrier at any time, and the comprehensiveness of game operation is effectively improved.
Description
Technical Field
The embodiment of the application relates to computer technologies, and in particular, to an object control method and device.
Background
With the continuous development of mobile communication technology, more and more mobile terminal games are emerging at present.
There are games in which there are virtual characters and virtual vehicles, such as virtual boats, virtual vehicles, etc., in which the virtual characters may be located on the virtual vehicles to enable the virtual characters to ride on the virtual vehicles. However, when the virtual vehicle is moving, the virtual character cannot leave the virtual vehicle at any time and cannot take the virtual vehicle at any time.
Therefore, in the current implementation of such games, there is a problem that the game operation lacks comprehensiveness.
Disclosure of Invention
The embodiment of the application provides an object control method and device, and aims to solve the problem that game operation lacks comprehensiveness.
In a first aspect, an embodiment of the present application provides an object control method, where a terminal device provides a graphical user interface, where the graphical user interface includes a virtual vehicle and a virtual role, and the method includes:
acquiring a first absolute position of the virtual carrier in a preset coordinate system and a second absolute position of the virtual character in the preset coordinate system at a first moment;
acquiring a third absolute position of the virtual carrier under a preset coordinate system at a second moment according to the first movement information of the virtual carrier;
determining a fourth absolute position of the virtual character under the preset coordinate system at the second moment according to the first absolute position, the second absolute position, the third absolute position and second movement information of the virtual character;
rendering, on the graphical user interface, the position of the virtual vehicle at the second time based on the third absolute position, and rendering, on the graphical user interface, the position of the virtual character at the second time based on the fourth absolute position.
In one possible design, the determining, according to the first absolute position, the second absolute position, the third absolute position, and the second movement information of the virtual character, a fourth absolute position of the virtual character in the preset coordinate system at the second time includes:
determining a first relative position of the virtual character relative to the virtual vehicle according to the second absolute position and the first absolute position;
determining a fifth absolute position of the virtual character in the preset coordinate system according to the third absolute position and the first relative position, wherein the relative position of the fifth absolute position relative to the third absolute position is the first relative position;
and determining a fourth absolute position of the virtual character under the preset coordinate system at the second moment according to the second movement information of the virtual character and the fifth absolute position.
In one possible design, the second movement information includes a movement direction and a movement distance; determining, according to the second movement information of the virtual character and the fifth absolute position, a fourth absolute position of the virtual character at the second time in the preset coordinate system, including:
and updating the fifth absolute position according to the moving direction of the virtual character and the moving distance of the virtual character to obtain a fourth absolute position of the virtual character in the preset coordinate system at the second moment.
In one possible design, the method further includes:
determining a first position relationship between the virtual character and the virtual vehicle according to the third absolute position and the fourth absolute position, wherein the first position relationship indicates that the virtual character is located on the virtual vehicle or the virtual character is not located on the virtual vehicle;
if the first position relation indicates that the virtual character is located on the virtual carrier, determining the carrier identifier corresponding to the virtual character from the identifier of the virtual carrier;
and if the first position relation indicates that the virtual character is not located on the virtual carrier, determining that the carrier identifier corresponding to the virtual character is empty.
In one possible design, determining the identifier of the virtual vehicle to the vehicle identifier corresponding to the virtual character includes:
acquiring a second position relation between the virtual character and the virtual carrier at the first moment;
and if the second position relation indicates that the virtual character is not located on the virtual carrier, determining the carrier identifier corresponding to the virtual character from the identifier of the virtual carrier.
In one possible design, determining that the vehicle identifier corresponding to the virtual character is empty includes:
acquiring a second position relation between the virtual character and the virtual carrier at the first moment;
and if the second position relation indicates that the virtual character is located on the virtual carrier, determining that the carrier identifier corresponding to the virtual character is empty.
In one possible design, after determining the identifier of the virtual vehicle to the vehicle identifier corresponding to the virtual character, the method further includes:
sending first synchronization information to a server so that the server sends the first synchronization information to at least one second terminal device, wherein the at least one second terminal device and the terminal device are in the same game scene, and the first synchronization information comprises at least one of the following: the virtual vehicle comprises a vehicle identification corresponding to the virtual character and a first relative position of the virtual character relative to the virtual vehicle.
In one possible design, after determining the identifier of the virtual vehicle to the vehicle identifier corresponding to the virtual character, the method further includes:
sending second synchronization information to a server so that the server sends the second synchronization information to at least one second terminal device, wherein the at least one second terminal device and the terminal device are in the same game scene, and the second synchronization information comprises at least one of the following: the virtual role control method comprises first indication information and an absolute position of the virtual role under the preset coordinate system at the current moment, wherein the first indication information is used for indicating that a carrier mark corresponding to the virtual role is empty.
In a second aspect, an embodiment of the present application provides an object control apparatus, which provides a graphical user interface through a terminal device, where the graphical user interface includes a virtual vehicle and a virtual role, and includes:
the virtual vehicle control system comprises an acquisition module, a control module and a display module, wherein the acquisition module is used for acquiring a first absolute position of a virtual vehicle in a preset coordinate system and a second absolute position of a virtual character in the preset coordinate system at a first moment;
the acquiring module is further configured to acquire a third absolute position of the virtual vehicle in a preset coordinate system at a second moment according to the first movement information of the virtual vehicle;
a determining module, configured to determine, according to the first absolute position, the second absolute position, the third absolute position, and second movement information of the virtual character, a fourth absolute position of the virtual character at the second time in the preset coordinate system;
and the display module is used for rendering the position of the virtual carrier at the second moment on the graphical user interface according to the third absolute position and rendering the position of the virtual character at the second moment on the graphical user interface according to the fourth absolute position.
In one possible design, the determining module is specifically configured to:
determining a first relative position of the virtual character relative to the virtual vehicle according to the second absolute position and the first absolute position;
determining a fifth absolute position of the virtual character in the preset coordinate system according to the third absolute position and the first relative position, wherein the relative position of the fifth absolute position relative to the third absolute position is the first relative position;
and determining a fourth absolute position of the virtual character under the preset coordinate system at the second moment according to the second movement information of the virtual character and the fifth absolute position.
In one possible design, the determining module is specifically configured to:
and updating the fifth absolute position according to the moving direction of the virtual character and the moving distance of the virtual character to obtain a fourth absolute position of the virtual character in the preset coordinate system at the second moment.
In one possible design, the determining module is further configured to:
determining a first position relationship between the virtual character and the virtual vehicle according to the third absolute position and the fourth absolute position, wherein the first position relationship indicates that the virtual character is located on the virtual vehicle or the virtual character is not located on the virtual vehicle;
if the first position relation indicates that the virtual character is located on the virtual carrier, determining the carrier identifier corresponding to the virtual character from the identifier of the virtual carrier;
and if the first position relation indicates that the virtual character is not located on the virtual carrier, determining that the carrier identifier corresponding to the virtual character is empty.
In one possible design, the determining module is specifically configured to:
acquiring a second position relation between the virtual character and the virtual carrier at the first moment;
and if the second position relation indicates that the virtual character is not located on the virtual carrier, determining the carrier identifier corresponding to the virtual character from the identifier of the virtual carrier.
In one possible design, the determining module is specifically configured to:
acquiring a second position relation between the virtual character and the virtual carrier at the first moment;
and if the second position relation indicates that the virtual character is located on the virtual carrier, determining that the carrier identifier corresponding to the virtual character is empty.
In one possible design, the apparatus further includes: a first synchronization module;
the first synchronization module is specifically configured to:
after the virtual carrier identifier is determined to be the carrier identifier corresponding to the virtual character, sending first synchronization information to a server, so that the server sends the first synchronization information to at least one second terminal device, where the at least one second terminal device and the terminal device are in the same game scene, where the first synchronization information includes at least one of: the virtual vehicle comprises a vehicle identification corresponding to the virtual character and a first relative position of the virtual character relative to the virtual vehicle.
In one possible design, the apparatus further includes: a second synchronization module;
the second synchronization module is specifically configured to:
after the virtual carrier identifier is used for determining the carrier identifier corresponding to the virtual character, second synchronization information is sent to a server, so that the server sends the second synchronization information to at least one second terminal device, wherein the at least one second terminal device and the terminal device are in the same game scene, and the second synchronization information includes at least one of the following: the virtual role control method comprises first indication information and an absolute position of the virtual role under the preset coordinate system at the current moment, wherein the first indication information is used for indicating that a carrier mark corresponding to the virtual role is empty.
In a third aspect, an embodiment of the present application provides an object control apparatus, including:
a memory for storing a program;
a processor for executing the program stored by the memory, the processor being adapted to perform the method as described above in the first aspect and any one of the various possible designs of the first aspect when the program is executed.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, comprising instructions which, when executed on a computer, cause the computer to perform the method as described above in the first aspect and any one of the various possible designs of the first aspect.
In a fifth aspect, the present application provides a computer program product, including a computer program, wherein the computer program is configured to, when executed by a processor, implement the method according to the first aspect and any one of various possible designs of the first aspect.
The embodiment of the application provides an object control method and device, and the method comprises the following steps: and acquiring a first absolute position of the virtual carrier in a preset coordinate system and a second absolute position of the virtual character in the preset coordinate system at a first moment. And acquiring a third absolute position of the virtual carrier under a preset coordinate system at the second moment according to the first movement information of the virtual carrier. And determining a fourth absolute position of the virtual character under the preset coordinate system at the second moment according to the first absolute position, the second absolute position, the third absolute position and the second movement information of the virtual character. And rendering the position of the virtual carrier at the second moment on the graphical user interface according to the third absolute position, and rendering the position of the virtual character at the second moment on the graphical user interface according to the fourth absolute position. The fourth absolute position of the virtual character is determined under the world coordinate system, and the third absolute position of the virtual carrier is determined under the world coordinate system, so that the virtual character and the virtual carrier can be guaranteed to move based on the world coordinate system, meanwhile, the virtual character is further determined according to the second movement information on the basis of the movement of the virtual carrier, and therefore the scheme provided by the application can effectively guarantee that the virtual character can move along with the virtual carrier when the virtual character is located on the virtual carrier, and meanwhile, the virtual character moves under the world coordinate system, so that the virtual carrier can be moved up and down at any time, and the comprehensiveness of game operation is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a scene schematic diagram of an object control method according to an embodiment of the present application;
fig. 2 is a flowchart of an object control method provided in an embodiment of the present application;
fig. 3 is a second flowchart of an object control method according to an embodiment of the present application;
fig. 4 is a first schematic view illustrating movement of a virtual object and a virtual vehicle according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram illustrating movement of a virtual object and a virtual vehicle according to an embodiment of the present disclosure;
fig. 6 is a third schematic view illustrating movement of a virtual object and a virtual vehicle according to an embodiment of the present disclosure;
fig. 7 is a third flowchart of an object control method according to an embodiment of the present application;
fig. 8 is a first schematic view illustrating an implementation of determining a carrier identifier corresponding to a virtual character according to an embodiment of the present application;
fig. 9 is a second schematic view illustrating an implementation of determining a carrier identifier corresponding to a virtual character according to an embodiment of the present application;
fig. 10 is a third schematic view illustrating an implementation of determining a carrier identifier corresponding to a virtual character according to an embodiment of the present application;
fig. 11 is a fourth schematic view illustrating an implementation of determining a carrier identifier corresponding to a virtual character according to an embodiment of the present application;
fig. 12 is a schematic diagram illustrating an implementation of sending synchronization information according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of an object control apparatus according to an embodiment of the present application;
fig. 14 is a schematic hardware structure diagram of an object control device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to better understand the technical solution of the present application, the related art related to the present application will be further described in detail below.
The object control method in the embodiment of the application can be operated in a local terminal device or a cloud interaction system.
The cloud interaction system comprises a cloud server and user equipment and is used for running cloud applications. The cloud applications run separately.
In an alternative embodiment, cloud gaming refers to a cloud computing-based gaming mode. In the running mode of the cloud game, the running main body of the game program and the game picture presenting main body are separated, the storage and the running of the object control method are completed on a cloud game server, and the cloud game client is used for receiving and sending data and presenting the game picture, for example, the cloud game client can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the cloud game server in the cloud is used for processing the game data. When a game is played, a player operates the cloud game client to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, data such as game pictures and the like are encoded and compressed, the data are returned to the cloud game client through a network, and finally the data are decoded through the cloud game client and the game pictures are output.
In an alternative embodiment, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through an electronic device conventionally. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the player through holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.
The terminal device in this embodiment may be, for example, a mobile phone (or referred to as a "cellular" phone), a tablet computer, or may also be a computer device, a portable, pocket, handheld, computer-embedded mobile device or device, etc., and is not particularly limited herein, and the specific implementation of the terminal device may be selected according to actual needs as long as the corresponding conditions described above are met and the object control method in this application may be executed.
In order to better understand the technical solution of the present application, the related art related to the present application will be further described in detail below.
With the continuous development of mobile communication technology, more and more mobile terminal games emerge, wherein the mobile terminal games have various types. There is currently a type of mobile terminal game in which there are virtual characters and virtual vehicles on which the virtual characters can be located to enable the virtual characters to ride the virtual vehicles.
For example, fig. 1 may be understood in conjunction with fig. 1, where fig. 1 is a scene schematic diagram of an object control method provided in this embodiment of the present application.
As shown in fig. 1, it is assumed that a game graphical user interface includes a virtual character 101 and a virtual vehicle 102, wherein the virtual character 101 can be located on the virtual vehicle 102 as shown in fig. 1 to enable the virtual character 101 to ride on the virtual vehicle 102.
In the actual implementation process, the virtual character may be, for example, a virtual character, a virtual animal, a virtual object, and the like, and the virtual vehicle may be, for example, a virtual ship, a virtual vehicle, a virtual airplane, and the like.
Taking the virtual vehicle as a ship as an example, it can be understood that the virtual character can move on the moving ship, but in the current game implementation, when the virtual vehicle is moving, the virtual character cannot leave the vehicle or take the vehicle at any time.
For example, the virtual vehicle is a ship, and in the moving process of the ship, the virtual character can move on the ship, but the virtual character cannot get on or off the ship at any time, and only after the ship stops moving, the virtual character can correspondingly get on or off the ship.
Therefore, in the current game including the virtual character and the virtual vehicle, there is a problem that the game operation lacks comprehensiveness.
In the prior art, the reason why the virtual character cannot leave or take a virtual vehicle at any time is that when the virtual character takes the virtual vehicle, the virtual character actually moves based on the local coordinate system of the ship. It will be appreciated that when the virtual character is located on the virtual vehicle, the virtual character is actually located under the local coordinate system of the virtual vehicle, wherein the virtual character can move freely on the virtual vehicle based on the local coordinate system of the virtual vehicle. Meanwhile, when the virtual carrier moves, the local coordinate system of the corresponding virtual carrier also moves correspondingly, and because the virtual character is positioned under the local coordinate system of the virtual carrier, the virtual character can also move synchronously along with the movement of the local coordinate system.
Therefore, when the virtual character is positioned on the virtual carrier, the virtual character is positioned under the local coordinate system of the virtual carrier, and the movement of the virtual character following the virtual carrier and the movement of the virtual carrier relative to the virtual carrier can be effectively realized.
Meanwhile, it can be understood that when the virtual character is going to be launched from the ship on the virtual vehicle, the virtual character needs to be switched from the local coordinate system to the world coordinate system, but in the moving process of the virtual vehicle, because the local coordinate system of the virtual vehicle is also moving continuously, the dependence of the virtual character on the local coordinate system of the virtual vehicle cannot be stopped quickly, and the position of the current virtual character in the world coordinate system cannot be determined quickly, so that the switching of the coordinate system cannot be realized in time at this time.
Similarly, if the virtual character is not going to be carried on the vessel on the virtual vehicle, the virtual character needs to be switched from the world coordinate system to the local coordinate system, but during the moving process of the virtual vehicle, because the local coordinate system of the virtual vehicle is also continuously moving, the dependency relationship of the virtual character on the local coordinate system of the virtual vehicle cannot be quickly established, and the position of the current virtual character in the local coordinate system cannot be quickly determined, so that the switching of the coordinate system cannot be timely realized. Therefore, in the current game implementation, the virtual vehicle is not supported to freely get on and off the virtual vehicle during the moving process of the virtual vehicle.
Aiming at the problems in the prior art, the application provides the following technical conception: the movement of the virtual character and the movement of the virtual carrier are completed under a world coordinate system, the local coordinates of the virtual character relative to the virtual carrier can be determined based on the world coordinates of the virtual character and the world coordinates of the virtual carrier, and then the virtual character moves correspondingly according to the corresponding local coordinates when the virtual carrier moves, so that under the condition that the virtual character and the virtual carrier can move synchronously, the virtual character and the virtual carrier move based on the world coordinate system, even if the virtual character wants to get on or off the ship in the moving process of the virtual carrier, the conversion of the coordinate system is not needed, the virtual carrier can be moved up and down freely by the virtual character, and the comprehensiveness of game operation is improved effectively.
Based on the above introduction, the object control method provided by the present application is introduced below with reference to specific embodiments, and first, an application scenario of the present application is further described with reference to fig. 1.
The object control method provided in this embodiment may provide a graphical user interface through a terminal device, where the terminal device may be the aforementioned local terminal device, and may also be the aforementioned client device in the cloud interaction system. The graphical user interface is a computer operation user interface displayed in a graphical manner, which allows a user to manipulate icons or menu controls on a screen using an input device, where the input device may be, for example, a mouse or a touch screen, and the like.
In this embodiment, the graphical user interface includes a game screen, and the game screen includes at least one virtual character and at least one virtual vehicle, where the implementation manners of the virtual character and the virtual vehicle are described above and are not described herein again.
The terminal device may be the aforementioned local terminal device, and may also be the aforementioned cloud game client.
Based on the application scenario described above, the following describes an object control method provided in the present application with reference to fig. 2, and fig. 2 is a flowchart of the object control method provided in the embodiment of the present application.
As shown in fig. 2, the method includes:
s201, a first absolute position of the virtual carrier in a preset coordinate system and a second absolute position of the virtual character in the preset coordinate system at a first moment are obtained.
It can be understood that the game pictures displayed in the graphical user interface are all displayed frame by frame, and can be processed in units of one frame when determining the movement of the virtual character and the virtual carrier, and one frame in this embodiment may correspond to one time, for example, so that it is assumed that the first time and the second time are times corresponding to adjacent frame pictures, and the second time is after the first time, and when determining the positions of the virtual character and the virtual carrier at the second time, for example, the game pictures can be determined according to the positions of the virtual character and the virtual carrier at the first time.
Therefore, in the present embodiment, the first time and the second time may be any time as long as the first time and the second time are times corresponding to adjacent frame pictures, and the second time is after the first time.
In one possible implementation manner, for example, a first absolute position of the virtual vehicle at the first time in the preset coordinate system and a second absolute position of the virtual character in the preset coordinate system may be obtained, and the currently introduced preset coordinate system may be, for example, a world coordinate system of the game, so that both the current first absolute position and the current second absolute position may be positions in the world coordinate system.
S202, acquiring a third absolute position of the virtual carrier under a preset coordinate system at the second moment according to the first movement information of the virtual carrier.
In this embodiment, when determining the movement of the virtual vehicle, for example, first movement information of the virtual vehicle may be further obtained, where the first movement information may indicate whether the position of the virtual vehicle moves, and if the position of the virtual vehicle moves, the first movement information may include, for example, a moving direction and a moving distance of the virtual vehicle.
And for example, second movement information of the virtual character may be acquired, where the second movement information may indicate whether the position of the virtual character has moved, and if the position has moved, the second movement information may include, for example, a moving direction and a moving distance of the virtual character.
In one possible implementation, whether the first movement information of the virtual vehicle or the second movement information of the virtual character is determined according to the operation of the user, for example, the operation of the movement control by the user can be detected, so as to determine the first movement information and/or the second movement information; or the movement information may be determined according to preset settings of the game, for example, a ship or a virtual character is set to move in a preset game scenario according to preset movement information.
The specific implementation manner of obtaining the first movement information and the second movement information is not limited in this embodiment, and may be selected and set according to actual requirements, as long as the first movement information may indicate the movement of the virtual vehicle according to the content described above, and the second movement information may indicate the movement of the virtual character according to the content described above.
After the first absolute position of the virtual vehicle is determined, a third absolute position of the virtual vehicle in the preset coordinate system at the second moment can be obtained according to the first movement information.
It is understood that the first movement information may indicate whether the position of the virtual vehicle moves, and if the position of the virtual vehicle moves, the first movement information may indicate a direction and a distance of the movement, and for example, a determination may be made first according to the first movement information to determine whether the position of the virtual vehicle moves.
In one possible implementation manner, if it is determined that the position of the virtual vehicle moves, for example, a third absolute position of the virtual vehicle in the preset coordinate system may be determined based on the first absolute position according to the moving direction and the moving distance indicated by the first movement information.
For example, if the moving direction is due north and the moving distance is 30, the position with the distance of 30 due north of the first absolute position may be determined as the third absolute position, where the unit of the moving distance may be selected according to actual requirements. In an actual implementation process, both the moving direction and the moving distance may be selected according to actual requirements, which is not limited in this embodiment.
In another possible implementation, if it is determined that the position of the virtual vehicle has not moved, it may be determined that the third absolute position and the first absolute position are equal, for example.
And S203, determining a fourth absolute position of the virtual character in the preset coordinate system at the second moment according to the first absolute position, the second absolute position, the third absolute position and the second movement information of the virtual character.
It can be understood that, in the implementation process of the game, when the virtual character is located on the virtual carrier, the virtual character moves synchronously along with the virtual carrier. If the virtual character does not move relative to the virtual carrier, if the virtual carrier moves, the virtual character also needs to correspondingly move so as to ensure that the virtual character can be positioned on the virtual carrier; and if the virtual character moves relative to the virtual carrier, if the virtual carrier moves, the virtual character also needs to correspondingly move on the basis of the movement of the virtual carrier so as to ensure that the virtual character correspondingly moves on the virtual carrier.
That is, the change in the position of the virtual character in the present embodiment is actually determined according to the movement of the virtual vehicle and the movement of the virtual character, and therefore, in the present embodiment, after the second absolute position of the virtual character and the second movement information of the virtual character are determined, for example, the fourth absolute position of the virtual character in the preset coordinate system may be determined according to the first absolute position of the virtual vehicle, the second absolute position of the virtual character, the third absolute position of the virtual vehicle, and the second movement information of the virtual character.
It can be understood that the second movement information may indicate whether the position of the virtual character moves, where whether the position of the virtual character indicated by the second movement information moves is indicated by whether a corresponding instruction is given or a corresponding operation triggers the virtual character to move, and if the virtual character moves, the second movement information may indicate a direction and a distance of the movement, and for example, first, a determination may be made according to the second movement information to determine whether the position of the virtual character moves.
In one possible implementation manner, if it is determined that the position of the virtual character changes, for example, the synchronous movement of the virtual character may be determined according to the movement of the virtual vehicle, and then, based on the synchronous movement relative to the virtual vehicle, the fourth absolute position of the virtual character in the preset coordinate system may be determined according to the movement direction and the movement distance indicated by the second movement information.
In another possible implementation manner, if it is determined that the position of the virtual character does not move, for example, a fourth absolute position of the virtual character in the preset coordinate system may be determined according to the third absolute position of the virtual vehicle, because the current second movement information indicates that the position of the virtual character does not move, it is meant that there is no corresponding operation or instruction to trigger the movement of the virtual character, but because the virtual character is located on the virtual vehicle, the virtual character needs to determine the corresponding position along with the movement information of the virtual vehicle.
And S204, rendering the position of the virtual carrier at the second moment on the graphical user interface according to the third absolute position, and rendering the position of the virtual character at the second moment on the graphical user interface according to the fourth absolute position.
After determining the third absolute position of the virtual traffic in the preset coordinate system, the position of the virtual vehicle at the second time may be rendered in the graphical user interface according to the third absolute position, and after determining the fourth absolute position of the virtual character in the preset coordinate system, the position of the virtual character at the second time may be rendered in the graphical user interface according to the fourth absolute position, where the third absolute position and the fourth absolute position are both based on the world coordinate system, so that the virtual character and the virtual vehicle in this embodiment may move accordingly based on the world coordinate system.
Based on the above description, it can be understood that the position movement of the virtual vehicle can be directly determined according to the first movement information, but the position movement of the virtual character is determined according to the second movement information on the basis of the movement of the virtual vehicle, so as to ensure that the virtual character can move synchronously along with the virtual vehicle. Meanwhile, the virtual character and the virtual carrier are moved under a world coordinate system, so that the scheme provided by the embodiment can effectively ensure that the virtual character moves along with the virtual carrier on the basis of ensuring that the virtual character and the virtual carrier respectively realize corresponding movement under the world coordinate system, and the virtual character does not move under a local coordinate system of the virtual carrier, so that the virtual carrier can be moved up and down at any time, and the comprehensiveness of game operation is effectively improved.
The object control method provided by the embodiment of the application comprises the following steps: and acquiring a first absolute position of the virtual carrier in a preset coordinate system and a second absolute position of the virtual character in the preset coordinate system at a first moment. And acquiring a third absolute position of the virtual carrier under a preset coordinate system at the second moment according to the first movement information of the virtual carrier. And determining a fourth absolute position of the virtual character under the preset coordinate system at the second moment according to the first absolute position, the second absolute position, the third absolute position and the second movement information of the virtual character. And rendering the position of the virtual carrier at the second moment on the graphical user interface according to the third absolute position, and rendering the position of the virtual character at the second moment on the graphical user interface according to the fourth absolute position. The fourth absolute position of the virtual character is determined under the world coordinate system, and the third absolute position of the virtual carrier is determined under the world coordinate system, so that the virtual character and the virtual carrier can be guaranteed to move based on the world coordinate system, meanwhile, the virtual character is further determined according to the second movement information on the basis of the movement of the virtual carrier, and therefore the scheme provided by the application can effectively guarantee that the virtual character can move along with the virtual carrier when the virtual character is located on the virtual carrier, and meanwhile, the virtual character moves under the world coordinate system, so that the virtual carrier can be moved up and down at any time, and the comprehensiveness of game operation is effectively improved.
Based on the above embodiments, the object control method provided by the present application is further described in detail with reference to fig. 3 to 6, fig. 3 is a flowchart of an object control method provided by the present application, fig. 4 is a first schematic moving diagram of a virtual object and a virtual carrier provided by the present application, fig. 5 is a second schematic moving diagram of the virtual object and the virtual carrier provided by the present application, and fig. 6 is a third schematic moving diagram of the virtual object and the virtual carrier provided by the present application.
As shown in fig. 3, the method includes:
s301, a first absolute position of the virtual carrier in a preset coordinate system and a second absolute position of the virtual character in the preset coordinate system at the first moment are obtained.
S302, according to the first movement information of the virtual carrier, a third absolute position of the virtual carrier under a preset coordinate system at the second moment is obtained.
The implementation manner of S302 is similar to the implementation manner of S202, and details of the specific implementation manner are not repeated here, and further details of the implementation manner for determining the third absolute position of the virtual vehicle according to the first movement information and the first absolute position are described below with reference to fig. 4.
As shown in fig. 4, for example, it is assumed that the virtual vehicle is a ship shown in fig. 4, and the preset coordinate system is an x-y coordinate system shown in fig. 4, it is understood that the coordinate system shown in fig. 4 is only a coordinate system illustrated here for convenience of description of the scheme, in an actual implementation process, the preset coordinate system may be, for example, a world coordinate system in a game, for example, a three-dimensional coordinate system, and the like.
Referring to fig. 4, assume that the frame picture corresponding to the first time is the implementation shown at 401 in fig. 4, and the frame picture corresponding to the second time is the implementation shown at 402 in fig. 4. Assuming that the position of the virtual vehicle is represented by the position of the center point of the virtual vehicle, it can be determined based on fig. 4 that the first absolute position x ═ a of the virtual vehicle in the preset coordinate system in the frame 401 corresponding to the first time is set as1,y=y1The corresponding position.
And assuming that the first movement information of the virtual vehicle indicates that the virtual vehicle moves and indicates that the moving direction is a direction having an angle of 0 ° with the positive direction of the x-axis), that is, a direction indicated by an arrow a in fig. 4, and indicates that the moving distance is β, a third absolute position of the virtual vehicle in the preset coordinate system at the second time may be determined based on the first movement information and the first absolute position.
As shown in fig. 4, the distance from the first absolute position corresponding to the moving direction a may be determined as the position of the moving distance β, as the third absolute position, as shown in fig. 4, toward the moving direction a, and as the first absolute position (a)1,y1) The position of the distance beta is (a) in FIG. 42,y1) The corresponding position, i.e. the third absolute position, is shown in the figureX in 4 ═ a2,y=y1Corresponding position where a1And a2The distance between them is beta.
In an actual implementation process, a specific implementation manner of the first movement information may be selected according to an actual requirement, which is not limited in this embodiment, and a specific implementation manner of the third absolute position may also be adaptively determined accordingly, as long as the third absolute position is determined according to the first movement information and the first absolute position.
And S303, determining a first relative position of the virtual character relative to the virtual vehicle according to the second absolute position and the first absolute position.
Based on the above description of the embodiment, it can be determined that, when determining the position change of the virtual character in the embodiment, because the virtual character needs to move along with the virtual vehicle on the virtual vehicle, and the movement of the virtual character in the embodiment is also performed in the world coordinate system, in the embodiment, when determining the position of the virtual character, the relative position of the virtual character with respect to the virtual vehicle can be determined, and then the position of the virtual character is determined according to the relative position, so that it can be ensured that the virtual character moves along with the virtual vehicle, and is not limited by the local coordinate system of the virtual vehicle.
In one possible implementation manner, for example, the first relative position of the virtual character with respect to the virtual vehicle may be determined according to the second absolute position and the first absolute position, for example, the first relative position may be understood with reference to fig. 4, see fig. 4, and it is assumed that in the frame 401 corresponding to the first time, the first absolute position of the virtual vehicle is (a)1,y1) The second absolute position of the virtual character is (b)1,y2) Then, based on the first absolute position and the absolute position, the distance between the virtual character and the virtual vehicle in the x-axis direction is determined to be δ, the distance in the y-axis direction is determined to be η, and the relative direction information between the two can also be determined, so as to determine the first phase position of the virtual character relative to the virtual vehicle.
In practical implementation, the first relative position may include, for example, the distance difference value in each direction and the relative direction information described above, or the first relative position may be determined by the following formula one and formula two:
locatiPlayerPosition=Quaternion.Inverse(shipRotation_1)×(playerPosition_1-shipPosition_1)
formula one
The mapping method comprises the following steps that a mapping table is used for mapping a virtual character to a virtual carrier, wherein the mapping table is used for mapping the virtual character to a world coordinate system, and the mapping table is used for mapping the virtual character to a virtual carrier.
And the second formula is:
localPlayerRotation
=Quaternion.Inverse(shipRotation_1)×playerRotation_1
formula two
The playrortation _1 is a rotation orientation of the virtual character in a world coordinate system in a previous frame, and the localplayerrtation is a local orientation of the virtual character based on the virtual vehicle.
Based on the first and second formulas, the first relative position in the present embodiment may include the above-described local coordinate locatiPlayerPosition of the virtual character based on the virtual vehicle and the local orientation locatiplayerrosition of the virtual character based on the virtual vehicle.
In an actual implementation process, a specific implementation manner of the first relative position may be selected according to actual requirements, as long as the first relative position may indicate a position of the virtual character relative to the virtual vehicle.
S304, determining a fifth absolute position of the virtual character in the preset coordinate system according to the third absolute position and the first relative position, wherein the relative position of the fifth absolute position relative to the third absolute position is the first relative position.
After the first relative position is determined, a fifth absolute position of the virtual character in the preset coordinate system can be determined according to the third absolute position and the first relative position of the virtual vehicle, and it can be understood that the fifth absolute position in this embodiment is a position in the preset coordinate system after the virtual character moves along with the virtual vehicle, and a relative position of the fifth absolute position with respect to the third absolute position in this embodiment is the first relative position, that is, the fifth absolute position in this embodiment is a position where the position of the virtual character with respect to the virtual vehicle does not change.
For example, it can be understood in conjunction with fig. 4, as shown in fig. 4, suppose that the third absolute position of the current virtual vehicle is (a) in fig. 42,y1) The position shown here is assumed to include the distance in the x-axis direction, the distance in the y-axis direction, and the relative direction information, and the fifth absolute position (b) shown in fig. 4 may be determined based on the above-determined distance δ in the x-axis direction, the distance η in the y-axis direction, and the relative orientation information (b)2,y2) In connection with fig. 4, it can be determined that the fifth absolute position (b)2,y2) Relative to the third absolute position (a)2,y1) The determined first relative position is the determined first relative position, that is, the currently determined fifth absolute position is a position after the virtual character moves following the movement of the virtual vehicle without moving the virtual character on the virtual vehicle.
In one possible implementation, the fifth absolute position of the virtual character may be determined according to the following formulas three and four, as opposed to the above formulas one and two.
playerPosition_2
=(shipRotation_2×localPlayerPosition)+shipPosition_2
Formula three
The mapping table includes a mapping table, and the like.
And the formula four is:
playroration _2 ═ shipRotion _2 × localplayerration formula IV
The localplayerrotion is a local orientation of the virtual character based on the virtual vehicle, and the playrorotion _2 is a rotational orientation of the virtual character in the current frame of the virtual character in the world coordinate system, so that the fifth absolute position of the virtual character may include, for example, the fifth absolute coordinate playerPosition _2 of the currently determined virtual character in the world coordinate system and the rotational orientation of the virtual character in the current frame of the virtual character in the world coordinate system, playrorotion _ 2.
S305, determining a fourth absolute position of the virtual character under the preset coordinate system at the second moment according to the second movement information and the fifth absolute position.
After the fifth absolute position is determined, the virtual character moves along with the virtual vehicle, and the virtual character can move by itself, that is, the relative position information of the virtual character and the virtual vehicle changes, so that the fourth absolute position of the virtual character in the preset coordinate system at the second moment can be further determined according to the second movement information and the fifth absolute position.
In a possible implementation manner, the second movement information may include a movement direction and a movement distance, and the fifth absolute position may be updated according to the movement direction and the movement distance, for example, so as to obtain a fourth absolute position of the virtual character in the preset coordinate system at the second time.
For example, as shown in fig. 5, it can be understood that, as shown in fig. 5, the frame screen corresponding to the first time point is an image shown as 501 in fig. 5, the frame screen corresponding to the second time point is an image shown as 502 in fig. 5, and the first absolute position of the virtual carrier is a coordinate (a) in the frame screen 501 corresponding to the first time point1,y1) The indicated position, the second absolute position of the virtual character is the coordinate (b)1,y2) The indicated position.
Similar to the description of FIG. 4 above, assume that the current is based on the dotted lineThe first movement information of the virtual vehicle and the first absolute position of the virtual vehicle determine that the third absolute position of the virtual traffic in the preset coordinate system at the second moment is the coordinate (a) in fig. 52,y1) The indicated position.
And similar to the description of fig. 4 above, a first relative position of the virtual character with respect to the virtual vehicle may be determined based on the second absolute position and the first absolute position, and then based on a third absolute position (a) of the virtual vehicle2,y1) And said first relative position, determining a fifth absolute position (b) of the virtual character in a predetermined coordinate system2,y2) Its implementation is similar to that described above with reference to fig. 4.
Further, assuming that the moving direction of the second movement information is the direction indicated by the arrow a in fig. 5 and the moving distance is the distance indicated by ∈ in fig. 5, the fifth absolute position (b) may be paired according to the moving direction and the moving distance2,y2) Updating to obtain a fourth absolute position (b) of the virtual character in the preset coordinate system3,y2)。
Based on the above description, it can be determined that, in the implementation process of the above description, a fifth absolute position of the virtual character after moving along with the virtual vehicle can be determined, then, on the basis of the fifth absolute position, a fourth absolute position of the virtual character after moving relative to the virtual vehicle can be implemented, and the determined position information of the virtual character is implemented in a world coordinate system, so that the virtual character can be effectively implemented to move along with the virtual vehicle in the world coordinate system, and simultaneously, the virtual character can be effectively implemented to move relative to the virtual vehicle, which are all implemented in the world coordinate system, because the virtual character is not located in a local coordinate system of the virtual vehicle, the virtual vehicle can be effectively implemented to get on and off the virtual vehicle at any time.
Based on the above description, it can be determined that, in the embodiment, the first movement information may indicate that the virtual vehicle moves or does not move, and the second movement information may indicate that the virtual character moves or does not move, and there are many possible implementation manners of the corresponding virtual character and the virtual vehicle.
In a possible implementation manner, the first movement information indicates that the virtual vehicle moves, and the second movement information indicates that the virtual character moves, that is, both the virtual vehicle and the virtual character move at the same time, which can be implemented by referring to fig. 5, as shown in fig. 5, the position of the virtual vehicle moves, and the position of the virtual character moves synchronously with the virtual vehicle, and the position of the virtual character relative to the virtual vehicle also moves correspondingly according to the second movement information.
In another possible implementation, the first movement information indicates that the virtual vehicle moves, and the second movement information indicates that the virtual character does not move, that is, only the virtual vehicle moves, which can be implemented as shown in fig. 4, in which the position of the virtual vehicle moves, and the position of the virtual character follows the virtual vehicle to move synchronously, because the virtual character does not move spontaneously, and therefore the position of the virtual character relative to the virtual vehicle does not change.
In another possible implementation manner, the first movement information indicates that the virtual vehicle does not move, and the second movement information indicates that the virtual character moves, that is, only the virtual character moves, in this case, an implementation manner can refer to fig. 6, as shown in fig. 6, in which the position of the virtual vehicle does not move, and is always located at the coordinate (a)1,y1) Indicated position, and position of virtual character from coordinates (b)1,y2) The indicated position is moved to the coordinate (b)4,y2) The indicated position, and thus the position of the virtual character relative to the virtual vehicle, also changes.
In an actual implementation process, a specific moving manner of the virtual vehicle and the virtual object may be selected according to an actual requirement, which is not limited in this embodiment.
S306, rendering the position of the virtual carrier at the second moment on the graphical user interface according to the third absolute position, and rendering the position of the virtual character at the second moment on the graphical user interface according to the fourth absolute position.
The implementation manner of S306 is similar to the implementation manner of S204 described above, and is not described here again.
The object control method provided by the embodiment of the application determines a first relative position of a virtual character relative to a virtual carrier according to a first absolute position of the virtual carrier and a second absolute position of the virtual character, then determines a fifth absolute position of the virtual character after the virtual character moves synchronously with the virtual carrier according to the first relative position and a third absolute position of the virtual character after the virtual carrier moves, and then realizes the movement of the virtual character according to the fifth absolute position and second movement information on the basis of the fifth absolute position so as to determine a fourth absolute position of the virtual character at a second moment after the virtual character moves, wherein the whole process is carried out under a world coordinate system, so that the scheme provided by the embodiment of the application can effectively realize the synchronous movement of the virtual character following the virtual carrier under the world coordinate system and simultaneously effectively realize the spontaneous movement of the virtual character relative to the virtual carrier, because the virtual character does not move under the local coordinate system of the virtual carrier, the virtual character can effectively get on or off the vehicle at any time, so that the comprehensiveness of game operation is effectively improved.
On the basis of the foregoing embodiment, the object control method provided in this embodiment of the present application may further detect and mark upper and lower virtual vehicles of the virtual character, which is described below with reference to fig. 7 to 11, where fig. 7 is a flowchart three of the object control method provided in this embodiment of the present application, fig. 8 is a first implementation schematic diagram for determining a vehicle identifier corresponding to the virtual character provided in this embodiment of the present application, fig. 9 is a second implementation schematic diagram for determining a vehicle identifier corresponding to the virtual character provided in this embodiment of the present application, fig. 10 is a third implementation schematic diagram for determining a vehicle identifier corresponding to the virtual character provided in this embodiment of the present application, and fig. 11 is a fourth implementation schematic diagram for determining a vehicle identifier corresponding to the virtual character provided in this embodiment of the present application.
As shown in fig. 7, the method includes:
s701, determining a first position relation between the virtual character and the virtual carrier according to the third absolute position and the fourth absolute position, wherein the first position relation indicates that the virtual character is located on the virtual carrier or the virtual character is not located on the virtual carrier.
In this embodiment, since the virtual character can be moved up and down the virtual vehicle at any time, the positions of the virtual vehicle and the virtual character determined for each frame may be on the virtual vehicle or not, and thus the first positional relationship between the virtual character and the virtual vehicle needs to be determined in this embodiment.
In one possible implementation, for example, it may be determined whether the virtual character is located on the virtual vehicle according to the third absolute position and the fourth absolute position, so as to determine a first positional relationship between the virtual character and the virtual vehicle, where the first positional relationship may indicate that the virtual character is located on the virtual vehicle, or the first positional relationship may also indicate that the virtual character is not located on the virtual vehicle.
Alternatively, in the actual game implementation process, the presence or absence of the virtual vehicle under the foot of the virtual character may be detected by detecting a ray of a predetermined length toward the foot from the sole of the virtual character, for example. If the virtual vehicle is detected to exist, determining that the first position relation indicates that the virtual character is located on the virtual vehicle. If the virtual vehicle is detected to be absent, determining that the first position relationship indicates that the virtual character is not located on the virtual vehicle. The preset length of the ray detection may be, for example, 3 meters, and in an actual implementation process, the length of the ray detection may be selected according to an actual requirement, which is not particularly limited in this embodiment.
S702, determining whether the first position relationship indicates that the virtual character is located on the virtual carrier, if so, performing S703, and if not, performing S705.
In this embodiment, different implementations exist for different indications of the first position relationship, so that it can be determined whether the first position relationship indicates that the virtual character is located on the virtual vehicle, and then corresponding operations are performed.
S703, acquiring a second position relation between the virtual character and the virtual carrier at the first moment.
In a possible implementation manner, if it is determined that the first positional relationship indicates that the virtual character is located on the virtual vehicle, a second positional relationship between the virtual character and the virtual vehicle in the frame corresponding to the first time needs to be further acquired, so as to determine whether the virtual character is always located on the virtual vehicle or just starts to be located on the virtual vehicle, that is, it needs to determine whether the virtual character performs a boarding operation at the second time compared to the first time.
The second positional relationship in this embodiment is similar to the first positional relationship described above, and may indicate that the virtual character is located on the virtual vehicle, or may also indicate that the virtual character is not located on the virtual vehicle.
S704, if the second position relationship indicates that the virtual character is not located on the virtual vehicle, determining the identifier of the virtual vehicle to be the vehicle identifier corresponding to the virtual character.
In a possible implementation manner, for example, as can be understood with reference to fig. 8, 801 in fig. 8 is a frame picture corresponding to a first time, and 802 in fig. 8 is a frame picture corresponding to a second time, it can be determined based on fig. 8 that the second positional relationship at the first time indicates that the virtual character is not located on the virtual vehicle, and the first positional relationship at the second time indicates that the virtual character is located on the virtual vehicle, and therefore it can be determined that the virtual character has just performed the boarding operation, and therefore the boarding of the virtual character can be marked, for example, the identifier of the virtual vehicle can be determined as a vehicle identifier corresponding to the virtual character, such as the identifier of the virtual vehicle is ship a, and the current virtual character is character one, and then, for example, the vehicle identifier corresponding to character one can be set as ship a, so as to mark that the character one is located on ship a.
In another possible implementation manner, for example, as can be understood with reference to fig. 9, 901 in fig. 9 is a frame picture corresponding to a first time, and 902 in fig. 9 is a frame picture corresponding to a second time, it can be determined based on fig. 9 that the second positional relationship at the first time indicates that the virtual character is located on the virtual vehicle, and the first positional relationship at the second time indicates that the virtual character is located on the virtual vehicle, so that it can be determined that the virtual character is always located on the virtual vehicle, and the boarding mark has been performed before, and therefore, no operation needs to be performed currently.
S705, a second position relation between the virtual character and the virtual carrier at the first moment is obtained.
In a possible implementation manner, if it is determined that the first positional relationship indicates that the virtual character is not located on the virtual vehicle, a second positional relationship between the virtual character and the virtual vehicle at the first time is further acquired, so as to determine whether the virtual character is not located on the virtual vehicle all the time or is not located on the virtual vehicle just now, that is, it is required to determine whether the virtual character performs the operation of going off the ship at the second time compared with the first time.
The second positional relationship in this embodiment is similar to the first positional relationship described above, and may indicate that the virtual character is located on the virtual vehicle, or may also indicate that the virtual character is not located on the virtual vehicle.
S706, if the second position relation indicates that the virtual character is located on the virtual carrier, determining that the carrier identifier corresponding to the virtual character is empty.
In a possible implementation manner, for example, as can be understood with reference to fig. 10, 1001 in fig. 10 is a frame picture corresponding to a first time, and 1002 in fig. 10 is a frame picture corresponding to a second time, it can be determined based on fig. 10 that the second positional relationship at the first time indicates that the virtual character is located on the virtual vehicle, and the first positional relationship at the second time indicates that the virtual character is not located on the virtual vehicle, and then it can be determined that the virtual character has just performed the operation of going off the boat, so that the virtual character can be marked to go off the boat, for example, it can be determined that a vehicle identifier corresponding to the virtual character is empty, so as to mark that the virtual character is not currently located on the virtual vehicle.
In another possible implementation manner, for example, as can be understood with reference to fig. 11, 1101 in fig. 11 is a frame screen corresponding to a first time, and 1102 in fig. 11 is a frame screen corresponding to a second time, it can be determined based on fig. 11 that the second positional relationship at the first time indicates that the virtual character is not located on the virtual vehicle, and the first positional relationship at the second time indicates that the virtual character is not located on the virtual vehicle, and then it can be determined that the virtual character is not always located on the virtual vehicle, and it has been previously determined that the vehicle identifier corresponding to the virtual character is empty, so that no operation needs to be performed currently.
It is understood that, taking the virtual vehicle as a ship as an example, the above-described boarding or disembarking operation may be triggered in response to a jumping operation, a climbing operation, and the like performed by a user, after triggering a corresponding instruction, the virtual character may correspondingly perform the corresponding boarding or disembarking operation, and after performing an uploading operation or a disembarking operation, the above-described boarding or disembarking switching procedure may be performed.
According to the object control method provided by the embodiment of the application, the first position relation between the virtual character and the virtual carrier is determined according to the third absolute position and the fourth absolute position, and then the virtual character is marked to go on or off the ship according to the second position relation at the first moment and the first position relation at the second moment, so that whether the virtual character is positioned on the virtual carrier and which virtual carrier the virtual character is specifically positioned on can be simply and effectively marked on the basis of realizing the virtual character goes on or off the virtual carrier at any time based on a world coordinate system, and the orderliness and the comprehensiveness of game data are ensured.
On the basis of the above embodiment, after the terminal device determines the game related information, the game related information needs to be synchronized to the remaining second terminal devices to ensure the synchronization of the game data.
For example, fig. 12 may be used to understand, and fig. 12 is a schematic diagram illustrating an implementation of sending synchronization information according to an embodiment of the present application.
As shown in fig. 12, the terminal device 1201 may send synchronization information to the server 1202, and then the server 1202 may send the synchronization information to at least one second terminal device, where the at least one second terminal device is in the same game scene as the terminal device, and may also be understood as a terminal device in the same game.
It is understood that the terminal device herein is a terminal device for displaying the graphical user interface provided in the embodiment of the present application, it may also be understood as a terminal device held by the current user, it may also be considered as a first terminal device to distinguish from a second terminal device, and the second terminal device is a terminal device held by the rest of users in the same game.
In a possible implementation manner, after determining the identifier of the virtual vehicle to the vehicle identifier corresponding to the virtual character, it may be determined that the virtual character is located on the virtual vehicle, at this time, for example, first synchronization information may be sent to the server, so that the server sends the first synchronization information to the at least one second terminal device, where the first synchronization information may include at least one of the following: the virtual vehicle comprises a vehicle identification corresponding to the virtual character and a first relative position of the virtual character relative to the virtual vehicle.
It can be understood that, taking the virtual vehicle as a ship as an example, when the virtual character is located on the ship, the terminal device may send an identifier of the ship and a first relative position of the virtual character with respect to the ship to the remaining second terminal devices through the server, and then the second terminal devices may obtain, for example, a position of the ship in a preset coordinate system according to the identifier of the ship, then determine a position of the virtual character in the preset coordinate system according to the first relative position and the position of the ship in the preset coordinate system, and then render the virtual character according to the position of the virtual character in the preset coordinate system, so that synchronization and display of position information of the virtual character may be accurately and effectively implemented.
In another possible implementation manner, after determining the carrier identifier corresponding to the virtual carrier based on the identifier of the virtual carrier, it may be determined that the virtual character is not located on the virtual carrier, and at this time, for example, second synchronization information may be sent to the server, so that the server sends the second synchronization information to the at least one second terminal device, where the second synchronization information may include at least one of: the virtual role control method comprises first indication information and an absolute position of a virtual role under a preset coordinate system at the current moment, wherein the first indication information is used for indicating that a carrier mark corresponding to the virtual role is empty.
It can be understood that, taking the virtual vehicle as a ship as an example, when the virtual character takes off the ship, the terminal device may send the first indication information to each second terminal device through the server to indicate that each second terminal device takes off the ship currently by the virtual character, and at the same time, since the virtual character does not need to move along with the virtual vehicle after taking off the ship, the absolute position of the virtual character at the current time in the preset coordinate system may also be sent to each second terminal device, so as to implement synchronization of the information about taking off the ship with each second terminal device and synchronization of the position after taking off the ship. And then rendering the virtual character according to the position of the virtual character in the preset coordinate system, thereby accurately and effectively realizing the synchronization and the display of the position information of the virtual character.
When the terminal device synchronizes the position of the virtual character with each second terminal device, the terminal device synchronizes a first relative position of the virtual character with respect to the virtual vehicle, and then each second terminal device determines an absolute position of the virtual character in the preset coordinate system according to the first relative position and the absolute position of the virtual vehicle in the preset coordinate system. The terminal device does not directly synchronize the absolute position of the virtual character in the preset coordinate system, and the following two reasons exist.
First, the absolute position of the virtual character may change very fast along with the movement of the virtual vehicle, and if the absolute position of the virtual character is directly synchronized to each second terminal device, due to the effect of network delay, when the second terminal device receives and displays the absolute position of the virtual character, the virtual character may have moved far away from the current position following the virtual vehicle, and thus the position synchronization of the virtual character between each terminal device may be wrong. However, the relative position of the virtual character with respect to the virtual vehicle is relatively fixed, and the change is relatively small, so that the accuracy of the position synchronization of the virtual object can be effectively improved by synchronizing the first relative position.
Secondly, when the position of the virtual vehicle is determined in the graphical user interface of the terminal device, for the ship, the specific representation of the ship on the sea surface fluctuating along with the sea waves is different, specifically, each terminal device processes the representation of the fluctuation by itself, so that in the graphical user interface of each terminal device, the position of the virtual vehicle is approximately the same, but is not completely the same, in this case, if the absolute position of the virtual character is directly and synchronously displayed to each terminal device, a situation that the virtual character is displayed incorrectly on part of the terminal devices may occur, for example, the virtual character falls into the virtual vehicle, or the virtual character floats on the virtual vehicle may occur. However, if the first relative position is synchronized to each second terminal device, and each second terminal device determines the absolute position of the virtual character according to the first relative position, the correct display of the virtual character can be effectively ensured, so that the display error can be effectively avoided.
In summary, according to the solution provided by the embodiment of the present application, for each virtual character in the game, by determining the relative position between the virtual character and the virtual carrier, and then determining the absolute position of the virtual character after moving spontaneously according to the absolute position of the virtual character in the world coordinate system after the virtual character moves along with the virtual carrier determined by the relative position, the movement of the virtual character and the virtual carrier can be effectively realized in the world coordinate system, wherein the movement of the virtual character along with the virtual carrier and the movement of the virtual character relative to the virtual carrier can be effectively realized, and the whole process is performed in the world coordinate system, because the virtual character is not moved in the local coordinate system of the virtual carrier, and there is no parent-child relationship between the virtual character and the virtual carrier, the virtual character can effectively realize getting on and off the transportation at any time, so as to effectively improve the comprehensiveness of game operation.
It should be noted that, in the present embodiment, the movement of the virtual vehicle and the movement of the virtual character are both performed in the world coordinate system, but if the virtual vehicle and the virtual character are merely placed in the world coordinate system without any processing, the following situations may occur:
for example, for a case that the virtual vehicle is a ship, for a ship which is unmanned on the sea and ripples with the ship, the ship can heave under the action of the sea waves, and assuming that a virtual object exists on the ship, it can be understood that when the ship moves down at the action position of the sea waves, the virtual object also moves down under the action of gravity (because the support of the sole of the virtual character moves down), and when the ship moves up under the action of the sea waves, the virtual object also moves up under the support action of the ship (because the support of the sole of the virtual character moves up and comes up to the top of the virtual character), but the movement of the virtual object is completely completed under the action of force, so that the heave of the virtual object and the movement of the virtual vehicle are not synchronously realized, and the virtual character shakes.
And for the vessel which is controlled to move fast, if the virtual character exists on the vessel and no processing is performed on the virtual character, the virtual character falls into the sea from the vessel after the vessel moves.
The reason for the above two situations is that although the virtual character and the virtual vehicle are both located in the world coordinate system, no corresponding processing is performed on the movement of the virtual character and the virtual vehicle, and in the embodiments of the present application, by determining the relative position of the virtual character with respect to the virtual vehicle and then determining the absolute position of the virtual character according to the relative position and the absolute position of the virtual vehicle, corresponding processing can be performed in the world coordinate system, so as to effectively realize the synchronous movement of the virtual character with the virtual vehicle and simultaneously effectively realize the spontaneous movement of the virtual character with respect to the virtual vehicle.
Fig. 13 is a schematic structural diagram of an object control apparatus according to an embodiment of the present application. As shown in fig. 13, the apparatus 130 includes: an obtaining module 1301, a determining module 1302, a displaying module 1303, a first synchronizing module 1304, and a second synchronizing module 1305.
An obtaining module 1301, configured to obtain, at a first time, a first absolute position of the virtual vehicle in a preset coordinate system and a second absolute position of the virtual character in the preset coordinate system;
the obtaining module 1301 is further configured to obtain, according to the first movement information of the virtual vehicle, a third absolute position of the virtual vehicle in a preset coordinate system at a second time;
a determining module 1302, configured to determine, according to the first absolute position, the second absolute position, the third absolute position, and the second movement information of the virtual character, a fourth absolute position of the virtual character at the second time in the preset coordinate system;
and a display module 1303, configured to render, according to the third absolute position, the position of the virtual vehicle at the second time on the graphical user interface, and render, according to the fourth absolute position, the position of the virtual character at the second time on the graphical user interface.
In one possible design, the determining module 1302 is specifically configured to:
determining a first relative position of the virtual character relative to the virtual vehicle according to the second absolute position and the first absolute position;
determining a fifth absolute position of the virtual character in the preset coordinate system according to the third absolute position and the first relative position, wherein the relative position of the fifth absolute position relative to the third absolute position is the first relative position;
and determining a fourth absolute position of the virtual character under the preset coordinate system at the second moment according to the second movement information of the virtual character and the fifth absolute position.
In one possible design, the determining module 1302 is specifically configured to:
and updating the fifth absolute position according to the moving direction of the virtual character and the moving distance of the virtual character to obtain a fourth absolute position of the virtual character in the preset coordinate system at the second moment.
In one possible design, the determining module 1302 is further configured to:
determining a first position relationship between the virtual character and the virtual vehicle according to the third absolute position and the fourth absolute position, wherein the first position relationship indicates that the virtual character is located on the virtual vehicle or the virtual character is not located on the virtual vehicle;
if the first position relation indicates that the virtual character is located on the virtual carrier, determining the carrier identifier corresponding to the virtual character from the identifier of the virtual carrier;
and if the first position relation indicates that the virtual character is not located on the virtual carrier, determining that the carrier identifier corresponding to the virtual character is empty.
In one possible design, the determining module 1302 is specifically configured to:
acquiring a second position relation between the virtual character and the virtual carrier at the first moment;
and if the second position relation indicates that the virtual character is not located on the virtual carrier, determining the carrier identifier corresponding to the virtual character from the identifier of the virtual carrier.
In one possible design, the determining module 1302 is specifically configured to:
acquiring a second position relation between the virtual character and the virtual carrier at the first moment;
and if the second position relation indicates that the virtual character is located on the virtual carrier, determining that the carrier identifier corresponding to the virtual character is empty.
In one possible design, the apparatus further includes: a first synchronization module 1304;
the first synchronization module 1304 is specifically configured to:
after the virtual carrier identifier is determined to be the carrier identifier corresponding to the virtual character, sending first synchronization information to a server, so that the server sends the first synchronization information to at least one second terminal device, where the at least one second terminal device and the terminal device are in the same game scene, where the first synchronization information includes at least one of: the virtual vehicle comprises a vehicle identification corresponding to the virtual character and a first relative position of the virtual character relative to the virtual vehicle.
In one possible design, the apparatus further includes: a second synchronization module 1305;
the second synchronization module 1305 is specifically configured to:
after the virtual carrier identifier is used for determining the carrier identifier corresponding to the virtual character, second synchronization information is sent to a server, so that the server sends the second synchronization information to at least one second terminal device, wherein the at least one second terminal device and the terminal device are in the same game scene, and the second synchronization information includes at least one of the following: the virtual role control method comprises first indication information and an absolute position of the virtual role under the preset coordinate system at the current moment, wherein the first indication information is used for indicating that a carrier mark corresponding to the virtual role is empty.
The apparatus provided in this embodiment may be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 14 is a schematic diagram of a hardware structure of an object control device according to an embodiment of the present application, and as shown in fig. 14, an object control device 140 according to the present embodiment includes: a processor 1401 and a memory 1402; wherein
A memory 1402 for storing computer-executable instructions;
a processor 1401 for executing computer executable instructions stored in the memory to implement the steps performed by the object control method in the above embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 1402 may be separate or integrated with the processor 1401.
When the memory 1402 is provided independently, the object control device further includes a bus 1403 for connecting the memory 1402 and the processor 1401.
An embodiment of the present application further provides a computer-readable storage medium, where a computer executing instruction is stored in the computer-readable storage medium, and when a processor executes the computer executing instruction, the object control method executed by the above object control device is implemented.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Claims (12)
1. An object control method is characterized in that a graphical user interface is provided through a terminal device, the graphical user interface comprises a virtual carrier and a virtual character, and the method comprises the following steps:
acquiring a first absolute position of the virtual carrier in a preset coordinate system and a second absolute position of the virtual character in the preset coordinate system at a first moment;
acquiring a third absolute position of the virtual carrier under a preset coordinate system at a second moment according to the first movement information of the virtual carrier;
determining a fourth absolute position of the virtual character under the preset coordinate system at the second moment according to the first absolute position, the second absolute position, the third absolute position and second movement information of the virtual character;
rendering, on the graphical user interface, the position of the virtual vehicle at the second time based on the third absolute position, and rendering, on the graphical user interface, the position of the virtual character at the second time based on the fourth absolute position.
2. The method of claim 1, wherein the determining a fourth absolute position of the virtual character in the preset coordinate system at the second time according to the first absolute position, the second absolute position, the third absolute position and the second movement information of the virtual character comprises:
determining a first relative position of the virtual character relative to the virtual vehicle according to the second absolute position and the first absolute position;
determining a fifth absolute position of the virtual character in the preset coordinate system according to the third absolute position and the first relative position, wherein the relative position of the fifth absolute position relative to the third absolute position is the first relative position;
and determining a fourth absolute position of the virtual character under the preset coordinate system at the second moment according to the second movement information of the virtual character and the fifth absolute position.
3. The method of claim 2, wherein the second movement information comprises a movement direction and a movement distance; determining, according to the second movement information of the virtual character and the fifth absolute position, a fourth absolute position of the virtual character at the second time in the preset coordinate system, including:
and updating the fifth absolute position according to the moving direction of the virtual character and the moving distance of the virtual character to obtain a fourth absolute position of the virtual character in the preset coordinate system at the second moment.
4. The method according to any one of claims 1-3, further comprising:
determining a first position relationship between the virtual character and the virtual vehicle according to the third absolute position and the fourth absolute position, wherein the first position relationship indicates that the virtual character is located on the virtual vehicle or the virtual character is not located on the virtual vehicle;
if the first position relation indicates that the virtual character is located on the virtual carrier, determining the carrier identifier corresponding to the virtual character from the identifier of the virtual carrier;
and if the first position relation indicates that the virtual character is not located on the virtual carrier, determining that the carrier identifier corresponding to the virtual character is empty.
5. The method of claim 4, wherein determining the identity of the virtual vehicle as the vehicle identity corresponding to the virtual character comprises:
acquiring a second position relation between the virtual character and the virtual carrier at the first moment;
and if the second position relation indicates that the virtual character is not located on the virtual carrier, determining the carrier identifier corresponding to the virtual character from the identifier of the virtual carrier.
6. The method of claim 4, wherein determining that the vehicle identifier corresponding to the virtual character is empty comprises:
acquiring a second position relation between the virtual character and the virtual carrier at the first moment;
and if the second position relation indicates that the virtual character is located on the virtual carrier, determining that the carrier identifier corresponding to the virtual character is empty.
7. The method according to any one of claims 4-6, wherein after determining the identification of the virtual vehicle to the vehicle identification corresponding to the virtual character, the method further comprises:
sending first synchronization information to a server so that the server sends the first synchronization information to at least one second terminal device, wherein the at least one second terminal device and the terminal device are in the same game scene, and the first synchronization information comprises at least one of the following: the virtual vehicle comprises a vehicle identification corresponding to the virtual character and a first relative position of the virtual character relative to the virtual vehicle.
8. The method according to any one of claims 4-6, wherein after determining the identification of the virtual vehicle to the vehicle identification corresponding to the virtual character, the method further comprises:
sending second synchronization information to a server so that the server sends the second synchronization information to at least one second terminal device, wherein the at least one second terminal device and the terminal device are in the same game scene, and the second synchronization information comprises at least one of the following: the virtual role control method comprises first indication information and an absolute position of the virtual role under the preset coordinate system at the current moment, wherein the first indication information is used for indicating that a carrier mark corresponding to the virtual role is empty.
9. An object control apparatus, wherein a graphical user interface is provided through a terminal device, the graphical user interface including a virtual vehicle and a virtual character, the apparatus comprising:
the virtual vehicle control system comprises an acquisition module, a control module and a display module, wherein the acquisition module is used for acquiring a first absolute position of a virtual vehicle in a preset coordinate system and a second absolute position of a virtual character in the preset coordinate system at a first moment;
the acquiring module is further configured to acquire a third absolute position of the virtual vehicle in a preset coordinate system at a second moment according to the first movement information of the virtual vehicle;
a determining module, configured to determine, according to the first absolute position, the second absolute position, the third absolute position, and second movement information of the virtual character, a fourth absolute position of the virtual character at the second time in the preset coordinate system;
and the display module is used for rendering the position of the virtual carrier at the second moment on the graphical user interface according to the third absolute position and rendering the position of the virtual character at the second moment on the graphical user interface according to the fourth absolute position.
10. An object control apparatus, characterized by comprising:
a memory for storing a program;
a processor for executing the program stored by the memory, the processor being configured to perform the method of any of claims 1 to 8 when the program is executed.
11. A computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 8.
12. A computer program product comprising a computer program, characterized in that the computer program realizes the method of any one of claims 1 to 8 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111078792.0A CN113769405B (en) | 2021-09-15 | 2021-09-15 | Object control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111078792.0A CN113769405B (en) | 2021-09-15 | 2021-09-15 | Object control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113769405A true CN113769405A (en) | 2021-12-10 |
CN113769405B CN113769405B (en) | 2024-07-16 |
Family
ID=78843923
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111078792.0A Active CN113769405B (en) | 2021-09-15 | 2021-09-15 | Object control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113769405B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023185259A1 (en) * | 2022-04-01 | 2023-10-05 | 腾讯科技(深圳)有限公司 | Virtual object control method and related apparatus |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130190087A1 (en) * | 2012-01-19 | 2013-07-25 | Zynga Inc. | Three dimensional operations in an isometric projection |
US20140213358A1 (en) * | 2013-01-30 | 2014-07-31 | Zynga Inc. | Gaming platform providing a multi-move game operation |
CN107198883A (en) * | 2017-05-26 | 2017-09-26 | 网易(杭州)网络有限公司 | Method for searching and device for game object in virtual game |
CN107648847A (en) * | 2017-08-22 | 2018-02-02 | 网易(杭州)网络有限公司 | Information processing method and device, storage medium, electronic equipment |
WO2019027060A1 (en) * | 2017-07-31 | 2019-02-07 | 주식회사 렛시 | Apparatus and method for augmenting virtual object |
US20190118078A1 (en) * | 2017-10-23 | 2019-04-25 | Netease (Hangzhou) Network Co.,Ltd. | Information Processing Method and Apparatus, Storage Medium, and Electronic Device |
CN111311719A (en) * | 2020-02-10 | 2020-06-19 | 网易(杭州)网络有限公司 | Display processing method and device in game |
US20210047037A1 (en) * | 2018-05-02 | 2021-02-18 | SZ DJI Technology Co., Ltd. | Optically supported object navigation |
CN112843683A (en) * | 2021-03-09 | 2021-05-28 | 腾讯科技(深圳)有限公司 | Control method and device of virtual role, electronic equipment and storage medium |
-
2021
- 2021-09-15 CN CN202111078792.0A patent/CN113769405B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130190087A1 (en) * | 2012-01-19 | 2013-07-25 | Zynga Inc. | Three dimensional operations in an isometric projection |
US20140213358A1 (en) * | 2013-01-30 | 2014-07-31 | Zynga Inc. | Gaming platform providing a multi-move game operation |
CN107198883A (en) * | 2017-05-26 | 2017-09-26 | 网易(杭州)网络有限公司 | Method for searching and device for game object in virtual game |
WO2019027060A1 (en) * | 2017-07-31 | 2019-02-07 | 주식회사 렛시 | Apparatus and method for augmenting virtual object |
CN107648847A (en) * | 2017-08-22 | 2018-02-02 | 网易(杭州)网络有限公司 | Information processing method and device, storage medium, electronic equipment |
US20190118078A1 (en) * | 2017-10-23 | 2019-04-25 | Netease (Hangzhou) Network Co.,Ltd. | Information Processing Method and Apparatus, Storage Medium, and Electronic Device |
US20210047037A1 (en) * | 2018-05-02 | 2021-02-18 | SZ DJI Technology Co., Ltd. | Optically supported object navigation |
CN111311719A (en) * | 2020-02-10 | 2020-06-19 | 网易(杭州)网络有限公司 | Display processing method and device in game |
CN112843683A (en) * | 2021-03-09 | 2021-05-28 | 腾讯科技(深圳)有限公司 | Control method and device of virtual role, electronic equipment and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023185259A1 (en) * | 2022-04-01 | 2023-10-05 | 腾讯科技(深圳)有限公司 | Virtual object control method and related apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN113769405B (en) | 2024-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110276840B (en) | Multi-virtual-role control method, device, equipment and storage medium | |
US11090555B2 (en) | Information processing method and apparatus, storage medium and electronic device | |
US10101873B2 (en) | Portable terminal having user interface function, display method, and computer program | |
US11033817B2 (en) | Information processing method and apparatus, storage medium and electronic device | |
US8619028B2 (en) | Mobile communication terminal, application program, image display control apparatus, electronic apparatus, and image display control method | |
CN109646944B (en) | Control information processing method, control information processing device, electronic equipment and storage medium | |
US20080254821A1 (en) | Electronic Apparatus | |
CN111701238A (en) | Virtual picture volume display method, device, equipment and storage medium | |
CN106020655B (en) | Method and device for switching interface screen and electronic equipment | |
US9690533B2 (en) | Displaying system, display controller, storage medium and method | |
CN106873886B (en) | Control method and device for stereoscopic display and electronic equipment | |
EP1770483A1 (en) | Electronic device | |
US20140152562A1 (en) | Display controller, display system, storage medium and method | |
JP5350427B2 (en) | Image processing apparatus, image processing apparatus control method, and program | |
CN113769405B (en) | Object control method and device | |
CN111803941A (en) | In-game display control method and device and electronic equipment | |
US9665232B2 (en) | Information-processing device, storage medium, information-processing method, and information-processing system for enlarging or reducing an image displayed on a display device | |
US11386612B2 (en) | Non-transitory computer-readable medium, image processing method, and image processing system for controlling progress of information processing in response to a user operation | |
CN112068703B (en) | Target object control method and device, electronic device and storage medium | |
CN112887777B (en) | Interactive prompting method and device for interactive video, electronic equipment and storage medium | |
CN111897437A (en) | Cross-terminal interaction method and device, electronic equipment and storage medium | |
KR102278229B1 (en) | Electronic device and its control method | |
CN113384881A (en) | Map display method and device in game | |
CN112402967B (en) | Game control method, game control device, terminal equipment and medium | |
JP2019051360A (en) | Game program, game providing method, and information processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |