Relationships clarification #67
-
In the docs on Relationships it says:
When adding a 'ILinkComponent' it does seems to change the the archetype but when you add a 'ILinkRelation' it does not. Now from a my point of view this makes sense to me but a little contradiction from what the docs say. As I know from the Relation docs it says this:
So I guess I just want to clarification on what is the real truth and maybe have the docs amended if so. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
hi @KieranFleckney, The "hard" stuff about this topic is the terminology. Relationship - is a directed link between two entities. So If only one In this ECS relationships are represented by either
Not sure if this clarify your post. |
Beta Was this translation helpful? Give feedback.
hi @KieranFleckney,
The "hard" stuff about this topic is the terminology.
I tried to be conform to the term relation used for relational databases.
A relation - my understanding - is a tuple of two things.
Relationship - is a directed link between two entities. So
relationship
is more specific.Both
things
of a relationship (a relation) are entities.If only one
thing
of a relation is an entity. It is not a relationship.In this ECS relationships are represented by either
ILinkRelation
orILinkComponent
.ILinkComponent
An entity can have only one link component per type at a time.ILinkRelation
An entity can have multiple link relations - one per target entity.ILinkComponent
are compon…