Context: Unreal C/C++ developer working with Unreal networking character movement. Root…
- User
Context: Unreal C/C++ developer working with Unreal networking character movement.
Root motion causes desyncs at 200 ms latency on both client and server, is there a way to sync and smooth this
- Assistant
- User
Could you expand on how to do option 3 with the gameplay ability system? (What would be the best way to improve that if it already exists or add in.
- Assistant
To implement client-side prediction and server-side reconciliation for root motion in a networked character movement system with a gameplay ability system, you can follow these steps:
-
Client-Side Prediction:
- When the player activates a gameplay ability that affects character movement, predict the character's movement on the client-side based on the last known server state and the player's input.
-
- User
please complete step 4's code (wasn not finished)
- Assistant
- User
was there a step after 4 ?
- Assistant
-
After completing the steps for handling ability cooldowns and duration, you can proceed to the next steps in the implementation process. These steps may include:
-
Implementing Ability Effects:
- Define the effects of gameplay abilities on character movement, such as speed boosts, jumps, or slides.
- Update the character's movement state on the server when an ability is activated, taking into account the ability's effects.
- Send the updated root motion data to the client for smooth interpolation and synchronization.
-
Testing and Debugging:
- Test the networked character movement system with various gameplay abilities and network conditions.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.