Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Problem with importing ropes
#6
(20-10-2020, 01:56 PM)slugGoddess Wrote: I tried zeroing the velocities out but it didn't help.

Yes, I iterate over the particles to save them : 
Code:
for (int i = 0; i < r.solverIndices.Length; i++) {
        str += solver.positions[r.solverIndices[i]].ToString() + " : ";
        str += solver.invMasses[r.solverIndices[i]].ToString() + "; ";
}
I do the storing as soon as a click event is detected on the save button,
and I do the loading on fixed update.

Looks good to me. Is there any chance I could take a look at the actual project? I can't think of anything else that might be wrong with the load/save code.
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