Obi Official Forum
Close off mesh face - 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: Close off mesh face (/thread-3816.html)



Close off mesh face - netjeenpetje - 21-03-2023

Hi,

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


RE: Close off mesh face - josemendez - 21-03-2023

(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,