Projectile Programming Software Development by PratyushTheGreat We get the co-ordinates of a projectile at t1, (a,b) at t2 (c,d) at t3, (e,f) and so on as required. Write a program in C++ to calculate equation of trajectory of projectile.. Re: Projectile Programming Software Development by ddanbe …-Squares-Regression-for-Quadratic-Curve-Fitti) (The trajecory of a projectile is parabolic.) The link has an explanation and code in… Projectile Trajectory from a cannon ball Programming Software Development by umairqureshi_6 … ball ,on the mountain the function i am using for projectile trajectory is ---------------------------------------------------- void ball(int xx,int yy) { …ballMove(); break; }..... ------------------------------ when i press 'a', ball starts to follow projectile trajectory and hit the ship kindly help me out Problems… Projectile Motion project Programming Software Development by Taimoor Rana …, I'm currently working on a project that simulates a projectile motion. So far I'm preparing the flowchart of the… to designing the path([B]2D Line[/B]) of the projectile Motion. So my question is, what fields,methods my class… in order to draw (in 2D) the path of a projectile motion. Any help is appreciated! I'm including an attachment… Projectile game in C [Cannon-Ball] Programming Software Development by Asif_NSU … from a cannon and the cannon-ball moves like a projectile and hits a target. So u will see three major… a cannon; 2. How to move an object like a projectile 3. A very simple collision detection Before compiling the code… Projectile Motion (Python) Programming Software Development by vegaseat This example calculates timed x, y points of a projectile motion that can be used for plotting or other calculations. Re: Projectile Programming Software Development by Rahul47 I think you will have to specify angle of projection too. Well get the input . . . put into algorithm and then you have the output . . .provided that you know the algorithm . . . Am too lazy to write an algorithm for you .. . so you better write your own and post it. Good Luck. Re: Projectile Programming Software Development by ddanbe > I think you will have to specify angle of projection too I don't think so. It is the other way around! Once you have calculated the equation(3 points is the absolute minimum here) you could calculate that angle if you wanted to. Re: Projectile Programming Software Development by Rahul47 > 3 points is the absolute minimum here) Dont you think with angle of projection it will be easier. If only three points are given then that is not a problem either. How do I make my projectile and weapon classes load images properly? Programming Software Development by Acegikmo … In every frame, the projectileList should render all the projectile objects in the list, like this: [CODE]for(…in a weapon class, like this: [CODE]myWeapon.projectile = new Projectile(Projectile.bullet);[/CODE] But I have no idea how I… define images inside the projectile class. The only image loading code that seems … Maximum height projectile class Programming Software Development by zaphoenix …need to write code to an existing projectile class to calculate the maximum height reached by…form of a class # projectile.py from math import pi,sin,cos class Projectile: def __init__(self,angle,…=0.0 angle,vel,h0,time=getInputs() cball=Projectile(angle,vel,h0) while cball.getY()>=0:… Re: Maximum height projectile class Programming Software Development by zaphoenix … # Canonball in form of a class # projectile.py from math import pi,sin,cos class Projectile: def __init__(self,angle,velocity,height…,h,t def main(): angle,vel,h0,time=getInputs() cball=Projectile(angle,vel,h0) while cball.getY()>=0: cball.update… Re: Representing Projectile motion in openGL Programming Software Development by mrnutty …Kinematic Equations[/URL] You can use them to model projectile motion. 1) Have a initial position, initial velocity… acceleration is what is going to make your projectile motion a projectile motion. Here is another refrence , [URL=&…is the acceleration. Use the equation above to model projectile motion. Here is another refrence , [URL="… Graphing Projectile Motion with wxPython Programming Software Development by vegaseat This well commented Python snippet uses wxPython's plotting widget to graph the projectile motion of two different firing angles on the same plotting canvas. Representing Projectile motion in openGL Programming Software Development by Hanna Jane Hi Everyone, I need to know how can we represent the projectile motion gven a certain angle and velocity, such that I can watch the animated ball moving in is path on screen.... all using openGL in C++ Re: Representing Projectile motion in openGL Programming Software Development by Hanna Jane … an angle and then let the particle move in a projectile accordingly. . . Would it help if i tell you that I… Vb.net - Games/Sim Projectile Motion Programming Software Development by oussama_1 …/4/dd5f632319f6a4422579ce0a7c3db41e.jpg "dd5f632319f6a4422579ce0a7c3db41e") A Trajectory for a projectile have a bunch of formulas, the more equations you use… Re: Projectile Trajectory from a cannon ball Programming Software Development by mrnutty You should [URL="http://en.wikipedia.org/wiki/Equations_of_motion"]newtonion equation of motion[/URL]. In all your code might look something like so : [code] Cannon cannon; cannon.add( Ball() ); if(keyLeftPressed){ cannon.decreaseAngle(); } else if(keyRightPressed){ cannon.increaseAngle(); } Vector initVelocity(5,5); if(… Re: Projectile Trajectory from a cannon ball Programming Software Development by Nathaniel10 I am just learning C++ and will have to write the same exercise when I get to the chapter on graphics. I wrote similar non-graphics programs when I was learning BASIC years (decades rather) ago. I follow and understand what FirstPerson wrote much more than what the OP wrote. I can't tell if the angles the OP has are measured in radians or … Re: Projectile Trajectory from a cannon ball Programming Software Development by umairqureshi_6 i have not posted the whole code here!!! Re: Projectile game in C [Cannon-Ball] Programming Software Development by Dani I tried compiling it but got an error that it couldn't include graphics.h because the file doesn't exist. Or something like that. I'm probably doing it wrong. I tried using MS Visual Studio.NET. Re: Projectile game in C [Cannon-Ball] Programming Software Development by Asif_NSU as I said dont forget to "change the path used in initgraph() function accordingly." Their should be a 'bgi' folder in ur compilers directory. Set the path of the initgraph function towards that bgi. And seems like my Turbo C++ compiler has graphics.h file but ur compiler doesnt. So here is the graphics.h file. Copy this file to ur … Re: Projectile game in C [Cannon-Ball] Programming Software Development by FireNet Woo, As far as I know graphics.h use BGI.You can use it with Turbo C++ like Asif_NSU or use Borland C++. In Borland C++ right-click on the cpp source window and choose Target Expert.You should a beautiful window with options everywhere.Just look to the lower right and you should see Windows 32 and below the Console.Just choose Dos (Standard) … Re: Projectile game in C [Cannon-Ball] Programming Software Development by jamesk400 the error i get is " unexpected end of program" and then it says cannot execute hl.exe I'm using Microsoft Visual C++ 6.0 PE Re: Projectile game in C [Cannon-Ball] Programming Software Development by Asif_NSU THIS CODE SHOULD ONLY BE COMPILED USING BORLAND C++ / TURBOC++ COMPILERS.THIS A GAME MADE FOR MS-DOS , AND WILL ONLY WORK THERE. BECAUSE I HAVE USED SO MANY DOS SPECIFIC FUNCTIONS FOR THE GRAPHICS IN THE GAME THIS IS HIGHLY NON-PORTABLE. FURTHERMORE, U NEED TO SET THE PATH IN THE initgraph() FUNCTION TOWARDS THE "BGI" FOLDER OF UR … Re: Projectile game in C [Cannon-Ball] Programming Software Development by Dani Hey guy i'm just starting out on C++, i like ur game program and would like to run it. should i copy the codes and run in my computer? pls tell me other things i must do to get the result. i am using borland C++ compiler v5.5. thanks. Re: Projectile game in C [Cannon-Ball] Programming Software Development by marceta if this is true, then the MSVC++ users should prob go new project -> win32 console app. then new file -> source file. i think i got the labels right (i didnt actually open the prog). some1 let me know if it worked for em, i hope it does! Re: Projectile game in C [Cannon-Ball] Programming Software Development by Asif_NSU Only problem i have seen while using VC++(win32 console app)is that it cannot open the graphics.h file. because i have used functions like initgraph(), outtextxy(), circle(), rectangle() etc to draw things in console screen. Moreover, the initgraph() function depends on the BGI folder(whatever is in it). If u guys can remedy this problems it will … Re: Projectile game in C [Cannon-Ball] Programming Software Development by Asif_NSU Step 1 . use the compiler i used: Download it(2.87 mb) from the following site and unzip it to the default path given, dont change the path. link to download : http://download.35mb.com/neverwinter/the file named Tc.exe Step2. Change the PATH variable, start>run type "sysedit" the system configuration editor shows up in the … Re: Projectile game in C [Cannon-Ball] Programming Software Development by marceta ahh, that explains it, the console cant draw ;)