Jitter on client side's player.
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
Jitter on client side's player.
Capela
2018-12-28 05:27:33
Hey , I have been having a problem getting my first bolt project up and running. I ran through the tutorials and am trying to run it on my own project. I'm just trying to get the movement working for the clients, but the client's character is shaking only on the client's screen. I think it's related to the prediction on the client side not working correctly.
I'm using a command to send the input to the server, Is that the correct way to do it. I think it might be a common newbie problem.
Here is a video of the problem. let me know what code snippets you might need. https://youtu.be/9VOVLV5AOgU
Left side is the server, Right side is the client.
The top of both screens is what the client/server is controlling, and the bottom is the other's.
I am not using a rigidbody to control the characters because I saw that that causes problems. (I'm using the default character controller)
Thanks :)
Comments
I tried using the examples and seeing what I'm missing. The client now rotates without jittering but doesnt move (It seems like the isgrounded flag is always set to false). I think I could figure it out but I've been at it for a couple weeks and just need some help. So here is my code:
ThirdPersonUserControl:
https://pastebin.com/WzTAaFn0
ThirdPersonCharacter:
https://pastebin.com/NX9nsn16
Edit: the client's character still moves correctly on the server.
Skimming it I don't see a clear issue. Take a look at this example here https://github.com/BoltEngine/Bolt-Sample/tree/master/ThirdPersonCharacter
I would start with a very simple auth controller, make sure it works on the client with latency, and add to it from there.
Yeah, I think I'll do that, thanks :)
I had the same problem with disabled dejitter buffer. Try check it in Bolt settings. I noticed all Bolt interpolations depend on this.
Hey! I solved the problem, A big thanks to you both. I'm not sure exactly what I did, I just cleaned my code and took it step by step haha. Thanks a lot for the help!
Hello @Capela . Did you figure out what the issue was?
I have exactly the same issue and I can't figure it out.