void ViewSFML::drawProjectile(sf::RenderTarget &target, const Projectile &projectile) const { Rectangle body = projectile.getBody(); sf::RectangleShape rect({(float)body.getSize().x, (float)body.getSize().y}); rect.setOrigin(0.5 * body.getSize().x, 0.5 * body.getSize().y); rect.setPosition({(float)body.getPosition().x, (float)body.getPosition().y}); rect.setRotation(degrees(body.getRotation())); target.draw(rect); }