Aim Offset layered with Root Motion

I have an NPC where the aiming yaw value is taken as follows:

[Image Removed]

this drives an AimOffset as follows

[Image Removed]

While in PIE, the spawned enemy correctly aims at the player, but its locomotion is driven by root motion.

If the NPC is standing in place, still aiming towards the player, as soon as the turn-in-place root motion plays, it looks as if the aiming pose is double transforming and aiming away from player; the aiming stabilizes as soon as the turn-in-place root motion ends.

Aiming animations only contain animation changes from the spine and up

Is there something wrong with the setup, where it is causing this overshoot/double-transform?

[Attachment Removed]

Steps to Reproduce
N/A

[Attachment Removed]

Hey there,

Yes, the issue with your setup is more in how your are getting the aim yaw. In the case of the NPC character you probably only use the control rotation.

We do have a convenience function to handle this from the Pawn called Get Base Aim Rotation. That should handle your case nicely.

Dustin

[Attachment Removed]