Newton's cradle in openGL , 2D pendulums collide The collision speed increases when the space button is pressed, execution stops when the Escape button is pressed.
Executing the following functions defined in the following functional flow block diagram in main file