10-06-2024, 08:18 AM
Hi,
I have 3 ropes tanged. I am untangling first rope and avoided collision from the other 2 ropes. How do I detect this ?
I have the on collision subscribed on the solver and getting the contacts. But I want to filter rope wise
RopeGenerator.solver.OnParticleCollision += Solver_OnParticleCollision;
private void Solver_OnParticleCollision(ObiSolver solver, ObiSolver.ObiCollisionEventArgs contacts)
{
if (contacts.contacts.Count <= 0)
{
}
else
{
}
}
I have 3 ropes tanged. I am untangling first rope and avoided collision from the other 2 ropes. How do I detect this ?
I have the on collision subscribed on the solver and getting the contacts. But I want to filter rope wise
RopeGenerator.solver.OnParticleCollision += Solver_OnParticleCollision;
private void Solver_OnParticleCollision(ObiSolver solver, ObiSolver.ObiCollisionEventArgs contacts)
{
if (contacts.contacts.Count <= 0)
{
}
else
{
}
}