[ECS] Follower entity rotation on XY plane

  • A* version: 5.3.3
  • Unity version: 6000.0.31f1

Hello,

I am using the FollowerEntity component as a base for pure ECS movement (I used the authoring script from this thread) in conjunction with an XY-axis 2D grid graph.

The problem I’m facing is that my entities are being automatically rotated perpendicularly to the graph, which is not the desired behavior - I want them to retain their original rotation, as in my prefab. Is there a way to disable automatic rotation for pure ECS-based agents?

I know in a MonoBehaviour component this can be done by setting RotationSync, but it seems like this isn’t possible through ECS components. Am I correct?

If disabling auto-rotation isn’t possible, would writing my own locomotion system in ECS be the best approach?

Thanks in advance!

Hmm, gonna have to ask @aron_granberg about this one. I do remember some previous talk about pure ECS and rotation but I cannot recall where that conversation took place. Will tag him and let him know about this question :+1:

1 Like

Hi

The rotation sync property is represented on the entity as the SyncRotationWithTransform component being either there or not there.