05-10-2020, 01:00 PM
Hi!
I have the next scenario:
One ObiSolver that contains a few ropes. What I want is that once I cut one of that ropes (using the ObiRope.Tear function), I want to apply a certain amount of force to each extreme of the particles in order to add some juice to the cut action.
In the past, I was using ObiSolver.externalforces, using as an index the element that contains the particle that I get from e.contacts (being e ->ObiSolver.ObiCollisionEventArgs). At that time I was using One ObiSolver per rope so there wasn't any problem.
Now I'm using one ObiSolver for different ropes. Is there any way to get the global number of the element that contains the particle?
Because if I'm using the old way the force is applied to a different rope than the one that I'm tearing it.
Regards!
I have the next scenario:
One ObiSolver that contains a few ropes. What I want is that once I cut one of that ropes (using the ObiRope.Tear function), I want to apply a certain amount of force to each extreme of the particles in order to add some juice to the cut action.
In the past, I was using ObiSolver.externalforces, using as an index the element that contains the particle that I get from e.contacts (being e ->ObiSolver.ObiCollisionEventArgs). At that time I was using One ObiSolver per rope so there wasn't any problem.
Now I'm using one ObiSolver for different ropes. Is there any way to get the global number of the element that contains the particle?
Because if I'm using the old way the force is applied to a different rope than the one that I'm tearing it.
Regards!