diff --git a/build/bin/mainV10.exe b/build/bin/mainV10.exe new file mode 100644 index 0000000..0328301 Binary files /dev/null and b/build/bin/mainV10.exe differ diff --git a/src/collections/methods/lower_body.cpp b/src/collections/methods/lower_body.cpp index 05d976a..5703af0 100644 --- a/src/collections/methods/lower_body.cpp +++ b/src/collections/methods/lower_body.cpp @@ -81,7 +81,7 @@ void Lower_Body::update(sf::Clock cl, float multiplier){ float dxAcc = dx->getZ_Acc() ; int64_t Dtime = cl.getElapsedTime().asMicroseconds(); - if (prevT == 0) prevT >= Dtime; + if (prevT == 0) prevT = Dtime; float dt = (float(Dtime) / 1000000.0) - (float(prevT) / 1000000.0); prevT = Dtime; diff --git a/src/pieces/headers/piece_interface.hpp b/src/pieces/headers/piece_interface.hpp index 593c107..e6cd1c4 100644 --- a/src/pieces/headers/piece_interface.hpp +++ b/src/pieces/headers/piece_interface.hpp @@ -2,7 +2,7 @@ #include #include "../../rigidbody/headers/rb.hpp" -#define TEXTUREPATH std::string("../../../textures/") +#define TEXTUREPATH std::string("./../../textures/") #ifndef PIECE_INTERFACE_H #define PIECE_INTERFACE_H diff --git a/src/pieces/methods/sensore_class.cpp b/src/pieces/methods/sensore_class.cpp index 505bc0e..e1c1ff7 100644 --- a/src/pieces/methods/sensore_class.cpp +++ b/src/pieces/methods/sensore_class.cpp @@ -115,7 +115,7 @@ void Sensore::calcRotWithG(unsigned int index){ // calcolo rotazione con valori } float Sensore::getZ_Acc(){ - int id = *dataPos; + //int id = *dataPos; float tmpAcc = 0; rb::Vector3 acc = body.getAcc(); diff --git a/src/rigidbody/methods/rb_class.cpp b/src/rigidbody/methods/rb_class.cpp index 843cca4..c0ed1bc 100755 --- a/src/rigidbody/methods/rb_class.cpp +++ b/src/rigidbody/methods/rb_class.cpp @@ -87,7 +87,7 @@ void rigidbody::calcPos(const float Dtime){ void rigidbody::step(const sf::Clock time, float multiplier){ int64_t Dtime = time.getElapsedTime().asMicroseconds(); - if (prevT == 0) prevT >= Dtime; + if (prevT == 0) prevT = Dtime; float dt = ((float(Dtime) / 1000000.0) - (float(prevT) / 1000000.0)) * multiplier;