Computing: Free Pascal Programming

Programming Home   Home   Contact

Physics simulation: Collisions (Collisions).


Description: Simple graphical simulation of elastic and inelastic collisions. 3 types of collisions available:

The user enters initial mass and speed (plus ball radius and impact parameter in the case of the 2D collision), the program calculates the speed (and deviation angles in the case of the 2D collapse) and graphically reproduces the movement of the balls before and after the choc. As the simulation respects the relationship between displacement, speed and time, the application may also be seen as the simulation of linear uniform motion.

Help with the physics of collisions (including all formulas used) as well as with the usage of the program (in French as the application itself) is included.

Free Pascal features: Usage of timers and the "Left", "Top" and "Visible" properties of shapes to implement simple simulations concerning moving objects. Creation of Free Pascal objects during run-time. Usage of trackbars.


Billiards balls collision simulation