SFML community forums
Help => Graphics => Topic started by: buynnnmmm1 on December 01, 2013, 01:39:44 am
-
I try to use .getPoint() of sf::ConvexShape, but I got local coodinate of the point.
I roate sf::ConvexShape, but I get same value.
How can I get world coodinates of sf::ConvexShapes points?
-
I read api document of sf::ConvexShape, and I notice the getTransform() method.
I got world coodinats with sf::ConvexShape::getTransform.
sf::ConvexShape a;
sf::Transform t=a.getTransform();
sf::Vector2f p=t.transformPoint(a.getPoint(0));