18-04-2023, 12:45 PM
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:
Thanks a lot.
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.