Here is a real-time 2D rigid body simulator that renders some balls bouncing around a scene using OpenGL:
The whole program is under 400 lines of OCaml and performance is excellent: the program can simulate 100 balls in real-time with sub-centisecond accuracy on my machine.
What languages did you learn, in what order? - I once compiled the following list of programming languages and which year I started learning them: - 1981: Sinclair BASIC (on a ZX81) - 1983: BBC BA...
2 weeks ago