Tiny physics engine in C-like C++