1
General / Cursor collision on rectangle after View transform
« on: March 18, 2017, 12:39:01 pm »
Hello, I got problem with cursor collission with rectangle(for example) after transform sf::View.
Here is code: http://take.ms/oHate
How it works: http://take.ms/A5efL (when mouse collide with rectangle, rectangle's fillColor changes)
And what happens after setRotation(20) to sf::View: http://take.ms/5Wphh
As you see it doesn't work correct.
How to solve this problem?
Here is code: http://take.ms/oHate
How it works: http://take.ms/A5efL (when mouse collide with rectangle, rectangle's fillColor changes)
And what happens after setRotation(20) to sf::View: http://take.ms/5Wphh
As you see it doesn't work correct.
How to solve this problem?