Obi Official Forum

Full Version: Close off mesh face
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

The end of the rope mesh doesnt have a face. Is there a way to add a face?
(21-03-2023, 02:04 PM)netjeenpetje Wrote: [ -> ]Hi,

The end of the rope mesh doesnt have a face. Is there a way to add a face?

When using the ObiRopeExtrudedRenderer component, you can place any custom mesh/object at the end to close off the rope, by using ObiPathSmoother.GetSectionAt(float mu) and passing 0 or 1 (start or end of the rope respectively). This returns an orthonormal frame at the end of the rope, that you can use to place any object there. See the sample ObiRopeAttach component, which works this way.

Also see the sample ObiRopePrefabPlugger component, which can plug prefabs at the start/end of the rope as well as at cuts.

kind regards,