28-05-2018, 09:39 AM
Hi!
I managed to work around it, so no need to read the long post above! The only thing I still don't get is why
rope.PullDataFromSolver(ParticleData.VELOCITIES | ParticleData.INV_MASSES);
Gives the same mass for every particle, even though I set the inverse mass to 0 of the end particle of the rope above
Oni.SetParticleInverseMasses (rope.Solver.OniSolver, masses, 1, rope.particleIndices[rope.UsedParticles - 1]);
If you can explain that, it's great, but my game works as intended anyway now, since I worked around it.
I managed to work around it, so no need to read the long post above! The only thing I still don't get is why
rope.PullDataFromSolver(ParticleData.VELOCITIES | ParticleData.INV_MASSES);
Gives the same mass for every particle, even though I set the inverse mass to 0 of the end particle of the rope above
Oni.SetParticleInverseMasses (rope.Solver.OniSolver, masses, 1, rope.particleIndices[rope.UsedParticles - 1]);
If you can explain that, it's great, but my game works as intended anyway now, since I worked around it.