So, I have an entity that has another entity as target;
target.targetEntity = referenceEntity;
That means in another job I have reference to that entity. I want to turn towards that entity, but I can’t really figure out how to get the translation data component of my target entity. I mean, I’d expect it to be something like this;
// target has an Entity
// That entity has a Translatopn
Entity targetEntity;
targetEntity = target.targetEntity;
Entities.Equals((targetEntity, ref Translation targetTranslation) =>
{
Debug.Log("Found it");
});
But that is not right at all. I am probably not finding the right google terms for it either. How would I get the translation associated with an entity, by referencing that entity?