Skip to content

Help with GetGroundState During Reconciliation (Client-Server) #1137

Answered by jrouwe
cuppajoeman asked this question in Q&A
Discussion options

You must be logged in to vote

I think RefreshContacts should mostly fix this issue as it runs collision detection again and updates the ground state, however it is not 100% the same thing as calling ExtendedUpdate as this can also detect contacts that you touch during the update (but don't end up touching at the end of the step).

Doing SaveState at every time step and rolling back to that state using RestoreState is the official way of doing things, but it does require that the state of all physics bodies is also rolled back (e.g. if a body that you were touching has been removed since the last SaveState call then RestoreState will not be safe).

The simplest thing to do would be to not replicate input, but the results…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cuppajoeman
Comment options

@jrouwe
Comment options

Answer selected by cuppajoeman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants