CN112619164A - Method, device and equipment for determining flight height of transmitting target and storage medium - Google Patents

Method, device and equipment for determining flight height of transmitting target and storage medium Download PDF

Info

Publication number
CN112619164A
CN112619164A CN202011528381.2A CN202011528381A CN112619164A CN 112619164 A CN112619164 A CN 112619164A CN 202011528381 A CN202011528381 A CN 202011528381A CN 112619164 A CN112619164 A CN 112619164A
Authority
CN
China
Prior art keywords
target
determining
shooting
flight
transmitting
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
Application number
CN202011528381.2A
Other languages
Chinese (zh)
Other versions
CN112619164B (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 CN202011528381.2A priority Critical patent/CN112619164B/en
Publication of CN112619164A publication Critical patent/CN112619164A/en
Application granted granted Critical
Publication of CN112619164B publication Critical patent/CN112619164B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/837Shooting of targets
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/57Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features 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/60Methods for processing data by generating or executing the game program
    • A63F2300/64Methods for processing data by generating or executing the game program for computing dynamical parameters of game objects, e.g. motion determination or computation of frictional forces for a virtual car
    • A63F2300/646Methods for processing data by generating or executing the game program for computing dynamical parameters of game objects, e.g. motion determination or computation of frictional forces for a virtual car for calculating the trajectory of an object
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features 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/80Features 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/8076Shooting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Aiming, Guidance, Guns With A Light Source, Armor, Camouflage, And Targets (AREA)

Abstract

The embodiment of the invention discloses a method and a device for determining the flight altitude of a transmitting target, electronic equipment and a storage medium, wherein the method comprises the following steps: when a shooting instruction is received, shooting associated information is obtained; determining the flight track of the launching target according to the shooting associated information; and determining the highest flying height reached by the transmitting target according to the flying track. Through the technical scheme of the embodiment, the flight height of the launching target launched by the game player is determined.

Description

Method, device and equipment for determining flight height of transmitting target and storage medium
Technical Field
The embodiment of the invention relates to the technical field of online games, in particular to a method and a device for determining the flight height of a transmitting target, electronic equipment and a storage medium.
Background
In some online games, there are often game scenes of shooting guns or shooting arrows. The picture of shooting or shooting a gun in a game (specifically, the picture of bullet flight or arrow flight) is presented by simulating a realistic similar phenomenon.
However, the current game cannot determine the maximum height reached by the bullet or arrow, but the maximum height reached by the bullet or arrow is significant to the entertainment of the game, and for example, a certain game achievement can be awarded to a game player according to the maximum height reached by the bullet or arrow launched by the game player, so that the interest of the game is enhanced, the playing experience of the game player is improved, and the user stickiness of the game is improved.
Disclosure of Invention
The embodiment of the invention provides a method and a device for determining the flight height of a launching target, electronic equipment and a storage medium, which are used for determining the flight height of the launching target launched by a game player.
In a first aspect, an embodiment of the present invention provides a method for determining a flight altitude of a transmitting target, where the method includes:
when a shooting instruction is received, shooting associated information is obtained;
determining the flight track of the launching target according to the shooting associated information;
and determining the highest flying height reached by the transmitting target according to the flying track.
In a second aspect, an embodiment of the present invention further provides an apparatus for determining a flight altitude of a transmitting target, where the apparatus includes:
the acquisition module is used for acquiring shooting associated information when receiving a shooting instruction;
the first determining module is used for determining the flight track of the launching target according to the shooting associated information;
and the second determining module is used for determining the highest flying height reached by the transmitting target according to the flying track.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method steps for determining the launch target altitude as provided by any of the embodiments of the invention.
In a fourth aspect, embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method steps for determining the flight altitude of a launch target as provided in any of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, when a shooting instruction is received, shooting associated information is obtained; determining the flight track of the launching target according to the shooting associated information; and determining the highest flying height reached by the launching target according to the flying track, thereby realizing the determination of the flying height of the launching target launched by the game player.
Drawings
Fig. 1 is a flowchart of a method for determining a flight altitude of a transmitting target according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a flight path of a launch target according to one embodiment of the present invention;
FIG. 3 is a schematic diagram of a collision with another game object when the launching target has not yet reached the highest point, according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for determining the flight altitude of the transmitting target according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device for determining the flying height of a transmitting target according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a fourth 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.
Example one
Fig. 1 is a flowchart of a method for determining a flight height of a launch target according to an embodiment of the present invention, which may be applied to a game scene with a gun or an arrow, and is used to determine a maximum flight height of the launch target. The method may be performed by a device for determining the flying height of the transmitting target, which may be implemented by software and/or hardware, and integrated into an electronic device, such as a computer or a smart phone.
As shown in fig. 1, the method specifically includes the following steps:
and step 110, acquiring shooting associated information when a shooting instruction is received.
The shooting instruction may be an instruction for triggering a shooting action, and the shooting-related information is information associated with the shooting action and may be used to describe an initial state of the shooting target, a state of the shooting target, and the like. The launching target is a target object which is corresponding to the shooting instruction and conducts launching action, and can be a bullet or an arrow. The shooting target may be a target object aimed at when shooting, and also a target object that the shooting target wants to hit, for example: an enemy character or target in the game, etc.
Specifically, when a shooting instruction is received, shooting-related information may be acquired from information that is set in advance in association with the shooting instruction. The shooting-related information may also be determined based on the shooting instruction, the shooting target, and the shooting target. It should be noted that in order to make the flight path of the transmission target have a more realistic effect, different shooting-related information corresponding to the actual shooting effect may be determined.
Optionally, the shooting related information includes: the firing angle, the position of the firing target, the initial velocity of the firing target, and the initial position.
The shooting angle is the angle of the launching target when the launching target is launched, and can be determined according to the relative angle of the launching target and the shooting target, and can also be determined according to the shooting angle preset by a user. The position of the shooting target and the initial position of the shooting target may be spatial position information of the shooting target and the shooting target, for example: spatial coordinate information. The initial velocity of the target is related to the target itself, for example: when different shooting tools are used or the launching action is finished with different force, the initial speed of the launching target is different. The specific determination manner of the design related information may be determined according to an actual scene, and is not specifically limited in this embodiment.
And step 120, determining the flight track of the launching target according to the shooting associated information.
The flight trajectory refers to a trajectory path which moves in the air after the transmitting target is transmitted. Specifically, the launching target can be controlled in a segmented manner, and the flight path of the launching target can be simulated according to the segmented control, so that the flight path conforms to the actual requirement.
Specifically, because the initial velocity of the launch target just launched is higher under normal conditions, the gravitational acceleration can be approximately ignored, and the launch target can be controlled to fly along a straight line according to the segmented control. When the target is flying for a certain time or a certain distance, the flying speed of the target is reduced due to the action of air resistance, and the action of gravity acceleration on the target becomes obvious. Therefore, the launching target can accelerate to move towards the direction pointing to the geocentric under the action of gravity, and the launching target can be controlled to fly along a curve according to the segmented control. The specific determination mode of the curve flight path can be determined according to a calculation mode of a parabola, and can also be determined according to a ballistics theory.
And step 130, determining the highest flying height reached by the transmitting target according to the flying track.
Illustratively, the determining the maximum flying height reached by the transmitting target according to the flying track comprises:
determining an included angle between a tangent line of the flight track at each moment and the horizontal direction;
determining the target moment with the included angle being zero;
and determining the real-time height of the transmitting target at the target moment as the highest flying height.
Referring to fig. 2, which is a schematic diagram of a flight path of a transmitting target, it can be seen from fig. 2 that the transmitting target is from a point a to a point B, and when an included angle between a tangent of the flight path and a horizontal direction is zero, namely, the height of the point C is the highest flight height of the transmitting target.
Further, before determining the target time at which the included angle is zero, determining the maximum flying height reached by the transmitting target according to the flying trajectory further includes:
before the included angle is reduced to zero, if the transmitting target collides with other game objects, determining the real-time height at the collision moment as the highest flying height.
Correspondingly, referring to a schematic diagram of a collision with another game object when the launching target has not reached the highest point shown in fig. 3, it can be seen from fig. 3 that the time when the launching target collides with another game object (e.g., game object C) is the time when the launching target reaches the maximum flying height.
According to the technical scheme of the embodiment, shooting associated information is acquired when a shooting instruction is received; determining the flight track of the launching target according to the shooting associated information; the technical means of determining the maximum flying height reached by the launching target according to the flying track is specifically to determine the time when the launching target reaches the maximum height according to the included angle between the tangent line of the flying track and the horizontal direction, and then read the flying height corresponding to the time, so that the flying height of the launching target launched by the game player is determined.
Example two
Fig. 4 is a flowchart of a method for determining a flight altitude of a shooting target according to a second embodiment of the present invention, and this embodiment provides a specific implementation manner for "determining a flight trajectory of a shooting target according to the shooting-related information" in step 120 on the basis of the above embodiment, specifically: determining a flight path of the target according to the shooting angle and the initial launching speed based on a linear flight strategy within a set distance of the initial launching position of the target; and according to the flight path, determining the flight track of the target based on a ballistics theory outside the set distance of the initial position. The advantage of setting up like this has solved under the simulation situation, the problem that the target can't be shot accurately to the target of aiming difficulty that causes for the user to and the problem that the calculated amount that causes when simulating the flight of transmission target is big, has realized the optimal control of transmission target flight path, and then makes the recreation player can aim at the shooting target more easily, has promoted recreation player's recreation experience, still can reduce the calculation complexity simultaneously, reduces the requirement to system's calculated power. Explanations of the same or corresponding terms as those in the above embodiments are omitted here.
Referring to fig. 4, the method for determining the flight altitude of the launch target provided by this embodiment specifically includes the following steps:
and step 410, acquiring shooting associated information when a shooting instruction is received.
And step 420, determining the flight path of the target according to the shooting angle and the initial launching speed based on a linear flight strategy within the set distance of the initial launching position of the target.
And 430, determining the flight track of the target based on a ballistics theory outside the set distance of the initial position according to the flight path.
In order to more accurately determine the flight path of the transmitting target, the sectional control can be carried out according to the set distance range. When the launching target is within the set distance range of the initial position of the launching target, the action of gravity acceleration can be ignored, and the launching target is controlled to fly along a straight line; when the distance is out of the set distance range of the initial position of the launching target, the launching target is influenced by air resistance to cause the flight speed to be reduced, the downward movement speed of the launching target is accelerated under the influence of gravity, and the specific flight path can be calculated by referring to the theory of ballistics.
In this embodiment, the number of the segmented control frames can be determined, so that the motion situation of the emission target in different frames conforms to the ballistics theory.
Optionally, determining a first game logic frame of the launching target moving along a straight line and a second game logic frame of the launching target moving along a curve according to the set distance range, the running time of a single game logic frame, the position of the shooting target, the initial speed of the launching target and the initial position; and controlling the flight path of the transmitting target according to the first game logical frame and the second game logical frame.
Wherein the set distance range is the longest distance for determining the linear motion of the transmission target. The game logical frame is the minimum unit when the game screen is displayed.
Specifically, within the set distance range, the transmitting target moves along a straight line, and the time length of the straight line movement can be further determined. If the linear distance between the initial position of the launching target and the position of the shooting target does not exceed the set distance range, determining the time length of linear motion according to the linear distance and the initial speed of the launching target; and if the linear distance between the initial position of the launching target and the position of the shooting target exceeds the set distance range, determining the time length of the linear motion according to the set distance range and the initial speed of the launching target. And, according to the duration of the linear motion and the running duration of a single game logical frame, the first game logical frame of the linear motion corresponding to the transmission target can be determined. The linear distance of the shooting target can be determined according to the position of the shooting target and the initial position of the shooting target, the distance of the shooting target in curvilinear motion can be determined according to the linear distance and the set distance range, and the duration of the curvilinear motion of the shooting target can be further determined according to an acceleration calculation formula. And according to the duration of the curvilinear motion and the running duration of a single game logical frame, a second game logical frame of the curvilinear motion corresponding to the transmission target can be determined.
And controlling the transmitting target to fly along a straight line at an initial speed in the first game logic frame. If the number of the second game logical frames is not zero, when the running of the first game logical frame is finished, the transmitting target is controlled to fly along the curve at the initial speed and the set acceleration in the second game logical frame.
The reason why the launching target is controlled to fly in a segmented mode in the above mode is as follows: within the set distance range, the launching target flies along a straight line, which meets the expectation of the player and has the advantages of simple calculation and low performance requirement. And outside the set distance range, the transmitting target flies along the curve, and the flying path accords with the physical feeling of the real world.
Specifically, a first game logic frame of the launching target moving along a straight line is determined according to a set distance range, the running time of a single game logic frame, the position of the shooting target, the initial speed of the launching target and the initial position, and the launching target is controlled to fly along the straight line at the initial speed in the first game logic frame.
If the straight-line distance between the initial position of the shooting target and the position of the shooting target does not exceed the set distance range, the number of the first game logical frame can be determined based on the following formula:
Figure BDA0002851506890000081
wherein z is1Number of frames representing logical frames of the first game, L represents a straight-line distance between the initial position of the shooting target and the position of the shooting target, v0Indicating the initial velocity, t, of the transmitting target0Representing the run length of a single game logical frame.
If the straight-line distance between the initial position of the shooting target and the position of the shooting target exceeds the set distance range, the number of the first game logical frames can be determined based on the following formula:
Figure BDA0002851506890000091
wherein z is1A number of frames representing the first game logical frame,/'represents the set distance range,/'0Indicating the initial velocity, t, of the transmitting target0Representing the run length of a single game logical frame.
After the number of frames of the first game logical frame is determined based on the above manner, the transmission target is controlled to fly in a straight line at an initial speed within the first game logical frame.
Specifically, the second game logic frame of the launching target moving along the curve is determined according to the set distance range, the running time of the single game logic frame, the position of the shooting target, the initial speed of the launching target and the initial position. And controlling the launching target to fly along the curve at an initial speed based on the ballistics theory in the second game logic frame.
Optionally, if the linear distance between the initial position of the launching target and the position of the shooting target exceeds the set distance range, determining the number of the second game logical frames based on the following formula:
Figure BDA0002851506890000092
Figure BDA0002851506890000093
wherein z is2Representing the number of frames of a logical frame of the second game, t representing the length of time that the target moves along the curve, t0Represents the running time of a single game logical frame, L represents the straight-line distance between the initial position of the shooting target and the position of the shooting target, L represents the set distance range, v0The initial velocity of the launching target is shown, and a represents the acceleration of the launching target when moving along a curve.
After the number of frames of the second game logical frame is determined based on the above manner, the transmission target is controlled to fly along the curve at the initial speed within the second game logical frame.
Illustratively, the straight-line distance between the initial position of the shooting target and the position of the shooting target is 500m, the set distance range is 200m, and the running time of a single game logical frame is
Figure BDA0002851506890000101
The initial velocity of the launching target is 600m/s, and the acceleration of the launching target when moving along the curve is 10-6m/s2. It can be seen that the transmission target flies along a straight line within the set distance range, i.e., within the first 200m, and flies along a curved line outside the set distance range, i.e., within the last 300 m. Based on the above information, the number of logical frames of the first game can be determined as
Figure BDA0002851506890000102
Namely, the first 20 frames after the transmission of the transmission target are taken as the first game logical frame, and the transmission target is controlled to fly in a straight line at an initial speed in the first game logical frame.
Further, the time length of the motion of the emission target along the curve can be determined as
Figure BDA0002851506890000103
Bringing into known conditions
Figure BDA0002851506890000104
By solving the quadratic function, the time length of the motion of the transmitting target along the curve can be determined to be 0.5s, and the frame number of the second game logic frame can be further determined to be
Figure BDA0002851506890000105
Namely, the 21 st frame to the 50 th frame after the transmission of the transmission target are used as the second game logical frame, and the transmission target is controlled to fly along the curve at the initial speed in the second game logical frame.
When the speed of the transmitting target on the current frame is too high, the engine needs to load all objects close to the transmitting target within the motion distance of the transmitting target in the current frame so as to determine whether the transmitting target collides with surrounding objects in the motion process of the transmitting target in the current frame. If the speed of transmitting the target is too fast, the longer the moving distance included in the current frame is, the more surrounding objects need to be loaded, and the pressure of the game engine is increased. Moreover, when the speed of the launching target is too fast, the user is difficult to capture the flight trajectory of the launching target, which may cause a problem of poor visual experience of the user.
Optionally, in order to reduce the pressure of the game engine and improve the visual experience of the user, a speed threshold may be set for the speed of the transmission target on each frame, that is, the speed of the transmission target on each frame cannot exceed the speed threshold, and if the actual speed of the transmission target exceeds the speed threshold, the speed threshold is used as the speed of the transmission target.
Through the method, the pressure of the game engine can be reduced, although the flight track of the launching target is different from the corresponding flight track in the physical method, the mode of setting the speed threshold value can facilitate the user to capture the flight track of the launching target, and the animation display effect is better. Whether to set the speed threshold value may be set according to the actual situation and the actual requirement of the game engine.
And step 440, determining the maximum flying height reached by the transmitting target according to the flying track.
According to the technical scheme of the embodiment, the shooting associated information is acquired when the shooting instruction is received. The flight path of the launching target is controlled in a segmented manner according to the shooting associated information, and the launching target is controlled to fly along a straight line within a set distance range of the initial position of the launching target; outside the set distance range of the initial position of the launching target, the launching target is controlled to fly along a curve based on the ballistics theory, the problems that aiming difficulty is caused to a user and the target cannot be accurately shot under the simulation condition, and the calculated amount is large when the launching target is simulated to fly are solved, the optimal control of the flight path of the launching target is realized, and then a game player can aim the shooting target easily, the game experience of the game player is improved, meanwhile, the calculation complexity can be reduced, and the requirement on the system calculation power is reduced.
On the basis of the technical solutions of the above embodiments, the method further includes:
and increasing a preset numerical value of a game interface according to the highest flying height, wherein the preset numerical value is used for representing the game achievement of a game player so as to enhance the interest of the game and enhance the user stickiness of the game.
The following is an embodiment of the apparatus for determining a flying height of a transmitting target according to an embodiment of the present invention, which belongs to the same inventive concept as the method for determining a flying height of a transmitting target according to the above embodiments, and reference may be made to the above embodiment of the method for determining a flying height of a transmitting target for details that are not described in detail in the embodiment of the apparatus for determining a flying height of a transmitting target.
EXAMPLE III
Fig. 5 is a schematic structural diagram of a device for determining the flying height of a transmitting target according to a third embodiment of the present invention, where the device specifically includes: an acquisition module 510, a first determination module 520, and a second determination module 530.
The obtaining module 510 is configured to obtain the shooting related information when receiving a shooting instruction; a first determining module 520, configured to determine a flight trajectory of the launching target according to the shooting related information; a second determining module 530, configured to determine a highest flying height reached by the transmitting target according to the flying trajectory.
Optionally, the second determining module 530 includes:
the first determining unit is used for determining an included angle between a tangent line of the flight track at each moment and the horizontal direction;
the second determining unit is used for determining the target time when the included angle is zero;
and the third determining unit is used for determining the real-time height of the transmitting target at the target moment as the highest flying height.
Optionally, the second determining module 530 further includes:
and the fourth determining unit is used for determining the real-time height at the collision moment as the highest flying height if the transmitting target collides with other game objects before the included angle is reduced to zero.
Optionally, the shooting related information includes: the firing angle, the position of the firing target, the initial velocity of the firing target, and the initial position.
Optionally, the first determining module 520 includes:
a fifth determining unit, configured to determine, based on a linear flight strategy, a flight path of the target according to the shooting angle and the initial firing speed within a set distance of the initial position;
and the sixth determining unit is used for determining the flight track of the target based on a ballistics theory outside the set distance of the initial position according to the flight path.
Optionally, the transmitting target includes: bullets or arrows.
Optionally, the apparatus further comprises:
and the increasing module is used for increasing a preset numerical value of a game interface according to the highest flying height, wherein the preset numerical value is used for representing the game achievement of a game player.
According to the technical scheme of the embodiment, shooting associated information is acquired when a shooting instruction is received; determining the flight track of the launching target according to the shooting associated information; the technical means of determining the maximum flying height reached by the launching target according to the flying track is specifically to determine the time when the launching target reaches the maximum height according to the included angle between the tangent line of the flying track and the horizontal direction, and then read the flying height corresponding to the time, so that the flying height of the launching target launched by the game player is determined.
The device for determining the flight altitude of the launch target provided by the embodiment of the invention can execute the method for determining the flight altitude of the launch target provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method for determining the flight altitude of the launch target.
Example four
Fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 6 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 6, electronic device 12 is embodied in the form of a general purpose computing electronic device. The components of electronic 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, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic 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. The electronic 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. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, 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 (e.g., a CD-ROM, 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. System 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 system 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.
Electronic 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 electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the 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 electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and the determination of the flight altitude of the transmitting target by running a program stored in the system memory 28, for example, to implement the steps of a method for determining the flight altitude of the transmitting target provided by the embodiment of the present invention, the method includes:
when a shooting instruction is received, shooting associated information is obtained;
determining the flight track of the launching target according to the shooting associated information;
and determining the highest flying height reached by the transmitting target according to the flying track.
Of course, those skilled in the art will understand that the processor may also implement the technical solution of the method for determining the flight height of the transmitting target provided in any embodiment of the present invention.
EXAMPLE five
This fifth embodiment provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the method steps for determining the flight altitude of a transmitting target as provided by any of the embodiments of the present invention, the method comprising:
when a shooting instruction is received, shooting associated information is obtained;
determining the flight track of the launching target according to the shooting associated information;
and determining the highest flying height reached by the transmitting target according to the flying track.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer-readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. 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, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
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).
It will be understood by those skilled in the art that the modules or steps of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented by program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, or it may be separately fabricated into various integrated circuit modules, or it may be fabricated by fabricating a plurality of modules or steps thereof into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for determining the flying height of a transmitting target, comprising:
when a shooting instruction is received, shooting associated information is obtained;
determining the flight track of the launching target according to the shooting associated information;
and determining the highest flying height reached by the transmitting target according to the flying track.
2. The method of claim 1, wherein said determining a maximum altitude reached by said launch target based on said flight trajectory comprises:
determining an included angle between a tangent line of the flight track at each moment and the horizontal direction;
determining the target moment with the included angle being zero;
and determining the real-time height of the transmitting target at the target moment as the highest flying height.
3. The method of claim 2, wherein said determining the highest flying height reached by the transmitting target according to the flying trajectory before the target time at which the included angle is zero further comprises:
before the included angle is reduced to zero, if the transmitting target collides with other game objects, determining the real-time height at the collision moment as the highest flying height.
4. The method of any of claims 1-3, wherein the shot-related information comprises: the firing angle, the initial velocity of the firing target, and the initial position.
5. The method of claim 4, wherein determining the flight trajectory of a firing target based on the shot correlation information comprises:
determining the flight path of the target according to the shooting angle and the initial launching speed based on a linear flight strategy within the set distance of the initial position;
and according to the flight path, determining the flight track of the target based on a ballistics theory outside the set distance of the initial position.
6. The method of any of claims 1-3, wherein the transmitting the target comprises: bullets or arrows.
7. The method according to any one of claims 1-3, further comprising:
and increasing a preset numerical value of a game interface according to the highest flying height, wherein the preset numerical value is used for representing the game achievement of a game player.
8. An apparatus for determining the flying height of a transmitted target, comprising:
the acquisition module is used for acquiring shooting associated information when receiving a shooting instruction;
the first determining module is used for determining the flight track of the launching target according to the shooting associated information;
and the second determining module is used for determining the highest flying height reached by the transmitting target according to the flying track.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method steps of transmitting a target fly height as claimed in any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method steps of determining a transmission target flight height according to any one of claims 1 to 7.
CN202011528381.2A 2020-12-22 2020-12-22 Method, device, equipment and storage medium for determining flying height of transmission target Active CN112619164B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011528381.2A CN112619164B (en) 2020-12-22 2020-12-22 Method, device, equipment and storage medium for determining flying height of transmission target

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011528381.2A CN112619164B (en) 2020-12-22 2020-12-22 Method, device, equipment and storage medium for determining flying height of transmission target

Publications (2)

Publication Number Publication Date
CN112619164A true CN112619164A (en) 2021-04-09
CN112619164B CN112619164B (en) 2023-05-02

Family

ID=75321357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011528381.2A Active CN112619164B (en) 2020-12-22 2020-12-22 Method, device, equipment and storage medium for determining flying height of transmission target

Country Status (1)

Country Link
CN (1) CN112619164B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113750530A (en) * 2021-09-18 2021-12-07 腾讯科技(深圳)有限公司 Prop control method, device, equipment and storage medium in virtual scene

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140370993A1 (en) * 2010-08-19 2014-12-18 Evrio, Inc. Display Indicating Aiming Point Using Intermediate Point in Trajectory Path
CN107019915A (en) * 2016-02-01 2017-08-08 腾讯科技(深圳)有限公司 A kind of method, user equipment and system for determining motion track
CN108837507A (en) * 2018-05-29 2018-11-20 网易(杭州)网络有限公司 Virtual item control method and device, electronic equipment, storage medium
CN109200582A (en) * 2018-08-02 2019-01-15 腾讯科技(深圳)有限公司 The method, apparatus and storage medium that control virtual objects are interacted with ammunition
CN110478906A (en) * 2019-08-12 2019-11-22 网易(杭州)网络有限公司 Missile running track processing method and processing device
CN110917619A (en) * 2019-11-18 2020-03-27 腾讯科技(深圳)有限公司 Interactive property control method, device, terminal and storage medium
CN111084986A (en) * 2019-12-17 2020-05-01 腾讯科技(深圳)有限公司 Display control method, display control device, storage medium, and electronic device
CN111282275A (en) * 2020-03-06 2020-06-16 腾讯科技(深圳)有限公司 Method, device, equipment and storage medium for displaying collision traces in virtual scene
CN111589150A (en) * 2020-04-22 2020-08-28 腾讯科技(深圳)有限公司 Control method and device of virtual prop, electronic equipment and storage medium
CN112044075A (en) * 2020-09-18 2020-12-08 网易(杭州)网络有限公司 Method and device for generating motion trail

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140370993A1 (en) * 2010-08-19 2014-12-18 Evrio, Inc. Display Indicating Aiming Point Using Intermediate Point in Trajectory Path
CN107019915A (en) * 2016-02-01 2017-08-08 腾讯科技(深圳)有限公司 A kind of method, user equipment and system for determining motion track
CN108837507A (en) * 2018-05-29 2018-11-20 网易(杭州)网络有限公司 Virtual item control method and device, electronic equipment, storage medium
CN109200582A (en) * 2018-08-02 2019-01-15 腾讯科技(深圳)有限公司 The method, apparatus and storage medium that control virtual objects are interacted with ammunition
CN110478906A (en) * 2019-08-12 2019-11-22 网易(杭州)网络有限公司 Missile running track processing method and processing device
CN110917619A (en) * 2019-11-18 2020-03-27 腾讯科技(深圳)有限公司 Interactive property control method, device, terminal and storage medium
CN111084986A (en) * 2019-12-17 2020-05-01 腾讯科技(深圳)有限公司 Display control method, display control device, storage medium, and electronic device
CN111282275A (en) * 2020-03-06 2020-06-16 腾讯科技(深圳)有限公司 Method, device, equipment and storage medium for displaying collision traces in virtual scene
CN111589150A (en) * 2020-04-22 2020-08-28 腾讯科技(深圳)有限公司 Control method and device of virtual prop, electronic equipment and storage medium
CN112044075A (en) * 2020-09-18 2020-12-08 网易(杭州)网络有限公司 Method and device for generating motion trail

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113750530A (en) * 2021-09-18 2021-12-07 腾讯科技(深圳)有限公司 Prop control method, device, equipment and storage medium in virtual scene
CN113750530B (en) * 2021-09-18 2023-07-21 腾讯科技(深圳)有限公司 Prop control method, device, equipment and storage medium in virtual scene

Also Published As

Publication number Publication date
CN112619164B (en) 2023-05-02

Similar Documents

Publication Publication Date Title
CN112619134B (en) Method, device, equipment and storage medium for determining flight distance of transmission target
US11826662B2 (en) Ballistic trajectory display in a virtual environment
US20110151955A1 (en) Multi-player augmented reality combat
CN111275797A (en) Animation display method, device, equipment and storage medium
CN112619163B (en) Flight path control method and device, electronic equipment and storage medium
WO2022083449A1 (en) Virtual throwing prop using method and device, terminal, and storage medium
CN112619135B (en) Game resource object control method and device, electronic equipment and storage medium
WO2021218460A1 (en) Virtual object control method and device, terminal, and storage medium
CN112619151B (en) Collision prediction method and device, electronic equipment and storage medium
WO2022156491A1 (en) Virtual object control method and apparatus, and device, storage medium and program product
CN112619162B (en) Resource object management method and device, electronic equipment and storage medium
CN112619164B (en) Method, device, equipment and storage medium for determining flying height of transmission target
CN109731337B (en) Method and device for creating special effect of particles in Unity, electronic equipment and storage medium
CN111265884B (en) Cheating detection method, device, equipment and medium for virtual object
CN112642163A (en) Motion trajectory prediction method and device, electronic equipment and storage medium
WO2023029626A1 (en) Avatar interaction method and apparatus, and storage medium and electronic device
CN113694522B (en) Method and device for processing crushing effect, storage medium and electronic equipment
CN112619161A (en) Emission target control method and device, electronic equipment and storage medium
CN112843739B (en) Shooting method, shooting device, electronic equipment and storage medium
CN112755524B (en) Virtual target display method and device, electronic equipment and storage medium
CN115712240B (en) Ballistic trajectory control method, device and medium for large-sector-angle launch and large-falling-angle attack
CN115738272A (en) Bullet special effect processing method and device, electronic equipment and computer readable medium
CN112791418B (en) Determination method and device of shooting object, electronic equipment and storage medium
CN116650971A (en) Method, device and equipment for throwing virtual props in virtual scene
CN114642881A (en) Game display control method and device, storage 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