Hey i'm trying to make a class called BodyRep
Which is supposed to use SFML too sync a graphical representation and Box2D Bodies orientation/location.
To do this i plan to ovveride some Box2D function so that it does it's original steps, plus one extra: to update the graphical representaions orientation based on the new Body orientation.
However I found this is not as easy as it seems as my class must be a descendent of another class that does the actual updates to the bodies in the World, so it CAN ovveride the function. On top of that, I know there is a ton of itterating in Box2D's solver, and i don't want my graphical reps. being updated if they don't have to yet....
So... What CLASS should I Descend from and what FUNCTION should I ovveride?
- if you have any other ideas on how i could accomplish my goal of syncronization between SFML and Box2D bodies, feel free to suggest them! =)