I think I finally found the problem. It was something I didn’t expect.
For some reason the whole problem was caused by replicating the capsule component.
I was replicating a variable in the capsule component so I needed to replicate the component as well.
Then I stopped using that variable and forgot not to replicate the component.
This fixed the movement prediction issue.
SetIsReplicatedByDefault(false);
Thank you so much to the person who made the last comment on this post:
Now it is the capsule itself that makes strange movements.
Animations look smooth and I don’t see any stuttering from the client side… but the capsule will be hidden in the game so… I’m not sure if I should be worried about the capsule stuttering.
I feel better now (after three days looking for a solution to this problem).
I’ve been close to implementing my own movement prediction.
.
.
.
Thank you very much for your help @Rev0verDrive
.
.
.
.
.
.
In case anyone is interested in implementing their own movement prediction.
I’ll leave links here…
The best example I found was this project on github:
I managed to compile by making some changes in Target.cs… but all Blueprints don’t work anymore in UE5.5… so don’t waste time compiling… it won’t work… but the code is readable.
Then this is the YouTube playlist. I only saw the first and the second video, but it looks really good.
And this is in perfect Chinese… but Google can translates it.
Greetings to all