Lyra aim offset yaw movement not working with own animations

Hi all, any help with the below issue would be much appreciated.

I’ve been adapting the lyra project and have attempted replacing the aim offset with my own animations (I’ve literally copied, pasted, and dropped my own anims in). Everything works fine with one exception. The aim offset won’t move left or right, only up and down. The character will still turn when it goes past a certain point, but the aim offset itself isn’t working properly.

Having compared the animations, which as near as I can tell are identical, the only difference I can see is that the Lyra animations have animation attributes on the Pelvis bone, which I can’t see how to replicate or copy across, although even after reading the documentation I’m not sure what they do or if this is the problem, as I can’t see any data attached to them and can’t see how they would affect the aim offset.

Any help would be much appreciated. I’m using mesh space additives, etc and the yaw and pitch inputs work just fine. If I drop in just one of the lyra animations into the aim offset, it’ll work in that direction, but not any other part of the aim offset, so I can’t see the problem lying elsewhere.

Although if it is the animation attribute (or something else), I assume Lyra is running some sort of specific logic for this as this isn’t a normal way to set up an aim offset, so perhaps there is a way to turn this off?

Thanks

1 Like

In fact, this is a UE angle clamping problem, which only makes the Pitch greater than 0, so AimOffset cannot look down. In your basic animation blueprint’s thread safe function: UpdateAimingData, add a NormalizeAxis node between property access and Set Aim Pitch, which will be re clamped to -180 ° to 180 °. I am not sure about Lyra’s multi-threaded animation network replication, but at least this can solve the problem. In my previous learning project, this was a classic problem, and I added this clamping in C++.
But I’m basically learning to make a simplified version of Lyra, maybe that’s not the answer you’re looking for.