Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
4answers
889 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
472 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; ...