Obi Official Forum
Prefab rope collision question - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Prefab rope collision question (/thread-1229.html)



Prefab rope collision question - loltype - 17-06-2019

Hi,

I purchased OBI rope 4.1 recently. It is fantastic asset!

I got stuck on an unexpected phenomenon for the past few days. I made a prefab which consists of Obi Rope(fully set up, initialized) + script(just destroy after 5 sec). And I added a cube with ObiCollider to the scene for collision testing.

When I instantiate the prefab rope at runtime, it falls and collide the cube correctly as long as prefab remains. But once all prefab has been destroyed, newly instantiate  prefab will be penetrate(not collide with) the cube.


This is link for Youtube video.
https://youtu.be/jjRjJNdYFdI

Now I have workarounds for this: 
 (1) Remove solver from the prefab, add a solver to scene and set this at runtime. As the following link:
       http://obi.virtualmethodstudio.com/forum/showthread.php?tid=1074
 or 
 (2) Simply add a dummy solver to the scene. I don’t know why it works…perhaps as long as a solver remains the phenomenon is not happen, even if the solver is dummy(not used).

I'm new to Unity and Obi Rope so maybe it is a noobish question. But I would like to share this on the forum, just in case. And if possible, I would like to know how this phenomenon happens.

Thanks!


RE: Prefab rope collision question - josemendez - 17-06-2019

(17-06-2019, 02:57 PM)loltype Wrote: Hi,

I purchased OBI rope 4.1 recently. It is fantastic asset!

I got stuck on an unexpected phenomenon for the past few days. I made a prefab which consists of Obi Rope(fully set up, initialized) + script(just destroy after 5 sec). And I added a cube with ObiCollider to the scene for collision testing.

When I instantiate the prefab rope at runtime, it falls and collide the cube correctly as long as prefab remains. But once all prefab has been destroyed, newly instantiate  prefab will be penetrate(not collide with) the cube.


This is link for Youtube video.
https://youtu.be/jjRjJNdYFdI

Now I have workarounds for this: 
 (1) Remove solver from the prefab, add a solver to scene and set this at runtime. As the following link:
       http://obi.virtualmethodstudio.com/forum/showthread.php?tid=1074
 or 
 (2) Simply add a dummy solver to the scene. I don’t know why it works…perhaps as long as a solver remains the phenomenon is not happen, even if the solver is dummy(not used).

I'm new to Unity and Obi Rope so maybe it is a noobish question. But I would like to share this on the forum, just in case. And if possible, I would like to know how this phenomenon happens.

Thanks!

Hi!

I've been unable to reproduce this using my own setup. How does your prefab structure/hierarchy look like? I assume each rope has its own solver? (since workaround #1 involves using the same solver for all ropes, correct?)


RE: Prefab rope collision question - loltype - 18-06-2019

(17-06-2019, 07:22 PM)josemendez Wrote: Hi!

I've been unable to reproduce this using my own setup. How does your prefab structure/hierarchy look like? I assume each rope has its own solver? (since workaround #1 involves using the same solver for all ropes, correct?)

Hi,

Thanks for the quick reply! Yes, each rope has its own solver. A screenshot of the property window attached.

And all settings of my setup can be shown in this youtube video.
https://youtu.be/jjRjJNdYFdI

Regards,


RE: Prefab rope collision question - BCC_Gummybear - 09-10-2019

(17-06-2019, 02:57 PM)loltype Wrote: Hi,

I purchased OBI rope 4.1 recently. It is fantastic asset!

I got stuck on an unexpected phenomenon for the past few days. I made a prefab which consists of Obi Rope(fully set up, initialized) + script(just destroy after 5 sec). And I added a cube with ObiCollider to the scene for collision testing.

When I instantiate the prefab rope at runtime, it falls and collide the cube correctly as long as prefab remains. But once all prefab has been destroyed, newly instantiate  prefab will be penetrate(not collide with) the cube.


This is link for Youtube video.
https://youtu.be/jjRjJNdYFdI

Now I have workarounds for this: 
 (1) Remove solver from the prefab, add a solver to scene and set this at runtime. As the following link:
       http://obi.virtualmethodstudio.com/forum/showthread.php?tid=1074
 or 
 (2) Simply add a dummy solver to the scene. I don’t know why it works…perhaps as long as a solver remains the phenomenon is not happen, even if the solver is dummy(not used).

I'm new to Unity and Obi Rope so maybe it is a noobish question. But I would like to share this on the forum, just in case. And if possible, I would like to know how this phenomenon happens.

Thanks!

Hello, I am new to Obi and unity as well. Seems i have the same issue. Are those still the solutions you use or did you find anything else out?


RE: Prefab rope collision question - loltype - 13-02-2020

(09-10-2019, 08:40 PM)BCC_Gummybear Wrote: Hello, I am new to Obi and unity as well. Seems i have the same issue. Are those still the solutions you use or did you find anything else out?

Hi, 

Sorry for late reply. For me, workaround (1) works perfect on the Obi 4. 

Anyway I guess this issue is not exist anymore on the latest Obi 5 ! Guiño