Entity Component System: Hierarchy
2017-03-10
In this post I want to investigate how to manage hierarchal relationships in an ECS.
There can be many types of relationships between entities but the most common is the parent-child transform relationship. These relationships can be represented as a forest. In this way an entity may have exactly zero or one parents and zero or more children.
Recall from our ECS Intro that contiguous linearly accessed memory is our primary data oriented design goal.
So we can talk about a single component We can talk about