CN112619164B - Method, device, equipment and storage medium for determining flying height of transmission target - Google Patents

Method, device, equipment and storage medium for determining flying height of transmission target Download PDF

Info

Publication number
CN112619164B
CN112619164B CN202011528381.2A CN202011528381A CN112619164B CN 112619164 B CN112619164 B CN 112619164B CN 202011528381 A CN202011528381 A CN 202011528381A CN 112619164 B CN112619164 B CN 112619164B
Authority
CN
China
Prior art keywords
target
determining
shooting
flight
emission
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
CN202011528381.2A
Other languages
Chinese (zh)
Other versions
CN112619164A (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 flying height 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 acquired; determining the flight track of the launching target according to the shooting related information; and determining the highest flying height reached by the emission target according to the flying track. Through the technical scheme of the embodiment, the determination of the flying height of the emission target emitted by the game player is realized.

Description

Method, device, equipment and storage medium for determining flying height of transmission target
Technical Field
The embodiment of the invention relates to the technical field of network games, in particular to a method and a device for determining the flying height of a transmitting target, electronic equipment and a storage medium.
Background
In some online games, there is often a game scene of a gun or arrow. The shooting or archery pictures (specifically, pictures of bullet flight and arrow flight) in the game are presented through simulation of the reality similar phenomenon.
However, the highest height reached by the bullet or the arrow cannot be determined in the current game, however, the highest height reached by the bullet or the arrow is significant to the entertainment of the game, for example, a certain game achievement can be rewarded for the game player according to the highest height reached by the bullet or the arrow launched by the game player, so that the interestingness of the game is enhanced, the play experience of the game player is improved, and the user viscosity of the game is improved.
Disclosure of Invention
The embodiment of the invention provides a method, a device, electronic equipment and a storage medium for determining the flying height of an emission target, which realize the determination of the flying height of the emission target emitted by a game player.
In a first aspect, an embodiment of the present invention provides a method for determining a altitude of a target to be transmitted, where the method includes:
when a shooting instruction is received, shooting associated information is acquired;
determining the flight track of the launching target according to the shooting related information;
and determining the highest flying height reached by the emission target according to the flying track.
In a second aspect, an embodiment of the present invention further provides a device for determining a target flying height, where the device 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 emission target according to the shooting related information;
and the second determining module is used for determining the highest flying height reached by the emission target according to the flying track.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method steps of determining a transmit target fly height as provided by any embodiment of the invention.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a method for determining a target fly height for transmission as provided by any of the embodiments of the present invention.
According to the technical scheme, when a shooting instruction is received, shooting associated information is acquired; determining the flight track of the launching target according to the shooting related information; the technical means of determining the highest flying height reached by the emission target according to the flying track realizes the determination of the flying height of the emission target emitted by the game player.
Drawings
FIG. 1 is a flow chart of a method for determining a target fly height for transmission according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a launching target flight path according to a first embodiment of the present invention;
FIG. 3 is a schematic view of a collision with another game object when the emission target has not reached the highest point according to the first embodiment of the present invention;
FIG. 4 is a flow chart of a method for determining a target fly height for transmission according to a second embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a device for determining a flying height of an emission 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 invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a method for determining the flying height of an launching target according to a first embodiment of the present invention, where the embodiment is applicable to a game scene with a gun or an arrow for determining the highest flying height of the launching target. The method may be performed by a means for determining the altitude of the target to be transmitted, which means may be implemented in software and/or hardware and integrated in an electronic device, such as a computer or a smart phone, etc.
As shown in fig. 1, the method specifically includes the following steps:
step 110, when receiving the shooting instruction, acquiring shooting related information.
The shooting instruction may be an instruction for triggering shooting behavior, and the shooting related information is information related to the shooting behavior and may be used for describing an initial state of the shooting target, a state of the shooting target, and the like. The shooting target is a target object which corresponds to a shooting instruction and performs shooting action and can be a bullet or a arrow and the like. The shooting target may be a target object aimed at the time of shooting, and also a target object that the shooting target intends to hit, for example: enemy characters or targets in the game, etc.
Specifically, when a shooting instruction is received, shooting-related information may be obtained from information associated with the shooting instruction set in advance. The shooting related information can also be determined according to the shooting instruction, the shooting target and the shooting target. In order to make the flight path of the firing 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 shooting angle, the position of the shooting target, the initial velocity of the shooting target, and the initial position.
The shooting angle is an angle when the emission target emits, and can be determined according to the relative angle of the emission target and the shooting target, and can also be determined according to the shooting angle preset by a user. The shooting target position and the initial position of the launching target may be spatial position information of the shooting target and the launching target, for example: spatial coordinate information. The initial velocity of the emission target is related to the emission target itself, for example: when different shooting tools or different forces are used to complete the shooting action, the initial speed of the shooting target is different. The specific determination manner of the above-mentioned design association information may be determined according to the actual scenario, and is not specifically limited in this embodiment.
And 120, determining the flight track of the launching target according to the shooting related information.
The flight path refers to a path of a motion in the air after the launching target is launched. 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 accords with the actual requirement.
Specifically, since the initial speed of the emission target just emitted is higher under normal conditions, the gravity acceleration can be ignored approximately, and the emission target can be controlled to fly along a straight line according to the sectional control. When the launching target flies for a period of time or a distance, the flying speed of the launching target is reduced due to the action of air resistance, and the action of gravity acceleration on the launching target becomes obvious. Therefore, the emission target can be accelerated to move towards the direction of the earth center under the action of gravity, and the emission target can be controlled to fly along a curve according to the sectional control. The specific determination mode of the curved flight path can be determined according to the calculation mode of parabolas or according to the theory of ballistics.
And 130, determining the highest flying height reached by the emission target according to the flying track.
Illustratively, the determining the highest flying height reached by the launching target according to the flying trace includes:
determining an included angle between a tangent line of the flight track and the horizontal direction at each moment;
determining a target moment when the included angle is zero;
and determining the real-time height of the transmitting target at the target moment as the highest flying height.
Referring to the schematic diagram of a flight path of an emission target shown in fig. 2, it can be seen from fig. 2 that the emission target is emitted from a point a to a point B, and when an included angle between a tangent line of the flight path and a horizontal direction is zero, that is, the height of the point C is the highest flight height of the emission target.
Further, before the determining the target time when the included angle is zero, determining, according to the flight trajectory, a highest flying height reached by the emission target further includes:
and before the included angle is reduced to zero, if the emission target collides with other game objects, determining the real-time height at the moment of collision as the highest flying height.
Correspondingly, referring to a schematic diagram shown in fig. 3, the emission target collides with other game objects when the emission target does not reach the highest point, it can be seen from fig. 3 that the moment when the emission target collides with other game objects (e.g., game object C) is the moment when the emission target reaches the maximum flying height.
According to the technical scheme, shooting related information is obtained when a shooting instruction is received; determining the flight track of the launching target according to the shooting related information; the technical means for determining the highest flying height reached by the emission target according to the flying track is to determine the moment when the emission target reaches the maximum height according to the included angle between the tangent line of the flying track and the horizontal direction, and further read the flying height corresponding to the moment, thereby realizing the determination of the flying height of the emission target emitted by the game player.
Example two
Fig. 4 is a flowchart of a method for determining a flight altitude of an emission target according to a second embodiment of the present invention, where a specific implementation manner is given for step 120 "determining a flight trajectory of an emission target according to the shooting-related information" based on the above embodiment, specifically: determining the flight path of the target according to the shooting angle and the initial shooting speed based on a linear flight strategy within a set distance of the initial position of the shooting target; and determining the flight track of the target based on the ballistics theory outside the set distance of the initial position according to the flight path. The advantage of setting up like this is that solved under the simulation condition, aim at the difficulty and unable accurate shooting target's of user problem that causes to and the big problem of calculated amount that causes when simulating the target flight of launching, realized launching the optimal control of target flight route, and then made game player aim at shooting target more easily, promoted game player's recreation experience, still can reduce calculation complexity simultaneously, reduce the requirement to system calculation power. Wherein, the explanation of the same or corresponding terms as the above embodiments is not repeated herein.
Referring to fig. 4, the method for determining the altitude of the emission target provided in this embodiment specifically includes the following steps:
step 410, when receiving the shooting instruction, acquiring shooting related information.
And step 420, determining the flight path of the target according to the shooting angle and the initial speed of the shooting based on a straight line flight strategy within a set distance of the initial position of the shooting target.
And 430, determining the flight track of the target based on the 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 emission target, the sectional control can be performed according to the set distance range. When the initial position of the emission target is within the set distance range, the action of gravity acceleration can be ignored, and the emission target is controlled to fly along a straight line; when the initial position of the launching target is beyond the set distance range, the launching target is influenced by air resistance, so that the flying speed is reduced, the downward moving speed of the launching target is increased under the influence of gravity, and the specific flying path can be calculated by referring to the theory of ballistics.
In this embodiment, the number of frames for the segment control may be determined so that the motion situation of the emission target in different frames coincides with the ballistics theory.
Optionally, determining a first game logic frame moving along a straight line and a second game logic frame 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 shooting target and the initial position; and controlling the flight path of the transmitting target according to the first game logic frame and the second game logic frame.
Wherein the set distance range is the longest distance for determining the linear motion of the emission target. The game logical frame is the minimum unit when the game screen is displayed.
Specifically, in the set distance range, the emission target moves along the straight line, and further the length of the straight line movement can be determined. If the linear distance between the initial position of the emission target and the position of the shooting target does not exceed the set distance range, determining the length of the linear motion according to the linear distance and the initial speed of the emission target; if the linear distance between the initial position of the firing target and the position of the shooting target exceeds the set distance range, determining the length of the linear motion according to the set distance range and the initial speed of the firing target. And according to the length of the linear motion and the running length of the single game logic frame, the first game logic frame of the linear motion corresponding to the emission 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 for performing curve motion can be determined according to the linear distance and the set distance range, and further the time length of the shooting target for performing curve motion can be determined according to an acceleration calculation formula. And determining a second game logic frame of the curvilinear motion corresponding to the emission target according to the time length of the curvilinear motion and the running time length of the single game logic frame.
The launching target is controlled to fly in a straight line at an initial speed within a first game logic frame. And if the number of the second game logic frames is not zero, when the operation of the first game logic frames is finished, controlling the emission target to fly along the curve at the initial speed and the set acceleration in the second game logic frames.
The reason for using the above-described manner to control the flight of the launching target in segments is that: within the set distance range, the emission target flies along a straight line, meets the expectations of players, and has the advantages of simple calculation and low performance requirement. Outside the set distance range, the transmitting target flies along a curve, and the flying path accords with physical perception of the real world.
Specifically, a first game logic frame in which the launching target moves along a straight line is determined 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 the launching target is controlled to fly along the straight line at the initial speed in the first game logic frame.
If the linear distance between the initial position of the firing target and the position of the shooting target does not exceed the set distance range, the number of frames of the first game logical frame may be determined based on the following formula:
Figure BDA0002851506890000081
wherein z is 1 The number of frames representing the logical frame of the first game, L representing the linear distance between the initial position of the firing target and the position of the shooting target, v 0 Representing the initial velocity of the emission target, t 0 Representing the run length of a single game logical frame.
If the linear distance between the initial position of the firing target and the position of the shooting target exceeds the set distance range, the number of frames of the first game logical frame may be determined based on the following formula:
Figure BDA0002851506890000091
wherein z is 1 The number of frames representing the first game logical frame, l representing the set distance range, v 0 Representing the initial velocity of the emission target, t 0 Representing the run length of a single game logical frame.
After the number of frames of the first game logic 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 logic frame.
Specifically, a second game logic frame in which the launching target moves along a 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. The launching target is controlled to fly along the curve at the initial speed based on the ballistics theory in the second game logic frame.
Optionally, if the linear distance between the initial position of the firing target and the position of the shooting target exceeds the set distance range, determining the number of frames of the second game logical frame based on the following formula:
Figure BDA0002851506890000092
Figure BDA0002851506890000093
wherein z is 2 The number of frames representing the logical frames of the second game, t representing the length of time the emission target moves along the curve, t 0 Representing the running time of a single game logical frame, L representing the straight line distance between the initial position of the firing target and the position of the shooting target, L representing the set distance range, v 0 Representing the initial velocity of the emission target, and a represents the acceleration of the emission target as it moves along a curve.
After the number of frames of the second game logic 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 logic frame.
Exemplary, initial position of firing target and position of shooting targetThe straight line distance between the two game logic frames is 500m, the set distance range is 200m, and the running time of each game logic frame is
Figure BDA0002851506890000101
The initial velocity of the launching target is 600m/s, and the acceleration of the launching target when the launching target moves along a curve is 10 -6 m/s 2 . It can be seen that the emission target flies along a straight line within a set distance range, namely, within the first 200m, and flies along a curve outside the set distance range, namely, within the second 300 m. From the above information, it can be determined that the number of first game logical frames is
Figure BDA0002851506890000102
That is, the first 20 frames after the emission target is emitted are taken as the first game logic frames, and the emission target is controlled to fly in a straight line at an initial speed within the first game logic frames.
Further, it can be determined that the length of time the emission target moves along the curve is
Figure BDA0002851506890000103
Bringing into known conditions
Figure BDA0002851506890000104
By solving the quadratic function, the time length of the transmitting target moving along the curve can be determined to be 0.5s, and then the frame number of the second game logic frame is determined to be
Figure BDA0002851506890000105
That is, the 21 st to 50 th frames after the transmission target is transmitted are taken as the second game logic frame, and the transmission target is controlled to fly along the curve at the initial speed within the second game logic 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 in the moving distance of the transmitting target in the current frame so as to judge whether collision with surrounding objects can occur in the moving process of the transmitting target in the current frame. If the speed of the target is too high, the longer the motion distance contained 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 high, the user is difficult to capture the flight track of the launching target, and the problem of poor visual experience of the user is caused.
Optionally, in order to reduce the stress of the game engine and improve the visual experience of the user, a speed threshold may be set for the speed of the emission target on each frame, i.e. the speed of the emission target on each frame cannot exceed the speed threshold, and if the actual speed of the emission target exceeds the speed threshold, the speed threshold is used as the speed of the emission target.
Through the method, the pressure of the game engine can be reduced, and 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 can facilitate the user to capture the flight track of the launching target, so that the animation display effect is better. It should be noted that whether to set the speed threshold may be set according to the actual situation and the actual requirement of the game engine.
Step 440, determining the highest flying height reached by the launching target according to the flying track.
According to the technical scheme of the embodiment, shooting related information is obtained when a shooting instruction is received. The flight path of the launching target is controlled in a sectionalized mode according to shooting related 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, so that the problems that aiming is difficult and the target cannot be accurately shot for a user under the simulation condition and the problem that calculated amount is large when the launching target is simulated to fly are solved, the optimal control of the flying path of the launching target is realized, further, a game player can aim at the shooting target more easily, the game experience of the game player is improved, meanwhile, the calculation complexity is reduced, and the requirement on the system calculation force is reduced.
On the basis of the technical solutions of the above embodiments, the method further includes:
and increasing a preset value of a game interface according to the highest flying height, wherein the preset value is used for representing game achievement of a game player so as to enhance the interestingness of the game and enhance the user viscosity of the game.
The following is an embodiment of an apparatus for determining a target altitude of emission provided by an embodiment of the present invention, which belongs to the same inventive concept as the method for determining a target altitude of emission in the above embodiments, and details of the method for determining a target altitude of emission, which are not described in detail in the embodiment of the apparatus for determining a target altitude of emission, may be referred to in the embodiment of the method for determining a target altitude of emission.
Example III
Fig. 5 is a schematic structural diagram of a device for determining a flying height of an emission 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 acquiring module 510 is configured to acquire 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, according to the flight trajectory, a highest flight altitude reached by the emission target.
Optionally, the second determining module 530 includes:
the first determining unit is used for determining the included angle between the tangent line of the flight track and the horizontal direction at each moment;
the second determining unit is used for determining the target moment when the included angle is zero;
and a third determining unit, configured to determine a real-time altitude of the emission target at the target time as the highest flying altitude.
Optionally, the second determining module 530 further includes:
and the fourth determining unit is used for determining the real-time height of the collision moment as the highest flying height if the emission target collides with other game objects before the included angle is reduced to zero.
Optionally, the shooting-related information includes: the shooting angle, the position of the shooting target, the initial velocity of the shooting target, and the initial position.
Optionally, the first determining module 520 includes:
a fifth determining unit, configured to determine a flight path of the target according to the shooting angle and the initial firing speed based on a rectilinear flight strategy within a set distance of the initial position;
and a sixth determining unit configured to determine, based on the ballistics theory, a flight trajectory of the target 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 includes:
and the adding module is used for adding a preset value of the game interface according to the highest flying height, wherein the preset value is used for representing game achievement of a game player.
According to the technical scheme, shooting related information is obtained when a shooting instruction is received; determining the flight track of the launching target according to the shooting related information; the technical means for determining the highest flying height reached by the emission target according to the flying track is to determine the moment when the emission target reaches the maximum height according to the included angle between the tangent line of the flying track and the horizontal direction, and further read the flying height corresponding to the moment, thereby realizing the determination of the flying height of the emission target emitted by the game player.
The device for determining the altitude of the emission target provided by the embodiment of the invention can execute the method for determining the altitude of the emission target provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the method for determining the altitude of the emission target.
Example IV
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 merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 6, the electronic device 12 is in the form of a general purpose computing electronic device. Components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include 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 can 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 or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive"). Although not shown in fig. 6, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, 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 or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 over the bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and determination of the transmission target flight level by running a program stored in the system memory 28, for example, implementing a method step of determining the transmission target flight level provided by the present embodiment, the method includes:
when a shooting instruction is received, shooting associated information is acquired;
determining the flight track of the launching target according to the shooting related information;
and determining the highest flying height reached by the emission target according to the flying track.
Of course, those skilled in the art will appreciate that the processor may also implement the technical solution of the method for determining the altitude of the target flight for transmission provided in any embodiment of the present invention.
Example five
A fifth embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a method for determining a transmission target flight level as provided by any embodiment of the invention, the method comprising:
when a shooting instruction is received, shooting associated information is acquired;
determining the flight track of the launching target according to the shooting related information;
and determining the highest flying height reached by the emission target according to the flying track.
The computer storage media of embodiments of the invention may take the form of 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 a combination of any 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 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.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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 of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It will be appreciated by those of ordinary skill in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed over a network of computing devices, or they may alternatively be implemented in program code executable by a computer device, such that they are stored in a memory device and executed by the computing device, or they may be separately fabricated as individual integrated circuit modules, or multiple modules or steps within them may be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. 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, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (8)

1. A method for determining a transmit target fly height, comprising:
when a shooting instruction is received, shooting associated information is acquired;
determining the flight track of the launching target according to the shooting related information;
determining the highest flying height reached by the emission target according to the flying track;
wherein the shooting-related information includes: shooting angle, initial speed of the emission target and initial position;
the determining the flight track of the launching target according to the shooting related information comprises the following steps:
determining the flight path of the target according to the shooting angle and the initial transmission speed based on a linear flight strategy within the set distance of the initial position;
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;
the method further comprises the steps of: determining a first game logic frame moving along a straight line and a second game logic frame moving along a curve according to a set distance range, the running time of a single game logic frame, the position of a shooting target, the initial speed and the initial position of the shooting target;
and controlling the flight path of the emission target according to the first game logic frame and the second game logic frame.
2. The method of claim 1, wherein said determining a highest flying height reached by said launching target from said flight trajectory comprises:
determining an included angle between a tangent line of the flight track and the horizontal direction at each moment;
determining a target moment when the included angle is 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 prior to the determining the target time at which the included angle is zero, the determining the highest flying height reached by the firing target from the flying trace further comprises:
and before the included angle is reduced to zero, if the emission target collides with other game objects, determining the real-time height at the moment of collision as the highest flying height.
4. A method according to any one of claims 1-3, wherein the emission target comprises: bullets or arrows.
5. A method according to any one of claims 1-3, further comprising:
and increasing a preset value of a game interface according to the highest flying height, wherein the preset value is used for representing game achievement of a game player.
6. A device for determining a firing target fly height, 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 emission target according to the shooting related information;
the second determining module is used for determining the highest flying height reached by the emission target according to the flying track;
wherein the shooting-related information includes: shooting angle, initial speed of the emission target and initial position;
the first determining module includes: a fifth determining unit, configured to determine a flight path of the target according to the shooting angle and the initial firing speed based on a rectilinear flight strategy within a set distance of the initial position; a sixth determining unit configured to determine, based on a ballistics theory, a flight trajectory of the target outside a set distance from the initial position according to the flight path;
determining a first game logic frame moving along a straight line and a second game logic frame moving along a curve according to a set distance range, the running time of a single game logic frame, the position of a shooting target, the initial speed and the initial position of the shooting target;
and controlling the flight path of the emission target according to the first game logic frame and the second game logic frame.
7. An electronic device, the electronic device comprising:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method steps of determining a transmit target fly height of any of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, carries out the method steps of determining a transmission target flight level according to any one of claims 1-5.
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 CN112619164A (en) 2021-04-09
CN112619164B true 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)

Families Citing this family (1)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9057587B2 (en) * 2010-08-19 2015-06-16 Evrio, Inc. Display indicating aiming point using intermediate point in trajectory path
CN107019915B (en) * 2016-02-01 2018-09-07 腾讯科技(深圳)有限公司 A kind of method, user equipment and the system of determining motion track
CN110478906B (en) * 2019-08-12 2023-05-16 网易(杭州)网络有限公司 Method and device for processing moving track of projection object
CN110917619B (en) * 2019-11-18 2020-12-25 腾讯科技(深圳)有限公司 Interactive property control method, device, terminal and storage medium
CN111084986B (en) * 2019-12-17 2021-07-27 腾讯科技(深圳)有限公司 Display control method, display control device, storage medium, and electronic device
CN112044075A (en) * 2020-09-18 2020-12-08 网易(杭州)网络有限公司 Method and device for generating motion trail

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Also Published As

Publication number Publication date
CN112619164A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN112619134B (en) Method, device, equipment and storage medium for determining flight distance of transmission target
CN108654086B (en) Method, device and equipment for obtaining attack damage in virtual environment
US11826662B2 (en) Ballistic trajectory display in a virtual environment
US20110151955A1 (en) Multi-player augmented reality combat
CN110465087B (en) Virtual article control method, device, terminal and storage medium
CN112619163B (en) Flight path control method and device, electronic equipment and storage medium
US10176586B2 (en) Image generation system, image generation method, and information storage medium
CN111275797A (en) Animation display method, device, equipment and storage medium
CN112619135B (en) Game resource object control method and device, electronic equipment 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
CN107152887A (en) A kind of simulated rocket cylinder operation training method and system based on virtual reality technology
CN112619164B (en) Method, device, equipment and storage medium for determining flying height of transmission target
CN112619162B (en) Resource object management method and device, electronic equipment and storage medium
CN112685913B (en) Infrared decoy bullet efficiency simulation method and system based on Unity
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
KR102541637B1 (en) Apparatus and method for training missile interception and system having the same
CN112619161A (en) Emission target control method and device, electronic equipment and storage medium
CN110631411A (en) Virtual shooting training control method and system
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
CN114642881A (en) Game display control method and device, storage medium and electronic equipment
Hu et al. Research on Trajectory Algorithm of The Arrow Based on Game Engine
CN116650971A (en) Method, device and equipment for throwing virtual props in virtual scene

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