Write me simple physical engine code in C++ please.