CN106815476A - A kind of method and device for determining emitter flight path in application - Google Patents

A kind of method and device for determining emitter flight path in application Download PDF

Info

Publication number
CN106815476A
CN106815476A CN201710026302.XA CN201710026302A CN106815476A CN 106815476 A CN106815476 A CN 106815476A CN 201710026302 A CN201710026302 A CN 201710026302A CN 106815476 A CN106815476 A CN 106815476A
Authority
CN
China
Prior art keywords
emitter
barrier
angle
starting point
speed
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.)
Pending
Application number
CN201710026302.XA
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710026302.XA priority Critical patent/CN106815476A/en
Publication of CN106815476A publication Critical patent/CN106815476A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16ZINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS, NOT OTHERWISE PROVIDED FOR
    • G16Z99/00Subject matter not provided for in other main groups of this subclass

Landscapes

  • Toys (AREA)

Abstract

The invention discloses a kind of method for determining emitter flight path in application, including:Obtain cycle starting point speed and cycle starting point angle of the emitter in the sampling period;According to speed and the corresponding relation of coefficient of air resistance, the coefficient of air resistance corresponding to cycle starting point speed is determined;Coefficient of air resistance according to corresponding to cycle starting point speed, speed to emitter is adjusted, to obtain the cycle terminal velocity in sampling period, wherein, cycle starting point speed and cycle terminal velocity according to the sampling period, and cycle starting point angle, determine flight path of the emitter in the sampling period;Flight path to each sampling period is spliced, to obtain first paragraph flight path of the emitter in the simulated air of application.The embodiment of the present invention in the application simulated flight track when, it is contemplated that influence of the air drag to emitter speed, the flight course of emitter can be more really simulated in the application.

Description

A kind of method and device for determining emitter flight path in application
Technical field
The present invention relates to Internet technical field, and in particular in a kind of determination application the method for emitter flight path and Device.
Background technology
With the fast development of internet, increasing application is occurred in that, wherein, the application of type of play is subject to vast The welcome of user.Class game is fought in game application especially to enjoy great popularity, and is all much to use all kinds in battle class game Rifle and big gun etc. can launch the equipment of emitter and attack other side's.
The emitters such as bullet have a flight path after being launched, and the flight path of bullet is usual in game application All it is that developer is set in advance, if the flight path of developer's setting is straight line or parabola, bullet is just Can be according to straight line or parabolic flight, undoubtedly there is larger difference with situation in practice in this.
Current some game applications have also been introduced gravity to projectile flight during to the determination of projectile flight track Influence, but in actual conditions, projectile flight only can not possibly be influenceed by gravity, so current bullet identified in game application Ball flight path is still not true enough.
The content of the invention
In order to strengthen the sense of reality of emitter flight path in application, the embodiment of the present invention is sent out in providing a kind of determination application The method of beam flight path, can more real analog transmissions body in the application flight course, make the flight rail of emitter The closer reality of mark.The embodiment of the present invention additionally provides corresponding device.
First aspect present invention provides a kind of method for determining emitter flight path in application, including:
Obtain cycle starting point speed and cycle starting point angle of the emitter in the sampling period;
According to speed and the corresponding relation of coefficient of air resistance, the air drag corresponding to the cycle starting point speed is determined Coefficient;
Coefficient of air resistance according to corresponding to the cycle starting point speed, the speed to the emitter is adjusted, To obtain the cycle terminal velocity in the sampling period, wherein, the cycle terminal velocity in the first sampling period is adjacent second The cycle starting point speed in sampling period, the cycle starting point speed in first sampling period is the initial velocity of the emitter, institute State the initial angle that cycle starting point angle is the emitter;
According to the cycle starting point speed and the cycle terminal velocity in the sampling period, and the cycle starting point Angle, determines flight path of the emitter in the sampling period;
Flight path to each sampling period is spliced, to obtain simulated air of the emitter in the application In first paragraph flight path.
Second aspect present invention provides a kind of device for determining emitter flight path in application, including:
Acquiring unit, for obtaining cycle starting point speed and cycle starting point angle of the emitter in the sampling period;
First determining unit, for the corresponding relation according to speed and coefficient of air resistance, determines that the acquiring unit is obtained The coefficient of air resistance corresponding to the cycle starting point speed for taking;
Adjustment unit, for the air resistance corresponding to the cycle starting point speed that is determined according to first determining unit Force coefficient, the speed to the emitter is adjusted, to obtain the cycle terminal velocity in the sampling period, wherein, first The cycle terminal velocity in sampling period is the cycle starting point speed in the second adjacent sampling period, first cycle in sampling period The initial velocity that spot speed is the emitter is played, the cycle starting point angle is the initial angle of the emitter;
Second determining unit, is additionally operable to be adjusted according to the cycle starting point speed in the sampling period and the adjustment unit The whole cycle terminal velocity for obtaining, and the cycle starting point angle, determine the emitter in the sampling period Flight path;
Concatenation unit, the flight path in each sampling period for determining to second determining unit is spliced, To obtain first paragraph flight path of the emitter in the simulated air of the application.
The embodiment of the present invention in the application simulated flight track when, it is contemplated that influence of the air drag to emitter speed, And consider when velocity variations, the situation of change of air drag, so as to more really simulate emitter in the application Flight course, makes the flight path of emitter closer to reality, so as to improve the visual experience of user.
Brief description of the drawings
Fig. 1 is the corresponding relation schematic diagram of speed and coefficient of air resistance;
Fig. 2 is force analysis schematic diagram of the emitter in flight course;
Fig. 3 is a flight path schematic diagram of the emitter in the simulated air of application in the embodiment of the present invention;
Fig. 4 is another flight path schematic diagram of the emitter in the simulated air of application in the embodiment of the present invention;
Fig. 5 is another flight path schematic diagram of the emitter in the simulated air of application in the embodiment of the present invention;
Fig. 6 is another flight path schematic diagram of the emitter in the simulated air of application in the embodiment of the present invention;
Fig. 7 is an embodiment schematic diagram of the method that emitter flight path in application is determined in the embodiment of the present invention;
Fig. 8 is the penetration probability corresponding relation schematic diagram that angle and unlike material are hit in the embodiment of the present invention;
Fig. 9 is the penetration probability corresponding relation schematic diagram that angle and unlike material are hit in the embodiment of the present invention;
Figure 10 is the force analysis schematic diagram that bounce-back is hit in the embodiment of the present invention;
Figure 11 is another embodiment schematic diagram of the method that emitter flight path in application is determined in the embodiment of the present invention;
Figure 12 is an embodiment schematic diagram of the device that emitter flight path in application is determined in the embodiment of the present invention;
Figure 13 is the structural representation of a mobile terminal in the embodiment of the present invention.
Specific embodiment
The embodiment of the present invention provides a kind of method for determining emitter flight path in application, can be truer in the application Analog transmissions body flight course, make the flight path of emitter closer to reality.The embodiment of the present invention is additionally provided accordingly Device.It is described in detail individually below.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.
The trajectory simulation scheme of the embodiment of the present invention can be applied in the various fight class game for having emitter.
Emitter in the embodiment of the present invention can be bullet:(Bullet), also known as bullet.
When emitter in actual environment is projected from transmitter, speed is maximum, and air drag and weight are received in flight course Power effect is gradually slowed down, and air drag is also relevant with speed, and speed is bigger, and air drag is bigger, air drag and speed Relation can be understood by equation below:
The formula of air drag:F=(1/2) C ρ SV2, wherein:C is coefficient of air resistance;ρ is atmospheric density;S is transmitting Body front face area;V is the speed of related movement of emitter and air.
Coefficient of air resistance:Description bullet influence of the air drag to bullet energy attenuation at various speeds, typically One curve.For example:Can understand that speed hinders with air by the mapping table of the speed in Fig. 1 and coefficient of air resistance The corresponding relation of force coefficient.
After emitter is launched, flight in atmosphere can be acted on by gravity and air drag, and force diagram can be referred to Fig. 2 is understood that the direction of air drag is in opposite direction with speed.
Following several situations are can be potentially encountered after emitter is launched:
The first is to fly in atmosphere always, until hitting the mark or landing, such as the situation shown in Fig. 3, bullet quilt Flown in atmosphere always after launching until landing, acted on by gravity and air drag in whole flight course.
Second is after flying a segment distance in atmosphere, to run into barrier bounce-back, such as situation shown in Fig. 4, bullet Fly a segment distance in atmosphere after being emitted, and runs into barrier, and the dump energy of bullet cannot pass through barrier, by obstacle Thing rebounds.
The third is flown in atmosphere after a segment distance, penetrates barrier, and rests on barrier.Such as Fig. 5 institutes Situation about showing, bullet flies a segment distance in atmosphere after being emitted, and runs into barrier, barrier is penetrated, in barrier Running in stop at after a segment distance barrier.
4th kind of situation is after flying a segment distance in atmosphere, to penetrate barrier, and passes barrier, in atmosphere after Continuous flight.Situation for example shown in Fig. 6, bullet flies a segment distance in atmosphere after being emitted, and runs into barrier, penetrates barrier Hinder thing, and passed from barrier, continue to fly in atmosphere.
Certainly, above-mentioned Fig. 3 to Fig. 6 is to list general several situations, in fact, barrier can have multiple, bullet After ball can also pass through first barrier, rebounded on second barrier, or continue to penetrate second barrier and stop Stay in second barrier, it is also possible to continue to pass second barrier, as long as the speed of bullet is enough big, can pass through a lot Barrier.In addition, it is necessary to explanation, what is drawn in Fig. 3 to Fig. 6 is curve synoptic diagram, and the embodiment of the present invention will be illustrated Be during projectile flight, to not only allow for air drag, and air drag can constantly become with the change of speed Change, simulated flight track is tried one's best and accesses the flight path of reality, and the flight path curve drawn in the accompanying drawings may be forced not enough Very, but should not be considered to be the restriction to projectile flight track.
In game application, user equipment can be realized to flight path process in the embodiment of the present invention by hardware resource Simulation, the processor in simulation process in user equipment responds to the firing order that user triggers, obtain bullet just Beginning speed, the initial velocity of bullet can determine by the model of transmitter, for example:As shown in table 1:
The model of transmitter and the initial velocity mapping table of bullet
The model of transmitter The initial velocity of bullet
The rifle of A types 500 meter per seconds
The rifle of B types 450 meter per seconds
The rifle of C types 400 meter per seconds
Certainly, the data in above-mentioned table 1 are citing, and the numerical value of specific speed can be according to the emissivities of actual firearms It is determined that.
Processor it is determined that during projectile flight track, it is necessary to constantly collection bullet speed, can be to sampling Journey sets the sampling period, and the sampling period can be as small as possible, and the sampling period, smaller simulated flight path was more accurate, at one The process of projectile flight can be regarded as a uniformly retarded motion process in sampling period, suffered air drag is adopted by this The cycle starting point speed in sample cycle is calculated.
The air in reality can be referred to as simulated air in game application.
The method that emitter flight path in application is determined in the embodiment of the present invention is introduced below in conjunction with the accompanying drawings.
Refering to Fig. 7, an embodiment bag of the method for emitter flight path in determination application provided in an embodiment of the present invention Include:
101st, cycle starting point speed and cycle starting point angle of the emitter in the sampling period are obtained.
102nd, according to speed and the corresponding relation of coefficient of air resistance, the air corresponding to the cycle starting point speed is determined Resistance coefficient.
103rd, the coefficient of air resistance according to corresponding to the cycle starting point speed, the speed to the emitter is adjusted It is whole, to obtain the cycle terminal velocity in the sampling period, wherein, the cycle terminal velocity in the first sampling period is adjacent The cycle starting point speed in two sampling periods, the cycle starting point speed in first sampling period is the initial velocity of the emitter, The cycle starting point angle is the initial angle of the emitter.
104th, according to the cycle starting point speed and the cycle terminal velocity in the sampling period, and the cycle Starting point angle, determines flight path of the emitter in the sampling period.
105th, the flight path to each sampling period is spliced, to obtain simulation of the emitter in the application First paragraph flight path in air.
In the embodiment of the present invention, the sampling period is continuous, and the first cycle starting point speed in sampling period is emitter Initial velocity, the part that the initial velocity of emitter can refer to table 1 be understood.By emitter in first sampling period Motion process regard a uniformly retarded motion as because initial velocity determine, then as corresponding to Fig. 1 can find initial velocity Coefficient of air resistance, then air drag can be calculated according to above-mentioned air drag formula, in a sampling period The direction of air drag is in opposite direction with cycle starting point speed, and the quality of emitter is also what is be pre-configured with, so gravity can Asked with the quality by emitter, the motion process of first sampling period emitter is uniformly retarded motion, then can pass through Force analysis process and the correlation formula of even deceleration try to achieve first cycle terminal velocity in sampling period, according to first sampling The cycle starting point speed and cycle terminal velocity and cycle starting point angle in cycle, it may be determined that emitter is in horizontally and vertically side To motion track, by synthesis can obtain emitter in first flight path in sampling period.
First cycle terminal velocity in sampling period as the second cycle starting point speed in sampling period, according to above-mentioned Process computes repeatedly the flight path that can obtain each sampling period.
Said process can be before not hitting barrier in whole flight path, or Fig. 4 to Fig. 6 in Fig. 3 Flight path.
The embodiment of the present invention in the application simulated flight track when, it is contemplated that influence of the air drag to emitter speed, And consider when velocity variations, the situation of change of air drag, so as to more really simulate emitter in the application Flight course, makes the closer reality of flight path of emitter.
Alternatively, it is provided in an embodiment of the present invention determine application in emitter flight path method another embodiment also Including:
Barrier in hitting the application when the emitter is obtained in the terminal of flight to the first paragraph flight path Hinder thing, then the angle and dump energy of the barrier are hit according to the emitter, determine whether the emitter can penetrate The barrier;
If it is determined that the emitter can not penetrate the barrier, then the barrier is hit according to the emitter Angle and the speed for hitting the barrier determine the bounce-back initial angle and bounce-back initial velocity of the emitter;
According to bounce-back initial velocity and the bounce-back initial angle, determine the emitter in the simulated air Second segment flight path.
Whether in the embodiment of the present invention, emitter is after first paragraph flight path is flown over, and speed is reduced, but can penetrate Barrier is also relevant with the material of barrier, and such as barrier is one piece of plank, although speed diminishes, it is also possible to penetrating the wood Plate, if barrier is the wall of concrete, emitter may cannot penetrate the wall of concrete, and certainly, barrier also may be used It can be the barrier of iron plate or other materials.
Because the material of barrier is different, so the energy needed for transmitting physical efficiency penetrates barrier is also different, the present invention is implemented In example, when emitter hits barrier, the dump energy of emitter can be determined according to speed when hitting barrier, and tie Whether the angle-determining emitter in making a joint attack on can penetrate barrier, and whether the angle that emitter hits barrier directly influences and can Barrier is penetrated, if vertically hitting barrier, then the dump energy of emitter has all used vertical direction, and other angles are hit In, all can in the vertical direction produce component, so as to reduce the energy using in vertical direction.
The different striking velocities of emitter and angle is hit, and whether the material of barrier all can be to penetrating obstacle produce Raw influence.As shown in Figure 8 and Figure 9, as shown in figure 8, Wood is wooden material, Concrete is concrete material, identical Hit under angle, the penetration probability of the barrier of wooden material is greater than the penetration probability of concrete material.Penetration probability Exactly penetrate the probability of barrier.As shown in figure 9, under identical striking velocity, the penetration probability of the barrier of wooden material It is greater than the penetration probability of concrete material.Energy needed for emitter penetrates barrier can be advance according to the material of barrier Configure.
Accepting analysis and can be understood refering to Figure 10 for bounce-back situation, as shown in Figure 10, emitter is with certain angle Degree hits barrier, and can produce penetrate component with the striking velocity of barrier vertical direction and be hit with barrier vertical direction Speed cross component force.The striking velocity penetrates component and can produce the opposite reaction for penetrating component of size equidirectional therewith Power.The emitter is hit after barrier is repelled, and can go out the initial angle that rebounds according to the angle-determining for hitting barrier, can basis The speed for hitting barrier determines bounce-back initial velocity.After being repelled, the emitter starts to fly in atmosphere again, then can join Readding the sampling flown in atmosphere Fig. 7 parts and processing procedure carries out sampling processing, and each sampling period flies after being rebounded Row track, splice the second segment flight path after being rebounded.
The flight path that emitter hits bounce-back can be understood refering to the schematic diagram of Fig. 4.
Alternatively, it is provided in an embodiment of the present invention determine application in emitter flight path method another embodiment also Including:
If it is determined that the transmitting physical efficiency penetrates the barrier, then obtain the emitter and penetrate wearing for the barrier Access point, the material for injecting angle and the barrier for penetrating the barrier;
According to the point of entrance, the material for injecting angle and the barrier, determine that the emitter is penetrated described Energy needed for barrier;
When the energy needed for the dump energy penetrates the barrier less than the emitter, the emitter is determined From penetrating the barrier to stopping passed through track.
In the embodiment of the present invention, after emitter penetrates barrier, the distance walked in barrier can be understood as Straight line, it is understood that to be since incidence point, according to injecting direction movement until the line segment of halt.Emitter is in obstacle The continuous consumed energy of needs is walked in thing, barrier is different according to material, and emitter walks the energy that unit length is consumed Also different, since track of the emitter in barrier can be understood as injecting a little to the line segment for stopping.
The flight path of the embodiment can be understood refering to Fig. 5.
Alternatively, it is provided in an embodiment of the present invention determine application in emitter flight path method another embodiment also Including:
When the energy needed for the dump energy penetrates the barrier more than the emitter, the emitter is determined From penetrating the barrier to passing the track that the barrier is passed through.
In the embodiment of the present invention, when the dump energy of emitter is sufficiently large, then can pass always, the track walked can be with Description refering to last embodiment is understood that simply the terminal of track is changed to exit points by halt.
Alternatively, it is provided in an embodiment of the present invention determine application in emitter flight path method another embodiment also Including:
Injection angle and issuing velocity when determining that the emitter passes the barrier;
Three section flight of the emitter in the simulated air is determined according to the injection angle and issuing velocity Track.
In the embodiment of the present invention, the flight path of the process can be understood refering to the track of Fig. 6.Worn on emitter The flight path gone out after barrier can determine that the content of first paragraph flight path is understood refering to Fig. 7 parts, and this place is no longer Repetition is repeated.
Alternatively, another embodiment of the method for determining emitter flight path in application provided in an embodiment of the present invention In, it is described according to the point of entrance, the material for injecting angle and the barrier, determine that the emitter penetrates the barrier Energy needed for hindering thing, can include:
According to the point of entrance and it is described inject angle, determine that the emitter penetrates that the barrier needs guiding through away from From;
Material and the emitter according to the barrier penetrate the distance that the barrier is needed guiding through, and determine the hair Beam penetrate the barrier needed for energy.
In the embodiment of the present invention, according to point of entrance and inject angle and can determine the exit points on barrier, then from wearing Access point is the emitter and penetrates the distance that the barrier is needed guiding through to the distance of exit points, and the material according to barrier can be with Determine emitter walked in barrier needed in unit length consumption energy, then can determine walk it is above-mentioned from point of entrance Energy to required for the distance of exit points.
It is of course also possible to be that needs in unit length are walked in barrier according to the dump energy and emitter of emitter The energy of consumption determines the distance to be walked in barrier of the emitter, then judges whether the distance is more than from penetrating Distance of the point to exit points.
Alternatively, another embodiment of the method for determining emitter flight path in application provided in an embodiment of the present invention In, it is described to determine that the emitter, from the barrier is penetrated to passed through track is stopped, including:
Material according to the dump energy and the barrier determines the emitter from penetrating the attenuation rate of energy The barrier to stop the distance to be walked;
Inject angle and the distance to be walked according to described, determine the emitter from penetrate the barrier to Stop passed through track.
In the embodiment of the present invention, inject angle and determine the direction walked, walking direction can manage plus distance is walked Solve to be the track that is passed through of the emitter in barrier.
Below by taking the flight course of bullet in game application as an example, determine to launch in application to provided in an embodiment of the present invention The method of body flight path is illustrated.
As shown in figure 11, another embodiment of the method for emitter flight path in the determination application that inventive embodiments are provided Including:
201st, flown in simulated air after bullet is launched.
The flight path of bullet flight course in simulated air can be refering to first paragraph flight path in previous embodiment Determination process understood that it is no longer repeated at this place.
202nd, whether bullet hits barrier, if not hitting, performs step 203, and step 205 is performed if hitting.
203rd, barrier is not hit, then bullet continues to fly, and according to first paragraph flight path in previous embodiment really Scheme during fixed constantly adjusts flying speed.
204th, whether bullet energy is exhausted, and step 209 is performed if exhausting, if not exhausting, is performed step 201 and is continued to fly OK.
205th, whether bullet rebounds.
If the 206, rebounding, processed according to the bounce-back process described in previous embodiment.
207th, whether bullet penetrates barrier, if then performing step 208, if it is not, then performing step 209.
208th, energy attenuation is carried out according to the physical characteristic and penetration range for penetrating material, step is performed after passing barrier 201 continue to fly.
Energy attenuation process of the bullet in barrier can be refering to the energy attenuation in previous embodiment in barrier Process is understood that it is no longer repeated at this place.
If the 209, not penetrating barrier, bullet is destroyed.
The embodiment of the present invention in the application simulated flight track when, it is contemplated that influence of the air drag to emitter speed, And consider when velocity variations, the situation of change of air drag, so as to more really simulate emitter in the application Flight course, makes the closer reality of flight path of emitter.
Above is pair determining the description of the method for emitter flight path in application, the present invention is described below in conjunction with the accompanying drawings real Apply the device of emitter flight path in the determination application in example.
Refering to Figure 12, an embodiment of the device 30 of emitter flight path in determination application provided in an embodiment of the present invention Including:
Acquiring unit 301, for obtaining cycle starting point speed and cycle starting point angle of the emitter in the sampling period;
First determining unit 302, for the corresponding relation according to speed and coefficient of air resistance, determines the acquiring unit Coefficient of air resistance corresponding to the 301 cycle starting point speed for obtaining;
Adjustment unit 303, for corresponding to the cycle starting point speed that is determined according to first determining unit 302 Coefficient of air resistance, the speed to the emitter is adjusted, to obtain the cycle terminal velocity in the sampling period, its In, the cycle terminal velocity in the first sampling period is the cycle starting point speed in the second adjacent sampling period, first sampling week The cycle starting point speed of phase is the initial velocity of the emitter, and the cycle starting point angle is the initial angle of the emitter Degree;
Second determining unit 304, is additionally operable to the cycle starting point speed and the adjustment list according to the sampling period The cycle terminal velocity that the adjustment of unit 303 is obtained, and the cycle starting point angle, determine the emitter in the sampling The flight path in cycle;
Concatenation unit 305, the flight path in each sampling period for determining to second determining unit is spelled Connect, to obtain first paragraph flight path of the emitter in the simulated air of the application.
Compared with prior art, the device for determining emitter flight path in application provided in an embodiment of the present invention is in application During middle simulated flight track, it is contemplated that influence of the air drag to emitter speed, and consider when velocity variations, air The situation of change of resistance, so as to more really simulate the flight course of emitter in the application, makes the flight path of emitter Closer to reality.
Alternatively, second determining unit 304 is additionally operable to:
Barrier in hitting the application when the emitter is obtained in the terminal of flight to the first paragraph flight path Hinder thing, then the angle and dump energy of the barrier are hit according to the emitter, determine whether the emitter can penetrate The barrier;
If it is determined that the emitter can not penetrate the barrier, then the barrier is hit according to the emitter Angle and the speed for hitting the barrier determine the bounce-back initial angle and bounce-back initial velocity of the emitter;
According to bounce-back initial velocity and the bounce-back initial angle, determine the emitter in the simulated air Second segment flight path.
Alternatively, the acquiring unit 301, if being additionally operable to second determining unit determines that the transmitting physical efficiency is penetrated The barrier, then obtain the emitter penetrate the barrier point of entrance, penetrate the barrier inject angle and The material of the barrier;
Second determining unit 304, is additionally operable to according to the point of entrance, the material for injecting angle and the barrier Matter, determine the emitter penetrate the barrier needed for energy;When the dump energy penetrates institute less than the emitter During energy needed for stating barrier, determine the emitter from penetrating the barrier to stopping passed through track.
Alternatively, second determining unit 304, be additionally operable to be penetrated more than the emitter when the dump energy described in During energy needed for barrier, determine the emitter from penetrating the barrier to passing the rail that the barrier is passed through Mark.
Alternatively, second determining unit 304 is additionally operable to:
Injection angle and issuing velocity when determining that the emitter passes the barrier;
Three section flight of the emitter in the simulated air is determined according to the injection angle and issuing velocity Track.
Alternatively, second determining unit 304 is used for:
According to the point of entrance and it is described inject angle, determine that the emitter penetrates that the barrier needs guiding through away from From;
Material and the emitter according to the barrier penetrate the distance that the barrier is needed guiding through, and determine the hair Beam penetrate the barrier needed for energy.
Alternatively, second determining unit 304 is used for:
Material according to the dump energy and the barrier determines the emitter from penetrating the attenuation rate of energy The barrier to stop the distance to be walked;
Inject angle and the distance to be walked according to described, determine the emitter from penetrate the barrier to Stop passed through track.
The device 30 for determining emitter flight path in application provided in an embodiment of the present invention can refer to Fig. 1 to Figure 11 portions The corresponding description for dividing is understood that it is no longer repeated at this place.
The device of emitter flight path can be realized by user equipment in determination application provided in an embodiment of the present invention, The user equipment can be computer, and the terminal such as mobile phone, below by taking mobile phone as an example, introduce the determination application of the embodiment of the present invention The process of middle emitter flight path.
As shown in figure 13, for convenience of description, the part related to the embodiment of the present invention, particular technique details be illustrate only Do not disclose, refer to present invention method part.
Figure 13 is illustrated that the block diagram with the part-structure of mobile terminal provided in an embodiment of the present invention 800.With reference to Figure 13, Mobile terminal includes:Camera 810, memory 820, input block 830, display unit 840, sensor 850, voicefrequency circuit 860th, the part such as WiFi module 870, processor 880 and power supply 890.It will be understood by those skilled in the art that being shown in Figure 13 Mobile terminal structure do not constitute restriction to mobile terminal, can include than illustrating more or less part, or group Close some parts, or different part arrangements.
Each component parts of mobile terminal is specifically introduced with reference to Figure 13:
Camera 810 can be used to shoot;
Memory 820 can be used to store software program and module, and processor 880 is by running storage in memory 820 Software program and module, so as to perform various function application and the data processing of mobile terminal.Memory 820 can be main Including storing program area and storage data field, wherein, what storing program area can be needed for storage program area, at least one function should With program (such as sound-playing function, image player function etc.) etc.;Storage data field can store the use according to mobile terminal Data (such as voice data, phone directory etc.) for being created etc..Additionally, memory 820 can be stored including high random access Device, can also include nonvolatile memory, and for example, at least one disk memory, flush memory device or other volatibility are consolidated State memory device.
Input block 830 can be used to receive the operational order of user, such as:Launch the instruction of bullet, and produce and movement The key signals input that the user of terminal 800 is set and function control is relevant.Specifically, input block 830 may include touch surface Plate 831 and other input equipments 832.Contact panel 831, also referred to as touch-screen, can collect user thereon or neighbouring touch (such as user uses any suitable objects such as finger, stylus or annex on contact panel 831 or in contact panel to touch operation Operation near 831), and corresponding connection mobile terminal is driven according to formula set in advance.Optionally, contact panel 831 May include two parts of touch detection mobile terminal and touch controller.Wherein, touch detection mobile terminal detection user's is tactile Orientation is touched, and detects the signal that touch operation brings, transmit a signal to touch controller;Touch controller is moved from touch detection Touch information is received in dynamic terminal, and is converted into contact coordinate, then give processor 880, and energy receiving processor 880 is sent out Come order and performed.Furthermore, it is possible to using the polytype reality such as resistance-type, condenser type, infrared ray and surface acoustic wave Existing contact panel 831.Except contact panel 831, input block 830 can also include other input equipments 832.Specifically, its His input equipment 832 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), rail One or more in mark ball, mouse, action bars etc..
Display unit 840 can be used to show the interface of projectile flight.Display unit 840 may include indicator lamp 841, optional , liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic can be used Light-Emitting Diode, OLED) etc. form configure indicator lamp 841.Further, contact panel 831 can be covered and referred to Show lamp 841, when contact panel 831 is detected thereon or after neighbouring touch operation, send processor 880 to determine to touch The type of event, corresponding visual output is provided with preprocessor 880 according to the type of touch event on indicator lamp 841.Though So in fig. 13, contact panel 831 and indicator lamp 841 are that the input of mobile terminal and defeated is realized as two independent parts Enter function, but it is in some embodiments it is possible to contact panel 831 is integrated with indicator lamp 841 and realize the defeated of mobile terminal Enter and output function.
Mobile terminal 800 may also include at least one sensor 850.
Voicefrequency circuit 860, loudspeaker 861, microphone 862 can provide the COBBAIF between user and mobile terminal.Sound Electric signal after the voice data conversion that frequency circuit 860 will can be received, is transferred to loudspeaker 861, is converted to by loudspeaker 861 Voice signal is exported;On the other hand, the voice signal of collection is converted to electric signal by microphone 862, is received by voicefrequency circuit 860 After be converted to voice data, it is such as another to be sent to through camera 810 then after voice data output processor 880 is processed Mobile terminal, or voice data is exported to memory 820 so as to further treatment.
WiFi module 870 can be used for communication.
Processor 880 is the control centre of mobile terminal, using each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing software program and/or module of the storage in memory 820, and calls storage in storage Data in device 820, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Can Choosing, processor 880 may include one or more processing units;Preferably, processor 880 can integrated application processor and modulation Demodulation processor, wherein, application processor mainly processes operating system, user interface and application program etc., modulation /demodulation treatment Device mainly processes radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 880.
Mobile terminal 800 also includes the power supply 890 (such as battery) powered to all parts, it is preferred that power supply can lead to Cross power-supply management system logically contiguous with processor 880, thus by power-supply management system realize management charge, electric discharge and The functions such as power managed.
Although not shown, mobile terminal 800 can also include radio frequency (Radio Frequency, RF) circuit, bluetooth module Deng will not be repeated here.
In embodiments of the present invention, the mobile terminal is it is determined that processor included during the emitter flight path in 880 also have following functions:
Obtain cycle starting point speed and cycle starting point angle of the emitter in the sampling period;
According to speed and the corresponding relation of coefficient of air resistance, the air drag corresponding to the cycle starting point speed is determined Coefficient;
Coefficient of air resistance according to corresponding to the cycle starting point speed, the speed to the emitter is adjusted, To obtain the cycle terminal velocity in the sampling period, wherein, the cycle terminal velocity in the first sampling period is adjacent second The cycle starting point speed in sampling period, the cycle starting point speed in first sampling period is the initial velocity of the emitter, institute State the initial angle that cycle starting point angle is the emitter;
According to the cycle starting point speed and the cycle terminal velocity in the sampling period, and the cycle starting point Angle, determines flight path of the emitter in the sampling period;
Flight path to each sampling period is spliced, to obtain simulated air of the emitter in the application In first paragraph flight path.
Alternatively, methods described also includes:
Barrier in hitting the application when the emitter is obtained in the terminal of flight to the first paragraph flight path Hinder thing, then the angle and dump energy of the barrier are hit according to the emitter, determine whether the emitter can penetrate The barrier;
If it is determined that the emitter can not penetrate the barrier, then the barrier is hit according to the emitter Angle and the speed for hitting the barrier determine the bounce-back initial angle and bounce-back initial velocity of the emitter;
According to bounce-back initial velocity and the bounce-back initial angle, determine the emitter in the simulated air Second segment flight path.
Alternatively, methods described also includes:
If it is determined that the transmitting physical efficiency penetrates the barrier, then obtain the emitter and penetrate wearing for the barrier Access point, the material for injecting angle and the barrier for penetrating the barrier;
According to the point of entrance, the material for injecting angle and the barrier, determine that the emitter is penetrated described Energy needed for barrier;
When the energy needed for the dump energy penetrates the barrier less than the emitter, the emitter is determined From penetrating the barrier to stopping passed through track.
Alternatively, methods described also includes:
When the energy needed for the dump energy penetrates the barrier more than the emitter, the emitter is determined From penetrating the barrier to passing the track that the barrier is passed through.
Alternatively, methods described also includes:
Injection angle and issuing velocity when determining that the emitter passes the barrier;
Three section flight of the emitter in the simulated air is determined according to the injection angle and issuing velocity Track.
Alternatively, it is described according to the point of entrance, the material for injecting angle and the barrier, determine the transmitting Body penetrate the barrier needed for energy, can include:
According to the point of entrance and it is described inject angle, determine that the emitter penetrates that the barrier needs guiding through away from From;
Material and the emitter according to the barrier penetrate the distance that the barrier is needed guiding through, and determine the hair Beam penetrate the barrier needed for energy.
Alternatively, it is described to determine that the emitter, from the barrier is penetrated to passed through track is stopped, including:
Material according to the dump energy and the barrier determines the emitter from penetrating the attenuation rate of energy The barrier to stop the distance to be walked;
Inject angle and the distance to be walked according to described, determine the emitter from penetrate the barrier to Stop passed through track.
The associated description that mobile phone provided in an embodiment of the present invention can refer to Fig. 1 to Figure 11 certain customers equipment is managed Solution, it is no longer repeated at this place.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can Completed with instructing the hardware of correlation by program, the program can be stored in a computer-readable recording medium, storage Medium can include:ROM, RAM, disk or CD etc..
The method and device of emitter flight path are carried out in the determination application for being provided the embodiment of the present invention above It is discussed in detail, specific case used herein is set forth to principle of the invention and implementation method, above example Explanation be only intended to help and understand the method for the present invention and its core concept;Simultaneously for those of ordinary skill in the art, According to thought of the invention, will change in specific embodiments and applications, in sum, in this specification Appearance should not be construed as limiting the invention.

Claims (14)

1. a kind of method of emitter flight path during determination is applied, it is characterised in that including:
Obtain cycle starting point speed and cycle starting point angle of the emitter in the sampling period;
According to speed and the corresponding relation of coefficient of air resistance, the air drag system corresponding to the cycle starting point speed is determined Number;
Coefficient of air resistance according to corresponding to the cycle starting point speed, the speed to the emitter is adjusted, with To the cycle terminal velocity in the sampling period, wherein, the cycle terminal velocity in the first sampling period is the second adjacent sampling The cycle starting point speed in cycle, the cycle starting point speed in first sampling period is the initial velocity of the emitter, the week Phase starting point angle is the initial angle of the emitter;
According to the cycle starting point speed and the cycle terminal velocity in the sampling period, and the cycle starting point angle Degree, determines flight path of the emitter in the sampling period;
Flight path to each sampling period is spliced, to obtain the emitter in the simulated air of the application First paragraph flight path.
2. method according to claim 1, it is characterised in that methods described also includes:
Barrier in hitting the application when the emitter is obtained in the terminal of flight to the first paragraph flight path, The angle and dump energy of the barrier are then hit according to the emitter, determines whether the emitter can penetrate the barrier Hinder thing;
If it is determined that the emitter can not penetrate the barrier, then the angle of the barrier is hit according to the emitter With the bounce-back initial angle and bounce-back initial velocity that the speed for hitting the barrier determines the emitter;
According to bounce-back initial velocity and the bounce-back initial angle, the of the emitter in the simulated air is determined Two sections of flight paths.
3. method according to claim 2, it is characterised in that methods described also includes:
If it is determined that the transmitting physical efficiency penetrates the barrier, then obtain the emitter and penetrate penetrating for the barrier Point, the material for injecting angle and the barrier for penetrating the barrier;
According to the point of entrance, the material for injecting angle and the barrier, determine that the emitter penetrates the obstacle Energy needed for thing;
When the energy needed for the dump energy penetrates the barrier less than the emitter, determine the emitter from wearing Enter the barrier to the passed through track of stopping.
4. method according to claim 3, it is characterised in that methods described also includes:
When the energy needed for the dump energy penetrates the barrier more than the emitter, determine the emitter from wearing Enter the barrier to passing the track that the barrier is passed through.
5. method according to claim 4, it is characterised in that methods described also includes:
Injection angle and issuing velocity when determining that the emitter passes the barrier;
Three section flight path of the emitter in the simulated air is determined according to the injection angle and issuing velocity.
6. according to any described methods of claim 3-5, it is characterised in that described according to the point of entrance, the incident angle Degree and the barrier material, determine the emitter penetrate the barrier needed for energy, including:
According to the point of entrance and it is described inject angle, determine that the emitter penetrates the distance that the barrier is needed guiding through;
Material and the emitter according to the barrier penetrate the distance that the barrier is needed guiding through, and determine the emitter Energy needed for penetrating the barrier.
7. according to any described methods of claim 3-5, it is characterised in that the determination emitter is from penetrating the barrier Hinder thing to the passed through track of stopping, including:
Material according to the dump energy and the barrier determines that the emitter is described from penetrating to the attenuation rate of energy Barrier to stop the distance to be walked;
Angle and the distance to be walked are injected according to described, determines the emitter from penetrating the barrier to stopping The track for being passed through.
8. the device of emitter flight path during a kind of determination is applied, it is characterised in that including:
Acquiring unit, for obtaining cycle starting point speed and cycle starting point angle of the emitter in the sampling period;
First determining unit, for the corresponding relation according to speed and coefficient of air resistance, determines what the acquiring unit was obtained Coefficient of air resistance corresponding to the cycle starting point speed;
Adjustment unit, for the air drag system corresponding to the cycle starting point speed that is determined according to first determining unit Number, the speed to the emitter is adjusted, to obtain the cycle terminal velocity in the sampling period, wherein, the first sampling The cycle terminal velocity in cycle is the cycle starting point speed in the second adjacent sampling period, first cycle starting point in sampling period Speed is the initial velocity of the emitter, and the cycle starting point angle is the initial angle of the emitter;
Second determining unit, is additionally operable to be adjusted so as to according to the cycle starting point speed in the sampling period and the adjustment unit The cycle terminal velocity for arriving, and the cycle starting point angle, determine flight of the emitter in the sampling period Track;
Concatenation unit, the flight path in each sampling period for determining to second determining unit is spliced, with First paragraph flight path to the emitter in the simulated air of the application.
9. device according to claim 8, it is characterised in that
Second determining unit is additionally operable to:
Barrier in hitting the application when the emitter is obtained in the terminal of flight to the first paragraph flight path, The angle and dump energy of the barrier are then hit according to the emitter, determines whether the emitter can penetrate the barrier Hinder thing;
If it is determined that the emitter can not penetrate the barrier, then the angle of the barrier is hit according to the emitter With the bounce-back initial angle and bounce-back initial velocity that the speed for hitting the barrier determines the emitter;
According to bounce-back initial velocity and the bounce-back initial angle, the of the emitter in the simulated air is determined Two sections of flight paths.
10. device according to claim 9, it is characterised in that
The acquiring unit, if being additionally operable to second determining unit determines that the transmitting physical efficiency penetrates the barrier, The emitter is obtained to penetrate the point of entrance of the barrier, penetrate the material for injecting angle and the barrier of the barrier Matter;
Second determining unit, is additionally operable to according to the point of entrance, the material for injecting angle and the barrier, it is determined that The emitter penetrate the barrier needed for energy;When the dump energy penetrates the barrier less than the emitter During required energy, determine the emitter from penetrating the barrier to stopping passed through track.
11. devices according to claim 10, it is characterised in that
Second determining unit, is additionally operable to the energy needed for the dump energy penetrates the barrier more than the emitter During amount, determine the emitter from penetrating the barrier to passing the track that the barrier is passed through.
12. devices according to claim 11, it is characterised in that
Second determining unit is additionally operable to:
Injection angle and issuing velocity when determining that the emitter passes the barrier;
Three section flight path of the emitter in the simulated air is determined according to the injection angle and issuing velocity.
13. according to any described devices of claim 10-12, it is characterised in that
Second determining unit is used for:
According to the point of entrance and it is described inject angle, determine that the emitter penetrates the distance that the barrier is needed guiding through;
Material and the emitter according to the barrier penetrate the distance that the barrier is needed guiding through, and determine the emitter Energy needed for penetrating the barrier.
14. according to any described devices of claim 10-12, it is characterised in that
Second determining unit is used for:
Material according to the dump energy and the barrier determines that the emitter is described from penetrating to the attenuation rate of energy Barrier to stop the distance to be walked;
Angle and the distance to be walked are injected according to described, determines the emitter from penetrating the barrier to stopping The track for being passed through.
CN201710026302.XA 2017-01-13 2017-01-13 A kind of method and device for determining emitter flight path in application Pending CN106815476A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710026302.XA CN106815476A (en) 2017-01-13 2017-01-13 A kind of method and device for determining emitter flight path in application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710026302.XA CN106815476A (en) 2017-01-13 2017-01-13 A kind of method and device for determining emitter flight path in application

Publications (1)

Publication Number Publication Date
CN106815476A true CN106815476A (en) 2017-06-09

Family

ID=59110893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710026302.XA Pending CN106815476A (en) 2017-01-13 2017-01-13 A kind of method and device for determining emitter flight path in application

Country Status (1)

Country Link
CN (1) CN106815476A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109718553A (en) * 2018-11-07 2019-05-07 苏州蜗牛数字科技股份有限公司 A kind of role's random roam method
CN112619134A (en) * 2020-12-22 2021-04-09 上海米哈游天命科技有限公司 Method, device and equipment for determining flight distance of transmitting target and storage medium
CN113633987A (en) * 2021-08-18 2021-11-12 腾讯科技(深圳)有限公司 Object control method and device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105303594A (en) * 2015-11-05 2016-02-03 浪潮(北京)电子信息产业有限公司 Collision rebound path display method and apparatus
CN105957120A (en) * 2016-06-22 2016-09-21 财付通支付科技有限公司 Movement locus simulation method and device
CN105999677A (en) * 2016-05-19 2016-10-12 北京高派科技有限公司 Portable golf simulation system capable of being networked and simulation method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105303594A (en) * 2015-11-05 2016-02-03 浪潮(北京)电子信息产业有限公司 Collision rebound path display method and apparatus
CN105999677A (en) * 2016-05-19 2016-10-12 北京高派科技有限公司 Portable golf simulation system capable of being networked and simulation method
CN105957120A (en) * 2016-06-22 2016-09-21 财付通支付科技有限公司 Movement locus simulation method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HLDB201006: "斜抛物体在阻尼运动中的研究", 《豆丁网》 *
思古望今: "斜抛物体在阻尼运动中的研究", 《百度文库》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109718553A (en) * 2018-11-07 2019-05-07 苏州蜗牛数字科技股份有限公司 A kind of role's random roam method
CN112619134A (en) * 2020-12-22 2021-04-09 上海米哈游天命科技有限公司 Method, device and equipment for determining flight distance of transmitting target and storage medium
CN113633987A (en) * 2021-08-18 2021-11-12 腾讯科技(深圳)有限公司 Object control method and device, storage medium and electronic equipment
CN113633987B (en) * 2021-08-18 2024-02-09 腾讯科技(深圳)有限公司 Object control method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US8698736B2 (en) Handheld computer interface with haptic feedback
CN101105383B (en) Computer-aided flying saucer shooting training system
CN106815476A (en) A kind of method and device for determining emitter flight path in application
US9873031B2 (en) Smart target system for combat fitness and competition training
JP4582222B2 (en) Information processing system
CN104321113B (en) The virtual golf analogue means and its device of network competition are provided
CN103599631B (en) Based on flying saucer simulated training system and the method for machine vision
TW201722523A (en) Player-versus-player game control method and program
CN2922974Y (en) Laser simulated fly-disc shooting device
WO2020184138A1 (en) Game device, game system, recording medium, and control method
KR101435506B1 (en) Coaching robot for training trainee to hit object and mehtod for controlling the same
JP6265426B2 (en) GAME CONTROL DEVICE, GAME SYSTEM, AND PROGRAM
CN104147766B (en) A kind of basketball training device
JP6917075B2 (en) Game system
JP6281079B2 (en) GAME CONTROL DEVICE, GAME SYSTEM, AND PROGRAM
KR20210042816A (en) Entertainment play use of 3D hologram
JP6715539B2 (en) Game control device, game system and program
CN104573217A (en) Kinematic model based jamming bomb simulation method
JP6508658B2 (en) Game control device, game system and program
JP6714920B2 (en) Game control device, game system and program
JP6566403B2 (en) GAME CONTROL DEVICE, GAME SYSTEM, AND PROGRAM
JP6628269B2 (en) Game control device, game system and program
CN112057862B (en) Interaction method and related device
CN207965143U (en) A kind of range unit of electronic dart machine
KR101875714B1 (en) Method for simulating a screen baseball providing a strategy

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170609

RJ01 Rejection of invention patent application after publication