Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Problem with importing ropes
#4
(20-10-2020, 01:19 PM)slugGoddess Wrote: I am now using :
Code:
for (int i = 0; i < rope.solverIndices.Length && i < data.particles.Count; i++) {
      solver.positions[rope.solverIndices[i]] = data.particles[i];
      solver.invMasses[rope.solverIndices[i]] = data.invMasses[i];
 }
For both import and export, but I still encounter the same issue.  Triste

Hard to say what the issue could be at this point. One thing Id' try when loading data is to zero out velocities, since you're still using whatever velocities the particles had at the time of loading the data. This might or might not be the culprit, but zeroing them out is definitely a good idea.

How are you storing the data? I take it that you're also iterating over particles? At which point in the frame do you load/store data?
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