I am not sure, if this is not a silly question, but i can't understand.
in SFML book, we reach this code:
sf::FloatRect Projectile::getBoundingRect()const
{
return getWorldTransform().transformRect(mSprite.getLocalBounds);
}
my question is why we should not using mSprite.getGlobalBounds() . I am not still able to understand SFML well, but as document says, it will use transforms too. is there any difference?
and as another question, for example, when we rotate a shape, by PI/2 radians, it means the bounding rectangle is also rotated by PI/2 radians?