Jitter fixed
The jitter of networked characters should be fixed.
Whenever networked movement is involved, de-synchronization is inevitable. For this reason position corrections of various sizes are common.
Usually the default character movement component would smooth out the corrections so that the error is invisible to the players, as long as the correction is small and frequent this usually works.
What hasn't worked is the position corrections in this game, visible character jitter used to be a frequent occurance. The characters were literally shaking.
After throwing various objects at the wall we managed to find what stuck.
Whenever a correction occurs the character is immediately snapped to where it should be, but the mesh receives the negative transform so as to remain in place. However the correction error is measured in the global coordinate system whereas the mesh offset is measured in a local coordinate system. Long story short, this only works when the scale is 1. If the scale is below 1 the mesh offset will undercorrect, a scale above 1 means an overcorrection.
Smoothing code should now take character scale in account and as a result position corrections should appear smooth during good network conditions. Of course this will likely break down during adverse networking conditions but overall the result should be acceptable.
Get Kitsune no Kenshi 2
Kitsune no Kenshi 2
Status | Released |
Authors | Arekku, Whitewatt |
Genre | Action |
Tags | 3D, Anime, Character Customization, Fantasy, Female Protagonist, Furry, Hack and Slash, kitsune, Multiplayer |
Languages | English |
Accessibility | Configurable controls |
More posts
- Minimum requirements - Test protocolAug 30, 2021
- New objectives markersMar 05, 2021
- Fix underwear savesMar 01, 2021
- Lobby fixesFeb 06, 2021
- Pickup reworkJan 20, 2021
- Bugfixes + more dodge directionsJan 08, 2021
- Some more finishing touchesJan 04, 2021
- Added rebindable keysJan 02, 2021
- Some more fixes and changesDec 19, 2020
- Can the player make the jump?Dec 19, 2020
Leave a comment
Log in with itch.io to leave a comment.