19-11-2020, 02:14 PM
(This post was last modified: 19-11-2020, 02:14 PM by josemendez.)
(19-11-2020, 02:03 PM)canerozdemir Wrote: I am trying to do the same thing for my game. I have an Obi Solver and it has around 20-25 ropes as childs. I attached the script to the obi solver and asked for a collider reference. However, those references are only the Unity objects like cubes and spheres. I have 4 ropes that are colliding with each other but they are not referenced in those reference list and when I attach the game object, I experience a major FPS drop although the substep is 2 and the time settings like fixed timestep are at the default references. I am probably missing a point here but how can I get around using it? Just like in the original OnCollision and OnTrigger callbacks, I would like to receive a reference when a rope is collided with another rope and I want to adress to the rope that is colliding with the other ones. Self collisions are open and the constraint iterations are 5 at most with 1 relaxation. What am I missing here?
For particle-particle collisions, you should use OnParticleCollision event ,instead of the OnCollision event as explained in the docs:
http://obi.virtualmethodstudio.com/tutor...sions.html
Quote:To request the particle-collider contact list from the solver, subscribe to its OnCollision event. To retrieve the particle-particle contact list, subscribe to its OnParticleCollision event.