Computing: Free Pascal Programming

Physics simulation: Collisions.

Simulation de physique: Collisions (version fran├žaise de cette page)
Download Collisions desktop application (Windows 64bit) Download Collisions source code (Lazarus/Free Pascal)

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) after the choc 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 application (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 of moving objects. Creation of Free Pascal objects during runtime. Usage of trackbars.


Physics simulation: Billiards balls collision