CN112657200B - Role control method, device, equipment and storage medium - Google Patents

Role control method, device, equipment and storage medium Download PDF

Info

Publication number
CN112657200B
CN112657200B CN202011544740.3A CN202011544740A CN112657200B CN 112657200 B CN112657200 B CN 112657200B CN 202011544740 A CN202011544740 A CN 202011544740A CN 112657200 B CN112657200 B CN 112657200B
Authority
CN
China
Prior art keywords
role
information
current role
current
target
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.)
Active
Application number
CN202011544740.3A
Other languages
Chinese (zh)
Other versions
CN112657200A (en
Inventor
师锐
胡婷婷
赵男
包炎
刘超
施一东
李鑫培
董一夫
张宁烨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Mihoyo Tianming Technology Co Ltd
Original Assignee
Shanghai Mihoyo Tianming Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Mihoyo Tianming Technology Co Ltd filed Critical Shanghai Mihoyo Tianming Technology Co Ltd
Priority to CN202011544740.3A priority Critical patent/CN112657200B/en
Publication of CN112657200A publication Critical patent/CN112657200A/en
Application granted granted Critical
Publication of CN112657200B publication Critical patent/CN112657200B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a role control method, a role control device, role control equipment and a storage medium. The method comprises the following steps: acquiring identification information of a current role and attribute information of objects in a region around the current role; determining arm length information and height information corresponding to the current role according to the identification information; and if the object is determined to be the target object according to the attribute information of the object, judging whether the current role can pick up the target object according to the arm length information and the height information corresponding to the current role. By the technical scheme, whether the character can pick the object at the target position or not can be judged according to the arm length information and the height information corresponding to the identification information of the character, the interest of the game is increased, and the sense of reality and the sense of immersion of the game are enhanced. Meanwhile, the double judgment standards of the hanging points and the collision boxes are adopted to judge whether the game role can pass through the obstacles, so that the operation precision is improved, and the game experience of the player is improved.

Description

Role control method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computer data processing, in particular to a role control method, device, equipment and storage medium.
Background
With the rapid development of the internet, the network game industry comes to birth and develops vigorously, and the network game has become a sunrise industry with great potential and wide development prospect in the current society. 3D technology is well-established in game design, providing game players with an immersive experience. However, with the rapid development of the gaming industry, game players have placed higher demands on the gaming experience. Especially for online games with complex game scenes, better game experience can be brought to game players only if game characters are perfectly matched with the game scenes.
In network games, a game character is usually required to perform certain tasks in various game scenarios, such as: passing through an obstacle or picking up a target object. In the prior art, a character often needs to pick a target object only by the character reaching a specified position or executing specified operation, and whether the target object can be picked cannot be judged according to the capability design and the use skill of the character. When judging whether a character can pass through an obstacle, collision detection is generally performed by using a collision box. However, the game scene and the game role are changeable, the effect is not good when the collision box is used as a single judgment standard, and the appearance design of the game role is more and more complex and exquisite, so that the collision box is adopted for collision detection, the calculation amount is large, the calculation efficiency is low, and extremely poor game experience is brought to game players.
Disclosure of Invention
Embodiments of the present invention provide a character control method, device, apparatus, and storage medium, so as to determine whether a current game character can grab an object at a target position according to arm length information and height information corresponding to identification information of the character, thereby increasing game interest and enhancing game reality and immersion. Meanwhile, whether the game role can pass through the barrier or not is judged according to double judgment standards of the hanging point and the collision box, so that the operation precision is improved, and the game experience of a player is improved. However, when the game character can not pass through the obstacle according to the hanging point, whether the game character can pass through the obstacle or not is judged without a collision box, so that the calculation amount is greatly reduced, the calculation efficiency is improved, and the smoothness of the game is improved.
In a first aspect, an embodiment of the present invention provides a role control method, including:
acquiring identification information of a current role and attribute information of objects in a region around the current role;
determining arm length information and height information corresponding to the current role according to the identification information;
and if the object is determined to be the target object according to the attribute information of the object, judging whether the current role can pick up the target object according to the arm length information and the height information corresponding to the current role.
Further, determining the arm length information and the height information corresponding to the current role according to the identification information includes:
presetting a mapping relation among identification information, arm length information and height information;
and inquiring the mapping relation according to the identification information of the current role to obtain the arm length information and the height information corresponding to the current role.
Further, determining the arm length information and the height information corresponding to the current role according to the identification information includes:
a database of corresponding relations of the identification information, the arm length information and the height information is established in advance;
and querying the database according to the identification information of the current role to obtain arm length information and height information corresponding to the current role.
Further, judging whether the current role can pick the target object according to the arm length information and the height information corresponding to the current role comprises:
if the target object can be picked up by the current role according to the arm length information and the height information corresponding to the current role, displaying a target identifier around the target object;
and if the touch operation of the user on the target identification is detected, controlling the current role to pick up the target object.
Further, judging whether the current role can pick the target object according to the arm length information and the height information corresponding to the current role comprises:
acquiring height information of the target object;
if the difference value between the height information of the target object and the height information of the current role is smaller than or equal to the arm length information corresponding to the current role, determining that the target object can be picked up by the current role;
and if the difference value between the height information of the target object and the height information of the current role is larger than the arm length information corresponding to the current role, determining that the target object cannot be picked up by the current role.
Further, the method also comprises the following steps:
acquiring jump skill information of the current role;
determining the jump height of the current role according to the jump skill information of the current role;
determining a first height according to the arm length information corresponding to the current role and the jump height;
and if the difference value between the height information of the target object and the height information of the current role is smaller than or equal to the first height, determining that the current role can pick up the target object.
Further, the method also comprises the following steps:
acquiring height information of objects around the current role;
determining a second height according to the height information of the surrounding objects and the arm length information corresponding to the current role;
and if the difference value between the height information of the target object and the height information of the current role is smaller than or equal to the second height, determining that the current role can pick up the target object.
Further, the method also comprises the following steps:
if the object is determined to be an obstacle according to the attribute information of the object, acquiring the position information of a target hanging point;
and judging whether the current role can pass through the barrier or not according to the position information of the target hanging point and the collision box corresponding to the current role.
Further, judging whether the current role can pass through the obstacle according to the position information of the target hanging point and the collision box corresponding to the current role, including:
if the mesh vertex of the obstacle and the target hanging point are determined not to collide according to the position information of the target hanging point, and the current role is determined not to collide with the obstacle according to a collision box corresponding to the current role, determining that the current role can pass through the obstacle;
and if the mesh vertex of the barrier is determined to collide with the target hanging point according to the position information of the target hanging point, determining that the current role can not pass through the barrier.
Further, the method also comprises the following steps:
if the role switching instruction is acquired, acquiring the position information of a first hanging point of a target role corresponding to the role switching instruction;
if the grid vertex corresponding to the obstacle does not collide with the first hanging point, and the target role is determined not to collide with the obstacle according to the collision box corresponding to the target role, executing the role switching instruction;
and if the mesh vertex corresponding to the obstacle collides with the first hanging point, or the target role is determined to collide with the obstacle according to the collision box corresponding to the target role, the role switching instruction is prohibited from being executed.
In a second aspect, an embodiment of the present invention further provides a role control apparatus, where the apparatus includes:
the first acquisition module is used for acquiring the identification information of the current role and the attribute information of objects in the area around the current role;
the first determining module is used for determining arm length information and height information corresponding to the current role according to the identification information;
and the first judging module is used for judging whether the current role can pick up the target object or not according to the arm length information and the height information corresponding to the current role if the object is determined to be the target object according to the attribute information of the object.
Further, the first determining module includes:
the first setting unit is used for presetting the mapping relation among the identification information, the arm length information and the height information;
and the first determining unit is used for inquiring the mapping relation according to the identification information of the current role to obtain the arm length information and the height information corresponding to the current role.
Further, the first determining module further includes:
a second setting unit for establishing a database of correspondence relation of the identification information, the arm length information and the height information in advance;
and the second determining unit is used for inquiring the database according to the identification information of the current role to obtain the arm length information and the height information corresponding to the current role.
Further, the first determining module includes:
the display module is used for displaying a target identifier around the target object if the target object can be picked up by the current role according to the arm length information and the height information corresponding to the current role;
and the control module is used for controlling the current role to pick up the target object if the touch operation of the user on the target identifier is detected.
Further, the first determining module further includes:
an acquisition unit configured to acquire height information of the target object;
a third determining unit, configured to determine that the current role can pick up the target object if a difference between the height information of the target object and the height information of the current role is smaller than or equal to arm length information corresponding to the current role;
and the fourth determining unit is used for determining that the current role cannot pick up the target object if the difference value between the height information of the target object and the height information of the current role is greater than the arm length information corresponding to the current role.
Further, the method also comprises the following steps:
the second acquisition module is used for acquiring the jumping skill information of the current role;
the second determining module is used for determining the jumping height of the current role according to the jumping skill information of the current role;
a third determining module, configured to determine a first height according to the arm length information corresponding to the current role and the jump height;
a fourth determining module, configured to determine that the current role is capable of picking the target object if a difference between the height information of the target object and the height information of the current role is less than or equal to the first height.
Further, the method also comprises the following steps:
the third acquisition module is used for acquiring the height information of the objects around the current role;
the fourth determining module is used for determining a second height according to the height information of the surrounding objects and the arm length information corresponding to the current role;
a fifth determining module, configured to determine that the current role is capable of picking the target object if a difference between the height information of the target object and the height information of the current role is less than or equal to the second height.
Further, the method also comprises the following steps:
the fourth acquisition module is used for acquiring the position information of the target hanging point if the object is determined to be an obstacle according to the attribute information of the object;
and the second judging module is used for judging whether the current role can pass through the barrier or not according to the position information of the target hanging point and the collision box corresponding to the current role.
Further, the second determining module includes:
a sixth determining module, configured to determine that the current role can pass through the obstacle if it is determined that the mesh vertex of the obstacle and the target hanging point do not collide according to the position information of the target hanging point and it is determined that the current role and the obstacle do not collide according to a collision box corresponding to the current role;
and the seventh determining module is used for determining that the current role can not pass through the obstacle if the mesh vertex of the obstacle is determined to collide with the target hanging point according to the position information of the target hanging point.
Further, the method also comprises the following steps:
the fifth obtaining module is used for obtaining the position information of the first hanging point of the target role corresponding to the role switching instruction if the role switching instruction is obtained;
the first switching module is used for executing the role switching instruction if the grid vertex corresponding to the obstacle and the first hanging point do not collide and the target role is determined to not collide with the obstacle according to the collision box corresponding to the target role;
and the second switching module is used for forbidding to execute the role switching instruction if the mesh vertex corresponding to the obstacle collides with the first hanging point or the target role collides with the obstacle according to the collision box corresponding to the target role.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the role control method according to any one of the embodiments of the present invention when executing the computer program.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the role control method according to any one of the embodiments of the present invention.
According to the embodiment of the invention, the arm length information and the height information corresponding to the current role are determined by acquiring the identification information of the role, and whether the role can pick up the object at the target position is judged according to the arm length information and the height information of the role, so that the interest of the game is increased, and the reality sense and the immersion sense of the game are enhanced. Meanwhile, whether the game role can pass through the barrier or not is judged according to the double judgment standards of the hanging point and the collision box, so that the operation precision is improved, and the game experience of the player is improved. However, when the game character can not pass through the obstacle according to the hanging point, whether the game character can pass through the obstacle or not is judged without a collision box, so that the calculation amount is greatly reduced, the calculation efficiency is improved, and the smoothness of the game is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart of a role control method according to a first embodiment of the present invention;
FIG. 1a is a schematic diagram of a target hanging point setting position according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a character control apparatus according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device in a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not construed as indicating or implying relative importance.
Example one
Fig. 1 is a flowchart of a role control method according to an embodiment of the present invention, where this embodiment is applicable to a situation where a role is controlled to complete a specified action, and the method may be executed by a role control apparatus according to an embodiment of the present invention, where the apparatus may be implemented in a software and/or hardware manner, and as shown in fig. 1, the method specifically includes the following steps:
s110, acquiring identification information of the current role and attribute information of objects in the area around the current role.
The current role refers to a current role of a player in a game, and can be a secondary figure such as a Raly and other life bodies, and the player can switch the current role as required in the game process, for example, the current role can be switched from Raly A to Raly B. The identification information of the current character is the unique identification of the game character, and the identification information may be the name of the current character, for example, the role a. Different game characters have different identification information, and the same game character can correspond to a plurality of different game IDs.
The attribute information of the object in the area around the current character may be at least one of a height, a volume, a material, and a type of the object.
The object in the area around the current character may be an object whose distance from the current character is less than a set distance, for example, an object whose distance from the current character is less than 5 meters may be obtained. The object may be a fixed object, such as a cave, a door frame, a stone, etc., may be a living body, such as a monster and other game characters, etc., or may be any object or living body that blocks the current character from continuing to travel. For example, the object may be a funeral other than the current character, a monster, a stone, or a cave, which is not limited in this embodiment of the present invention.
Specifically, identification information of a current character selected by a game player and attribute information of an object in a surrounding area of a position where the current character is located are acquired. For example, the identification information "rale a" of the current character selected by the game player, and the height information, type information, volume information, material information, and the like of the object within a certain distance range from the position where the current character is located may be acquired.
And S120, determining arm length information and height information corresponding to the current role according to the identification information.
The arm length information corresponding to the current role refers to the arm length of the current role, and the height information corresponding to the current role refers to the height of the current role.
For example, the manner of determining the arm length information and the height information corresponding to the current role according to the identification information may be to obtain a configuration file corresponding to the current role according to the identification information, and obtain the arm length information and the height information corresponding to the current role from the configuration file. For example, after the identification information of the role is acquired, the configuration file storing the arm length information and the height information corresponding to the role is read according to the identification information, so as to obtain the arm length information and the height information corresponding to the current role. For example, the identification information of the current character may be the rayan, and reading the configuration file results in that the arm length corresponding to the rayan is 80cm, and the height corresponding to the rayan is 170cm. The manner of determining the arm length information and the height information corresponding to the current role according to the identification information can also be a manner of querying a database according to the identification information to obtain the arm length information and the height information corresponding to the current role; or a mapping relationship between the identification information, the arm length information, and the height information may be pre-established, and the mapping relationship is queried according to the identification information corresponding to the current role to obtain the arm length information and the height information corresponding to the current role, which is not limited in this embodiment of the present invention.
Specifically, the method for determining the arm length information and the height information corresponding to the current character according to the identification information of the current character may also be a method for searching a preset relationship among the character identification information, the arm length information, and the height information according to the identification information to determine the arm length information and the height information corresponding to the current character. The preset relationship between the character identification information, the arm length information and the height information can be stored in a mapping table, a database or a configuration file.
And S130, if the object is determined to be the target object according to the attribute information of the object, judging whether the current role can pick up the target object according to the arm length information and the height information corresponding to the current role.
The target object may be any object in the game scene, and may be, for example, a bonus for rewarding the player, a hair accessory worn by the character, a tool used by the character, and the like. The attribute information of the object may include at least one of a height, a volume, a material, a value, a usage, and a type of the object.
For example, the target objects are mushrooms on the ground, fruits on a book, gold coins in a cave, medicine boxes, weapons, and the like in a game scene, the specific determination of the target objects is related to the game scene, and different target objects may be set in different game scenes, which is not limited in this embodiment of the present invention.
Specifically, the method for judging whether the current role can pick the target object according to the arm length information and the height information corresponding to the current role may be: if the sum of the height of the current role and the arm length of the current role is larger than the height of the target object, determining that the current role can pick the target object, otherwise, determining that the current role cannot pick the target object, or determining that the current role can pick the target object if the target object is in a circular range taking the head of the current role as the center and taking the arm length corresponding to the current role as the radius, otherwise, determining that the current role cannot pick the target object.
Optionally, determining the arm length information and the height information corresponding to the current role according to the identification information includes:
presetting a mapping relation among identification information, arm length information and height information;
and inquiring the mapping relation according to the identification information of the current role to obtain the arm length information and the height information corresponding to the current role.
Specifically, the manner of obtaining the arm length information and the height information corresponding to the current role by querying the mapping relationship according to the identification information of the current role may be: storing the preset mapping relation among the identification information, the arm length information and the height information in a mapping table, and inquiring the mapping table according to the identification information of the current role to obtain the arm length information and the height information corresponding to the current role.
Illustratively, the preset mapping relationship among the identification information, the arm length information and the height information is as follows: the arm length of the Luoli A is 70cm, the height of the arm is 160cm, the arm length of the Luoli B is 80cm, the height of the arm is 165cm, and the arm length of the Luoli C is 75cm, and the height of the arm is 160cm; and obtaining the arm length information of 70cm and the height information of 160cm corresponding to the current role according to the identification information of the current role, namely the Raolia.
Optionally, determining the arm length information and the height information corresponding to the current role according to the identification information includes:
a database of corresponding relations among the identification information, the arm length information and the height information is established in advance;
and inquiring the database according to the identification information of the current role to obtain the arm length information and the height information corresponding to the current role.
Specifically, the way of pre-establishing the database about the correspondence between the identification information, the arm length information, and the height information may be to store the correspondence between the identification information, the arm length information, and the height information in the database in a certain storage manner, and the storage manner may be row storage, column storage, or other storage manners, which is not limited in this embodiment of the present invention. After the identification information of the current role is obtained, arm length information and height information corresponding to the current role are obtained by inquiring a database.
Optionally, determining whether the current role can pick the target object according to the arm length information and the height information corresponding to the current role includes:
if the target object can be picked up by the current role according to the arm length information and the height information corresponding to the current role, displaying a target identifier around the target object;
and if the touch operation of the user on the target identification is detected, controlling the current role to pick up the target object.
Specifically, if it is determined that the target object can be picked up by the current character according to the arm length information and the height information corresponding to the current character, the manner of displaying the target identifier around the target object may be: if the current role can pick the target object, displaying F around the target object, and controlling the current role to pick the target object after the user clicks F; if the current role can pick the target object, the periphery of the target object is in a bright or flashing state, and after the user clicks the target object, the current role is controlled to pick the target object; or may be: and if the current role can pick the target object, displaying a popup box around the target object, wherein the popup box can display the attribute of the target object, and controlling the current role to pick the target object after a user clicks the popup box. The advantage of this kind of setting is can increase the interest of recreation, reinforcing game player's interactive experience.
Optionally, determining whether the current role can pick the target object according to the arm length information and the height information corresponding to the current role includes:
acquiring height information of the target object;
if the difference value between the height information of the target object and the height information of the current role is smaller than or equal to the arm length information corresponding to the current role, determining that the target object can be picked by the current role;
and if the difference value between the height information of the target object and the height information of the current role is larger than the arm length information corresponding to the current role, determining that the target object cannot be picked up by the current role.
Specifically, height information of a target object is obtained, and whether the difference value between the height information of the target object and the height information of the current role is larger than the arm length corresponding to the current role or not is judged, that is, whether the target object can be picked up by the extended arm of the current role or not is judged.
Illustratively, the target object is a fruit on a tree, and the height of the fruit is 2.4 meters from the ground. And if the height information of the current role is 1.6 meters and the arm length corresponding to the current role is 0.7 meters, the current role cannot pick fruits. If the height information of the current role is 1.65 meters and the arm length corresponding to the current role is 0.8 meters, the current role can pick up the fruits.
Optionally, the method further includes:
acquiring jump skill information of the current role;
determining the jumping height of the current role according to the jumping skill information of the current role;
determining a first height according to the arm length information corresponding to the current role and the jump height;
and if the difference value between the height information of the target object and the height information of the current role is smaller than or equal to the first height, determining that the current role can pick up the target object.
Specifically, in the present embodiment, the game character may have a plurality of kinds of skills, such as a jumping skill, a releasing object skill, a running skill, a squatting skill, and a climbing skill. If the game player selects the jumping skill of the current character, determining the jumping height of the current character according to the jumping skill information preset by the current character, determining a first height according to the arm length information corresponding to the current character and the jumping height, and judging whether the difference value between the height information of the target object and the height information of the current character is larger than the first height, namely judging whether the current character can pick the target object by extending an arm while jumping to the highest point, if the game player selects the releasing object skill of the current character, judging whether the current character can pick the target object by extending the arm under the condition that the current character stands on the released object according to the height of the object released by the releasing object skill of the current character, the arm length information and the height information corresponding to the current character and the height of the target object.
Illustratively, the target object is a fruit on a tree, the height of the fruit being 2.5 meters from the ground. If the height of the current role is 1.6 meters, the arm length corresponding to the current role is 0.7 meters, and the jumping height of the current role is 0.2 meters, the current role cannot pick fruits; the height of the current role is 1.65 meters, the arm length corresponding to the current role is 0.8 meters, and the jumping height of the current role is 0.3 meters, so that the current role can pick fruits.
Optionally, the method further includes:
acquiring height information of objects around the current role;
determining a second height according to the height information of the surrounding objects and the arm length information corresponding to the current role;
and if the difference value between the height information of the target object and the height information of the current role is smaller than or equal to the second height, determining that the current role can pick up the target object.
Specifically, in this embodiment, a player may control a game character to pick a target object with the help of a peripheral object, obtain height information of the peripheral object of the current character, determine a second height according to the height information of the peripheral object and arm length information corresponding to the current character, and determine whether a difference between the height information of the target object and the height information of the current character is greater than the second height, that is, determine whether the current character can pick the target object by extending an arm while the current character is picking the help of the peripheral object.
Illustratively, the target object is a fruit on a tree, and the height of the fruit is 3 meters from the ground. If the height of the current role is 1.6 meters, the arm length of the current role is 0.7 meters, the current role stands on a stone, and the height of the stone is 0.3 meters, the current role cannot pick fruits. The current role can pick up fruits by means of a stick with the length of 1 m.
Optionally, the method further includes:
if the object is determined to be an obstacle according to the attribute information of the object, acquiring the position information of a target hanging point;
and judging whether the current role can pass through the barrier or not according to the position information of the target hanging point and the collision box corresponding to the current role.
As shown in fig. 1a, the target hanging point refers to a mark point set at the top position of the current game character, and the setting method of the target hanging point may be to automatically generate an empty node at a fixed position by using a tool, for example, a hanging point named MoveHead may be additionally added to Prefab. Whether the game role collides with the barrier or not can be determined according to the position of the target hanging point by setting the target hanging point.
The obstacle is an object capable of colliding with the current character, and may be a fixed object, such as a cave, a door frame, a stone, etc., a living body, such as a monster and other game characters, etc., or any object or living body that blocks the current character from continuing to travel.
Specifically, the method for judging whether the current role can pass through the obstacle according to the position information of the target hanging point and the collision box corresponding to the current role may be: determining whether the current role can pass through the barrier or not according to the position information of the target hanging point, and judging whether the current role can pass through the barrier or not according to a collision box corresponding to the current role; or judging whether the current role can pass through the obstacle according to a collision box corresponding to the current role, and then determining whether the current role can pass through the obstacle according to the position information of the target hanging point; and determining whether the current role can pass through the obstacle according to the position information of the target hanging point while judging whether the current role can pass through the obstacle according to the collision box corresponding to the current role.
It should be noted that, since whether the current role can pass through the obstacle is determined according to the position information of the target hanging point, it is only required to calculate whether the target hanging point can pass through the obstacle, and the calculation amount is small. And judging whether the current role can pass through the obstacle according to the collision box corresponding to the current role, wherein whether each collision box corresponding to the current role collides with the obstacle needs to be calculated, and each game role may have a plurality of collision boxes, for example, the head, the body and the limbs of the game role are respectively one collision box. The three-dimensional shape of the crash box is determined according to the three-dimensional structure of the character, and the more the three-dimensional shape of the crash box is close to the three-dimensional structure of the character, the more accurate the crash analysis is, and the more the calculation amount of the crash analysis is. Therefore, a large amount of calculation is required to determine whether the current character can pass through the obstacle according to the collision box corresponding to the current character. In this embodiment, it is preferable to determine whether the current role can pass through the obstacle according to the position information of the target hanging point, and then determine whether the current role can pass through the obstacle according to the collision box corresponding to the current role, so as to reduce the amount of collision analysis calculation for determining whether the current role can pass through the obstacle.
Optionally, the determining, according to the position information of the target hanging point and the collision box corresponding to the current role, whether the current role can pass through the obstacle includes:
if the mesh vertex of the obstacle and the target hanging point are determined not to collide according to the position information of the target hanging point, and the current role is determined not to collide with the obstacle according to a collision box corresponding to the current role, determining that the current role can pass through the obstacle;
and if the mesh vertex of the barrier is determined to collide with the target hanging point according to the position information of the target hanging point, determining that the current role can not pass through the barrier.
Based on a game scene modeling technology, obstacles in the online game are objects or life bodies formed by different numbers of triangles, and a grid structure covering the objects is obtained.
Specifically, the collision analysis is performed on the target hanging point and each grid vertex corresponding to the obstacle, and the collision analysis is performed on the collision box of the current role and the grid vertex corresponding to the obstacle. And if the target hanging point does not collide with each grid vertex corresponding to the obstacle, and the collision box of the current role does not collide with the grid vertex corresponding to the obstacle, determining that the current role can pass through the obstacle. The advantages of such an arrangement are: and judging whether the current role can pass through the obstacle or not only according to the collision box corresponding to the current role, wherein the phenomenon that the current role can pass through the obstacle in the current motion state can occur, but if the motion state of the current role has larger instantaneous change, the role can be blocked in the obstacle. Therefore, whether the current role can pass through the barrier or not is judged according to the position information of the target hanging point and the collision box corresponding to the current role. And if the target hanging point does not collide with each grid vertex corresponding to the obstacle, and the collision box of the current role does not collide with the grid vertex corresponding to the obstacle, determining that the current role can pass through the obstacle.
And if the grid vertex corresponding to the obstacle collides with the target hanging point, determining that the current role cannot pass through the obstacle, and not performing collision analysis on the current role according to the collision box and the target hanging point. The advantages of such an arrangement are: the amount of computation required for collision analysis when it is determined that the current character can pass through an obstacle is greatly reduced.
Optionally, the method further includes:
if the role switching instruction is acquired, acquiring the position information of a first hanging point of a target role corresponding to the role switching instruction;
if the mesh vertex corresponding to the obstacle and the first hanging point do not collide, and the target role is determined not to collide with the obstacle according to the collision box corresponding to the target role, executing the role switching instruction;
and if the mesh vertex corresponding to the obstacle collides with the first hanging point, or the target role is determined to collide with the obstacle according to the collision box corresponding to the target role, the role switching instruction is prohibited from being executed.
In this embodiment, a game player may switch a current game role according to actual needs, and if a role switching instruction is obtained, position information of a first hanging point of a target role corresponding to the role switching instruction is obtained; and if the mesh vertex corresponding to the obstacle collides with the first hanging point and the target character does not collide with the obstacle according to the collision box corresponding to the target character, executing a character switching instruction, and if the mesh vertex corresponding to the obstacle collides with the first hanging point or the target character collides with the obstacle according to the collision box corresponding to the target character, forbidding executing the character switching instruction.
Specifically, if a character switching instruction sent by a game player is acquired, position information of a first hanging point of a target character corresponding to the character switching instruction is acquired. And if the mesh vertex corresponding to the obstacle does not collide with the first hanging point and the target role is determined not to collide with the obstacle according to the collision box corresponding to the target role, executing the role switching instruction switching. And if the target character is determined to collide with the obstacle according to the first hanging point position of the target character corresponding to the character switching instruction of the player or the collision box corresponding to the target character, prohibiting the execution of the character switching instruction, and sending prompt information to the player.
According to the technical scheme, the arm length information and the height information corresponding to the current role are determined by obtaining the identification information of the role, and whether the role can pick up the object at the target position is judged according to the arm length information and the height information of the role, so that the interest of the game is increased, and the reality sense and the immersion sense of the game are enhanced. Meanwhile, whether the game role can pass through the barrier or not is judged according to the double judgment standards of the hanging point and the collision box, so that the operation precision is improved, and the game experience of the player is improved. However, when the game character can not pass through the obstacle according to the hanging point, whether the game character can pass through the obstacle or not is judged without a collision box, so that the calculation amount is greatly reduced, the calculation efficiency is improved, and the smoothness of the game is improved.
Example two
Fig. 2 is a schematic structural diagram of a role control device according to a second embodiment of the present invention. The present embodiment may be applicable to a case where a role control is controlled to complete a specified action, the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be integrated in any device that provides a role control function, as shown in fig. 2, where the role control apparatus specifically includes: a first obtaining module 210, a first determining module 220 and a first judging module 230.
The first obtaining module 210 is configured to obtain identification information of a current role and attribute information of an object in an area around the current role;
a first determining module 220, configured to determine, according to the identification information, arm length information and height information corresponding to the current role;
a first determining module 230, configured to determine, if the object is determined to be a target object according to the attribute information of the object, whether the target object can be picked up by the current character according to the arm length information and the height information corresponding to the current character.
Optionally, the first determining module includes:
the first setting unit is used for presetting the mapping relation among the identification information, the arm length information and the height information;
and the first determining unit is used for inquiring the mapping relation according to the identification information of the current role to obtain the arm length information and the height information corresponding to the current role.
Optionally, the first determining module further includes:
a second setting unit for establishing a database of correspondence relation of the identification information, the arm length information and the height information in advance;
and the second determining unit is used for querying the database according to the identification information of the current role to obtain the arm length information and the height information corresponding to the current role.
Optionally, the first determining module includes:
the display module is used for displaying a target identifier around the target object if the target object can be picked up by the current role according to the arm length information and the height information corresponding to the current role;
and the control module is used for controlling the current role to pick up the target object if the touch operation of the user on the target identifier is detected.
Optionally, the first determining module further includes:
an acquisition unit configured to acquire height information of the target object;
a third determining unit, configured to determine that the current role can pick up the target object if a difference between the height information of the target object and the height information of the current role is smaller than or equal to arm length information corresponding to the current role;
a fourth determining unit, configured to determine that the target object cannot be picked up by the current character if a difference between the height information of the target object and the height information of the current character is greater than the arm length information corresponding to the current character.
Optionally, the method further includes:
the second acquisition module is used for acquiring the jump skill information of the current role;
the second determination module is used for determining the jumping height of the current role according to the jumping skill information of the current role;
a third determining module, configured to determine a first height according to the arm length information corresponding to the current role and the jump height;
a fourth determining module, configured to determine that the current role is capable of picking the target object if a difference between the height information of the target object and the height information of the current role is less than or equal to the first height.
Optionally, the method further includes:
the third acquisition module is used for acquiring the height information of objects around the current role;
a fourth determining module, configured to determine a second height according to the height information of the surrounding object and the arm length information corresponding to the current role;
a fifth determining module, configured to determine that the current role is capable of picking the target object if a difference between the height information of the target object and the height information of the current role is less than or equal to the second height.
Optionally, the method further includes:
the fourth acquisition module is used for acquiring the position information of the target hanging point if the object is determined to be an obstacle according to the attribute information of the object;
and the second judging module is used for judging whether the current role can pass through the barrier or not according to the position information of the target hanging point and the collision box corresponding to the current role.
Optionally, the second determining module includes:
a sixth determining module, configured to determine that the current role can pass through the obstacle if it is determined that the mesh vertex of the obstacle and the target hanging point do not collide according to the position information of the target hanging point and it is determined that the current role and the obstacle do not collide according to a collision box corresponding to the current role;
and a seventh determining module, configured to determine that the current role cannot pass through the obstacle if it is determined that the mesh vertex of the obstacle collides with the target hanging point according to the position information of the target hanging point.
Optionally, the method further includes:
the fifth obtaining module is used for obtaining the position information of the first hanging point of the target role corresponding to the role switching instruction if the role switching instruction is obtained;
the first switching module is used for executing the role switching instruction if the grid vertex corresponding to the obstacle and the first hanging point do not collide and the target role is determined to not collide with the obstacle according to the collision box corresponding to the target role;
and the second switching module is used for forbidding to execute the role switching instruction if the mesh vertex corresponding to the obstacle collides with the first hanging point or the target role collides with the obstacle according to the collision box corresponding to the target role.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
According to the technical scheme of the embodiment, the arm length information and the height information corresponding to the current role are determined by obtaining the identification information of the role, and whether the role can pick up the object at the target position is judged according to the arm length information and the height information of the role, so that the interest of the game is increased, and the reality sense and the immersion sense of the game are enhanced. Meanwhile, whether the game role can pass through the barrier or not is judged according to the double judgment standards of the hanging point and the collision box, so that the operation precision is improved, and the game experience of the player is improved. However, when the game character can not pass through the obstacle according to the hanging point, whether the game character can pass through the obstacle or not is judged without a collision box, so that the calculation amount is greatly reduced, the calculation efficiency is improved, and the smoothness of the game is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a computer device in a third embodiment of the present invention. FIG. 3 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 3 is only an example and should not impose any limitation on the scope of use or functionality of embodiments of the present invention.
As shown in FIG. 3, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system Memory 28 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 30 and/or cache Memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 3 and commonly referred to as a "hard drive"). Although not shown in FIG. 3, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (a Compact disk-Read Only Memory (CD-ROM), digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. In the computer device 12 of the present embodiment, the display 24 is not provided as a separate body but is embedded in the mirror surface, and when the display surface of the display 24 is not displayed, the display surface of the display 24 and the mirror surface are visually integrated. Moreover, computer device 12 may also communicate with one or more networks (e.g., a Local Area Network (LAN), wide Area Network (WAN)) and/or a public Network (e.g., the Internet) via Network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive Arrays, redundant Array of Independent Disks (RAID) systems, tape drives, and data backup storage systems, to name a few.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, to implement the role control method provided by the embodiment of the present invention: acquiring identification information of a current role and attribute information of objects in a region around the current role; determining arm length information and height information corresponding to the current role according to the identification information; and if the object is determined to be the target object according to the attribute information of the object, judging whether the current role can pick up the target object according to the arm length information and the height information corresponding to the current role.
Example four
A fourth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a role control method as provided in all the inventive embodiments of the present application: acquiring identification information of a current role and attribute information of objects in a region around the current role; determining arm length information and height information corresponding to the current role according to the identification information; and if the object is determined to be the target object according to the attribute information of the object, judging whether the target object can be picked up by the current role according to the arm length information and the height information corresponding to the current role.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may be separate and not incorporated into the electronic device.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It is to be noted that the foregoing description is only exemplary of the invention and that the principles of the technology may be employed. Those skilled in the art will appreciate that the present invention is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions will now be apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. A character control method, comprising:
acquiring identification information of a current role and attribute information of objects in a region around the current role;
determining arm length information and height information corresponding to the current role according to the identification information;
if the object is determined to be a target object according to the attribute information of the object, judging whether the target object can be picked up by the current role according to the arm length information and the height information corresponding to the current role;
if the object is determined to be an obstacle according to the attribute information of the object, acquiring the position information of a target hanging point;
judging whether the current role can pass through the barrier according to the position information of the target hanging point and the collision box corresponding to the current role, wherein the judging step comprises the following steps:
if the mesh vertex of the obstacle and the target hanging point are determined not to collide according to the position information of the target hanging point, and the current role is determined not to collide with the obstacle according to a collision box corresponding to the current role, determining that the current role can pass through the obstacle;
if the mesh vertex of the barrier is determined to collide with the target hanging point according to the position information of the target hanging point, determining that the current role cannot pass through the barrier;
if the role switching instruction is obtained, obtaining the position information of a first hanging point of a target role corresponding to the role switching instruction;
if the grid vertex corresponding to the obstacle does not collide with the first hanging point, and the target role is determined not to collide with the obstacle according to the collision box corresponding to the target role, executing the role switching instruction;
and if the mesh vertex corresponding to the obstacle collides with the first hanging point, or the target role is determined to collide with the obstacle according to the collision box corresponding to the target role, the role switching instruction is prohibited from being executed.
2. The method of claim 1, wherein determining arm length information and height information corresponding to the current role according to the identification information comprises:
presetting a mapping relation among identification information, arm length information and height information;
and inquiring the mapping relation according to the identification information of the current role to obtain the arm length information and the height information corresponding to the current role.
3. The method of claim 1, wherein determining arm length information and height information corresponding to the current role according to the identification information comprises:
a database of corresponding relations of the identification information, the arm length information and the height information is established in advance;
and querying the database according to the identification information of the current role to obtain arm length information and height information corresponding to the current role.
4. The method of claim 1, wherein determining whether the target object can be picked up by the current character according to the arm length information and the height information corresponding to the current character comprises:
if the target object can be picked up by the current role according to the arm length information and the height information corresponding to the current role, displaying a target identifier around the target object;
and if the touch operation of the user on the target identification is detected, controlling the current role to pick up the target object.
5. The method of claim 1, wherein determining whether the target object can be picked up by the current character according to the arm length information and the height information corresponding to the current character comprises:
acquiring height information of the target object;
if the difference value between the height information of the target object and the height information of the current role is smaller than or equal to the arm length information corresponding to the current role, determining that the target object can be picked by the current role;
and if the difference value between the height information of the target object and the height information of the current role is larger than the arm length information corresponding to the current role, determining that the target object cannot be picked up by the current role.
6. The method of claim 5, further comprising:
acquiring jump skill information of the current role;
determining the jumping height of the current role according to the jumping skill information of the current role;
determining a first height according to the arm length information corresponding to the current role and the jump height;
and if the difference value between the height information of the target object and the height information of the current role is smaller than or equal to the first height, determining that the current role can pick up the target object.
7. The method of claim 5, further comprising:
acquiring height information of objects around the current role;
determining a second height according to the height information of the surrounding objects and the arm length information corresponding to the current role;
and if the difference value between the height information of the target object and the height information of the current role is smaller than or equal to the second height, determining that the current role can pick the target object.
8. A character arm length calculation apparatus, comprising:
the first acquisition module is used for acquiring the identification information of the current role and the attribute information of objects in the area around the current role;
the first determining module is used for determining arm length information and height information corresponding to the current role according to the identification information;
the first judgment module is used for judging whether the current role can pick up the target object according to the arm length information and the height information corresponding to the current role if the object is determined to be the target object according to the attribute information of the object;
the fourth acquisition module is used for acquiring the position information of the target hanging point if the object is determined to be an obstacle according to the attribute information of the object;
the second judgment module is used for judging whether the current role can pass through the barrier or not according to the position information of the target hanging point and the collision box corresponding to the current role;
the second judging module comprises:
a sixth determining module, configured to determine that the current role can pass through the obstacle if it is determined that the mesh vertex of the obstacle and the target hanging point do not collide according to the position information of the target hanging point and it is determined that the current role and the obstacle do not collide according to a collision box corresponding to the current role;
a seventh determining module, configured to determine that the current role cannot pass through the obstacle if it is determined that the mesh vertex of the obstacle collides with the target hanging point according to the position information of the target hanging point;
the fifth obtaining module is used for obtaining the position information of the first hanging point of the target role corresponding to the role switching instruction if the role switching instruction is obtained;
the first switching module is used for executing the role switching instruction if the grid vertex corresponding to the obstacle and the first hanging point do not collide and the target role is determined to not collide with the obstacle according to the collision box corresponding to the target role;
and the second switching module is used for forbidding to execute the role switching instruction if the mesh vertex corresponding to the obstacle collides with the first hanging point or the target role collides with the obstacle according to the collision box corresponding to the target role.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202011544740.3A 2020-12-23 2020-12-23 Role control method, device, equipment and storage medium Active CN112657200B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011544740.3A CN112657200B (en) 2020-12-23 2020-12-23 Role control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011544740.3A CN112657200B (en) 2020-12-23 2020-12-23 Role control method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112657200A CN112657200A (en) 2021-04-16
CN112657200B true CN112657200B (en) 2023-02-10

Family

ID=75408135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011544740.3A Active CN112657200B (en) 2020-12-23 2020-12-23 Role control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112657200B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110841281A (en) * 2019-11-12 2020-02-28 深圳市瑞立视多媒体科技有限公司 Method and device for realizing high-low deviation of player character position and related product
CN111298435A (en) * 2020-02-12 2020-06-19 网易(杭州)网络有限公司 Visual field control method for VR game, VR display terminal, equipment and medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11313978A (en) * 1998-05-01 1999-11-16 Square Co Ltd Game apparatus and information recording medium
KR101671900B1 (en) * 2009-05-08 2016-11-03 삼성전자주식회사 System and method for control of object in virtual world and computer-readable recording medium
CN108434735B (en) * 2018-03-19 2020-01-10 腾讯科技(深圳)有限公司 Virtual article display method, device, electronic device and storage medium
CN109529340B (en) * 2018-11-21 2020-08-11 腾讯科技(深圳)有限公司 Virtual object control method and device, electronic equipment and storage medium
US10748350B1 (en) * 2019-05-17 2020-08-18 Roblox Corporation Modification of animated characters
CN111714886B (en) * 2020-07-24 2021-09-28 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110841281A (en) * 2019-11-12 2020-02-28 深圳市瑞立视多媒体科技有限公司 Method and device for realizing high-low deviation of player character position and related product
CN111298435A (en) * 2020-02-12 2020-06-19 网易(杭州)网络有限公司 Visual field control method for VR game, VR display terminal, equipment and medium

Also Published As

Publication number Publication date
CN112657200A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
US11270497B2 (en) Object loading method and apparatus, storage medium, and electronic device
EP3347795B1 (en) Tactile interaction in virtual environments
CN104335268B (en) For changing the mthods, systems and devices for providing 3-D transition animation for map view
CN112619143B (en) Role identification display method, device, equipment and storage medium
US9144744B2 (en) Locating and orienting device in space
CN107689082B (en) Data projection method and device
CN110478898B (en) Configuration method and device of virtual scene in game, storage medium and electronic equipment
CN107291317A (en) The system of selection of target and device in a kind of virtual scene
US20140206440A1 (en) Game system and gaming method having identification function
CN112546631B (en) Role control method, device, equipment and storage medium
CN111539347A (en) Method and apparatus for detecting target
CN112657200B (en) Role control method, device, equipment and storage medium
CN112657201B (en) Role arm length determining method, role arm length determining device, role arm length determining equipment and storage medium
CN113359983A (en) Augmented reality data presentation method and device, electronic equipment and storage medium
CN112657199B (en) Role arm length calculation method, device, equipment and storage medium
CN112642155B (en) Role control method, device, equipment and storage medium
CN116036601A (en) Game processing method and device, computer equipment and storage medium
CN112843739B (en) Shooting method, shooting device, electronic equipment and storage medium
CN110860082B (en) Identification method, identification device, electronic equipment and storage medium
CN112657191B (en) Character identification display method, device, equipment and storage medium
CN108983954A (en) Data processing method, device and system based on virtual reality
CN112435317A (en) Anti-threading method and device in game, electronic equipment and storage medium
CN112435316A (en) Anti-threading method and device in game, electronic equipment and storage medium
CN111068325A (en) Method, device, equipment and storage medium for collecting articles in game scene
CN113986099B (en) Virtual article interaction method and device, computer readable medium and electronic equipment

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