I use “CopyTransformFromGameObject” and “Convert and Inject” components. I have a system in which enemies chase this entity and it works fine. But when I try to track the collision with other objects with this entity, it turns out that it is in place, and not moving behind the object.
In other cases, if one object needs to follow another, I set Translation and Rotation from localToWorld.
Questions:
- Why are 2 entities created? Why does one move and the other stand still?
- How to make one entity follow another (if they are created from one GameObject)?
- Do I need to synchronize 2 entities in one game object to create another object separately with a separate tag, convert it to entity with “Convert and Destroy” and make it chase the first object?
- Is there a shorter way to synchronize the entity and game object?