Computing: Free Pascal Programming

Programming Home   Home   Contact

Projectile motion simulation (Projectile).


Description: Physics (kinematics) related application, simulating a canon, placed on a hill, firing a projectile at a given angle. Starting from user data entered (canon position above ground, initial projectile speed and firing angle), the program calculates all relevant values of the projectile trajectory and in a simple graphical animation shows the canonball on its way from the canon to the impact place.

Free Pascal features: Creating objects during program execution. Using a timer and shape's "Left" and "Top" properties to create simple graphical animations. Using small shapes to "draw" curves.

Possible extensions: Starting from the distance of a target, calculate the firing angle.

Screenshot:

Physics: Projectile motion simulation