Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Close off mesh face
#1
Hi,

The end of the rope mesh doesnt have a face. Is there a way to add a face?
Reply
#2
(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,
Reply