Trajectory examples.
- By varying the initial velocity and initial angle these programs show the path
of an object towards a target.
Single buffered programs display the path with no motion,
Double buffered programs display the path with motion - animation
You can choose to use one method or the other - you don't have do both kinds of programs.
- trajectory1.c - enter angle, velocity (try 60 and 100 m/s), single buffering
- trajectory1B.c - enter angle, velocity (try 60 and 100 m/s), double buffering, animated
- trajectory2.c - enter angle, velocity (try 60 and 100 m/s), single buffering, bounces at x=800
- trajectory2B.c - enter angle, velocity (try 60 and 100 m/s), double buffering, animated, bounces at x-800
- trajectory3.c - enter angle, velocity (try 60 and 100 m/s), single buffering, simulates bouncing on the x axis
"bouncefactor" determines the height of the bounce
- trajectory3B.c - enter angle, velocity (try 60 and 100 m/s), double buffering, animated, simulates bouncing on the x axis
"bouncefactor" determines the height of the bounce
- trajectory.xls - spreadsheet for data testing of various angle/velocity amounts