Obi Official Forum

Full Version: rope start and end point mesh close
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
is there no code to close the ends of the rope?
(09-05-2023, 04:29 PM)emreaa Wrote: [ -> ]is there no code to close the ends of the rope?

Yes, there's many different ways to do this: you can use pathSmoother.GetSectionAt() to place a custom mesh at the ends of the rope, use attachments, use the rope's elements array and particle positions to place a custom object at the ends, etc.

A simple, ready-made way to do it is to use ObiRopePrefabPlugger component. This allows you to place custom prefabs at the ends of the rope, as well as in any cut ends in the middle of the rope. See the "ElectricalWires" sample scene for an example of this.

kind regards,