1
Graphics / Re: How to get world coodinates of sf::ConvexShape points?
« on: December 01, 2013, 02:10:49 am »
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));
I got world coodinats with sf::ConvexShape::getTransform.
sf::ConvexShape a;
sf::Transform t=a.getTransform();
sf::Vector2f p=t.transformPoint(a.getPoint(0));