diff --git a/build/bin/mainV8 b/build/bin/mainV8 new file mode 100755 index 0000000..928383e Binary files /dev/null and b/build/bin/mainV8 differ diff --git a/src/collections/methods/lower_body.cpp b/src/collections/methods/lower_body.cpp index d24cf53..deb46f9 100644 --- a/src/collections/methods/lower_body.cpp +++ b/src/collections/methods/lower_body.cpp @@ -99,7 +99,7 @@ void Lower_Body::update(sf::Clock cl){ printf("Vel: %f\n", tmpVelD); - float tmpPosD = velD *dt *100 ; + float tmpPosD = velD * 100 * dt + tmpVelD *dt *100 ; float tmpPosS = velS * 100 * dt + tmpVelD * 100 *dt; @@ -111,7 +111,7 @@ void Lower_Body::update(sf::Clock cl){ posS += tmpPosS; // PosD + PosS + Z = 0 - float alpha = asin(posD/60.0); + float alpha = atan(tmpPosD/60.0); t->body.setRot({alpha,0,0}); auto tPos = t->body.getPos();