From 72b07824d9ac0386269e04a9f2a947941b5f9cde Mon Sep 17 00:00:00 2001 From: kazu Date: Wed, 13 Sep 2017 09:31:03 +0200 Subject: [PATCH] fixed issue with incorrect wall rotation --- mapview/3D/MV3DElementFloorObstacleWall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapview/3D/MV3DElementFloorObstacleWall.h b/mapview/3D/MV3DElementFloorObstacleWall.h index 28d6edf..7080f62 100644 --- a/mapview/3D/MV3DElementFloorObstacleWall.h +++ b/mapview/3D/MV3DElementFloorObstacleWall.h @@ -39,7 +39,7 @@ protected: void paintGL() { - const float rad = std::atan2(to.y - from.y, to.x - from.x); + const float rad = -std::atan2(to.y - from.y, to.x - from.x); const float deg = rad * 180 / M_PI; //const Point2 dir = (to - from).normalized();