Hi
In a game I'm making, for one object, it has to rotate when triggered, but it's a bit complicated. Basically I don't know how to rotate the shape from it's centre with setOrigin, because I have already used it. My code probably explains it better... Perhaps there is an easy solution to this?
shape1.setOrigin(-100, -375);
...
window.clear(sf::Color::Cyan);
si.setPosition(shape2.getPosition());
...
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Down))
{
shape1.rotate(0.1); //need to rotate it from it's centre (x/2, y/2)
}