Hi!
I was duplicating a gameobjects that consists of an ObiSolver (parent) and a Rope (child) with 2 game objects (prefabs) with rigidbodies. The original gameobject has a script that I use to subscribe to the event OnCollision. That script requires the rope in order to perform a Tear, so that way I can simulate a cut in the rope. In that script I subscribe to that event doing the following:
m_ActualRope is ObiRope type.
The issue starts when I duplicate the prefab, because it seems that the m_ActualRope is always null on that prefab clone.
Is that a bug?
Regards!
I was duplicating a gameobjects that consists of an ObiSolver (parent) and a Rope (child) with 2 game objects (prefabs) with rigidbodies. The original gameobject has a script that I use to subscribe to the event OnCollision. That script requires the rope in order to perform a Tear, so that way I can simulate a cut in the rope. In that script I subscribe to that event doing the following:
Code:
m_Actualrope.solver.OnCollision += CutTheRope;
m_ActualRope is ObiRope type.
The issue starts when I duplicate the prefab, because it seems that the m_ActualRope is always null on that prefab clone.
Is that a bug?
Regards!