Handmade Hero»Forums»Code
14 posts
Transform hierarchies
I'm not sure if this topic has been discussed in an episode already but I was wondering if the game is going to handle transform hierarchies, e.g., parenting an entity to another entity and then moving the parent.

I'm specifically curious about how the updates are going to be handled in respect to multithreading. Are multiple threads going to be setting / getting the positions of entities and if so what kind of synchronisation strategies can be used?
507 posts
Transform hierarchies
I think it's more likely that every entity will have its own position and if it is tied to another entity then in its update routine it will have a "entity->pos = parent->pos + entity->parentOffset;"