Apologies in advance because I'm fairly sure this question has a simple answer, I'm just too noob to find it.
I'm using primitives to make a Breakout clone and I'd like to use sf::Rect<int>'s intersect() for all my collision detection, so each object in the game will have an sf::Rect<int> that acts as it's bounding box. Each object also has an sf::RectangleShape to represent the actual object on screen.
Is there an easy way to keep these two linked? For example, if I move the object is there an easier way than this?
objectShape.setPosition(x, y);
objectBounding.top = x;
objectBounding.left = y;