Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement saveState/restoreState for deformable objects #4480

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

danielpmorton
Copy link

@danielpmorton danielpmorton commented Jun 15, 2023

This will serialize the deformable object upon a call to saveState, and then deserialize the deformable object's node properties upon a call to restoreState. Previously, every object except for deformables would be saved/reset, when using RESET_USE_DEFORMABLE_WORLD

The code style here is based on what I've seen in the repo already. I can make more changes as needed too

I also wanted to check to see if I should restore more of the node attributes from the serialized data - for instance, m_pad, m_material, m_inverseMass, m_area, and m_attach. The current attributes I'm restoring seem to work well, so it remains unknown if also restoring these other properties will lead to any improvements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant