updateRotation block transform.LookAt

I’m trying to make my character look at a specific object using transform.LookAt. e.g. if I want to interact with it.

But transform.LookAt only works if I put the FollowerEntity in front of it in the code

_followerEntity.updateRotation = false;

Am I doing something wrong or is this intentional?

Hi

If updateRotation is true (the default) then the AI wants to control the rotation of the GameObject itself. So it will try to fight you if you change the transform’s rotation.