Skip to content
Discussion options

You must be logged in to vote

State saving only saves the part of the state that the simulation itself changes (position, velocity etc.). Everything you change through an API call (e.g. RemoveBody, SetFriction etc.) is not saved with the state and needs to be restored manually. So in this case you need to re-add the body yourself if you removed it. It needs to be added before calling restore state. State saving is meant to save the absolute minimum needed to sync the state over a network.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@LeXXik
Comment options

@jrouwe
Comment options

@gigablox
Comment options

@jrouwe
Comment options

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