I’m working on a 2D game. I have an “enemy” parent object with a line of sight range attached as a child.
I want to make the child object only rotate while the parent is following the path. I’ve tried attaching a separate AILerp component to the object and setting it’s transform to the parent in an update function, but all of those have either resulted in the child either not moving with the parent or at all, and annoyingly jittery movement of the child object, respectively.
Is there a way to make the transform.up of the child object to face along the path at all times?