Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Problem with importing ropes
#1
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 : 
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.  Sonrojado
Reply


Messages In This Thread
Problem with importing ropes - by slugGoddess - 20-10-2020, 11:10 AM
RE: Problem with importing ropes - by josemendez - 20-10-2020, 12:24 PM
RE: Problem with importing ropes - by slugGoddess - 20-10-2020, 01:19 PM
RE: Problem with importing ropes - by josemendez - 20-10-2020, 01:38 PM
RE: Problem with importing ropes - by slugGoddess - 20-10-2020, 01:56 PM
RE: Problem with importing ropes - by josemendez - 20-10-2020, 01:59 PM