diff --git a/build/bin/mainV10.exe b/build/bin/mainV10.exe index 0083684..1a709cf 100644 Binary files a/build/bin/mainV10.exe and b/build/bin/mainV10.exe differ diff --git a/src/pieces/methods/caviglia_class.cpp b/src/pieces/methods/caviglia_class.cpp index 78781b6..1b6d27a 100644 --- a/src/pieces/methods/caviglia_class.cpp +++ b/src/pieces/methods/caviglia_class.cpp @@ -49,7 +49,7 @@ sf::Shape* Caviglia::draw(ReferencePlane plane){ sf::Shape* shape = shapeYZ; shape->setRotation(sf::Angle(sf::radians(tmpRot[0]))); shape->setPosition({tmpPos[1]+globalPos[1],tmpPos[2]+globalPos[2]}); - shape->setScale({1,cos(float(tmpRot[1]))}); + shape->setScale({direction == Direction::R ? float(1.0) : float(-1.0),cos(float(tmpRot[1]))}); shape->setFillColor(color*sf::Color(255,255,255,transparency*255)); return shape;} break; diff --git a/src/pieces/methods/coscia_class.cpp b/src/pieces/methods/coscia_class.cpp index 834bcc2..10e5a94 100644 --- a/src/pieces/methods/coscia_class.cpp +++ b/src/pieces/methods/coscia_class.cpp @@ -48,7 +48,7 @@ sf::Shape* Coscia::draw(ReferencePlane plane){ shape->setRotation(sf::Angle(sf::radians(tmpRot[0]))); shape->setPosition({tmpPos[1]+globalPos[1],tmpPos[2]+globalPos[2]}); shape->setFillColor(color*sf::Color(255,255,255,transparency*255)); - shape->setScale({1,cos(float(tmpRot[1]))}); + shape->setScale({direction == Direction::R ? float(1.0) : float(-1.0),cos(float(tmpRot[1]))}); return shape;} break; diff --git a/src/pieces/methods/sensore_class.cpp b/src/pieces/methods/sensore_class.cpp index e1c1ff7..073c9a9 100644 --- a/src/pieces/methods/sensore_class.cpp +++ b/src/pieces/methods/sensore_class.cpp @@ -76,6 +76,7 @@ sf::Shape* Sensore::draw(ReferencePlane plane){ shape->setRotation(sf::Angle(sf::radians(tmpRot[1]))); shape->setPosition({tmpPos[0]+globalPos[0],tmpPos[2]+globalPos[2]}); shape->setFillColor(color*sf::Color(255,255,255,transparency*255)); + shape->setScale({plane == ReferencePlane::XZ ? float(1.0) : float(-1.0),1}); return shape;} break; @@ -85,6 +86,7 @@ sf::Shape* Sensore::draw(ReferencePlane plane){ shape->setRotation(sf::Angle(sf::radians(tmpRot[0]))); shape->setPosition({tmpPos[1]+globalPos[1],tmpPos[2]+globalPos[2]}); shape->setFillColor(color*sf::Color(255,255,255,transparency*255)); + shape->setScale({direction == Direction::R ? float(1.0) : float(-1.0),1}); return shape;} break;