Skip to content
Snippets Groups Projects
Commit ab67bdfa authored by ucart's avatar ucart
Browse files

fixed quad_image coordinate plane

parent bd6c3734
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ void QuadItem::updateQuad(float longitudinal, float lateral, float height, float
{
QPointF center = boundingRect().center();
this->setTransform(QTransform().translate(center.x(), center.y()).rotate(qRadiansToDegrees(yaw)).translate(-center.x(), -center.y()));
this->setPos(longitudinal*100, lateral*100);
this->setPos(lateral*100, -longitudinal*100); // These are flipped due to the camera system's +x and +y.
// QTransform trans = this->transform();
// trans.translate(center.x(), center.y());
// trans.translate(-center.x(), -center.y());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment