Camera is jittery when crouching.

I am working on a crouching system, but because of my lack of scripting knowledge, I am watching tutorials for that. So I found this tutorial and everything works fine, but my camera seems to be jittery when I crouch, and I have no idea how to fix it.

(It is jittery only when I look up or down. When facing forward, it seems to be normal)

This is the code for the crouch:

Recording of jittery camera:

Thank you!

1 Like

It’s more of a UE issue rather than you issue. The capsule (the camera is attached to) changes size and jerks the camera around; and this particular interpolation method probably does not help much. Try this instead:

See if it delivers a smoother result. Use the indicated value to decide how low the camera goes.

Thanks for a quick response!

I tried it, but it made even more jittery, and also it moved the camera a bit up.

Could you show the BP after the implementation - it’s buttery smooth on my end. The values in the select control where the camera goes, adjust accordingly.

Here it is:

This just snaps the crouch, like the default crouch in UE.

Also, my character movement is written from scratch, I’m not using the default FPS template, so could that be the problem?

Hey. I have found a different approach for crouching system which is even better than this one.

Thank you for helping me out, and sorry for taking your time.

This is not using the correct bool.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.