fixed issue with incorrect wall rotation
This commit is contained in:
@@ -39,7 +39,7 @@ protected:
|
|||||||
|
|
||||||
void paintGL() {
|
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 float deg = rad * 180 / M_PI;
|
||||||
|
|
||||||
//const Point2 dir = (to - from).normalized();
|
//const Point2 dir = (to - from).normalized();
|
||||||
|
|||||||
Reference in New Issue
Block a user