20-10-2020, 11:10 AM
Hi Jose,
I hope you are well. Thank you so much for the help you provided on my first issues.
Today, I am contacting you because I am having issues with exporting then importing ropes.
For the export, I am saving the positions and invMasses for every particles.
Then, for the import, I am resetting those as follows :
However, I feel this is not enough, as upon reloading, the rope lost all the smoothness it had before loading.
I feel like I missed something. Perhaps saving the orientation and or velocity as well, but I checked it, and before
saving, all the values are 0f, 0f, 0f so I feel like it's not what I am missing...
I made a video to better explain my issue :
What would you advise ?
Thanks in advance for any advice you can provide.
I hope you are well. Thank you so much for the help you provided on my first issues.
Today, I am contacting you because I am having issues with exporting then importing ropes.
For the export, I am saving the positions and invMasses for every particles.
Then, for the import, I am resetting those as follows :
Code:
for (int i = 0; i < rope.elements.Count && i < data.particles.Count; i++) {
solver.positions[rope.elements[i].particle1] = data.particles[i];
solver.invMasses[rope.elements[i].particle1] = data.invMasses[i];
}
However, I feel this is not enough, as upon reloading, the rope lost all the smoothness it had before loading.
I feel like I missed something. Perhaps saving the orientation and or velocity as well, but I checked it, and before
saving, all the values are 0f, 0f, 0f so I feel like it's not what I am missing...
I made a video to better explain my issue :
What would you advise ?
Thanks in advance for any advice you can provide.