Physics engine with C++