Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Rope Attachment on dynamic rope length and Stitching questions
#5
Same scene, same model, the one not working has been in the scene for quite a while. For now I'll replace it but I hope it doesn't happen again because it's annoying! 


What about this? Am I doing the right thing:

Quote:I still have a gap between the last ObiBone (a rod) particle and the first rope particle.

Code:

Code:
private void Solver_OnInterpolate(ObiSolver solver)
    {
        int firstRopeParticle = rope.elements[0].particle1;
        int lastRodParticle = rod.solverIndices[rod.solverIndices.Count() - 1];
        Vector3 pos = solver.renderablePositions[lastRodParticle];
        solver.renderablePositions[firstRopeParticle] = pos;
    }

Thanks a lot.
Reply


Messages In This Thread
RE: Rope Attachment on dynamic rope length and Stitching quesitons - by Balou - 18-04-2023, 12:45 PM