Gun wont stop shaking in shoulder position, when aiming down sights, no shaking?

Hello, my pistol that is a child of the Main Camera in my custom FPS player won’t stop slightly jittering while I’m not aiming with right mouse button… what could be causing this? Thanks.

Also, there are no colliders/triggers anywhere on the FPS player orthe gun.

  • I will give more information if needed

Often a camera tracking a moving object can jitter if the camera moves in a different Update/FixedUpdate from the object. Like camera moves iin Update, object is a rigid body (whihc moves in fixed.)

I don't think I'm using FixedUpdate anywhere but it's fixed, I just combined a few scripts that the gun uses into one big script and it's working fine (for now.)

1 Answer

1

Never mind, changed some scripts and it fixed somehow. No idea what goes wrong but this happens whenever I close and reopen my project. Hopefully it is just a bug in Unity.