New to Bolt, trying to create a basic controller, doing something wrong
bkhamly
✭
in Photon Bolt
Hey there, I'm trying to follow the same principles as the Platformer Auth with Client Prediction from the sample pack but I'm getting a weird issue I don't know how to fix.
Issue: Everything works fine from the server's POV, but the client's speed is a lot faster and the player's position doesn't sync for the client, but the server takes the input correctly still and it's accurate on the server's POV.
Here's my scripts and screenshots of my Bolt assets.
Scripts
https://pastebin.com/giJpG9Gj
https://pastebin.com/TWVSsdJ9
Screenshots
https://i.gyazo.com/5ca6ed8e6b9ef4fdc675eb864ca1dd0a.png
https://i.gyazo.com/73af12472a9cfa30a4593e6fb95f7eea.png
Issue: Everything works fine from the server's POV, but the client's speed is a lot faster and the player's position doesn't sync for the client, but the server takes the input correctly still and it's accurate on the server's POV.
Here's my scripts and screenshots of my Bolt assets.
Scripts
https://pastebin.com/giJpG9Gj
https://pastebin.com/TWVSsdJ9
Screenshots
https://i.gyazo.com/5ca6ed8e6b9ef4fdc675eb864ca1dd0a.png
https://i.gyazo.com/73af12472a9cfa30a4593e6fb95f7eea.png
0
Comments
-
You aren’t applying or resetting the values like position and velocity. Check out the “how do commands work” doc https://goo.gl/GjBg5a0
-
Any reason why transform.Translate works, but charactercontroller move doesn't?
https://pastebin.com/K17HybUT0 -
How come transform.Translate works but controller.Move doesn't? Using controller.Move makes the client still move super fast.
https://pastebin.com/K17HybUT
--
Even after looking at AdvancedTutorial, I also tried this but same issue.
Character.cs : https://pastebin.com/EZ14qBMq
CharacterMotor.cs: https://pastebin.com/hVDr3jWb0 -
If you are using 2018.3 it may be causing an issue, take a look at the stickied message in the Bolt Discord.
You can check for the issue by just running the advanced tutorial sample on the client and seeing if it behaves abnormally0