simulation of cloth using sfml and some physics functions. C++