19-11-2020, 02:03 PM
(This post was last modified: 19-11-2020, 02:10 PM by canerozdemir.)
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?
The script is attached to the obi solver parent object. I tried to attach the script to the ropes and made a few adjustments on the code but in both cases, the same outcome occured for me.
The script is attached to the obi solver parent object. I tried to attach the script to the ropes and made a few adjustments on the code but in both cases, the same outcome occured for me.