The heirarchy tag has no wiki summary.
2
votes
4answers
258 views
How can I have parent-child transform in a component system?
Before when using inheritance, I could draw all my objects using this recursive function:
void Object::innerDraw(sf::RenderTarget& target, sf::RenderStates states)
{
states.transform *= ...
4
votes
4answers
368 views
Recursive or linear gameobjects update?
I have a tree of gameobjects, so every node contains a list of children.
In update function:
Is it better to do recursive or linear walking through game objects.
update() {
update self;
...