void Utilities::centerOrigin( sf::CircleShape& circle ) { sf::FloatRect bounds = circle.getLocalBounds(); circle.setOrigin( std::floor( bounds.left + bounds.width / 2.0f ), std::floor( bounds.top + bounds.height / 2.0f ) ); }