2 questions, one on aim jumping and one on aim jitter

Hey all!

2 quick questions. Working on a First Person shooter map and have 2 issues. One is that there is a jump on the X-axis when aiming around and the other is that the mesh itself is sort of jittering.

Both can be seen in this video:

Thoughts on either?

Thanks!

Hey Brad,

it does jitter. and it does jump.

can you share how you’ve hooked it? with code ideally?

Yeah, sure. So I modeled it after just a base first person project. I’m still using the legacy input system, but I also did try with the enhanced it the same happened.

In Input settings:

On the Player Controller for aim:

Interestingly, I need to set both Use Controller Rotation Yaw and Use Controller Rotation Pitch (which is unlike the base FirstPerson game), or my character won’t aim up/down. Removing Pitch doesn’t remove the jitter or the jump, just the character can’t aim up or down.

Any/all thoughts appreciated!

1 Like

Hey @KungFuBrad!

What about your AnimBlueprint? Or your character Blueprint, does it jitter in the BP? Also does it only jump when you turn over a certan degree (like it’s resetting something)?

Make sure you don’t have any controllers or anything plugged in, base level UE5 takes that input VERY sensitively so other games might not show drift but UE5 would before adding deadzones.

Hope that helps, bring us some Animation code, and maybe show the character BP’s viewport to see what we’re looking at! :slight_smile:

1 Like

Hey, thanks for the thoughts. It does not jitter in the AnimBP, at least not just in Editor. It also doesn’t jitter when pointing up high or down low, nor does it jump on the Y axis, only the X. Yes, it seems to jump right around 180 degrees when turning. It then stays at that angle until the next 180 (if continuing to turn the same direction).

No other inputs plugged in.

Maybe important. The game has some 2.5D levels, and some 3D levels (this being the first). The jitter does not happen in the 2.5D levels. I basically have a function that switches between the 2 views (orthographic vs perspective). It’s only in the 3D levels that this jitter happens. And the jump is also only important in the 3D levels.

AnimBP is the same for both, it’s a full 3D model in the FP mode.

I initially did start a “3D anim bp” but I was unsure if I would be able to re-use the full body animations, I had on the first-person character with just arms.

EDIT - I can’t get the Game screen recorder to record the Unreal UI to show the AnimBP.

EDIT - I thought maybe it was the AimOffsets, but it’s not. I tried putting in the just the regular idle animations that the AOs add to and it still jumps and jitters.