
The cannonball is initially launched at a 45 degree angle at an initial velocity of 20 m/s. Based on this initial condition, the following values for the x and y coordinates and the x and y velocities were generated:
| time | x-position | y-position | x-velocity | y-velocity |
| 0.00 | 0.00 | 0.00 | 14.1 | 14.1 |
| 0.48 | 6.77 | 5.67 | 14.1 | 9.40 |
| 0.96 | 13.54 | 9.31 | 14.1 | 4.69 |
| 1.44 | 20.3 | 10.1 | 14.1 | 0.00 |
| 1.92 | 27.1 | 9.31 | 14.1 | -4.69 |
| 2.40 | 33.8 | 5.67 | 14.1 | -9.40 |
| 2.88 | 40.6 | 0.00 | 14.1 | -14.1 |
Start the visualization by modeling a cannon. Primitives, such as cylinders, spheres, and tori can be used to create a fairly representative cannon. The 'glue' tool can be used to create a parent child hierarchy of parts and allow the cannon to be easily moved as one object. Your cannon might look something like this:
Next model a cannonball to fit within the cannon. For ease of calculating the movement of the cannonball, place the center of the ball at 0,0,0. Though it is somewhat counter intuitive, the cannon can now be moved over the ball. The cannon barrel can be aimed by rotating it to 45 degrees above the horizon. Your positioning can be double-checked after the ball is moved to its second coordinate point:
The animation is created by capturing a 'keyframe' of the ball as it is moved to the representative locations in space. Using the animation controls in your modeling package, a keyframe is captured for the ball located at each of the X.Y coordinates you previously calculated. You may find it easier to use multiple orthogonal viewports to help you visualize where the ball is moving to.
Since the x and y coordinates were calculated at equal time intervals, any equal spacing of frames should work for a representative animation. Ten frames between each keyframe creates an animation of reasonable length and size.With the knowledge that the animation can be generated at either 24 or 30 frames per second, you can also calculate time intervals and use keyframe spacing to generate a truly realistic animation of the initial conditions.
With the animation created, it can be rendered can saved as an animation file from a number of different viewpoints. Different viewpoints can be used to isolate various dimensions by creating a projection which collapses one of the three dimensions.
These animations can be played with the MediaPlayer accessory included with Windows or 'avi aware programs like PowerPoint.
