home *** CD-ROM | disk | FTP | other *** search
-
-
- Projectile Motion (ProjMot V1.01)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- © Copyright 1991 Christian E. Hopps
-
- ProjMot is a graphing program that plots the path of a projectile in a
- plane in real time. The window is scalable, also velocity, angle and time
- acceleration are user definable. ProjMot is WB1.3 and 2.0 compatible, and
- the window is sizeable so that you may take advantage of virtual screens in
- WB2.0. Math is done using the built in math library and Mathtrans.library
- both single precision, req.library is also required (V2.5 is supplied with
- archive.)
-
- This program was basically my attempt to apply some of the physics I
- began to learn this year at college. The program is written in C and was
- compiled with Lattice V5.1. To save time I used req.library for most
- intuition interfacing. ProjMot is a decent example of writing with math
- functions in C.
-
- Using the program is easy. You can define the velocity and angle of
- the projectile as it leaves the ground. The initial scale of the display is
- 1 pixel = 1 meter. This can be adjusted with the scale gadget, so if you
- want 1 pixel = 1km type 1000 in the scale requester. After running the
- program once with the pixel scale at 1km I decided to add time acceleration
- (Acc. Time) Basically if you type 2 in the Time Acc. requester, things will
- happen twice as fast 10 = 10 times... ProjMot does not account for air
- resistance so if you launch something at 10km / second, it's gonna move!
- The Display is not cleared after each firing so that you can compare
- different settings. Re-sizing the window, clicking the Clear gadget, or
- changing the scale, will clear the display. As of this release ProjMot
- simply brings up a text requester to give you the vitals, ie. distance
- traveled in the x direction, and the time it took.
-
- All the code and including the graphics are Copyrighted but use for
- educational purposes is granted, also if anyone wants to include parts of
- the code for non-profit projects (Public Domain) feel free, just give
- credit where credit is due. This program is uh..FreeWare.. I think that is
- the name for it, anyway you can't sell it but it can be distributed in Disk
- collections (such as Fred Fish.)
-
- A executable is included but if you wish to recompile the source, some
- modifications need to be made. First I use two directories, the current one
- and link:, they can be one in the same as long as the current directory has
- the assign "link:" attached to it. "graph.c", "window.h" , and "ggads.h"
- must be in the same directory as well as "makefile", and "withfile" (the
- current directory), all the rest reside in link: to compile all you type is
- "lmk -a" (for lattice) this will do a full compile using "makefile".
- "withfile" is just a blink WITH file, the argument line grew to large for
- CLI to handle.
-
- I am asking for no money or anything like that, but if you have
- suggestions or REALLY REALLY want to send a poor college boy some study
- money, you can reach me at:
-
- Chris Hopps
- 1609 Fairview
- Royal Oak, MI. 48073
-
- UseNet: wsu-cs!ro-chp!chopps
-
- History
- ~~~~~~~
- Version 1.01
- o No none bugs.
- Clip routines need to be enhanced so that the path is drawn to
- edge of clip region.
-
- Version 1.00
- o Would not work with 68000 or 68010
- I had compiled with 68020 option set in SAS/C options. Simple fix
- recompiled with any processor option set!
-
- Future (In order. Hopefully all will be included in next release.)
- ~~~~~~
- o Labels that refresh.
- o X/Y axis graphic into window.
- o Air resistance.
- o Variable Mass (only matters for next two.)
- o Variable elasticity of projectile. (watch it bounce!)
- o Solid boarders to bounce projectile off.
-