Skip to content

Commit

Permalink
update center click
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Oct 30, 2021
1 parent bbc0339 commit c424f1a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/Utils_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,6 @@ void UtilTest::ClickToScene(const std::string &_renderEngine)
return;
}

// \todo(anyone)
// the centerClick var above is set to a screen pos of (width/2, height/2).
// This is off-by-1. The actual center pos should be at
// (width/2 - 1, height/2 - 1) so the result.X() and result.Y() is a bit off
// from the expected position. However, fixing the centerClick above caused
// the screenToPlane tests to fail so only modifying the pos here, and the
// cause of test failure need to be investigated.
centerClick = ignition::math::Vector2i(halfWidth-1, halfHeight-1);

// API without RayQueryResult and default max distance
result = screenToScene(centerClick, camera, rayQuery, rayResult);

Expand Down

0 comments on commit c424f1a

Please sign in to comment.