Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Close off mesh face
#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


Messages In This Thread
Close off mesh face - by netjeenpetje - 21-03-2023, 02:04 PM
RE: Close off mesh face - by josemendez - 21-03-2023, 02:37 PM