Obi Official Forum
How to add objects along rope without them affecting the 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: How to add objects along rope without them affecting the rope (/thread-1037.html)



How to add objects along rope without them affecting the rope - yyy-2c2p - 02-04-2019

Is there a way to add objects along the rope, similar to how the start and end prefabs work? I don't want to use pin contraints because the attached object would have an effect on the rope.
I need to do this programmatically because I have ropes that change size. Is this at all possible?

Thank you.


RE: How to add objects along rope without them affecting the rope - josemendez - 03-04-2019

(02-04-2019, 09:57 PM)yyy-2c2p Wrote: Is there a way to add objects along the rope, similar to how the start and end prefabs work? I don't want to use pin contraints because the attached object would have an effect on the rope.
I need to do this programmatically because I have ropes that change size. Is this at all possible?

Thank you.

Yes, it is possible. You can get all particle properties (including positions), and use them to place objects there. See:
http://obi.virtualmethodstudio.com/tutorials/scriptingparticles.html


RE: How to add objects along rope without them affecting the rope - yyy-2c2p - 04-04-2019

(03-04-2019, 07:20 AM)josemendez Wrote: Yes, it is possible. You can get all particle properties (including positions), and use them to place objects there. See:
http://obi.virtualmethodstudio.com/tutorials/scriptingparticles.html

Thanks! Thats very useful!