Obi Official Forum
Attaching a prefab to each particle in a rope. - 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: Attaching a prefab to each particle in a rope. (/thread-2790.html)



Attaching a prefab to each particle in a rope. - hecali_aj - 05-03-2021

Hello,
Is there a way to attach a gameobject/prefab to rope particles? I was thinking of creating the rope through script and attaching a prefab to each particle in the rope.
Is there a better way to do this? Is using pin constraints the solution to this one?


RE: Attaching a prefab to each particle in a rope. - josemendez - 05-03-2021

(05-03-2021, 11:29 AM)hecali_aj Wrote: Hello,
Is there a way to attach a gameobject/prefab to rope particles? I was thinking of creating the rope through script and attaching a prefab to each particle in the rope.
Is there a better way to do this? Is using pin constraints the solution to this one?

Attachments are specifically designed for this:
http://obi.virtualmethodstudio.com/tutorials/attachments.html

If your intention is to have a rope completely made out of prefabs (like a prefab for every particle) try using the chain renderer:
http://obi.virtualmethodstudio.com/tutorials/roperenderingmodes.html

It’s also possible to place a prefab at a specific point in the rope, see the ElectricalWires sample scene.

Let me know how it goes Sonrisa


RE: Attaching a prefab to each particle in a rope. - hecali_aj - 05-03-2021

(05-03-2021, 11:46 AM)josemendez Wrote: Attachments are specifically designed for this:
http://obi.virtualmethodstudio.com/tutorials/attachments.html

If your intention is to have a rope completely made out of prefabs (like a prefab for every particle) try using the chain renderer:
http://obi.virtualmethodstudio.com/tutorials/roperenderingmodes.html

It’s also possible to place a prefab at a specific point in the rope, see the ElectricalWires sample scene.

Let me know how it goes Sonrisa

Chain renderer is perfect! Thanks!
Also, I've sent an email to support about Obi Fluid, I hope you'll understand. Thanks!